OSDN Git Service

Use mvn properly and consolidate movdi patterns.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2             Richard Earnshaw  <rearnsha@arm.com>
3
4         * config/arm/arm.c (const_ok_for_op): Check to see
5         if mvn can be used.
6         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
7         (*thumb2_movdi_vfp): Delete.
8         (*arm_movdi_vfp_cortexa8): Delete.
9         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
10         (*movdi_vfp_cortexa8): Likewise.
11
12 2011-06-10  Richard Guenther  <rguenther@suse.de>
13
14         * stor-layout.c (initialize_sizetypes): Give names to all
15         sizetype kinds.
16
17 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
18
19         PR tree-optimization/49318
20         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
21         irrelevant pattern statements.
22
23 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
24
25         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
26
27         PR bootstrap/49354
28         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
29         to last assignment.
30
31 2011-06-09  Jan Hubicka  <jh@suse.cz>
32
33         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
34         do not recompute reachable flag.
35         (cgraph_finalize_function, cgraph_analyze_functions): Set
36         redefined_extern_inline here.
37
38 2011-06-09  Jan Hubicka  <jh@suse.cz>
39
40         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
41         (cgraph_only_called_directly_p): ... this one; bring offline.
42         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
43         varpool_used_from_object_file_p): Drop names from the declaratoin.
44         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
45         collect_callers_of_node): New.
46         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
47         (cgraph_edge_recursive_p): Use cgraph_function_node.
48         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
49         (cgraph_node_cannot_be_local_p_1): Break out from ...
50         (cgraph_node_can_be_local_p): ... here; walk aliases.
51         (cgraph_for_node_thunks_and_aliases): New function.
52         (cgraph_for_node_and_aliases): New function.
53         (cgraph_make_node_local_1): Break out from ...
54         (cgraph_make_node_local) ... here; use cgraph_for_node_thunks_and_aliases.
55         (cgraph_set_nothrow_flag_1): Break out from ...
56         (cgraph_set_nothrow_flag) ... here; use cgraph_for_node_thunks_and_aliases.
57         (cgraph_set_const_flag_1): Break out from ...
58         (cgraph_set_const_flag) ... here; use cgraph_for_node_thunks_and_aliases.
59         (cgraph_set_pure_flag_1): Break out from ...
60         (cgraph_set_pure_flag) ... here; use cgraph_for_node_thunks_and_aliases.
61         (cgraph_propagate_frequency_1): Break out from ...
62         (cgraph_propagate_frequency) ... here; use cgraph_for_node_thunks_and_aliases.
63         (cgraph_used_from_object_file_p): Do not care about aliases.
64         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p): New functions.
65         (collect_callers_of_node_1, collect_callers_of_node): New functions.
66
67 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
68
69         PR rtl-optimization/49154
70         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
71         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
72         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
73         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
74         * config/cris/cris.h (cris_register_move_cost): Remove
75         !TARGET_V32 code.  Tweak comments.
76
77 2011-06-09  Jan Hubicka  <jh@suse.cz>
78
79         * cgraphbuild.c (record_eh_tables): Mark personality function as having
80         address taken.
81
82 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
83
84         PR rtl-optimization/49154
85         * ira-costs.c (setup_regno_cost_classes_by_mode): If there
86         already is a matching slot in the hashtable, assign it to
87         classes_ptr.
88
89         PR rtl-optimization/49154
90         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
91         register classes.
92         * doc/tm.texi: Regenerate.
93
94 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
95
96         PR target/49307
97         * config/sh/sh.md (UNSPEC_CHKADD): New.
98         (chk_guard_add): New define_insn_and_split.
99         (symGOT_load): Use chk_guard_add instead of blockage.
100
101 2011-06-09  Kai Tietz  <ktietz@redhat.com>
102
103         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
104
105 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
106
107         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
108
109 2011-06-09  Wei Guozhi  <carrot@google.com>
110
111         PR target/46975
112         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
113         (peephole2 for conditional move): Generate 16 bit instructions.
114
115 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
116
117         * config/i386/i386.md (*movdi_internal_rex64): Merge
118         alternatives 6 and 8.
119
120 2011-06-09  David Li  <davidxl@google.com>
121
122         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
123         * passes.c (passr_eq): New function.
124         (create_pass_tab): New function.
125         (pass_traverse): New function.
126         (dump_one_pass): New function.
127         (dump_pass_list): New function.
128         (dump_passes): New function.
129
130 2011-06-09  David Li  <davidxl@google.com>
131
132         * tree-complex.c (tree_lower_complex): Gate cleanup.
133         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
134         (execute_optimize_stdarg): Ditto.
135         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
136         (execute_cleanup_eh_1): Ditto.
137         (execute_cleanup_eh): Ditto.
138         * gcse.c (gate_rtl_pre): Ditto.
139         (execute_rtl_pre): Ditto.
140         * except.c (finish_eh_generation): Ditto.
141         (convert_to_eh_region_ranges): Ditto.
142         * cprop.c (one_cprop_pass): Ditto.
143
144 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
145
146         PR target/48673
147         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
148         in all basic blocks.
149
150 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
151
152         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
153         (HAVE_ENABLE_EXECUTE_STACK): Define.
154         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
155         (HAVE_ENABLE_EXECUTE_STACK): Define.
156         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
157         (HAVE_ENABLE_EXECUTE_STACK): Define.
158         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
159         (ENABLE_EXECUTE_STACK): Remove.
160         (HAVE_ENABLE_EXECUTE_STACK): Define.
161         [IN_LIBGCC2]: Don't include <windows.h>.
162         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
163         (HAVE_ENABLE_EXECUTE_STACK): Define.
164         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
165         (HAVE_ENABLE_EXECUTE_STACK): Define.
166         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
167         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
168         (HAVE_ENABLE_EXECUTE_STACK): Define.
169         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
170         (HAVE_ENABLE_EXECUTE_STACK): Define.
171         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
172         (HAVE_ENABLE_EXECUTE_STACK): Define.
173         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
174         (HAVE_ENABLE_EXECUTE_STACK): Define.
175         * config/alpha/alpha.c (alpha_trampoline_init): Test
176         HAVE_ENABLE_EXECUTE_STACK.
177         * config/i386/i386.c (ix86_trampoline_init): Likewise.
178         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
179         (sparc64_initialize_trampoline): Likewise.
180         * libgcc2.c [L_enable_execute_stack]: Remove.
181         * system.h (ENABLE_EXECUTE_STACK): Poison.
182         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
183         * doc/tm.texi: Regenerate.
184         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
185
186 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
187
188         PR middle-end/49308
189         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
190         variable.  After resetting and rescanning insn continue with previous
191         statement.
192
193 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
194
195         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
196         (gcc_cv_ld_hidden): Likewise.
197         * configure: Regenerate.
198         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
199         (ix86_stack_protect_fail): Mark unused.
200         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
201         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
202         [TARGET_MACHO]: Don't define.
203         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
204         (TARGET_STACK_PROTECT_FAIL): Likewise.
205         (rs6000_stack_protect_fail): Mark unused.
206         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
207         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
208
209 2011-06-08  Andi Kleen  <ak@linux.intel.com>
210
211         * varasm.c (get_section): Print location of other conflict
212         for section conflicts.
213
214 2011-06-08  Andi Kleen  <ak@linux.intel.com>
215
216         * config/i386/driver-i386.c (host_detect_local_cpu):
217         Add model 0x2d Intel CPU.
218
219 2011-06-08  Andi Kleen  <ak@linux.intel.com>
220
221         * reginfo.c (global_regs_decl): Add.
222         (globalize_reg): Add decl parameter. Compute location.  Pass location
223         to warnings and add inform. Store decl in global_regs_decl.
224         * rtl.h (globalize_reg): Update prototype.
225         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
226
227 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
228
229         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
230
231 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
232
233         PR target/49305
234         * config/sh/predicates.md (general_movsrc_operand): Check
235         mode for memory with indexed address for QI and HImode.
236         (general_movdst_operand): Likewise.
237
238 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
239
240         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
241
242 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
243
244         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
245         (num_ssa_operands): Likewise.
246         (op_iter_init_phiuse): Forward-declare.
247         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
248
249 2011-06-08  Nick Clifton  <nickc@redhat.com>
250
251         * doc/invoke.texi (ARM Options): Update description of
252         -mthumb-interwork.
253
254 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
255
256         * config/i386/driver-i386.c (host_detect_local_cpu): Support
257         unknown Intel family 0x6 CPUs.
258
259 2011-06-08  Martin Jambor  <mjambor@suse.cz>
260
261         * tree-sra.c (mark_rw_status): Removed.
262         (analyze_access_subtree): New parameter parent instead of
263         mark_read and mark_write, propagate from that.
264
265 2011-06-08  Julian Brown  <julian@codesourcery.com>
266
267         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
268         for double-precision helper functions in hard-float mode if only
269         single-precision arithmetic is supported in hardware.
270
271 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
272
273         PR rtl-optimization/49303
274         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
275         code_motion_path_driver returned 0 or 1.
276         (sel_region_finish): Clear h_d_i_d.
277
278 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
279
280         * config/sh/sh.c (prepare_move_operands): Set pic register
281         appropriately for global and local dynamic tls models even
282         if flag_pic is unset.
283
284 2011-06-07  Jason Merrill  <jason@redhat.com>
285
286         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
287
288 2011-06-07  Xinliang David Li  <davidxl@google.com>
289         * passes.c (enable_disable_pass): Handle assembler name.
290         (is_pass_explicitly_enabled_or_disabled): Ditto.
291
292 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
293
294         PR tree-optimization/48497
295         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
296
297 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
298
299         PR tree-optimization/46728
300         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
301         to use gimple_val_nonnegative_real_p.
302         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
303         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
304
305 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
306
307         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
308
309 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
310
311         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
312         constant vectors.
313
314 2011-06-07  Richard Guenther  <rguenther@suse.de>
315
316         * stor-layout.c (initialize_sizetypes): Initialize all
317         sizetypes based on target definitions.
318         (set_sizetype): Remove.
319         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
320         * tree.h (set_sizetype): Remove.
321
322 2011-06-07  Nick Clifton  <nickc@redhat.com>
323
324         * config.gcc: Unify V850 architecture options and add support for
325         newer V850 architectures.
326         * config/v850/t-v850e: Delete.
327
328 2011-06-07  Richard Guenther  <rguenther@suse.de>
329
330         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
331         Call set_sizetype from here.
332
333 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
334
335         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
336         (*maddhisi4tb, *maddhisi4tt): New define_insns.
337
338 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
339             Andrew Stubbs  <ams@codesourcery.com>
340
341         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
342         multiplies.
343         * doc/md.texi (Canonicalization of Instructions): Document widening
344         multiply canonicalization.
345
346 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
347
348         PR gcov-profile/49299
349         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
350
351 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
352
353         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
354         a pointer.
355         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
356         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
357         vect_recog_pow_pattern): Likewise.
358         (vect_pattern_recog_1): Remove declaration.
359         (widened_name_p): Remove declaration.  Add new argument to specify
360         whether to check that both types are either signed or unsigned.
361         (vect_recog_widen_mult_pattern): Update documentation.  Handle
362         unsigned patterns and multiplication by constants.
363         (vect_pattern_recog_1): Update vect_recog_func references.  Use
364         statement information from the statement returned from pattern
365         detection functions.
366         (vect_pattern_recog): Update vect_recog_func reference.
367         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
368         multiplication by a constant use the type of the other operand.
369
370 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
371
372         PR rtl-optimization/49145
373         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
374
375 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
376
377         PR debug/49262
378         * dwarf2out.c (native_encode_initializer): Decrement count in each
379         iteration.
380
381         PR debug/49294
382         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
383         non-MODE_INT modes.
384
385         PR c++/49264
386         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
387         if stmt folded into nothing.
388         * tree-inline.c (fold_marked_statements): If a builtin at the end of
389         a bb folded into nothing, just update cgraph edges and move to next bb.
390         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
391         to be NULL.  Don't compute count and frequency if new_call is NULL.
392
393 2011-06-04  Diego Novillo  <dnovillo@google.com>
394
395         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
396         (cgraph.o): Likewise.
397         (cgraphunit.o): Likewise.
398         * cgraphunit.c: Include lto-streamer.h
399         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
400         if LTO is enabled.
401         * lto-streamer-in.c (unpack_value_fields): Call
402         streamer_hooks.unpack_value_fields if set.
403         (lto_materialize_tree): For unhandled nodes, first try to
404         call lto_streamer_hooks.alloc_tree, if it exists.
405         (lto_input_ts_decl_common_tree_pointers): Move reading of
406         DECL_INITIAL to lto_streamer_read_tree.
407         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
408         (lto_streamer_read_tree): New.
409         (lto_reader_init): Rename from lto_init_reader.
410         Move initialization code to lto/lto.c.
411         * lto-streamer-out.c (pack_value_fields): Call
412         streamer_hooks.pack_value_fields if set.
413         (lto_output_tree_ref): For tree nodes that are not normally indexable,
414         call streamer_hooks.indexable_with_decls_p before giving up.
415         (lto_output_ts_decl_common_tree_pointers): Move handling
416         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
417         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
418         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
419         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
420         (lto_streamer_write_tree): New.
421         (lto_output): Call lto_streamer_init directly.
422         (lto_writer_init): Remove.
423         * lto-streamer.c (streamer_hooks): New.
424         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
425         instead of lto_preload_common_nodes.
426         (lto_is_streamable): Move from lto-streamer.h
427         (lto_streamer_hooks_init): New.
428         (streamer_hooks): New.
429         (streamer_hooks_init): New.
430         * lto-streamer.h (struct output_block): Forward declare.
431         (struct lto_input_block): Likewise.
432         (struct data_in): Likewise.
433         (struct bitpack_d): Likewise.
434         (struct streamer_hooks): Declare.
435         (streamer_hooks): Declare.
436         (lto_streamer_hooks_init): Declare.
437         (lto_streamer_write_tree): Declare.
438         (lto_streamer_read_tree): Declare.
439         (streamer_hooks_init): Declare.
440         (lto_is_streamable): Move to lto-streamer.c
441
442 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
443
444         * longlong.h (smul_ppmm): The resulting register pair contains the
445         higher order word first.
446
447 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
448
449         PR tree-optimization/46728
450         * builtins.c (powi_table): Remove.
451         (powi_lookup_cost): Remove.
452         (powi_cost): Remove.
453         (expand_powi_1): Remove.
454         (expand_powi): Remove.
455         (expand_builtin_pow_root): Remove.
456         (expand_builtin_pow): Remove.
457         (expand_builtin_powi): Eliminate handling of constant exponent.
458         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
459
460 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
461
462         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
463
464 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
465
466         * dce.c (reset_unmarked_insns_debug_uses): New.
467         (delete_unmarked_insns): Skip debug insns.
468         (prescan_insns_for_dce): Likewise.
469         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
470         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
471         active reg can be found.
472         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
473         (convert_regs_1): Use it.
474
475 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
476
477         * tree-pretty-print.c (dump_function_header): Add flags.
478         Don't dump decl_uid with nouid.
479         * tree-pretty-print.h (dump_function_header): Adjust.
480         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
481         * passes.c (pass_init_dump_file): Pass dump_flags on.
482         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
483
484 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
485
486         PR bootstrap/49270
487         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
488
489 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
490
491         PR tree-optimization/49243
492         * calls.c (setjmp_call_p): Also check if fndecl has the
493         returns_twice attribute.
494
495 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
496
497         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
498         -ffast-math etc.
499
500 2011-06-06  Richard Henderson  <rth@redhat.com>
501             Georg-Johann Lay  <avr@gjlay.de>
502
503         PR target/42210
504         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
505         New predicates.
506         * config/avr/avr.md ("insv"): New insn expander.
507         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
508         "*insv.not.io", "*insv.reg"): New insns.
509
510 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
511
512         PR target/49285
513         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
514         to nonimmediate_operand from memory_operand for the operand that is to
515         be forced to memory by the expander.  Lose the constraints.
516
517 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
518
519         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
520         EH return when delayed branches are disabled.
521
522 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
523
524         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
525         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
526         calculation.
527         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
528         Simplify MODE_V1DF and MODE_V2SF handling.
529         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
530         Simplify MODE_SF handling.
531
532 2011-06-04  Jan Hubicka  <jh@suse.cz>
533
534         PR tree-optimization/48893
535         PR tree-optimization/49091
536         PR tree-optimization/49179
537         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
538         Bounds check.
539
540 2011-06-04  Jan Hubicka  <jh@suse.cz>
541
542         PR lto/48954
543         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
544         bitmaps.
545
546 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
547
548         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
549
550 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
551
552         PR target/49281
553         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
554         to be strictly smaller than 1 << shiftcount.
555
556 2011-06-04  Jan Hubicka  <jh@suse.cz>
557
558         PR tree-optimize/48929
559         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
560         of empty predicate.
561
562 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
563
564         PR debug/48333
565         * calls.c (emit_call_1): Prefer the __builtin declaration of
566         builtin functions.
567
568 2011-06-03   Diego Novillo  <dnovillo@google.com>
569
570         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
571         (lto_input_tree_pointers): Likewise.
572         * lto-streamer-out.c (pack_value_fields): Likewise.
573         (lto_output_tree_pointers): Likewise.
574         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
575         and OPTIMIZATION_NODE.
576
577 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
578
579         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
580         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
581         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
582         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
583         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
584         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
585         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
586         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
587         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
588         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
589         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
590         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
591         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
592         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
593         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
594         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
595         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
596         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
597         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
598         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
599         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
600         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
601         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
602         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
603         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
604         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
605         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
606         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
607         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
608         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
609         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
610         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
611         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
612         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
613         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
614         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
615         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
616         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
617         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
618         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
619         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
620         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
621         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
622         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
623         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
624         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
625         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
626         * system.h (MD_UNWIND_SUPPORT): Poison.
627         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
628         * doc/tm.texi: Regenerate.
629         * unwind-dw2.c: Include md-unwind-support.h instead of
630         MD_UNWIND_SUPPORT.
631         * config/ia64/unwind-ia64.c: Likewise.
632         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
633
634 2011-06-03  Jack Howarth <howarth@bromo.med.uc.edu>
635
636         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
637
638 2011-06-03  Richard Henderson  <rth@redhat.com>
639             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
640
641         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
642         (sigill_hdlr): Correct insn, insn size.
643         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
644
645 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
646
647         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
648         t-slibgcc-dummy.
649         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
650         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
651         * config/mips/t-iris: Remove.
652         * config/mips/t-irix6: New file.
653         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
654
655 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
656
657         * Makefile.in (LIB2ADDEHDEP): Remove.
658         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
659         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
660         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
661         * config/t-darwin (LIB2ADDEHDEP): Remove.
662         * config/t-freebsd (LIB2ADDEHDEP): Remove.
663         * config/t-linux (LIB2ADDEHDEP): Remove.
664
665 2011-06-03  Diego Novillo  <dnovillo@google.com>
666
667         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
668         (lto_register_var_decl_in_symtab): Likewise.
669         (lto_register_function_decl_in_symtab): Likewise.
670         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
671         logic to uniquify_nodes.
672
673 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
674
675         * config/alpha/t-osf5: Remove.
676         * config/alpha/t-osf-pthread: Remove.
677         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
678         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
679
680 2011-06-03  Julian Brown  <julian@codesourcery.com>
681
682         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
683         (strongarm1110): Use strongarm tuning.
684         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
685         * config/arm/arm.c (arm_strongarm_tune): New.
686         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
687         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
688         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
689         setting, using previous defaults or 1 for Cortex-A5.
690         (arm_option_override): Set max_insns_skipped from current tuning.
691
692 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
693
694         * doc/install.texi (Options specification): Document --with-specs.
695
696 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
697
698         * config/arm/neon.md (orndi3_neon): Actually split it.
699
700 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
701
702         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
703         * var-tracking.c (reverse_op): Limite recurse depth to 5.
704
705 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
706
707         PR debug/47590
708         * target.def (delay_sched2, delay_vartrack): New.
709         * doc/tm.texi.in: Update.
710         * doc/tm.texi: Rebuild.
711         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
712         * var-tracking.c (gate_handle_var_tracking): Likewise.
713         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
714         (bfin_flag_var_tracking): Drop.
715         (output_file_start): Don't save and override flag_var_tracking.
716         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
717         (bfin_reorg): Test original variables.
718         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
719         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
720         (ia64_flag_var_tracking): Drop.
721         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
722         (ia64_file_start): Don't save and override flag_var_tracking.
723         (ia64_override_options_after_change): Ditto
724         flag_schedule_insns_after_reload.
725         (ia64_reorg): Test original variables.
726         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
727         (picochip_flag_var_tracking): Drop.
728         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
729         (picochip_option_override): Don't save and override
730         flag_schedule_insns_after_reload.
731         (picochip_asm_file_start): Ditto flag_var_tracking.
732         (picochip_reorg): Test original variables.
733         * config/spu/spu.c (spu_flag_var_tracking): Drop.
734         (TARGET_DELAY_VARTRACK): Define.
735         (spu_var_tracking): New.
736         (spu_machine_dependent_reorg): Call it.
737         (asm_file_start): Don't save and override flag_var_tracking.
738
739 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
740
741         PR target/49163
742         * config/sh/predicates.md (general_movsrc_operand): Return 0
743         for memory and memory subreg of which address is an invalid
744         indexed address for QI and HImode.
745         (general_movdst_operand): Likewise.
746
747 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
748
749         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
750         edges only, when there is a non-local label in the function.
751         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
752
753 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
754
755         * config/i386/constraints.md (Y3): New register constraint.
756         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
757         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
758         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
759         *sse2_interleave_lowv2df.
760
761 2011-06-02  Julian Brown  <julian@codesourcery.com>
762
763         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
764         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
765         (arm_cortex_a5_tune): New.
766
767 2011-06-02  Julian Brown  <julian@codesourcery.com>
768
769         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
770         * config/arm/arm.c (arm_default_branch_cost): New.
771         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
772         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
773         (arm_fa726_tune): Set branch_cost field using
774         arm_default_branch_cost.
775         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
776         current_tune structure.
777         * dojump.c (tm_p.h): Include file.
778
779 2011-06-02  Julian Brown  <julian@codesourcery.com>
780
781         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
782         tuning.
783         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
784         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
785         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
786         field.
787         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
788         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
789         (arm_fa726te_tune): Add prefer_constant_pool setting.
790         (arm_v6t2_tune, arm_cortex_tune): New.
791         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
792         prefer_constant_pool setting.
793
794 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
795
796         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
797         switch statement.
798         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
799         (*movdf_internal) <case 6,7,8>: Ditto.
800
801         * config/i386/constraints.md (Y4): New register constraint.
802         * config/i386/sse.md (vec_set<mode>_0): Merge with
803         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
804         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
805         *vec_extractv2di_1_sse.
806         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
807         and *vec_concatv2di_rex64_sse.
808
809 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
810
811         PR target/48807
812         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
813         of cgraph_local_info for null before attempting to use it.
814
815 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
816
817         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
818         (current_function_dynamic_alloc_count): Delete.
819         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
820         (expand_builtin_nonlocal_goto): Remove obsolete comment.
821         (expand_builtin_update_setjmp_buf): Remove dead code.
822         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
823         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
824         support.
825         * function.c (instantiate_virtual_regs): Likewise.
826         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
827         for a block with a single abnormal incoming edge.
828         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
829         (SETJMP_VIA_SAVE_AREA): Delete.
830         * config/sparc/sparc-protos.h (load_got_register): Declare.
831         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
832         (load_got_register): Make global.
833         (sparc_frame_pointer_required): Add 'static'.
834         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
835         (sparc_builtin_setjmp_frame_value): New function.
836         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
837         (save_stack_nonlocal): New expander.
838         (restore_stack_nonlocal): Likewise.
839         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
840         (nonlocal_goto_internal): New insn.
841         (goto_handler_and_restore): Delete.
842         (builtin_setjmp_setup): Likewise.
843         (do_builtin_setjmp_setup): Likewise.
844         (setjmp): Likewise.
845         (builtin_setjmp_receiver): New expander.
846
847 2011-06-01  David Li  <davidxl@google.com>
848
849         PR middle-end/49261
850         * tree-pretty-print.c (dump_function_header): Format cleanup.
851
852 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
853
854         PR target/49238
855         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
856         needed when original operands are used for msw_skip comparison.
857
858 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
859
860         PR debug/49250
861         * var-tracking.c (add_uses, add_stores): Don't call
862         cselib_subst_to_values on ENTRY_VALUE.
863
864 2011-06-01  Diego Novillo  <dnovillo@google.com>
865
866         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
867         output_record_start with LTO_null instead of output_zero.
868         (lto_output_ts_binfo_tree_pointers): Likewise.
869         (lto_output_tree): Likewise.
870         (output_eh_try_list): Likewise.
871         (output_eh_region): Likewise.
872         (output_eh_lp): Likewise.
873         (output_eh_regions): Likewise.
874         (output_bb): Likewise.
875         (output_function): Likewise.
876         (output_unreferenced_globals): Likewise.
877         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
878         instead of NUM_TREE_CODES.
879         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
880         (lto_output_int_in_range): Change << to >> when shifting VAL.
881
882 2011-06-01  Diego Novillo  <dnovillo@google.com>
883
884         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
885         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
886
887 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
888
889         PR target/45074
890         * optabs.h (valid_multiword_target_p): Declare.
891         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
892         doing multi-word operations.
893         * optabs.c (expand_binop): Likewise.
894         (expand_doubleword_bswap): Likewise.
895         (expand_absneg_bit): Likewise.
896         (expand_unop): Likewise.
897         (expand_copysign_bit): Likewise.
898         (multiword_target_p): New function.
899
900 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
901
902         PR rtl-optimization/48830
903         PR rtl-optimization/48808
904         PR rtl-optimization/48792
905         * reload.c (push_reload): Check contains_reg_of_mode.
906         * reload1.c (strip_paradoxical_subreg): New function.
907         (gen_reload_chain_without_interm_reg_p): Use it to handle
908         paradoxical subregs.
909         (emit_output_reload_insns, gen_reload): Likewise.
910
911 2011-06-01  David Li  <davidxl@google.com>
912
913         * predict.c : Change pass name
914         * ipa.c: Ditto.
915         * dce.c: Ditto.
916         * tree-profile.c: Ditto.
917         * except.c: Ditto.
918
919 2011-06-01  David Li  <davidxl@google.com>
920
921         * tree-pretty-print.c (dump_function_header): New function.
922         * final.c (rest_of_clean_state): Use header dumper.
923         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
924         * passes.c (pass_init_dump_file): Use header dumper.
925
926 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
927
928         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
929         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
930         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
931         New functions.
932         (mem_loc_descriptor): Use them.
933
934         * var-tracking.c (create_entry_value): New function.
935         (vt_add_function_parameter): Use it.
936
937 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
938
939         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
940         Include <signal.h>, <ucontext.h>.
941         (sigill_caught): Define.
942         (sigill_hdlr): New function.
943         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
944         insns can be executed.
945         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
946         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
947
948 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
949
950         * config/t-slibgcc-darwin: Move to ...
951         * config/t-slibgcc-dummy: ... this.  Clarify comments.
952         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
953         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
954         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
955         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
956         Remove i386/t-crtstuff from tmake_file.
957         (i[34567]86-*-solaris2*): Remove t-svr4,
958         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
959         t-slibgcc-dummy.
960         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
961         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
962         sparc/t-crtfm from tmake_file.
963         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
964         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
965         Remove extra_parts.
966         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
967         * config/i386/t-nwld (SHLIB_LINK): Remove.
968         * config/i386/t-rtems-i386: Rename to ...
969         * config/i386/t-rtems: ... this.
970         ($(T)crti.o, $(T)crtn.o): Remove.
971         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
972         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
973         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
974         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
975         EXTRA_MULTILIB_PARTS): Remove.
976         * config/sparc/t-sol2-64: Likewise.
977         * config/sparc/t-sol2: Remove.
978         * config/sparc/t-crtin: Remove.
979         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
980         * config/i386/gmon-sol2.c: Remove.
981         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
982         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
983         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
984         * config/i386/sol2-gc1.asm: Remove.
985         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
986         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
987         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
988         * config/t-slibgcc-sld: Remove.
989
990 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
991
992         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
993         base_type_for_mode with op_mode instead of mode.
994
995 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
996
997         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
998         Cortex-A15.
999         * config/arm/arm-tune.md: Regenerate.
1000         * config/arm/arm-tables.opt: Regenerate.
1001         * config/arm/arm.c (FL_DIV): Rename...
1002         (FL_THUMB_DIV): ... to this.
1003         (FL_ARM_DIV): Define.
1004         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
1005         (arm_arch_hwdiv): Remove.
1006         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
1007         (arm_issue_rate): Add cortexr5.
1008         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
1009         __ARM_ARCH_EXT_IDIV__.
1010         (TARGET_IDIV): Define.
1011         (arm_arch_hwdiv): Remove.
1012         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
1013         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
1014         (divsi3, udivsi3): New patterns.
1015         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
1016         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
1017
1018 2011-06-01  Martin Jambor  <mjambor@suse.cz>
1019
1020         * ipa-utils.c (ipa_dfs_info): New field scc_no.
1021         * ipa-utils.c (searchc): Set scc_no.
1022
1023 2011-06-01  Martin Jambor  <mjambor@suse.cz>
1024
1025         * ipa-utils.c (searchc_env): New field allow_overwritable.
1026         (searchc): do not ignore edges to overwritable nodes if indicated
1027         by env->allow_overwritable.
1028         (ipa_reduced_postorder): Set env.allow_overwritable.
1029
1030 2011-06-01  Richard Guenther  <rguenther@suse.de>
1031
1032         * tree.c (free_lang_data): Do not reset boolean_type_node nor
1033         char_type_node.
1034         * lto-streamer.c (lto_record_common_node): Take node pointer,
1035         do not register types.
1036         (lto_preload_common_nodes): Explicitly skip preloading nodes
1037         that differ between frontends.
1038
1039 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
1040
1041         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
1042         NON_FLOAT_REGS.
1043
1044 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
1045
1046         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
1047         parameter value for dump. Dump cost on outermost call only.
1048         (rs6000_memory_move_cost): Dump cost on outermost call only.
1049
1050 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
1051
1052         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
1053         DW_OP_GNU_convert ops.
1054
1055         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
1056         cselib_preserve_constants.
1057         (cselib_lookup_1): If cselib_preserve_constants,
1058         a new VALUE is being created for REG and there is a VALUE for the
1059         same register in wider mode, add another loc with lowpart SUBREG of
1060         the wider VALUE.
1061         (cselib_subst_to_values): Handle ENTRY_VALUE.
1062         * var-tracking.c  (replace_expr_with_values): Return NULL for
1063         ENTRY_VALUE too.
1064         * dwarf2out.c (convert_descriptor_to_signed): New function.
1065         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
1066         instead of two shifts.
1067         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
1068         the right mode if needed.
1069         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
1070         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
1071         convert_descriptor_to_signed.
1072         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
1073         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
1074
1075         PR target/48688
1076         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
1077
1078 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
1079
1080         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
1081         of X87MODEI12 and SWI48x instead of SSEMODEI24.
1082         (SWI248x): New mode iterator, rename from X87MODEI.
1083         (X87MODEI): Remove mode iterator.
1084         (X87MODEI12): Ditto.
1085         (SSEMODEI24): Ditto.
1086
1087 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
1088
1089         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
1090         * doc/invoke.texi: Document max-vartrack-expr-depth.
1091         * var-tracking.c (EXPR_DEPTH): New.
1092         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
1093
1094 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
1095
1096         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
1097         * config/i386/sse.md: Add n to negated FMA pattern names.
1098
1099 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
1100
1101         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
1102
1103 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
1104
1105         * gengtype-state.c (read_state_params_structs): Initialize previous.
1106
1107 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
1108
1109         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
1110         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
1111
1112 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
1113
1114         * config/i386/i386.md (*movtf_internal): Avoid allocating general
1115         registers.  Penalize F*r->o alternative to prevent partial memory
1116         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
1117         CONST_DOUBLE immediates when optimizing function for size.  Do not move
1118         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1119         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
1120         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
1121         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
1122         alternatives.
1123         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
1124
1125         (fp_register_operand splitters): Use fp_register_operand
1126         constraint.  Do not use FP_REG_P in insn condition.
1127         (any_fp_register_operand splitters): Use any_fp_register_operand
1128         constraint.  Do not use ANY_FP_REG_P in insn condition.
1129
1130 2011-05-31  Jan Hubicka  <jh@suse.cz>
1131
1132         * cgraph.h (cgraph_inline_failed_t): Give enum a name
1133         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
1134         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
1135         (lto_output_edge): Use output_enum and var_len_unsigned.
1136         (lto_output_varpool_node): Likewise.
1137         (input_overwrite_node): Do not take resolution parameter;
1138         extract it from a bitpack.
1139         (input_node): Do not read resolution; use input_enum and
1140         var_len_unsigned.
1141         (input_varpool_node): Likewise.
1142         (input_edge): Likewise.
1143         (input_cgraph_1): Likewise.
1144
1145 2011-05-31  Richard Guenther  <rguenther@suse.de>
1146
1147         * gimple.c (gimple_register_canonical_type): Do not register
1148         any types via gimple_register_type.
1149
1150 2011-05-31  Jan Hubicka  <jh@suse.cz>
1151
1152         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
1153         of thunks.
1154
1155 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
1156
1157         PR rtl-optimization/49235
1158         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
1159         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
1160
1161 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
1162
1163         PR tree-optimization/49093
1164         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
1165         data references.
1166
1167 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
1168
1169         PR debug/49047
1170         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
1171         for concrete functions containing the code of cloned functions.
1172
1173 2011-05-31  Richard Guenther  <rguenther@suse.de>
1174
1175         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
1176         to ...
1177         (forward_propagate_into_comparison_1): ... this.
1178         (forward_propagate_comparison): Rename to ...
1179         (forward_propagate_into_comparison): ... this.  Split out
1180         real forward propagation code to ...
1181         (forward_propagate_comparison): ... this.
1182         (forward_propagate_into_gimple_cond): Remove looping.
1183         (forward_propagate_into_cond): Likewise.
1184         (simplify_not_neg_expr): Return whether we have done something.
1185         (simplify_gimple_switch): Likewise.
1186         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
1187         (ssa_forward_propagate_and_combine): ... this.  Re-structure
1188         to do a forward forward-propagation walk on BBs and a backward
1189         stmt combining walk on BBs.  Consistently re-scan changed statements.
1190         (pass_forwprop): Adjust.
1191
1192 2011-05-30  Ian Lance Taylor  <iant@google.com>
1193
1194         * godump.c (go_format_type): Correct length of name added to
1195         obstack for anonymous field.
1196
1197 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
1198
1199         PR target/49186
1200         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
1201         part of the second operand is 0.
1202
1203 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
1204
1205         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
1206         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
1207         to memory for !TARGET_MEMORY_MISMATCH_STALL.
1208         (*movdf_internal_rex64): Do not penalize F->r alternative.
1209         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
1210         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
1211         when optimizing function for size.  Do not move CONST_DOUBLEs
1212         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
1213         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
1214         SUBREGs.  Do not check for MEM_P operands in the insn condition,
1215         check for ANY_FP_REGNO_P instead.
1216         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
1217         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
1218         function for speed.
1219         * config/i386/i386.c (ix86_option_override_internal): Do not
1220         set TARGET_INTEGER_DFMODE_MOVES here.
1221
1222 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
1223
1224         PR target/49168
1225         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
1226
1227 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
1228
1229         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
1230         DW_TAG_rvalue_reference_type even for
1231         -gdwarf-4 -fno-debug-types-section.
1232
1233 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1234
1235         PR tree-optimization/46728
1236         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
1237         (build_and_insert_binop): New.
1238         (gimple_expand_builtin_pow): Reorder args for
1239         build_and_insert_call; use build_and_insert_binop; add more
1240         optimizations for fractional exponents.
1241
1242 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
1243
1244         PR bootstrap/49190
1245
1246         Revert:
1247         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
1248
1249         * tree.h (struct tree_identifier): Inherit from tree_typed, not
1250         tree_common.
1251         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1252         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1253         TS_BASE instead of TS_COMMON.
1254         * varasm.c (assemble_name): Remove assert.
1255
1256 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
1257
1258         * config.gcc: Keep obselete list sorted.
1259
1260 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
1261             Eric Botcazou  <ebotcazou@adacore.com>
1262
1263         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
1264         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
1265         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
1266         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
1267         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
1268
1269 2011-05-30  Richard Guenther  <rguenther@suse.de>
1270
1271         * gimple.c (gimple_types_compatible_p_1): Compare record
1272         and union type members properly.
1273
1274 2011-05-30  Richard Guenther  <rguenther@suse.de>
1275
1276         PR tree-optimization/49210
1277         * ipa-split.c (split_function): Care for the case where the call
1278         result is not trivially convertible to the result holding variable.
1279
1280 2011-05-30  Richard Guenther  <rguenther@suse.de>
1281
1282         PR tree-optimization/49218
1283         * tree-vrp.c (adjust_range_with_scev): Properly check whether
1284         overflow occured.
1285
1286 2011-05-30  Richard Guenther  <rguenther@suse.de>
1287
1288         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
1289         New function split out from ...
1290         (forward_propagate_into_gimple_cond): ... here.  Adjust.
1291         (forward_propagate_into_cond): Likewise.
1292         (forward_propagate_comparison): Also propagate into
1293         comparisons on assignment RHS.  Change return value to
1294         behave similar to forward_propagate_into_cond.
1295         (tree_ssa_forward_propagate_single_use_vars): Handle
1296         strict-overflow warnings properly for forward_propagate_comparison.
1297
1298 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1299
1300         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
1301         from plugin linker.
1302         * configure: Regenerate.
1303
1304 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
1305
1306         PR tree-optimization/49199
1307         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
1308         non-reduction operands are either defined in the loop or by induction.
1309
1310 2011-05-29  Xinliang David Li  <davidxl@google.com>
1311
1312         * opts-global.c (handle_common_deferred_options): Handle new options.
1313         * passes.c (register_one_dump_file): Call register_pass_name.
1314         (execute_one_pass): Check explicit enable/disable flag.
1315         (passr_hash): New function.
1316         (passr_eq): Ditto.
1317         (register_pass_name): Ditto.
1318         (get_pass_by_name): Ditto.
1319         (pass_hash): Ditto.
1320         (pass_eq): Ditto.
1321         (enable_pass): Ditto.
1322         (disable_pass): Ditto.
1323         (is_pass_explicitly_enabled_or_disabled): Ditto.
1324
1325 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
1326
1327         * config/i386/i386.md (*movoi_internal_avx): Use
1328         standard_sse_constant_opcode for alternative 0.
1329         (*movti_internal_sse): Ditto.
1330         (*movti_internal_rex64): Use standard_sse_constant_opcode for
1331         alternative 2.
1332         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
1333         sselog1 type moves.
1334         (*movsi_internal): Ditto.
1335         (*movdi_internal): Ditto.  Add ssecvt type moves.
1336
1337 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
1338
1339         PR target/48830
1340         * rtlanal.c (simplify_subreg_regno): Adjust comment.
1341
1342 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
1343
1344         PR rtl-optimization/49095
1345         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
1346         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
1347
1348 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
1349
1350         PR target/43995
1351         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
1352         recurse_p argument.  Only follow register copies if it is set,
1353         and prevent mips_find_pic_call_symbol from recursing.
1354         (mips_find_pic_call_symbol): Add a recurse_p argument.
1355         Pass it to mips_pic_call_symbol_from_set.
1356         (mips_annotate_pic_calls): Update accordingly.
1357
1358 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
1359
1360         * emit-rtl.c (try_split): Use a loop to search for
1361         NOTE_INSN_CALL_ARG_LOCATIONs.
1362
1363 2011-05-29  Richard Guenther  <rguenther@suse.de>
1364
1365         PR tree-optimization/49217
1366         * ipa-pure-const.c (propagate_pure_const): Fix typos.
1367
1368 2011-05-28  Jan Hubicka  <jh@suse.cz>
1369
1370         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
1371         length.
1372         (string_slot_free): Remove
1373         (create_output_block): Initialize obstack.
1374         (destroy_output_block): Free obstack.
1375         (lto_string_index): Add PERSISTENT parameter; do not duplicate
1376         the string unless it needs to be added into the hash.
1377         (lto_output_string_with_length): Add persistent attribute;
1378         handle NULL strings.
1379         (lto_output_string): Add PERSISTENT parameter.
1380         (output_string_cst, output_identifier): Simplify.
1381         (lto_output_location_bitpack): Update.
1382         (lto_output_builtin_tree): Update.
1383         * lto-streamer.h (struct output_block): Add obstack.
1384         (lto_output_string, lto_output_string_with_length): Remove
1385         declarations; functions are static now.
1386
1387 2011-05-28  Jan Hubicka  <jh@suse.cz>
1388
1389         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
1390         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
1391         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
1392         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
1393         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
1394         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
1395         unpack_ts_decl_with_vis_value_fields,
1396         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
1397         lto_get_builtin_tree): Use enum and variable length i/o.
1398         * basic-block.h (profile_status_d): Add PROFILE_LAST.
1399         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
1400         New functions.
1401         (bp_pack_enum, bp_unpack_enum): New macros.
1402
1403 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
1404
1405         * genrecog.c: Remove redundant forward declarations.
1406
1407 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
1408
1409         * config.gcc: Deprecate mips*-*-openbsd*.
1410
1411 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
1412
1413         PR bootstrap/49195
1414         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
1415         for match_op_dup.
1416
1417 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
1418
1419         PR middle-end/48981
1420         * gengtype.c (vec_prefix_type): New function.
1421         (note_def_vec): Use vec_prefix_type and change the length
1422         attribute to be based on the prefix.
1423         * vec.c: Include coretypes.h before vec.h.
1424         (struct vec_prefix): Remove.
1425         (vec_gc_p_reserve): Change the offsetof to sizeof.
1426         (vec_gc_p_reserve_exact): Likewise.
1427         (vec_heap_p_reserve): Likewise.
1428         (vec_heap_p_reserve_exact): Likewise.
1429         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
1430         (vec_stack_p_reserve): Change the offsetof to sizeof.
1431         (vec_stack_p_reserve_exact): Likewise.
1432         * vec.h (struct vec_prefix): New struct definition.
1433         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
1434         (VEC_T_GTY(T,B)): Likewise.
1435         (DEF_VEC_FUNC_P(T)): Use prefix field.
1436         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
1437         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
1438
1439 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1440
1441         PR tree-optimization/46728
1442         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
1443         (powi_as_mults): Add gimple_set_location.
1444         (build_and_insert_call): New.
1445         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
1446         0.5, 0.25, 0.75, 1./3., or 1./6.
1447
1448 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
1449
1450         * doc/contrib.texi: Update copyright years.
1451         (Contributors): Add Zdenek Sojka.
1452
1453 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
1454
1455         * c-decl.c (c_push_function_context): Copy the current statement
1456         list stack.
1457         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
1458         (finish_struct): Call building_stmt_list_p instead of checking
1459         cur_stmt_list.
1460         * c-parser.c (c_parser_postfix_expression): Likewise.
1461         * c-typeck.c (c_end_compound_stmt): Likewise.
1462         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
1463         * tree-iterator.c (stmt_list_cache): Change to a VEC.
1464         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
1465         (free_stmt_list): Likewise.
1466         * tree.h (struct tree_statement_list): Include typed_tree instead
1467         of tree_common.
1468         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
1469         as TS_TYPED instead of TS_COMMON.
1470
1471 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1472             Uros Bizjak  <ubizjak@gmail.com>
1473
1474         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
1475         (HAVE_AS_IX86_TLSGDPTL): Define.
1476         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
1477         (HAVE_AS_IX86_TLSLDMPLT): Define.
1478         * configure: Regenerate.
1479         * config.in: Regenerate.
1480         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
1481         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
1482         TARGET_SUN_TLS, use @tlsgdplt or @plt.
1483         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
1484         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
1485         @tlsldmplt or @plt.
1486         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
1487
1488 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
1489
1490         * sched-int.h (struct _haifa_deps_insn_data): New members cond
1491         and reverse_cond.
1492         (INSN_COND, INSN_REVERSE_COND): New macros.
1493         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
1494         once.
1495         (sched_get_condition_with_rev): Cache the results, and look them up
1496         if possible.
1497         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
1498         are clobbered by the current insn.
1499         * target.def (exposed_pipline): New sched data hook.
1500         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
1501         * doc/tm.texi: Regenerate.
1502
1503 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1504
1505         PR tree-optimization/49170
1506         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
1507         sincos or cexp.
1508
1509 2011-05-27  Richard Guenther  <rguenther@suse.de>
1510
1511         PR middle-end/49189
1512         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
1513         of comparisons.
1514
1515 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
1516
1517         * haifa-sched.c (sched_scan_info): Remove.
1518         (schedule_block): Call sched_extend_luids rather than sched_init_luids
1519         with NULL args.
1520         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
1521         Remove functions.
1522         (sched_scan): Remove.
1523         (sched_extend_luids): Renamed from luids_extend_insn and no longer
1524         static.  All callers changed.
1525         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
1526         static.  All callers changed.
1527         (sched_init_luids): Remove all arguments except the first.  All
1528         callers changed.  Don't use sched_scan.
1529         (haifa_init_h_i_d): Likewise.
1530         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
1531         manually rather than using sched_init_luids.  Likewise with
1532         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
1533         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
1534         rather than sched_init_luids with NULL args.
1535         * sel-sched-ir.c (new_insns): Remove variable.
1536         (sched_scan): New static function, previously in haifa-sched.c.  Remove
1537         all arguments but the first two; all callers changed.
1538         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
1539         rather than sched_init_luids.
1540         (sel_init_bbs): Remove second argument.  All callers changed.
1541         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
1542         with NULL arguments.
1543         (create_insn_rtx_from_pattern): Likewise.
1544         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
1545         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
1546         (sched_init_insn_luid, sched_extend_luids): Declare.
1547         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
1548         declarations.
1549
1550 2011-05-27  Richard Guenther  <rguenther@suse.de>
1551
1552         PR middle-end/49177
1553         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
1554         A CMP B ? (T) true : (T) false for non-integral types T again.
1555
1556 2011-05-27  Jan Hubicka  <jh@suse.cz>
1557
1558         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
1559         so 0 means NULL string.
1560         (lto_output_string_with_length): ... here.
1561         (lto_output_string, output_string_cst, output_identifier): Update
1562         handling of NULL strings.
1563         (lto_output_location_bitpack): New function.
1564         (lto_output_location): Use it.
1565         (lto_output_tree_ref): Use output_record_start.
1566         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
1567         len values.
1568         * lto-streamer-in.c (string_for_index): Break out from ...; offset
1569         values by 1.
1570         (input_string_internal): ... here;
1571         (input_string_cst, input_identifier, lto_input_string): Update handling
1572         of NULL strings.
1573         (lto_input_location_bitpack): New function
1574         (lto_input_location): Use it.
1575         (unpack_ts_type_common_value_fields): Pack align & alias in var len
1576         values.
1577         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
1578         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
1579         (bp_pack_value): Sanity check the value range.
1580         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
1581         New functions.
1582         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
1583         New functions.
1584
1585 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
1586
1587         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
1588         call_arg_location instructions down the floor.
1589
1590 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
1591
1592         PR rtl-optimization/49154
1593         * ira.c (setup_pressure_classes): Process class without sublcasses
1594         as a candidate for pressure classes.
1595
1596 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
1597
1598         PR rtl-optimization/48575
1599         * genrecog.c (position_type): New enum.
1600         (position): New structure.
1601         (decision): Use position structure instead of a string.
1602         (root_pos, peep2_insn_pos_list): New variables.
1603         (next_position, compare_positions): New functions.
1604         (new_decision): Use position structures instead of strings.
1605         (maybe_both_true): Likewise.
1606         (change_state): Likewise.
1607         (write_tree): Likewise.
1608         (make_insn_sequence): Likewise.
1609
1610 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
1611
1612         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
1613         TS_BASE instead of TS_COMMON.
1614         (find_decls_types_r): Check for TS_TYPED structure before looking at
1615         TREE_TYPE.
1616         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
1617         Add chain field.
1618         (BLOCK_CHAIN): Use new chain field.
1619
1620 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
1621
1622         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
1623         moves expensive on Power7 also.
1624
1625 2011-05-26  Richard Guenther  <rguenther@suse.de>
1626
1627         * fold-const.c (fold_unary_loc): Remove bogus code.
1628
1629 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
1630
1631         * tree.h (struct tree_identifier): Inherit from tree_typed, not
1632         tree_common.
1633         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
1634         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
1635         TS_BASE instead of TS_COMMON.
1636         * varasm.c (assemble_name): Remove assert.
1637
1638 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
1639
1640         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
1641         substituted first.
1642         * libgcc-std.ver: Delete file.
1643
1644 2011-05-26  Richard Guenther  <rguenther@suse.de>
1645
1646         PR tree-optimization/48702
1647         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
1648         only when we know the base address is within bounds.
1649         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
1650         assume the base address of TARGET_MEM_REFs is in bounds.
1651
1652 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1653
1654         PR target/49099
1655         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
1656         declaration in TARGET_SOLARIS.
1657
1658 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
1659
1660         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
1661         The instruction is then expanded explicitly.
1662         (supported_compare): Callable instruction.
1663         (compare): Likewise.
1664
1665 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
1666
1667         PR c++/49165
1668         * gimplify.c (shortcut_cond_r): Don't special case
1669         COND_EXPRs if they have void type on one of their arms.
1670
1671 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
1672
1673         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
1674         to reduce duplication, and to achieve a slightly more logical order
1675         of operations.
1676
1677 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
1678
1679         PR tree-optimization/49161
1680         * tree-vrp.c (struct case_info): New type.
1681         (compare_case_labels): Sort case_info structs instead of
1682         trees, and not primarily by CASE_LABEL uids but by
1683         label_for_block indexes.
1684         (find_switch_asserts): Put case labels into struct case_info
1685         array instead of TREE_VEC, adjust sorting, compare label_for_block
1686         values instead of CASE_LABELs.
1687
1688 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1689
1690         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
1691         ("orndi3_neon"): Likewise.
1692         ("bic<mode>3_neon"): Likewise.
1693
1694 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
1695
1696         PR tree-optimization/49038
1697         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
1698         Ensure at least one epilogue iteration if required by data
1699         accesses with gaps.
1700         * tree-vectorizer.h (struct _loop_vec_info): Add new field
1701         to mark loops that require peeling for gaps.
1702         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
1703         (vect_get_known_peeling_cost): Take peeling for gaps into
1704         account.
1705         (vect_transform_loop): Generate epilogue if required by data
1706         access with gaps.
1707         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
1708         loop as requiring an epilogue if there are gaps in the end of
1709         the strided group.
1710
1711 2011-05-25  Ian Lance Taylor  <iant@google.com>
1712
1713         * godump.c (go_format_type): Output the first field with a usable
1714         Go type, if any.
1715
1716 2011-05-25  Ian Lance Taylor  <iant@google.com>
1717
1718         * godump.c (go_format_type): Check for invalid type names, pointer
1719         target types, and struct field types.
1720
1721 2011-05-25  Jason Merrill  <jason@redhat.com>
1722
1723         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
1724
1725 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
1726
1727         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
1728
1729 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1730
1731         * config/i386/i386.md (*movqi_extv_1)): Put back
1732         "register_operand" check in "type" calculation.
1733         (*movqi_extzv_2): Likewise.
1734
1735 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1736
1737         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
1738
1739 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
1740
1741         PR bootstrap/49160
1742         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
1743         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
1744         __divxc3, __divtc3): Wrap definitions in #ifndef.
1745
1746 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1747
1748         PR target/49142
1749         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
1750         "register_operand" check and replace q_regs_operand with
1751         QIreg_operand in "type" calculation.
1752         (*movqi_extv_1): Likewise.
1753         (*movqi_extzv_2_rex64): Likewise.
1754         (*movqi_extzv_2): Likewise.
1755
1756         * config/i386/predicates.md (QIreg_operand): New.
1757
1758 2011-05-25  Richard Guenther  <rguenther@suse.de>
1759
1760         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
1761         type-based offset disambiguation, streamline MEM_REF and
1762         TARGET_MEM_REF handling.
1763
1764 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
1765
1766         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
1767         (bdesc_special_args): Add pause intrinsic.
1768
1769         * config/i386/i386.md (UNSPEC_PAUSE): New.
1770         (pause): Likewise.
1771         (*pause): Likewise.
1772         * config/i386/ia32intrin.h (__pause): Likewise.
1773
1774         * doc/extend.texi (X86 Built-in Functions): Add documentation for
1775         pause intrinsic.
1776
1777 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1778
1779         PR tree-optimization/46728
1780         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
1781         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
1782
1783 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
1784
1785         * tree.h (struct tree_exp): Inherit from struct tree_typed.
1786         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
1787         instead of TS_COMMON.
1788
1789 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
1790
1791         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
1792         LIBGCC2_GNU_PREFIX is defined.
1793         (__N): New macro.
1794         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
1795         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
1796         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
1797         __clz_tab): Define using __N.
1798         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
1799         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
1800         * target.def (libfunc_gnu_prefix): New hook.
1801         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
1802         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
1803         * doc/tm.texi: Regenerate.
1804         * system.h (LIBGCC2_GNU_PREFIX): Poison.
1805         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
1806         account.
1807         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
1808         (init_optabs): Likewise for the bswap libfuncs.
1809         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
1810         and divide.
1811         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
1812         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
1813         * libgcc-std.ver: Remove.
1814         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
1815         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
1816         libgcc-std.ver.
1817         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1818         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
1819         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
1820         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
1821         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
1822         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1823         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
1824         * config/fixed-bit.h (FIXED_OP): Define differently depending on
1825         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
1826         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
1827
1828 2011-05-25  Jan Hubicka  <jh@suse.cz>
1829
1830         * lto-streamer-out.c (output_record_start): Use lto_output_enum
1831         (lto_output_tree): Use output_record_start.
1832         * lto-streamer-in.c (input_record_start): Use lto_input_enum
1833         (lto_get_pickled_tree): Use input_record_start.
1834         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
1835         (lto_value_range_error): New function.
1836         * lto-streamer.h (lto_value_range_error): Declare.
1837         (lto_output_int_in_range, lto_input_int_in_range): New functions.
1838         (lto_output_enum, lto_input_enum): New macros.
1839
1840 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
1841
1842         * common.opt (flag_stack_usage_info): New variable.
1843         (-Wstack-usage): New option.
1844         * doc/invoke.texi (Warning options): Document -Wstack-usage.
1845         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
1846         <OPT_fstack_usage>: Likewise.
1847         * toplev.c (output_stack_usage): Handle -Wstack-usage.
1848         * calls.c (expand_call): Test flag_stack_usage_info variable instead
1849         of flag_stack_usage.
1850         (emit_library_call_value_1): Likewise.
1851         * explow.c (allocate_dynamic_stack_space): Likewise.
1852         * function.c (instantiate_virtual_regs ): Likewise.
1853         (prepare_function_start): Likewise.
1854         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
1855         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
1856         * config/arm/arm.c (arm_expand_prologue): Likewise.
1857         (thumb1_expand_prologue): Likewise.
1858         * config/avr/avr.c (expand_prologue): Likewise.
1859         * config/i386/i386.c (ix86_expand_prologue): Likewise.
1860         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
1861         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
1862         * config/mips/mips.c (mips_expand_prologue): Likewise.
1863         * config/pa/pa.c (hppa_expand_prologue): Likewise.
1864         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
1865         * config/s390/s390.c (s390_emit_prologue): Likewise.
1866         * config/sh/sh.c (sh_expand_prologue): Likewise.
1867         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
1868         * config/spu/spu.c (spu_expand_prologue): Likewise.
1869
1870 2011-05-25  Richard Guenther  <rguenther@suse.de>
1871
1872         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
1873         (gimple_canonical_types_compatible_p): Likewise.
1874
1875 2011-05-25  Jan Hubicka  <jh@suse.cz>
1876
1877         PR middle-end/49062
1878         * ipa.c (function_and_variable_visibility): Only add to same
1879         comdat group list if DECL_ONE_ONLY.
1880
1881 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
1882
1883         PR rtl-optimization/49014
1884         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
1885
1886 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
1887
1888         PR target/49128
1889         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
1890
1891 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
1892
1893         PR rtl-optimization/48757
1894         * ira-build.c (loop_with_eh_edge_p): Rename to
1895         loop_with_complex_edge_p, check edges on complexity, make function
1896         conditional.
1897         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
1898         conditional.
1899
1900 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1901
1902         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
1903         force flag_ira_share_save_slots to 0.
1904
1905 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1906
1907         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
1908         (vt_initialize): Set PROLOGUE_BB unconditionally.
1909         Add block comment about CFA_BASE_RTX machinery.
1910         Reset FP_CFA_OFFSET to -1 on all invalid paths.
1911         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
1912
1913 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
1914
1915         PR objc/48187
1916         * c-parser.c (c_parser_objc_class_instance_variables): More robust
1917         parsing of syntax error in ObjC instance variable lists.  In
1918         particular, avoid an infinite loop if there is a stray ']'.
1919         Updated error message.
1920
1921 2011-05-24  Ian Lance Taylor  <iant@google.com>
1922
1923         * godump.c (go_define): Don't accept a string immediately after
1924         another operand.
1925
1926 2011-05-24  Ian Lance Taylor  <iant@google.com>
1927
1928         * godump.c (struct godump_container): Add invalid_hash field.
1929         (go_format_type): Return false if type is found in invalid_hash.
1930         (go_output_typedef): Add invalid type to invalid_hash.
1931         (go_finish): Create and delete invalid_hash.
1932
1933 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1934
1935         PR tree-optimization/46728
1936         * tree-ssa-math-opts.c (powi_table): New.
1937         (powi_lookup_cost): New.
1938         (powi_cost): New.
1939         (powi_as_mults_1): New.
1940         (powi_as_mults): New.
1941         (gimple_expand_builtin_powi): New.
1942         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
1943         (gate_cse_sincos): Remove sincos/cexp restriction.
1944
1945 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1946
1947         PR target/3746
1948         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
1949         mips-tdump native.
1950         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
1951         * mips-tdump.c: Likewise.
1952
1953 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
1954
1955         PR target/49128
1956         * config/i386/driver-i386.c (host_detect_local_cpu): Always
1957         add -mno-XXX.  Handle FMA.
1958
1959 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
1960
1961         PR rtl-optimization/48633
1962         * ira-build.c (loop_with_eh_edge_p): New function.
1963         (mark_loops_for_removal): Use it.
1964
1965 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
1966
1967         PR rtl-optimization/48971
1968         * ira.c (setup_pressure_classes): Don't check register move cost
1969         for classes with one registers.  Don't add pressure class if there
1970         is a pressure class with the same available hard registers.
1971         Check contains_reg_of_mode.  Fix a typo in collecting
1972         temp_hard_regset.  Ignore hard registers not belonging to a class.
1973
1974 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
1975
1976         PR target/49133
1977         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
1978
1979 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
1980             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1981
1982         PR gcov-profile/48845
1983         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
1984
1985 2011-05-24  Richard Guenther  <rguenther@suse.de>
1986
1987         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
1988         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
1989         (gimple_types_compatible_p_1): Adjust.
1990         (iterative_hash_canonical_type): Do not bother about complete vs.
1991         incomplete types.
1992         (gimple_canonical_types_compatible_p): Likewise.
1993
1994 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1995
1996         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
1997
1998 2011-05-24  Richard Guenther  <rguenther@suse.de>
1999
2000         PR bootstrap/49078
2001         * gimple.c (gimple_register_canonical_type): Revert
2002         previous change.
2003         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
2004         does not for a tree for the case where it matters.  Cache
2005         pointer-type alias-sets.
2006
2007 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
2008
2009         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
2010         (OBJS): Remove options.o, opts-common.o and prefix.o.
2011         (OBJS-libcommon-target): New.
2012         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
2013         (BACKEND): Include libcommon-target.a.
2014         (MOSTLYCLEANFILES): Include libcommon-target.a.
2015         (libcommon-target.a): New.
2016         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
2017         prefix.o.
2018
2019 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
2020
2021         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
2022         parts of output shared with the driver.
2023         * optc-gen.awk: Don't generate parts of output not shared with the
2024         driver.
2025         * opth-gen.awk: Remove GCC_DRIVER conditionals.
2026         * doc/options.texi (SourcerInclude): Mention options-save.c.
2027         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
2028         (OBJS): Add options-save.o.
2029         (options-save.c, options-save.o): New.
2030         (options.o): Update dependencies.
2031         (gcc-options.o): Remove.
2032         (mostlyclean): Remove options-save.c.
2033
2034 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
2035
2036         PR debug/49032
2037         * dbxout.c: Include cgraph.h.
2038         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
2039         and without value expr, return NULL if no varpool node exists for
2040         it or if it is not needed.
2041         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
2042
2043         PR c/49120
2044         * c-decl.c (start_decl): Convert expr to void_type_node.
2045
2046 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
2047
2048         PR rtl-optimization/48826
2049         * emit-rtl.c (try_split): When splitting a call that is followed
2050         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
2051
2052 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
2053
2054         * cfgexpand.c (expand_debug_expr): For unused non-addressable
2055         parameters passed in memory prefer using DECL_INCOMING_RTL over
2056         the pseudos it will be copied into.
2057
2058 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
2059
2060         PR target/47315
2061         * config/i386/i386.c (ix86_option_override_internal): Save the
2062         initial options after checking vzeroupper.
2063
2064 2011-05-23  David Li  <davidxl@google.com>
2065
2066         PR tree-optimization/48988
2067         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2068         Initialize has_valid_pred for each pred chain.
2069
2070 2011-05-23  Richard Guenther  <rguenther@suse.de>
2071
2072         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
2073         (iterative_hash_gimple_type): Always hash type names.
2074
2075 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
2076
2077         * c-typeck.c (build_function_call_vec): Tweak call to
2078         check_function_arguments.
2079
2080 2011-05-23  Richard Guenther  <rguenther@suse.de>
2081
2082         PR tree-optimization/49115
2083         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
2084         is not necessarily carried out, do not claim it kills the ref.
2085         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2086
2087 2011-05-23  Richard Guenther  <rguenther@suse.de>
2088
2089         PR middle-end/15419
2090         * builtins.c (fold_builtin_memory_op): Be less restrictive about
2091         what pointer types we accept for folding.
2092
2093 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2094
2095         * gthr-gnat.c: Remove.
2096         * gthr-gnat.h: Remove.
2097         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
2098         * config/t-freebsd (LIB2ADDEH): Likewise.
2099         * config/t-linux (LIB2ADDEH): Likewise.
2100         * config/t-sol2 (LIB2ADDEH): Likewise.
2101         * config/ia64/t-vms (LIB2ADDEH): Likewise.
2102         * configure.ac (target_thread_file): Remove gnat handling.
2103         * configure: Regenerate.
2104         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
2105
2106 2011-05-23  Tristan Gingold  <gingold@adacore.com>
2107             Eric Botcazou  <ebotcazou@adacore.com>
2108
2109         * gcov.c (create_file_names): If no object directory is specified,
2110         keep the directory of the file.
2111
2112 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2113
2114         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
2115         * configure: Regenerate.
2116
2117 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
2118
2119         PR middle-end/48973
2120         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
2121         failed and the comparison has a single bit signed type, use
2122         constm1_rtx instead of const1_rtx for true value.
2123         (do_store_flag): If ops->type is single bit signed type, disable
2124         signel bit test optimization and pass -1 instead of 1 as last
2125         parameter to emit_store_flag_force.
2126
2127 2011-05-23  Tom de Vries  <tom@codesourcery.com>
2128
2129         PR target/45098
2130         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
2131         function.
2132         (infer_loop_bounds_from_undefined): Use new function.
2133
2134 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
2135
2136         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
2137         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
2138         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
2139         and -O0 otherwise.
2140         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
2141
2142 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
2143
2144         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
2145         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
2146         returns true.
2147
2148 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
2149
2150         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
2151
2152 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
2153
2154         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
2155         UNSPEC_MOVE_PIC pattern.
2156
2157 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
2158
2159         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
2160         (sparc-*-rtems*): Likewise.
2161         (sparc64-*-elf*): Likewise.
2162         (sparc64-*-rtems*): Likewise.
2163         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
2164         * config/sparc/t-crtin: New file.
2165         * config/sparc/t-sol2 (crti.o): Delete rule.
2166         (crtn.o): Likewise.
2167         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
2168         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
2169         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
2170         (ENDFILE_SPEC): Add crtn.o.
2171
2172 2011-05-22  Tom de Vries  <tom@codesourcery.com>
2173
2174         PR middle-end/48689
2175         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
2176         CODE_CONTAINS_STRUCT (TS_COMMON).
2177
2178 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
2179
2180         PR middle-end/49029
2181         * expmed.c (extract_fixed_bit_field): Test whether target can be used
2182         only after deciding which mode to use.
2183
2184 2011-05-22  Tom de Vries  <tom@codesourcery.com>
2185
2186         PR target/45098
2187         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
2188         for call to get_shiftadd_cost.
2189
2190 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
2191
2192         PR target/49104
2193         * config/i386/cpuid.h (bit_MMXEXT): New define.
2194
2195 2011-05-22  Nick Clifton  <nickc@redhat.com>
2196
2197         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
2198         initialisation of non-existant args[2] element.  Use args[] array
2199         not arg[] array to pass arguments to build_function_type_list.
2200
2201 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
2202
2203         PR tree-optimization/49087
2204         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
2205
2206 2011-05-21  Jason Merrill  <jason@redhat.com>
2207
2208         PR c++/49092
2209         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
2210         static storage duration.
2211
2212 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2213
2214         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
2215         frame pointer.
2216
2217 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
2218
2219         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
2220         false if there are call-saved registers here...
2221         (sparc_can_use_return_insn_p): ...but here instead.
2222         (save_or_restore_regs): Fix thinko.
2223         (sparc_expand_prologue): Use current_function_is_leaf.
2224         (sparc_frame_pointer_required): Likewise.
2225
2226 2011-05-21  Nick Clifton  <nickc@redhat.com>
2227
2228         PR target/49098
2229         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
2230
2231 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
2232
2233         * gengtype.c (walk_type): Implemented "atomic" GTY option.
2234         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
2235
2236 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
2237
2238         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
2239         * optc-gen.awk: Move common code to opt-read.awk.
2240         * opth-gen.awk: Likewise.
2241         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
2242
2243 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
2244
2245         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
2246
2247 2011-05-20  Tom de Vries  <tom@codesourcery.com>
2248
2249         PR target/45098
2250         * tree-ssa-loop-ivopts.c: Include expmed.h.
2251         (get_shiftadd_cost): New function.
2252         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
2253
2254 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
2255
2256         PR bootstrap/49086
2257         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
2258         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
2259
2260 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
2261
2262         * Makefile.in: Update comment referring to $(OBJS-common).
2263
2264 2011-05-20  Ian Lance Taylor  <iant@google.com>
2265
2266         * godump.c (go_output_typedef): Put enum constants in the macro
2267         hash table to avoid duplicate Go const definitions.
2268
2269 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
2270
2271         * Makefile.in (LIBDEPS): Add libcommon.a.
2272         (LIBS): Likewise.
2273         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
2274         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
2275         pretty-print.o and version.o.
2276         (OBJS-libcommon): New.
2277         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
2278         (BACKEND): Add libcommon.a.
2279         (MOSTLYCLEANFILES): Likewise.
2280         (libcommon.a): New.
2281         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
2282         (cpp$(exeext)): Likewise.
2283         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
2284         pretty-print.o and input.o.
2285         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
2286         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
2287         (errors.o): Remove.
2288         (mips-tfile): Don't explicitly use version.o.
2289         (mips-tdump): Likewise.
2290         (gcov.o): Depend on $(DIAGNOSTIC_H).
2291         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
2292         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
2293         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
2294         * gcov-dump.c: Include intl.h and diagnostic.h.
2295         (main): Initialize diagnostics.
2296         * gcov.c: Include diagnostic.h.
2297         (fnotice): Remove.
2298         (main): Initialize diagnostics.
2299         * lto-wrapper.c: Include diagnostic.h.
2300         (main): Initialize diagnostics.
2301
2302 2011-05-20  Michael Matz  <matz@suse.de>
2303
2304         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
2305
2306 2011-05-20  Michael Matz  <matz@suse.de>
2307             Richard Guenther  <rguenther@suse.de>
2308
2309         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
2310         use lto_streamer_cache_append directly instead of returning a VEC.
2311         (preload_common_node): Remove.
2312         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
2313         track seen nodes.
2314         (lto_streamer_cache_create): Call lto_preload_common_nodes.
2315
2316 2011-05-20  Richard Guenther  <rguenther@suse.de>
2317
2318         PR tree-optimization/49079
2319         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
2320         MEM_REFs correctly for the trailing array access detection.
2321         Special case constants the same way as decls for overall size
2322         constraining.
2323
2324 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
2325
2326         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
2327         argument expansion.
2328
2329 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
2330
2331         PR tree-optimization/49073
2332         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
2333         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
2334         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
2335
2336 2011-05-20  Richard Guenther  <rguenther@suse.de>
2337
2338         PR middle-end/48849
2339         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
2340         of pointer types the same way the middle-end does.
2341
2342 2011-05-20  Richard Guenther  <rguenther@suse.de>
2343
2344         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
2345         or pointer-to chains.  Delay all fixup to uniquify_nodes.
2346
2347 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
2348
2349         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
2350         (fma4_fmaddsub): Likewise
2351
2352 2011-05-19  Jan Hubicka  <jh@suse.cz>
2353
2354         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
2355         (GIMPLE_TYPE_PAIR_SIZE): New macro.
2356         (type_pair_cache): New static var.
2357         (lookup_type_pair): Use fixed sized custom hash; make inline.
2358         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
2359         calls of lookup_type_pair.
2360         (print_gimple_types_stats): Remove cache stats.
2361         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
2362         and gtc_ob.
2363
2364 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
2365
2366         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
2367         when TARGET_RDRND is active.
2368         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
2369         Generate dummy SImode target register when target is NULL.
2370
2371 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
2372
2373         * config/arm/arm-fpus.def: New.
2374         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
2375         arm-fpus.def.
2376         * config/arm/arm-tables.opt: Regenerate.
2377         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
2378         (arm_option_override): Don't decode FPU name to string here.
2379         * config/arm/arm.opt (mfpu=): Use Enum.
2380         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
2381         Update dependencies.
2382
2383 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
2384
2385         * collect2.c: Include diagnostic.h.
2386         (fatal_perror, fatal, error, fancy_abort): Remove.
2387         (main): Set progname.  Call xmalloc_set_program_name and
2388         diagnostic_initialize.
2389         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
2390         scan_libraries, resolve_lib_name): Call fatal_error instead of
2391         fatal and fatal_perror.
2392         * collect2.h (error, fatal, fatal_perror): Don't declare.
2393         * tlink.c: Include diagnostic-core.h.
2394         (recompile_files): Call fatal_error instead of fatal_perror.
2395         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
2396         pretty-print.o and input.o.
2397         (collect2.o, tlink.o): Update dependencies.
2398
2399 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2400
2401         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
2402
2403 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2404
2405         PR target/40483
2406         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
2407         COMDAT group syntax, both SPARC and x86 variants.
2408         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
2409         * configure: Regenerate.
2410         * config/sol2.h (TARGET_SOLARIS): Define.
2411         (PUSHSECTION_FORMAT): Remove.
2412         (SECTION_NAME_FORMAT): Define.
2413         * config/sol2.c: Include hashtab.h.
2414         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
2415         expansion, using SECTION_NAME_FORMAT.
2416         (solaris_comdat_htab): New variable.
2417         (struct comdat_entry): Define.
2418         (comdat_hash): New function.
2419         (comdat_eq): New function.
2420         (solaris_elf_asm_comdat_section): New function.
2421         (solaris_define_comdat_signature): New function.
2422         (solaris_code_end): New function.
2423         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
2424         (solaris_code_end): Declare.
2425         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
2426         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
2427         solaris_code_end.
2428         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
2429         Remove ATTRIBUTE_UNUSED.
2430         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
2431         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
2432         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2433         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
2434         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
2435         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
2436         (PUSHSECTION_FORMAT): Remove.
2437         (SECTION_NAME_FORMAT): Redefine.
2438
2439 2011-05-19  Kai Tietz  <ktietz@redhat.com>
2440
2441         * tree-cfg.c (verify_gimple_assign_binary): Barf on
2442         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
2443         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
2444
2445 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
2446             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2447
2448         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
2449
2450 2011-05-19  Richard Guenther  <rguenther@suse.de>
2451
2452         PR middle-end/48985
2453         * tree-object-size.c (addr_object_size): If the pointed-to
2454         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
2455
2456 2011-05-19  Richard Guenther  <rguenther@suse.de>
2457
2458         * gimple.c (gimple_types_compatible_p_1): Compare names of
2459         the types themselves.
2460         (iterative_hash_gimple_type): And hash them that way.
2461         (gimple_register_type_1): If we register a main variant properly
2462         initialize the leader to ourselves.
2463
2464 2011-05-19  Tom de Vries  <tom@codesourcery.com>
2465
2466         PR target/45098
2467         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
2468         get_loop_invariant_expr_id.
2469         (get_loop_invariant_expr_id): Use get_expr_id.
2470         (parm_decl_cost): New function.
2471         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
2472         Improve bound cost estimation.  Use different inv_expr_id for elim and
2473         express cases.
2474
2475 2011-05-19  Tom de Vries  <tom@codesourcery.com>
2476
2477         PR target/45098
2478         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
2479         cost_base.cost == 0.
2480
2481 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
2482
2483         PR target/49002
2484         * config/i386/sse.md
2485         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
2486         load cast.
2487
2488 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
2489
2490         PR tree-optimization/49039
2491         * tree-vrp.c (extract_range_from_binary_expr): For
2492         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
2493         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
2494
2495 2011-05-18  Tom de Vries  <tom@codesourcery.com>
2496
2497         PR target/45098
2498         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
2499
2500 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
2501
2502         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
2503         (*tls_global_dynamic_64): Ditto.
2504         (*tls_local_dynamic_base_32_gnu): Ditto.
2505         (*tls_local_dynamic_base_64): Ditto.
2506         (tls_initial_exec_64_sun): Ditto.
2507
2508 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
2509
2510         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
2511         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
2512         bf592-none.
2513         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
2514         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
2515         * config/bfin/bfin.c (bfin_cpus): Add bf592.
2516         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
2517         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
2518         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
2519         * config/bfin/elf.h (LIB_SPEC): Add bf592.
2520
2521 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
2522
2523         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
2524         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
2525         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
2526         target_thread_pointer, arm_structure_size_boundary, struct
2527         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
2528         struct abi_name, arm_all_abis): Remove.
2529         (arm_option_override) Don't process most enumerated option values here.
2530         Don't process target_fpe_name here.  Work with integer not string for
2531         structure size boundary; use separate diagnostics for each case.
2532         * config/arm/arm.h (enum float_abi_type, enum
2533         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
2534         to arm-opts.h.
2535         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
2536         arm_structure_size_boundary): Remove.
2537         * config/arm/arm.opt (mabi=): Use Enum and Init.
2538         (arm_abi_type): New Enum and EnumValue entries.
2539         (mfloat-abi=): Use Enum and Init.
2540         (float_abi_type): New Enum and EnumValue entries.
2541         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
2542         (mfp16-format=): Use Enum and Init.
2543         (arm_fp16_format_type): New Enum and EnumValue entries.
2544         (mstructure-size-boundary=): Use UInteger and Init.
2545         (mtp=): Use Enum and Init.
2546         (arm_tp_type): New Enum and EnumValue entries.
2547
2548 2011-05-18  Richard Guenther  <rguenther@suse.de>
2549
2550         PR tree-optimization/49018
2551         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
2552         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
2553         gimple_has_side_effects.
2554
2555 2011-05-18  Richard Guenther  <rguenther@suse.de>
2556
2557         * gimple.c (gimple_register_type_1): New function, split out from ...
2558         (gimple_register_type): ... here.  Avoid infinite recursion.
2559
2560 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
2561
2562         PR tree-optimization/41881
2563         * tree-vectorizer.h (struct _loop_vec_info): Add new field
2564         reduction_chains along with a macro for its access.
2565         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
2566         (destroy_loop_vec_info): Free reduction chains.
2567         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
2568         (vect_is_slp_reduction): New function.
2569         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
2570         (vect_create_epilog_for_reduction): Support SLP reduction chains.
2571         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
2572         definition types for reduction chains.
2573         (vect_supported_load_permutation_p): Don't allow permutations for
2574         reduction chains.
2575         (vect_analyze_slp_instance): Support reduction chains.
2576         (vect_analyze_slp): Try to build SLP instance from reduction chains.
2577         (vect_get_constant_vectors):  Handle reduction chains.
2578         (vect_schedule_slp_instance): Mark the first statement of the
2579         reduction chain as reduction.
2580
2581 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
2582
2583         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
2584         names for group elements access.
2585         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
2586         reduction chains as well.  Remove data reference and interleaving
2587         related words from the fields names.
2588         * tree-vect-loop.c (vect_transform_loop): Use new names for group
2589         elements access.
2590         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
2591         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
2592         vect_update_interleaving_chain, vect_same_range_drs,
2593         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
2594         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
2595         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
2596         vect_analyze_group_access, vect_analyze_data_ref_access,
2597         vect_create_data_ref_ptr, vect_transform_strided_load,
2598         vect_record_strided_load_vectors): Likewise.
2599         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
2600         vect_model_load_cost, vectorizable_store, vectorizable_load,
2601         vect_remove_stores, new_stmt_vec_info): Likewise.
2602         * tree-vect-slp.c (vect_build_slp_tree,
2603         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
2604
2605 2011-05-18  Richard Guenther  <rguenther@suse.de>
2606
2607         PR middle-end/48989
2608         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
2609         operand verification.
2610         (verify_gimple_assign_binary): Likewise.
2611         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
2612         to non-1-precision BOOLEAN_TYPEs.
2613
2614 2011-05-18  Tom de Vries  <tom@codesourcery.com>
2615
2616         PR target/45098
2617         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
2618
2619 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
2620
2621         PR tree-optimization/49000
2622         * tree-ssa.c (execute_update_addresses_taken): Call
2623         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
2624         be rewritten and decl has been marked for renaming, reset
2625         the debug stmt.
2626
2627 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
2628
2629         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
2630         enum_opts_set when testing if attributes have set -mfpmath=.
2631
2632 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
2633
2634         * config/mips/mips.c (mips_handle_option): Remove unused variable.
2635
2636 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
2637
2638         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
2639         info->entry with 0
2640         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
2641         id.transform_lang_insert_block with NULL.
2642
2643 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
2644
2645         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
2646         (output_fp_compare): Change args 3 and 4 to bool.
2647         (ix86_expand_call): Change arg 6 to bool.
2648         (ix86_attr_length_immediate_default): Change arg 2 to bool.
2649         (ix86_attr_length_vex_default): Change arg 3 to bool.
2650         * config/i386/i386.md: Update all uses.
2651         * config/i386/i386.c: Ditto.
2652         (ix86_flags_dependent): Change return type to bool.
2653
2654 2011-05-17  Richard Guenther  <rguenther@suse.de>
2655
2656         * gimple.c (type_hash_pair_compare): Fix comparison.
2657
2658 2011-05-17  Richard Guenther  <rguenther@suse.de>
2659
2660         * gimple.c (iterative_hash_gimple_type): Simplify singleton
2661         case some more, fix final hash value of the non-singleton case.
2662
2663 2011-05-17  Richard Guenther  <rguenther@suse.de>
2664
2665         PR bootstrap/49013
2666         Revert
2667         2011-05-16  Richard Guenther  <rguenther@suse.de>
2668
2669         * gimple.c (gimple_types_compatible_p_1): Use names of the
2670         type itself, not its main variant.
2671         (iterative_hash_gimple_type): Likewise.
2672
2673 2011-05-17  Richard Guenther  <rguenther@suse.de>
2674
2675         * gimple.c (gimple_register_canonical_type): Use the main-variant
2676         leader for computing the canonical type.
2677
2678 2011-05-17  Nick Clifton  <nickc@redhat.com>
2679
2680         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
2681         moves.
2682
2683         * config/rx/rx.md: Add peephole to remove redundant extensions
2684         after loads.
2685         (bitset_in_memory): Use rx_restricted_mem_operand.
2686         (bitinvert_in_memory): Likewise.
2687         (bitclr_in_memory): Likewise.
2688
2689 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
2690             Nick Clifton  <nickc@redhat.com>
2691
2692         * config/rx/rx.md: Add peepholes to match a register move followed
2693         by a comparison of the moved register.  Replace these with an
2694         addition of zero that does both actions in one instruction.
2695
2696 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
2697
2698         PR target/48986
2699         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
2700         predicate to allow CONST_INT.
2701         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
2702
2703 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
2704
2705         * opts-common.c (opt_enum_arg_to_value): New.
2706         * opts.h (opt_enum_arg_to_value): Declare.
2707         * config/i386/i386.opt (fpmath): Remove.
2708         (mfpmath=): Use Enum, Init and Save.
2709         (fpmath_unit): New Enum and EnumValue entries.
2710         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
2711         name for function fpmath state.
2712         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
2713         * config/i386/i386.c: Include diagnostic.h.
2714         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
2715         (ix86_target_string): Take enum fpmath_unit value instead of string.
2716         (ix86_debug_options): Update call to ix86_target_string.
2717         (ix86_option_override_internal): Don't process fpmath strings here.
2718         (x86_function_specific_save, ix86_function_specific_restore):
2719         Don't handle fpmath state specially.
2720         (ix86_function_specific_print): Pass fpmath state to
2721         ix86_target_string instead of printing in this function.
2722         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
2723         Handle enum attributes.
2724         (IX86_ATTR_ENUM, ix86_opt_enum): New.
2725         (ix86_valid_target_attribute_tree): Update option_strings
2726         handling.  Handle fpmath as enum option.
2727         (ix86_can_inline_p): Update field names for function fpmath state.
2728         (ix86_expand_builtin): Update call to ix86_target_string.
2729         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
2730         (ix86_fpmath): Remove.
2731         * config/i386/t-i386 (i386.o): Update dependencies.
2732
2733 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
2734
2735         PR preprocessor/48677
2736         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
2737         from decoded_options[0], not from itself.
2738
2739 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
2740
2741         * config/i386/constraints.md (z): New constraint.
2742         * config/i386/i386.c (c): New mode attribute.
2743         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
2744         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
2745         constraint for operand 0.
2746         (*call_vzeroupper): Ditto.
2747         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
2748         (*call_rex64_ms_sysv_vzeroupper): Ditto.
2749         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
2750         Use "lzm" constraint for operand 0.
2751         (*call_pop_vzeroupper): Ditto.
2752         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
2753         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
2754         constraint for operand 0.
2755         (*sibcall_vzeroupper): Ditto.
2756         (*sibcall_rex64_ms_sysv): Ditto.
2757         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
2758         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
2759         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
2760         (*sibcall_pop_vzeroupper): Ditto.
2761         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
2762         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
2763         mode iterator.  Use "<c>zm" constraint for operand 1.
2764         (*call_value_vzeroupper): Ditto.
2765         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
2766         for operand 1.
2767         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
2768         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
2769         *call_value_pop_1.  Use "lzm" constraint for operand 1.
2770         (*call_value_pop_vzeroupper): Ditto.
2771         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
2772         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
2773         mode iterator.  Use "Uz" constraint for operand 1.
2774         (*sibcall_value_vzeroupper): Ditto.
2775         (*sibcall_value_rex64_ms_sysv): Ditto.
2776         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
2777         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
2778         constraint for operand 1.
2779         (*sibcall_value_pop_vzeroupper): Ditto.
2780         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
2781         and "z" constraint for operand 2.
2782         (*tls_global_dynamic_32_gnu): Ditto.
2783         (*tls_local_dynamic_base_32_gnu): Ditto.
2784         (*tls_local_dynamic_base_64): Ditto.
2785         (*tls_local_dynamic_32_once): Ditto.
2786         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
2787         Update all callers.
2788         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
2789
2790 2011-05-16  Richard Guenther  <rguenther@suse.de>
2791
2792         * gimple.c (gimple_types_compatible_p_1): Use names of the
2793         type itself, not its main variant.
2794         (iterative_hash_gimple_type): Likewise.
2795
2796 2011-05-16  Richard Guenther  <rguenther@suse.de>
2797
2798         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
2799         always visit pointer target and function result and argument types.
2800
2801 2011-05-16  Jason Merrill  <jason@redhat.com>
2802
2803         PR c++/48999
2804         * tree-inline.c (copy_statement_list): Put back recursion.
2805
2806 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
2807
2808         PR target/27663
2809         PR target/41076
2810         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
2811         * config/avr/avr.md ("*ior<mode>qi.byte0",
2812         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
2813
2814 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
2815
2816         PR target/45099
2817         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
2818         register is needed for a function argument.
2819
2820 2011-05-16  Richard Guenther  <rguenther@suse.de>
2821
2822         * gimple.c (struct type_hash_pair): New type.
2823         (type_hash_pair_compare): New function.
2824         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
2825
2826 2011-05-16  Revital Eres  <revital.eres@linaro.org>
2827
2828         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
2829
2830 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
2831
2832         * config/i386/i386.md (floating point move splitters): Fix
2833         usage of standard_80387_constant_p.
2834         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
2835
2836 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
2837
2838         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
2839
2840 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
2841
2842         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
2843         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
2844         (tree_ssa_lim_finalize): Likewise.
2845
2846 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
2847
2848         * config/i386/constraint.md (Yd, Yx): New register constraints.
2849         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
2850         Yd conditional register constraint.
2851         (*movtf_internal): Use standard_sse_constant_opcode.
2852         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
2853         Yx conditional register constraint.
2854         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
2855         Yd conditional register constraint.  Use standard_sse_constant_p to
2856         check for valid SSE constants and call standard_sse_constant_opcode to
2857         output SSE insn.
2858         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
2859         constants and call standard_sse_constant_opcode to output SSE insn.
2860         * config/i386/i386.c (ix86_option_ovverride_internal): Set
2861         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
2862         optimize_size is set.
2863         (standard_sse_constant_opcode): Output conditional AVX insn templates.
2864
2865 2011-05-14  Tobias Burnus  <burnus@net-b.de>
2866
2867         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
2868
2869 2011-05-13  Martin Jambor  <mjambor@suse.cz>
2870
2871         * ipa-prop.c (ipa_cst_from_jfunc): New function.
2872         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
2873         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
2874         (evaluate_conditions_for_ipcp_clone): Removed.
2875         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
2876         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
2877         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
2878
2879 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
2880
2881         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
2882         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
2883         lieu of MAY_HAVE_DEBUG_STMTS.
2884         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
2885         debug statements if !MAY_HAVE_DEBUG_STMTS.
2886
2887 2011-05-13  Martin Thuresson  <martint@google.com>
2888
2889         PR gcov-profile/47793
2890         * libgcov.c (gcov_exit): Support relative profile paths.
2891         * doc/invoke.texi (-fprofile-dir): Update for above change.
2892
2893 2011-05-13  Richard Guenther  <rguenther@suse.de>
2894
2895         * gimple.c (gimple_canonical_types_compatible_p): Do not use
2896         type-pair caching, do not compare hashes.
2897
2898 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
2899
2900         PR middle-end/48965
2901         * tree-cfg.c (edge_to_cases_cleanup): Return true.
2902         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
2903
2904 2011-05-13  Kai Tietz  <ktietz@redhat.com>
2905
2906         * gimplify.c (gimplify_expr): Make sure operand is boolified.
2907         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
2908         compatible type for TRUTH_NOT_EXPR.
2909
2910 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
2911
2912         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2913         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
2914         can_create_pseudo_p ().
2915
2916 2011-05-13  Richard Guenther  <rguenther@suse.de>
2917
2918         PR lto/48978
2919         * gimple.c (iterative_hash_gimple_type): Revert change in
2920         pointer target and function result and argument hashing.
2921
2922 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
2923
2924         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
2925         (*movxf_internal_nointeger): Ditto.
2926         (*movdf_internal_rex64): Ditto.
2927         (*movdf_internal): Ditto.
2928         (*movdf_internal_nointeger): Ditto.
2929         (*movsf_internal): Ditto.
2930         (sincos splitters): Use can_create_pseudo ().
2931
2932 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
2933
2934         * config/i386/i386-opts.h: New.
2935         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
2936         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
2937         ix86_section_threshold): Remove.
2938         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
2939         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
2940         OPT_mbranch_cost_.
2941         (ix86_option_override_internal): Don't decode strings for options
2942         other than -march=, -mtune= and -mfpmath=.  Don't allow for
2943         __attribute__ uses in remaining diagnostics for options with
2944         string arguments.  Don't check for integer arguments being negative.
2945         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
2946         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
2947         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
2948         ix86_branch_cost, ix86_section_threshold): Remove.
2949         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
2950         HeaderInclude.
2951         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
2952         but not Var.
2953         (masm=): Use Enum and Init.
2954         (asm_dialect): New Enum and EnumValue entries.
2955         (mbranch-cost=): Use UInteger.
2956         (mlarge-data-threshold=): Use UInteger and Init.
2957         (mcmodel=): Use Enum and Init.
2958         (cmodel): New Enum and EnumValue entries.
2959         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
2960         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
2961         mregparm=): Use UInteger.
2962         (mstringop-strategy=): Use Enum and Init.
2963         (stringop_alg): New Enum and EnumValue entries.
2964         (mtls-dialect=): Use Enum and Init.
2965         (tls_dialect): New Enum and EnumValue entries.
2966         (mabi=): Use Enum and Init.
2967         (calling_abi): New Enum and EnumValue entries.
2968         (mveclibabi=): Use Enum and Init.
2969         (ix86_veclibabi): New Enum and EnumValue entries.
2970
2971 2011-05-13  Nick Clifton  <nickc@redhat.com>
2972
2973         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
2974         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
2975
2976 2011-05-13  Kai Tietz  <ktietz@redhat.com>
2977
2978         PR middle-end/48984
2979         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
2980         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
2981         (gimple_boolify): Check for cast for boolean_type_node instead for
2982         BOOLEAN_TYPE.
2983
2984 2011-05-13  Richard Guenther  <rguenther@suse.de>
2985
2986         PR tree-optimization/48172
2987         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
2988         multiplying by number of iterations for equal step.
2989         (vect_create_cond_for_alias_checks): Likewise.
2990
2991 2011-05-13  Andreas Schwab  <schwab@redhat.com>
2992
2993         * configure.ac: Use AS_HELP_STRING throughout.
2994         * configure: Regenerate.
2995
2996 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
2997
2998         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
2999         (ix86_emit_restore_regs_using_mov): Likewise.
3000         (ix86_emit_restore_sse_regs_using_mov): Likewise.
3001
3002 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
3003
3004         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
3005         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
3006         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
3007         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
3008         RTX_OK_FOR_OLO10_P): ...here.
3009         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
3010         SYMBOLIC_CONST.
3011
3012 2011-05-12  Kai Tietz  <ktietz@redhat.com>
3013
3014         * gimplify.c (gimple_boolify): Re-boolify expression
3015         arguments even if expression type is of kind BOOLEAN_TYPE.
3016         (gimplify_boolean_expr): Removed.
3017         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
3018         and XOR. Additional take care that we keep expression's type.
3019         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
3020         of TRUTH_AND|OR|XOR_EXPR.
3021
3022 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
3023
3024         PR tree-optimization/48975
3025         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
3026         on all bbs here and free and clear ifc_bbs at the end.
3027
3028 2011-05-12  Richard Guenther  <rguenther@suse.de>
3029
3030         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
3031         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
3032         until after simple checks.
3033         (gimple_types_compatible_p): Likewise.
3034         (iterative_hash_gimple_type): Always hash pointer targets
3035         and function return and argument types.
3036         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
3037         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
3038         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
3039         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
3040         completely in the simple compare section.
3041         (gimple_register_canonical_type): Query the cache again after
3042         registering.
3043
3044 2011-05-12  Richard Guenther  <rguenther@suse.de>
3045
3046         PR tree-optimization/48172
3047         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
3048         the number of iterations from the segment size calculation.
3049         (vect_create_cond_for_alias_checks): Adjust.
3050
3051 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
3052
3053         PR debug/48967
3054         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
3055         if validate_subreg fails.
3056
3057 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
3058
3059         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
3060         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
3061         early.
3062
3063 2011-05-12  DJ Delorie  <dj@redhat.com>
3064
3065         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
3066         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
3067         created builtin into rx_builtins array.
3068         (rx_builtin_decl): New function.
3069         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
3070
3071 2011-05-12  DJ Delorie  <dj@redhat.com>
3072             Nick Clifton  <nickc@redhat.com>
3073
3074         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
3075         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
3076         (rx_is_legitimate_address): Add pre-decrement and post-increment
3077         addressing in HImode and QImode.  Fix test for out of range
3078         REG+INT addressing.
3079         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
3080         (rx_align_for_label): Test label before extracting its usage count.
3081         (rx_adjust_insn_lengths): Fix selection of insn codes.
3082         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
3083
3084 2011-05-11  Jason Merrill  <jason@redhat.com>
3085
3086         * tree.c (type_hash_canon): Use struct tree_type_non_common.
3087
3088 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
3089
3090         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
3091         reindent the subsequent block.
3092
3093 2011-05-11  Satoru Takabayashi  <satorux@google.com>
3094             Paul Pluzhnikov  <ppluzhnikov@google.com>
3095
3096         * doc/install.texi (Configuration): Document --with-linker-hash-style.
3097         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
3098         * config.in: Add LINKER_HASH_STYLE.
3099         * configure.ac: Add --with-linker-hash-style.
3100         * configure: Regenerate.
3101
3102 2011-05-11  Richard Guenther  <rguenther@suse.de>
3103
3104         PR middle-end/48964
3105         * gimple.c (iterative_hash_canonical_type): Fix typo.
3106
3107 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
3108
3109         * config/i386/i386.c (legitimize_tls_address)
3110         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3111         expanders directly for TARGET_GNU2_TLS.  Determine pic and
3112         __tls_get_addr symbol reference here.  Update call to
3113         gen_tls_global_dynamic_{32,64} for added arguments.
3114         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
3115         expanders directly for TARGET_GNU2_TLS.  Determine
3116         __tls_get_addr symbol reference here.  Update call to
3117         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
3118         unique UNSPEC REG_EQUIV to libcall block.
3119         (ix86_tls_get_addr): Declare static.
3120         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
3121         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
3122         Do not determine pic and __tls_get_addr symbol reference here. Do not
3123         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
3124         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
3125         (tls_global_dynamic_64): Add operand 2.  Do not determine
3126         __tls_get_addr symbol reference here.  Do not call
3127         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
3128         (tls_local_dynamic_base64): Ditto for operand 1.
3129
3130 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
3131
3132         * function.c (expand_function_start): Initialize stack_check_probe_note
3133         only if the generic stack checking mechanism is used.
3134
3135 2011-05-11  Richard Guenther  <rguenther@suse.de>
3136
3137         PR tree-optimization/15256
3138         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
3139         (A & B) | C, combine (A op CST1) op CST2.
3140         (tree_ssa_forward_propagate_single_use_vars): Only bother to
3141         visit assigns that have uses.
3142
3143 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
3144
3145         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
3146         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
3147         (unpack_ts_type_common_value_fields): ...this.  Update comment.
3148         (unpack_value_fields): Adjust for renaming.
3149         (lto_input_ts_type_tree_pointers): Split into...
3150         (lto_input_ts_type_common_tree_pointer): ...this and...
3151         (lto_input_ts_type_non_common_tree_pointers): ...this.
3152         (lto_input_tree_pointers): Adjust for above split.
3153         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
3154         (pack_ts_type_common_value_fields): ...this.  Update comment.
3155         (lto_output_ts_type_tree_pointers): Split into...
3156         (lto_output_ts_type_common_tree_pointers): ...this and...
3157         (lto_output_ts_type_non_common_tree_pointers): ...this.
3158         (lto_output_tree_pointers): Adjust for above split.
3159         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
3160         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
3161         * stor-layout.c (vector_type_mode): Adjust location of mode field.
3162         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
3163         Define.
3164         (struct tree_type): Split into...
3165         (struct tree_type_common: ...this and...
3166         (struct tree_type_with_lang_specific): ...this and...
3167         (struct tree_type_non_common): ...this.  Adjust accessor macros
3168         accordingly.
3169         (TYPE_VALUES_RAW): Define.
3170         (union tree_node): Update for above changes.
3171         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
3172         TS_TYPE_NON_COMMON.
3173         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
3174         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
3175         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
3176         * treestructu.def (TS_TYPE): Remove.
3177         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
3178         Define.
3179
3180 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
3181
3182         PR debug/48159
3183         * tree-ssa.c (reset_debug_uses): New function.
3184         * tree-flow.h (reset_debug_uses): New prototype.
3185         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
3186         * tree-loop-distribution.c (generate_loops_for_partition): Call
3187         reset_debug_uses on the stmts that will be removed.  Keep around
3188         all debug stmts, don't count them as bits in partition bitmap.
3189         (generate_builtin): Don't count debug stmts or labels as bits in
3190         partition bitmap.
3191
3192 2011-05-11  Richard Guenther  <rguenther@suse.de>
3193
3194         * gimple.c (gimple_type_hash_1): Merge with ...
3195         (gimple_type_hash): ... this.
3196         (gtc_visit): Remove mode parameter and simplify accordingly.
3197         (gimple_types_compatible_p_1): Likewise.
3198         (gimple_types_compatible_p): Likewise.
3199         (iterative_hash_gimple_type): Likewise.
3200         (visit): Likewise.
3201         (gimple_type_eq): Adjust.
3202
3203 2011-05-11  Revital Eres  <revital.eres@linaro.org>
3204
3205         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
3206         enters the branch create an anti edge in the opposite direction
3207         to prevent the creation of reg-moves.
3208         * modulo-sched.c: Adjust comment to reflect the fact we are
3209         scheduling closing branch.
3210         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
3211         (stage_count): New field in struct partial_schedule.
3212         (calculate_stage_count): New function.
3213         (normalize_sched_times): Rename to reset_sched_times and handle
3214         incrementing the sched time of the nodes by a constant value
3215         passed as parameter.
3216         (duplicate_insns_of_cycles): Skip closing branch.
3217         (sms_schedule_by_order): Schedule closing branch.
3218         (ps_insn_find_column): Handle closing branch.
3219         (sms_schedule): Call reset_sched_times and adjust the code to
3220         support scheduling of the closing branch.
3221         (ps_insert_empty_row): Update calls to normalize_sched_times
3222         and rotate_partial_schedule functions.
3223
3224 2011-05-11  Richard Guenther  <rguenther@suse.de>
3225
3226         PR middle-end/48953
3227         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
3228
3229 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
3230
3231         * opts.c (finish_options): Move warning settings from process_options.
3232         * toplev.c (process_options): Move warning settings to finish_options.
3233
3234 2011-05-11  Richard Guenther  <rguenther@suse.de>
3235
3236         PR tree-optimization/18041
3237         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
3238         (simplify_bitwise_binary): ... this.  Handle operand conversions
3239         by applying them to the result instead.
3240         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
3241
3242 2011-05-11  Richard Guenther  <rguenther@suse.de>
3243
3244         * gimple.c (gimple_canonical_types_compatible_p): Split out
3245         from gimple_types_compatible_p and friends.  Do not recurse
3246         to pointed-to types.
3247         (gimple_canonical_type_eq): Use it.
3248         (iterative_hash_canonical_type): Split out from
3249         iterative_hash_gimple_type and friends.  Do not recurse
3250         to pointed-to types.
3251         (gimple_canonical_type_hash): Use it, allocate the hash here.
3252
3253 2011-05-11  Revital Eres  <revital.eres@linaro.org>
3254
3255         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
3256         recognizing doloop.
3257
3258 2011-05-11  Revital Eres  <revital.eres@linaro.org>
3259
3260         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
3261         instead of PREV_INSN.
3262
3263 2011-05-11  Revital Eres  <revital.eres@linaro.org>
3264
3265         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
3266         * loop-doloop.c (doloop_condition_get): Likewise.
3267         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
3268         (doloop_end): New.
3269         * config/arm/arm.md (*addsi3_compare0): Remove "*".
3270
3271 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
3272
3273         * tree.def (CASE_LABEL_EXPR): Add an operand.
3274         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
3275
3276 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
3277
3278         * c-decl.c (c_override_global_bindings_to_false): Remove.
3279         (global_bindings_p): Don't check
3280         c_override_global_bindings_to_false.
3281         * c-tree.h (c_override_global_bindings_to_false): Remove.
3282         * c-typeck.c (composite_type): Don't set
3283         c_override_global_bindings_to_false.
3284
3285 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
3286
3287         PR target/48857, 48495
3288         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
3289         (VSX_MODE): Ditto.
3290         (VSX_MOVE_MODE): Ditto.
3291         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
3292         VSX vector types.  Add V2DImode.
3293         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
3294         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
3295         (MODES_TIEABLE_P): Ditto.
3296
3297         * config/rs6000/rs6000.c (rs6000_emit_move): Use
3298         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
3299         VSX_VECTOR_MODE.
3300         (init_cumulative_args): Ditto.
3301         (rs6000_function_arg_boundary): Ditto.
3302         (rs6000_function_arg_advance_1): Ditto.
3303         (rs6000_function_arg): Ditto.
3304         (rs6000_function_ok_for_sibcall): Ditto.
3305         (emit_frame_save): Ditto.
3306         (rs6000_function_value): Ditto.
3307         (rs6000_libcall_value): Ditto.
3308
3309 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
3310
3311         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
3312         i386/darwin-lib.h to $libgcc_tm_file.
3313         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
3314
3315 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
3316
3317         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
3318
3319 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
3320
3321         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
3322         * config/rs6000/rs6000-tables.opt: New file (generated).
3323         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
3324         rs6000/rs6000-tables.opt to extra_options.
3325         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
3326         * config/rs6000/rs6000.c (rs6000_select): Remove.
3327         (processor_target_table): Move contents to rs6000-cpus.def.
3328         (darwin_rs6000_override_options): Check
3329         global_options_set.x_rs6000_cpu_index instead of
3330         rs6000_select[1].string.
3331         (rs6000_option_override_internal): Likewise.
3332         (rs6000_handle_option): Don't assert that global structures are in
3333         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
3334         (rs6000_default_cpu): New variable.
3335         (rs6000_file_start): Set it instead of local default_cpu.  Check
3336         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
3337         global_options_set.x_rs6000_tune_index instead of rs6000_select.
3338         (rs6000_darwin_file_start): Check rs6000_default_cpu and
3339         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
3340         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
3341         rs6000_select): Remove.
3342         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
3343         Remove.
3344         (mcpu=, mtune=): Use Var, Init, Enum and Save.
3345         * config/rs6000/t-rs6000
3346         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
3347         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3348         global_options_set.x_rs6000_cpu_index instead of
3349         rs6000_select[1].string.
3350         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
3351         global_options_set.x_rs6000_cpu_index instead of
3352         rs6000_select[1].string.
3353
3354 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
3355
3356         * config.gcc (libgcc_tm_file): Define instead of including files
3357         from ../../libgcc/config/ in tm_file.
3358         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
3359         * configure: Regenerate.
3360         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
3361         libgcc_tm.h, cs-libgcc_tm.h): New.
3362         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
3363         (clean): Remove libgcc_tm.h.
3364         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
3365         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
3366         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
3367
3368 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
3369
3370         PR target/48896
3371         * config/avr/avr.c (avr_ret_register): Return unsigned int
3372         instead of int.
3373         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
3374         it to avr_libcall_value.
3375         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
3376         expand_expr.
3377         (avr_expand_binop_builtin): Ditto.
3378         (avr_expand_unop_builtin): Ditto.
3379
3380 2011-05-10  DJ Delorie  <dj@redhat.com>
3381
3382         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
3383         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
3384         * config/rx/rx.c (rx_align_for_label): Add label and
3385         uses_threshold parameters.  Do not align when the label is not
3386         used enough.
3387         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
3388
3389 2011-05-10  Richard Guenther  <rguenther@suse.de>
3390
3391         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
3392         a series of conversions and apply foldings similar to what
3393         fold-const does.
3394         (tree_ssa_forward_propagate_single_use_vars): Call it.
3395
3396 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
3397
3398         PR tree-optimization/48611
3399         PR tree-optimization/48794
3400         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
3401         referenced from RESX or EH_DISPATCH arguments.
3402
3403         PR debug/48928
3404         * dfp.c (decimal_to_decnumber): Handle conversion from
3405         dconst{1,2,m1,half}.
3406
3407 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3408
3409         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
3410         for !flag_prefer_avx128.
3411         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
3412
3413 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
3414
3415         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
3416         (fold_ternary_loc): Use expr_location_or.
3417
3418 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
3419
3420         PR debug/48853
3421         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
3422         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
3423         Pmode and mem_mode is not VOIDmode.
3424
3425 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
3426
3427         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
3428         TYPE_QUAL_RESTRICT): Convert to enum.
3429
3430 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3431
3432         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
3433         (const_pow2_1_to_8_operand): Ditto.
3434         (const_pow2_1_to_128_operand): Ditto.
3435         (const_pow2_1_to_32768_operand): Ditto.
3436         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
3437         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
3438         in insn constraint to check integer value of operand 3.
3439         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
3440
3441         (PINSR_MODE): New mode iterator.
3442         (sse2p4_1): New mode attribute.
3443         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
3444         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
3445         iterator.  Use const_int_operand instead of
3446         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
3447         exact_log2 in insn constraint to check integer value of operand 3.
3448
3449 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3450
3451         * config/i386/sse.md (blendbits): Remove mode attribute.
3452         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
3453         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
3454         Check integer value of operand 3 in insn constraint.
3455
3456 2011-05-09  Richard Guenther  <rguenther@suse.de>
3457
3458         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
3459         for diagnostics.
3460         (lto_symtab_merge): Likewise.  Do not register types here.
3461         (lto_symtab_merge_decls_2): Likewise.
3462         (lto_symtab_merge_decls_1): Likewise.
3463         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
3464         * gimple.c (enum gtc_mode): Declare.
3465         (gimple_types_compatible_p): Make static.
3466
3467 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3468
3469         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
3470         temporary register to match Pmode.
3471
3472 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3473
3474         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
3475         and *vec_concatv4si_1_avx.
3476
3477 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
3478
3479         PR rtl-optimization/48927
3480         * ira-conflicts.c (commutative_constraint_p): Use
3481         recog_data.alternative_enabled_p to disable alternatives where
3482         "enabled" attribute is false.
3483         (get_dup_num): Ditto.
3484         * ira-lives.c (single_reg_class): Ditto.
3485         (ira_implicitly_set_insn_hard_regs): Ditto.
3486
3487 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
3488
3489         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
3490         (dataflow_set_preserve_mem_locs): Likewise.
3491
3492 2011-05-09  Philipp Thomas  <pth@suse.de>
3493
3494         * config/mep/mep.c (mep_validate_vliw): Syntax description
3495         should not be translated.
3496
3497 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
3498
3499         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
3500         * config/mips/mips-tables.opt: New file (generated).
3501         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
3502         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
3503         MIPS_ARCH_OPTION_NATIVE): Define.
3504         * config/mips/mips.c (mips_cpu_info_table): Move contents to
3505         mips-cpus.def.
3506         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
3507         mips_parse_cpu): Remove.
3508         (mips_cpu_info_from_opt, mips_default_arch): New.
3509         (mips_handle_option): Don't assert that global structures are in
3510         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
3511         (mips_option_override): Use new variables and functions to set
3512         state of these options.  Use strcmp to check for individual CPU names.
3513         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
3514         definition.
3515         * config/mips/mips.opt (march=): Use ToLower and Enum.
3516         (mips): Use ToLower, Enum and Var.
3517         (mtune=): Use ToLower and Enum.
3518         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
3519
3520 2011-05-08  Jan Hubicka  <jh@suse.cz>
3521
3522         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
3523         Arrange type pairs to be UID ordered.
3524         (gimple_lookup_type_leader): Make inline.
3525
3526 2011-05-09  Nick Clifton  <nickc@redhat.com>
3527
3528         PR target/48899
3529         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
3530         PROCESSOR_DEFAULT.
3531
3532         PR target/48897
3533         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
3534         variable 's'.
3535
3536 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
3537
3538         * combine.c (simplify_comparison): Abstract out parts into...
3539         (simplify_compare_const): ... new function.
3540         (try_combine): Generalize parallel arithmetic/compare combining
3541         to call simplify_compare_const() and CANONICALIZE_COMPARE().
3542
3543 2011-05-08  Jan Hubicka  <jh@suse.cz>
3544
3545         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
3546         (cgraph_create_virtual_clone): Call hooks once virtual clone
3547         is finished.
3548         * cgraph.h (cgraph_clone_node): Update prototype.
3549         * ipa-cp.c (ipcp_estimate_growth): Use
3550         estimate_ipcp_clone_size_and_time.
3551         * ipa-inline-transform.c (clone_inlined_nodes): Update.
3552         * lto-cgraph.c (input_node): Update.
3553         * ipa-inline.c (recursive_inlining): Update.
3554         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
3555         (evaluate_conditions_for_known_args): Break out from ...
3556         (evaluate_conditions_for_edge): ... here.
3557         (evaluate_conditions_for_ipcp_clone): New function.
3558         (inline_node_duplication_hook): Update clone summary based
3559         on parameter map.
3560         (estimate_callee_size_and_time): Rename to ...
3561         (estimate_node_size_and_time): take NODE instead of EDGE;
3562         take POSSIBLE_TRUTHS as argument.
3563         (estimate_callee_size_and_time): Update.
3564         (estimate_ipcp_clone_size_and_time): New function.
3565         (do_estimate_edge_time): Update.
3566
3567 2011-05-08  Richard Guenther  <rguenther@suse.de>
3568
3569         PR middle-end/48908
3570         PR middle-end/48905
3571         * expmed.c (expand_shift_1): Compute adjusted constant shift
3572         amount manually.
3573
3574 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3575
3576         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
3577
3578 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
3579
3580         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
3581
3582 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
3583
3584         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
3585
3586 2011-05-07  Jan Hubicka  <jh@suse.cz>
3587
3588         * ipa-inline-transform.c (inline_call): Account when program size
3589         decreases.
3590         * ipa-inline.c (relative_time_benefit): New function.
3591         (edge_badness): Reorganize to be power 2 based; fix thinko when
3592         computing badness for negative growth; update comments to match
3593         reality; better dumps.
3594
3595 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
3596
3597         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
3598         type to bool and adjust comment.
3599         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
3600         (fold_mathfn_compare): Remove calls to global_bindings_p.
3601         (fold_inf_compare): Likewise.
3602         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
3603         * c-tree.h (global_bindings_p): Adjust prototype.
3604         * c-decl.c (global_bindings_p): Return bool and simplify.
3605
3606 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
3607
3608         PR tree-optimization/48837
3609         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
3610         when accumulator transformation is performed.
3611
3612 2011-05-06  Jan Hubicka  <jh@suse.cz>
3613
3614         * i386.h (ix86_tune_indices): Add
3615         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
3616         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
3617         * i386.c (initial_ix86_tune_features): Add
3618         X86_SOFTARE_PREFETCHING_BENEFICIAL.
3619         (software_prefetching_beneficial_p): Remove predicate.
3620         (ix86_option_override_internal): Use new macro.
3621
3622 2011-05-06  Jan Hubicka  <jh@suse.cz>
3623
3624         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
3625
3626 2011-05-06  Jan Hubicka  <jh@suse.cz>
3627
3628         * cgraph.c (cgraph_add_thunk): Create real function node instead
3629         of alias node; finalize it and mark needed/reachale; arrange visibility
3630         to be right and add it into the corresponding same comdat group list.
3631         (dump_cgraph_node): Dump thunks.
3632         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
3633         cgraph_function_with_gimple_body_p,
3634         cgraph_first_function_with_gimple_body,
3635         cgraph_next_function_with_gimple_body): New functions.
3636         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
3637         New macros.
3638         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
3639         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3640         * cgraphunit.c (cgraph_finalize_function): Only look into possible
3641         devirtualization when optimizing.
3642         (verify_cgraph_node): Verify thunks.
3643         (cgraph_analyze_function): Analyze thunks.
3644         (cgraph_mark_functions_to_output): Output thunks only in combination
3645         with function they are assigned to.
3646         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
3647         alias into normal node.
3648         (assemble_thunks): New functoin.
3649         (cgraph_expand_function): Use it.
3650         * lto-cgraph.c (lto_output_node): Stream thunks.
3651         (input_overwrite_node): Stream in thunks.
3652         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
3653         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
3654         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
3655         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
3656         (inline_analyze_function): Do not care about thunk jump functions.
3657         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
3658         * ipa-prop.c (ipa_prop_write_jump_functions): Use
3659         cgraph_function_with_gimple_body_p.
3660         * passes.c (do_per_function_toporder): Use
3661         cgraph_function_with_gimple_body_p.
3662         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
3663         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
3664         (function_called_by_processed_nodes_p): Likewise.
3665
3666 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
3667
3668         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
3669         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
3670         entries.
3671         (mabi=): Replace with separate entries for mabi=altivec,
3672         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
3673         mabi=ieeelongdouble and mabi=ibmlongdouble.
3674         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
3675         check for -mabi=spe without SPE ABI support here.
3676         (rs6000_handle_option): Replace OPT_mabi_ handling with
3677         OPT_mabi_altivec and OPT_mabi_spe handling.
3678
3679 2011-05-06  Cary Coutant  <ccoutant@google.com>
3680
3681         * dwarf2out.c (contains_subprogram_definition): New function.
3682         (should_move_die_to_comdat): Call it.
3683
3684 2011-05-06  Jeff Law  <law@redhat.com>
3685
3686         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
3687         remove_ctrl_stmt_and_useless_edges.
3688         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
3689         (fixup_template_block, thread_single_edge): Likewise.
3690         (mark_threaded_blocks): Use THREAD_TARGET.
3691
3692 2011-05-06  Alan Modra  <amodra@gmail.com>
3693
3694         PR target/48900
3695         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3696         const0_rtx as the arg to the dummy __tls_get_addr libcall.
3697
3698 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
3699
3700         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
3701         constraint modifier to "r".
3702
3703 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
3704
3705         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
3706         fall through for OPT_mcmodel_.
3707
3708 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3709
3710         * config/s390/s390.c (s390_asm_trampoline_template): Comment
3711         instruction sizes.
3712         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
3713
3714 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
3715
3716         PR target/47930
3717         * config/arm/arm.opt (marm): Document it.
3718         (mthumb): Reject negative variant.
3719
3720 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
3721
3722         PR target/48898
3723         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
3724         Fix typo in "ccvt" variable name.
3725
3726 2011-05-06  Tristan Gingold  <gingold@adacore.com>
3727
3728         PR target/48895
3729         * config/vms/vms-ar.c (main): Remove cwd variable.
3730
3731 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
3732
3733         PR debug/48902
3734         * var-tracking.c (prepare_call_arguments): Move else before #endif.
3735
3736 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
3737
3738         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
3739         * gimplify.c (gimplify_switch_expr): Likewise.
3740         * omp-low.c (expand_omp_sections): Likewise.
3741         * tree-eh.c (lower_try_finally_switch): Likewise.
3742         (lower_eh_dispatch): Likewise.
3743         * tree.h (build_case_label): Declare.
3744         * tree.c (build_case_label): Define.
3745
3746 2011-05-05  Jason Merrill  <jason@redhat.com>
3747
3748         PR c++/40975
3749         * tree-inline.c (copy_tree_r): Use copy_statement_list.
3750         (copy_statement_list): Don't recurse.
3751         * stor-layout.c (copy_self_referential_tree_r): Don't allow
3752         STATEMENT_LIST.
3753
3754 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3755
3756         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
3757         through from -mfpu= handling.
3758         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
3759
3760 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
3761
3762         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
3763         POST_MODIFY.
3764
3765 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
3766
3767         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
3768         for 11.31.
3769         (hppa[12]*-*-hpux11*): Ditto.
3770         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
3771         * config/ia64/hpux-unix2003.h: New.
3772         * config/pa/pa-hpux1131.opt: New.
3773         * config/pa/pa-hpux1131.h: New.
3774         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
3775         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
3776         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
3777
3778 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
3779
3780         PR debug/48853
3781         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
3782         instead of mode as 3rd argument to recursive call.
3783         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
3784         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
3785         VOIDmode.
3786         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
3787         don't give up if mode is Pmode and mem_mode is not VOIDmode.
3788         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
3789         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
3790
3791 2011-05-05  Julian Brown  <julian@codesourcery.com>
3792
3793         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
3794         parenthesis in D-register case.
3795
3796 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3797
3798         * opt-functions.awk (var_type_struct): Handle Enum options.
3799         * optc-gen.awk: Don't check range of variables of character type.
3800         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
3801         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
3802         rs6000_sdata_name, rs6000_explicit_options): Remove.
3803         (rs6000_option_override_internal): Check for -malign-power here.
3804         Use global_options_set instead of rs6000_explicit_options.
3805         (rs6000_parse_fpu_option): Remove.
3806         (rs6000_handle_option): Access variables via opts and opts_set
3807         pointers.  Use error_at and warning_at.  Add fall-through
3808         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
3809         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
3810         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
3811         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
3812         here.  Don't use rs6000_parse_fpu_option.
3813         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
3814         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
3815         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
3816         (mrecip=): Use Var.
3817         (mspe): Use Var and Save.
3818         (mtraceback=): Use Enum and Var.
3819         (rs6000_traceback_type): New Enum and EnumValue entries.
3820         (mfloat-gprs=): Use Enum, Var and Save.
3821         (rs6000_float_gprs): New Enum and EnumValue entries.
3822         (mlong-double-): use Var and Save.
3823         (msched-costly-dep=, minsert-sched-nops=): Use Var.
3824         (malign-): Use Enum and Var.
3825         (rs6000_alignment_flags): New Enum and EnumValue entries.
3826         (mfpu=): Use Enum.
3827         (fpu_type_t): New Enum and EnumValue entries.
3828         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3829         global_options_set instead of rs6000_explicit_options.
3830         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3831         global_options_set instead of rs6000_explicit_options.
3832         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3833         global_options_set instead of rs6000_explicit_options.
3834         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
3835         global_options_set instead of rs6000_explicit_options.
3836         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
3837         global_options_set instead of rs6000_explicit_options.
3838         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3839         global_options_set instead of rs6000_explicit_options.
3840         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
3841         definition.
3842         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3843         global_options_set instead of rs6000_explicit_options.
3844         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
3845         (rs6000_cmodel): New Enum and EnumValue entries.
3846         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
3847         global_options_set instead of rs6000_explicit_options.
3848         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
3849         (mtls-size=): Use Enum and Var.
3850         (rs6000_tls_size): New Enum and EnumValue entries.
3851
3852 2011-05-05  Michael Matz  <matz@suse.de>
3853
3854         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
3855         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
3856         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
3857         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
3858         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
3859         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
3860         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
3861         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
3862         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
3863         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
3864         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
3865         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
3866         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
3867         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
3868         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
3869         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
3870
3871 2011-05-05  Richard Guenther  <rguenther@suse.de>
3872
3873         * expmed.c (expand_variable_shift): Rename to ...
3874         (expand_shift_1): ... this.  Take an expanded shift amount.
3875         For rotates recurse directly not building trees for the shift amount.
3876         (expand_variable_shift): Wrap around expand_shift_1.
3877         (expand_shift): Adjust.
3878
3879 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
3880
3881         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
3882
3883 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
3884
3885         * tree.h (get_pending_sizes): Remove prototype.
3886         (put_pending_size): Likewise.
3887         (put_pending_sizes): Likewise.
3888         * stor-layout.c (pending_sizes): Delete.
3889         (get_pending_sizes): Likewise.
3890         (put_pending_size): Likewise.
3891         (put_pending_sizes): Likewise.
3892         (variable_size): Do not call put_pending_size and tidy up.
3893         * function.h (struct function): Remove dont_save_pending_sizes_p.
3894         * lto-streamer-in.c (input_function): Do not stream it.
3895         * lto-streamer-out.c (output_function): Likewise.
3896         * tree-inline.c (initialize_cfun): Do not copy it.
3897         * c-decl.c (store_parm_decls): Do not set it.
3898         * omp-low.c (create_task_copyfn): Likewise.
3899         * tree-optimize.c (tree_rest_of_compilation): Likewise.
3900
3901 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
3902
3903         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
3904         conditions.
3905         (*movdf_internal): Ditto.
3906         (*movdf_internal_nointeger): Ditto.
3907         (*movsf_internal): Ditto.
3908
3909 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
3910
3911         * c-decl.c (finish_decl): Don't call get_pending_sizes.
3912         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
3913         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
3914         (c_variable_size): Remove.
3915         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
3916         call put_pending_sizes.
3917         (get_parm_info): Add parameter expr.  Use it to set
3918         arg_info->pending_sizes.
3919         (store_parm_decls): Use arg_info->pending_sizes instead or calling
3920         get_pending_sizes.
3921         * c-parser.c (c_parser_parms_declarator): Update call to
3922         c_parser_parms_list_declarator.
3923         (c_parser_parms_list_declarator): Take parameter expr.  Update
3924         call to push_parm_decl.  Update recursive call.  Don't call
3925         get_pending_sizes.  Update calls to get_parm_info.
3926         (c_parser_objc_method_definition): Update calls to
3927         c_parser_objc_method_decl and objc_start_method_definition.
3928         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
3929         (c_parser_objc_method_decl): Add parameter expr.  Update call to
3930         grokparm.
3931         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
3932         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
3933         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
3934
3935 2011-05-05  Michael Hope  <michael.hope@linaro.org>
3936
3937         PR pch/45979
3938         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
3939         __ARM_EABI__ hosts.
3940
3941 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3942
3943         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
3944         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
3945         (spu_output_mi_thunk): New function.
3946
3947 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3948
3949         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
3950         targetm.asm_out.print_operand.
3951         * config/sol2.c: Include target.h.
3952
3953 2011-05-04  Jan Hubicka  <jh@suse.cz>
3954
3955         * ipa-inline.c (reset_edge_caches): New function.
3956         (update_caller_keys): Add check_inlinablity_for; do not
3957         reset edge caches; remove now unnecesary loop.
3958         (update_callee_keys): Add comments; reset node_growth_cache of callee.
3959         (update_all_callee_keys): Likewise.
3960         (inline_small_functions): Sanity check cache; update code
3961         recomputing it.
3962
3963 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
3964
3965         PR rtl-optimization/47612
3966         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
3967         as the last insn of the sequence to be moved.
3968
3969 2011-05-04  Tobias Burnus  <burnus@net-b.de>
3970
3971         PR fortran/48864
3972         * doc/invoke.texi (Ofast): Document that it
3973         enables Fortran's -fno-protect-parens.
3974
3975 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
3976
3977         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
3978
3979 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
3980
3981         * stor-layout.c (variable_size): Do not issue errors.
3982
3983 2011-05-04  Richard Guenther  <rguenther@suse.de>
3984
3985         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
3986         for array-ref indices.
3987         (tree_coverage_counter_addr): Likewise.
3988         (build_fn_info_type): Use size_int for index types.
3989         (build_gcov_info): Likewise.
3990
3991 2011-05-04  Richard Guenther  <rguenther@suse.de>
3992
3993         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
3994         to build_int_cst.
3995         * c-typeck.c (really_start_incremental_init): Use bitsize_int
3996         for constructor indices.
3997         (push_init_level): Likewise.
3998
3999 2011-05-04  Richard Guenther  <rguenther@suse.de>
4000
4001         * explow.c (promote_mode): Move variable declarations before code.
4002
4003 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
4004
4005         * tree.h (build_function_type_array): Declare.
4006         (build_varargs_function_type_array): Declare.
4007         (build_function_type_vec, build_varargs_function_type_vec): Define.
4008         * tree.c (build_function_type_array_1): New function.
4009         (build_function_type_array): New function.
4010         (build_varargs_function_type_array): New function.
4011
4012 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
4013
4014         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
4015         before setting STMT_VINFO_TYPE.
4016
4017 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4018
4019         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
4020         instead of spu_pass_by_reference.
4021
4022 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4023
4024         * calls.c (emit_library_call_value_1): Invoke
4025         promote_function_mode hook on libcall arguments.
4026         * explow.c (promote_function_mode, promote_mode): Handle TYPE
4027         argument being NULL.
4028         * targhooks.c (default_promote_function_mode): Lisewise.
4029         * config/s390/s390.c (s390_promote_function_mode): Likewise.
4030         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
4031
4032         * doc/tm.texi: Document that TYPE argument might be NULL.
4033
4034 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
4035
4036         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
4037
4038 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
4039
4040         From Bernd Schmidt
4041         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
4042
4043 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4044
4045         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
4046         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
4047         Move ...
4048         * mips-tfile.c: ... here.
4049         Don't include coretypes.h, tm.h, filenames.h.
4050         (saber_stop): Remove definition and all calls.
4051         [__SABER__]: Remove.
4052         (__LINE__): Remove default.
4053         (Size_t, Ptrdiff_t): Remove definitions.
4054         Replace by size_t, ptrdiff_t.
4055         [!MIPS_DEBUGGING_INFO]: Remove.
4056         (SHASH_SIZE, THASH_SIZE): Remove defaults.
4057         (progname): Add const.
4058         (STATIC): Remove.
4059         Replace all uses by static.
4060         (ALIGN_SYMTABLE_OFFSET): Remove default.
4061         * mips-tdump.c: Don't include coretypes.h, tm.h.
4062         Remove !MIPS_IS_STAB guard.
4063         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
4064         $(TM_H), filenames.h dependencies.
4065         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
4066
4067 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
4068
4069         From Jie Zhang
4070         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
4071         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
4072
4073 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
4074
4075         From Bernd Schmidt
4076         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
4077         account and save/restore RETS.
4078         (PROFILE_BEFORE_PROLOGUE): Define.
4079         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
4080         the push insn to use predecrement.
4081
4082 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
4083
4084         From Jie Zhang
4085         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
4086
4087 2011-05-04  Nick Clifton  <nickc@redhat.com>
4088
4089         * config/mn10300/mn10300.c: Include cfgloop.h.
4090         (DUMP): New macro.
4091         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
4092         Lcc or a FLcc insn into the instruction stream.
4093         (mn10300_block_contains_call): New function.  Returns true if the
4094         given basic block contains a CALL insn.
4095         (mn10300_loop_contains_call_insn): New function.  Returns true if
4096         the given loop contains a CALL insn.
4097         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
4098         to use the SETLB and Lcc or FLcc insns.
4099         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
4100         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
4101         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
4102         disable the SETLB optimization.
4103         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
4104         __SETLB__ or __NO_SETLB__.
4105         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
4106         (movsf_internal): Handle MDR register.
4107         (cmpsi): Make visible.
4108         (setlb): New pattern.
4109         (Lcc): New pattern.
4110         (FLcc): New pattern.
4111
4112 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
4113
4114         PR target/48860
4115         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
4116         for reg<->xmm moves.
4117         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
4118         (vec_concatv2di_rex64_sse): Ditto.
4119         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
4120         (*vec_extractv2di_1_rex64): Ditto.
4121
4122         Revert:
4123         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
4124
4125         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4126         reg<->xmm moves.
4127         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
4128
4129 2011-05-04  Richard Guenther  <rguenther@suse.de>
4130
4131         * tree.h (int_const_binop): Remove notrunc argument.
4132         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
4133         create integer constants that are properly truncated.
4134         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
4135         (const_binop): Remove zero notrunc argument to int_const_binop.
4136         (size_binop_loc): Likewise.
4137         (fold_div_compare): Likewise.
4138         (maybe_canonicalize_comparison_1): Likewise.
4139         (fold_comparison): Likewise.
4140         (fold_binary_loc): Likewise.
4141         (multiple_of_p): Likewise.
4142         * expr.c (store_constructor): Likewise.
4143         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
4144         (maybe_fold_stmt_addition): Likewise.
4145         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
4146         * stor-layout.c (layout_type): Likewise.
4147         * tree-data-ref.c (tree_fold_divides_p): Likewise.
4148         * tree-sra.c (build_ref_for_offset): Likewise.
4149         (build_user_friendly_ref_for_offset): Likewise.
4150         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
4151         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
4152         * tree-ssa-loop-niter.c (inverse): Likewise.
4153         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
4154         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
4155         * tree-switch-conversion.c (check_range): Likewise.
4156         (build_constructors): Likewise.
4157         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
4158         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
4159         (extract_range_from_assert): Likewise.
4160         (vrp_int_const_binop): Likewise.
4161         (extract_range_from_binary_expr): Likewise.
4162         (extract_range_from_unary_expr): Likewise.
4163         (check_array_ref): Likewise.
4164         (find_case_label_range): Likewise.
4165         (simplify_div_or_mod_using_ranges): Likewise.
4166         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
4167         comparing case labels for merging.
4168
4169 2011-05-03  Mark Wielaard  <mjw@redhat.com>
4170
4171         * dwarf2out.c (debug_str_hash_forced): Removed.
4172         (gen_label_for_indirect_string): Removed.
4173         (get_debug_string_label): Removed.
4174         (AT_string_form): Generate label directly.
4175         (output_indirect_string): Test indirect_string_node for
4176         DW_FORM_strp instead of checking label and refcount.
4177         (prune_indirect_string): Removed.
4178         (prune_unused_types): Don't check debug_str_hash_forced or
4179         call prune_indirect_string.
4180
4181 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
4182
4183         PR other/48093
4184         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
4185
4186 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
4187
4188         PR debug/47994
4189         PR debug/47919
4190         * combine.c (try_combine): Skip debug insns at m_split tests.
4191
4192 2011-04-26  Mark Wielaard  <mjw@redhat.com>
4193
4194         PR42288
4195         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
4196         when info_section_emitted.
4197
4198 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
4199
4200         * config/mips/mips-opts.h: New.
4201         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
4202         to mips-opts.h.
4203         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
4204         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
4205         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
4206         via opts pointer.
4207         * config/mips/mips.h (enum mips_code_readable_setting): Move to
4208         mips-opts.h.
4209         (mips_abi, mips_code_readable): Don't declare.
4210         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
4211         (mabi=): Use Enum and Var.
4212         (mips_abi): New Enum and EnumValue entries.
4213         (mcode-readable=): Use Enum and Var.
4214         (mips_code_readable_setting): New Enum and EnumValue entries.
4215         (mr10k-cache-barrier=): Use Enum and Var.
4216         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
4217
4218 2011-05-03  Jan Hubicka  <jh@suse.cz>
4219
4220         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
4221         replace hash by pointer map.
4222         (cgraph_node_set_element_def, cgraph_node_set_element,
4223         const_cgraph_node_set_element, varpool_node_set_element_def,
4224         varpool_node_set_element, const_varpool_node_set_element): Remove.
4225         (free_cgraph_node_set, free_varpool_node_set): New function.
4226         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
4227         * tree-emutls.c: Free varpool node set.
4228         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
4229         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4230         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
4231         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4232         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
4233         Move here from ipa.c; implement using pointer_map
4234         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
4235         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
4236         debug_cgraph_node_set, varpool_node_set_new,
4237         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
4238         dump_varpool_node_set, debug_varpool_node_set):
4239         Move to ipa-uitls.c.
4240         * passes.c (ipa_write_summaries): Update.
4241
4242 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4243
4244         From Mike Frysinger:
4245         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
4246         bf542/bf544/bf547/bf548/bf549.
4247
4248 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
4249
4250         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
4251
4252 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4253
4254         From Bernd Schmidt:
4255         * config/bfin/bfin.md (MOVCC): New mode_macro.
4256         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
4257         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
4258         comments from generated assembly.
4259
4260 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4261
4262         From Bernd Schmidt
4263         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
4264         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
4265         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
4266         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
4267         * config/bfin/lib1funcs.asm (___muldi3): New function.
4268
4269 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4270
4271         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
4272         build_function_type_list instead of build_function_type.
4273         Rearrange initialization of `args' to do so.
4274
4275 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4276
4277         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
4278         instead of build_function_type.
4279
4280 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4281
4282         * config/rs6000/rs6000.c (spe_init_builtins): Call
4283         build_function_type_list instead of build_function_type.
4284         (paired_init_builtins, altivec_init_builtins): Likewise.
4285         (builtin_function_type): Likewise.
4286
4287 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4288
4289         * config/sh/sh.c (sh_media_init_builtins): Call
4290         build_function_type_list instead of build_function_type.
4291
4292 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4293
4294         * config/sparc/sparc.c (sparc_file_end): Call
4295         build_function_type_list instead of build_function_type.
4296
4297 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4298
4299         * config/alpha/alpha.c (alpha_init_builtins): Call
4300         build_function_type_list instead of build_function_type.
4301
4302 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4303
4304         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
4305         build_function_type_list instead of build_function_type.
4306
4307 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4308
4309         * config/iq2000/i2000.c (iq2000_init_builtins): Call
4310         build_function_type_list instead of build_function_type.
4311         Delete `endlink' variable.
4312
4313 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4314
4315         * config/avr/avr.c (avr_init_builtins): Call
4316         build_function_type_list instead of build_function_type.
4317
4318 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4319
4320         * config/picochip/picochip.c (picochip_init_builtins): Call
4321         build_function_type_list instead of build_function_type.
4322         Delete `endlink' variable.
4323
4324 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
4325
4326         * config/bfin/bfin.c (bfin_init_builtins): Call
4327         build_function_type_list instead of build_function_type.
4328
4329 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4330
4331         From Bernd Schmidt
4332         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
4333         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
4334
4335 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4336
4337         From Jie Zhang:
4338         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
4339         libbffastfp overrides libgcc when -mfast-fp.
4340
4341 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4342
4343         Originally from Bernd Schmidt
4344         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
4345         * config/bfin/bfin.c (override_options): Test it and error if
4346         TARGET_FDPIC.
4347
4348 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
4349
4350         Originally From Bernd Schmidt
4351         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
4352         FD-PIC.
4353
4354 2011-05-03  Jeff Law  <law@redhat.com>
4355
4356         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
4357         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
4358         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
4359         than accessing AUX field directly.  Free the AUX field before
4360         clearing it.
4361         (thread_block, thread_through_loop_header): Likewise.
4362         (thread_single_edge, mark_threaded_blocks): Likewise.
4363         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
4364         (register_jump_thread): Do not attempt to thread to a NULL edge.
4365
4366 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
4367
4368         * function.c (init_function_start): Call decide_function_section.
4369         * varasm.c (decide_function_section): New function.
4370         (assemble_start_function): When not using
4371         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
4372         or first_function_block_is_cold.
4373         * rtl.h (decide_function_section): Declare.
4374
4375 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
4376             Jakub Jelinek  <jakub@redhat.com>
4377
4378         PR target/48774
4379         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
4380         only succeed if req_mode is the same as set_mode.
4381
4382 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
4383
4384         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
4385         * genemit.c (gen_exp): Handle RETURN.
4386         * emit-rtl.c (verify_rtx_sharing): Likewise.
4387         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
4388         * rtl.c (copy_rtx): RETURN is shared.
4389         * rtl.h (enum global_rtl_index): Add GR_RETURN.
4390         (ret_rtx): New.
4391         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
4392         * config/s390/s390.c (s390_emit_epilogue): Likewise.
4393         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
4394         * config/cris/cris.c (cris_expand_return): Likewise.
4395         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
4396         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
4397         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
4398         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
4399         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
4400         Likewise.
4401         * config/v850/v850.c (expand_epilogue): Likewise.
4402         * config/bfin/bfin.c (bfin_expand_call): Likewise.
4403         * config/arm/arm.md (epilogue): Likewise.
4404         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
4405         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
4406         variable to ret_reg.
4407
4408 2011-05-03  Richard Guenther  <rguenther@suse.de>
4409
4410         PR lto/48846
4411         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
4412         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
4413         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
4414
4415 2011-05-03  Richard Guenther  <rguenther@suse.de>
4416
4417         * c-decl.c (grokdeclarator): Instead of looking at
4418         TREE_OVERFLOW check if the constant fits in the index type.
4419
4420 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
4421
4422         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
4423         (vec_store_lanes<mode><mode>): Likewise.
4424
4425 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
4426
4427         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
4428         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
4429         convert_optab_index values.
4430         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
4431         * genopinit.c (optabs): Initialize the new optabs.
4432         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
4433         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
4434         (expand_STORE_LANES): New functions.
4435         * tree.h (build_array_type_nelts): Declare.
4436         * tree.c (build_array_type_nelts): New function.
4437         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
4438         (vect_model_load_cost): Likewise.
4439         (vect_store_lanes_supported, vect_load_lanes_supported)
4440         (vect_record_strided_load_vectors): Declare.
4441         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
4442         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
4443         (vect_transform_strided_load): Split out statement recording into...
4444         (vect_record_strided_load_vectors): ...this new function.
4445         * tree-vect-stmts.c (create_vector_array, read_vector_array)
4446         (write_vector_array, create_array_ref): New functions.
4447         (vect_model_store_cost): Add store_lanes_p argument.
4448         (vect_model_load_cost): Add load_lanes_p argument.
4449         (vectorizable_store): Try to use store-lanes functions for
4450         interleaved stores.
4451         (vectorizable_load): Likewise load-lanes and loads.
4452         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
4453         to vect_model_store_cost.
4454         (vect_build_slp_tree): Likewise vect_model_load_cost.
4455
4456 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
4457
4458         * hooks.h (hook_bool_mode_uhwi_false): Declare.
4459         * hooks.c (hook_bool_mode_uhwi_false): New function.
4460         * target.def (array_mode_supported_p): New hook.
4461         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
4462         * doc/tm.texi: Regenerate.
4463         * stor-layout.c (mode_for_array): New function.
4464         (layout_type): Use it.
4465         * config/arm/arm.c (arm_array_mode_supported_p): New function.
4466         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
4467
4468 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
4469
4470         PR target/48723
4471         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
4472         for -fstack-check if the size to allocate is negative.
4473
4474 2011-05-02  Lawrence Crowl  <crowl@google.com>
4475
4476         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
4477         (timevar_cond_start): New for starting a timer only when it is not
4478         already running.
4479         (timevar_cond_stop): New for stopping a timer when it was not already
4480         running.
4481
4482         * timevar.c (timevar_stop): Enable start/stop timers to start again.
4483         (timevar_cond_start): New as above.
4484         (timevar_cond_stop): New as above.
4485
4486         * timevar.def: Add start/stop timers for compiler phases,
4487         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
4488         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
4489         and TV_PHASE_FINALIZE.
4490         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
4491         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
4492         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
4493         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
4494         Make unused TV_OVERLOAD into a start/stop timer.
4495
4496         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
4497         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
4498         to indicate that they are start/stop timers.
4499
4500         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
4501         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
4502         Move initialization to do_compile.
4503         (do_compile): Add initialization from above.
4504         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
4505
4506         * c-decl.c (c_write_global_declarations): Add start/stop of
4507         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
4508
4509         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
4510         or TV_PARSE_INLINE, as appropriate.
4511         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
4512         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
4513
4514 2011-05-02  Jason Merrill  <jason@redhat.com>
4515
4516         PR c++/40975
4517         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
4518
4519 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
4520
4521         PR c/35445
4522         * c-decl.c (finish_decl): Only create a composite if the types are
4523         compatible.
4524
4525 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
4526
4527         * config/fr30/fr30-protos.h (Mmode): Don't define.
4528         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
4529         definition where used.
4530         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
4531         define.  Expand definitions where used.
4532         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
4533         Expand definitions where used.
4534         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
4535         rx_function_arg, rx_function_arg_advance,
4536         rx_function_arg_boundary): Expand definitions of those macros.
4537         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
4538         definition where used.
4539
4540 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
4541
4542         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
4543         reg<->xmm moves.
4544         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
4545         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
4546         with *movv2sf_internal_rex64_avx.
4547         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
4548         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
4549         Use %v prefix in insn mnemonic to handle TARGET_AVX.
4550         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
4551         "vex" in "prefix" attribute calculation.
4552         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
4553
4554 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
4555
4556         PR target/47951
4557         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
4558         inputs match the output.
4559
4560 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
4561
4562         PR target/47955
4563         * config/m68k/m68k.c (m68k_expand_prologue): Set
4564         current_function_static_stack_size.
4565
4566 2011-05-02   Jan Hubicka  <jh@suse.cz>
4567
4568         * lto-streamer.c (lto_streamer_cache_insert_1,
4569         lto_streamer_cache_lookup, lto_streamer_cache_create,
4570         lto_streamer_cache_delete): Use pointer map instead of hashtable.
4571         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
4572
4573 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
4574
4575         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
4576         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
4577         config/m68k/t-opts: New files.
4578         * config/m68k/m68k-tables.opt: New file (generated).
4579         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
4580         extra_options and m68k/t-opts to tmake_file.
4581         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
4582         (all_isas): Initialize using m68k-isas.def.
4583         (all_microarchs): Initialize using m68k-microarchs.def.
4584         (m68k_find_selection): Remove.
4585         (m68k_handle_option): Don't assert that global structures are in
4586         use.  Use error_at.  Access variables via opts pointer.  Don't
4587         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
4588         directly for -m68020-40 and -m68020-60.
4589         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
4590         m68k_tune_entry here.
4591         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
4592         to m68k-opts.h.
4593         (m68k_library_id_string): Remove declaration.
4594         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
4595         (m68k_library_id_string): New Variable.
4596         (march=, mcpu=, mtune=): Use Enum and Var.
4597
4598 2011-05-02  Richard Guenther  <rguenther@suse.de>
4599
4600         * varasm.c (output_constructor_regular_field): Compute zero-based
4601         index with double-ints.  Make sure to ICE instead of producing
4602         wrong code.
4603         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
4604         in asserts.  Properly use a signed type.
4605
4606 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
4607
4608         * config/i386/sse.md (V): New mode iterator.
4609         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
4610         TARGET_SSE2.
4611         (V_256): Rename from AVX256MODE.
4612         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
4613         condition to all users.
4614         (VF1): Ditto.
4615         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
4616         condition to all users.
4617         (VF_128): Make V4SF mode unconditional.
4618         (VF_256): Rename from AVX256MODEF2P.
4619         (VI4F_128): Rename from SSEMODE4S.
4620         (VI8F_128): Rename from SSEMODE2D.
4621         (VI4F_256): Rename from AVX256MODE8P.
4622         (VI8F_256): Rename from AVX256MODE4P.
4623         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
4624         (ssescalarmodesuffix): Remove SF and DF modes.
4625         (SSEMODE124): Remove.
4626         (SSEMODE1248): Ditto.
4627         (SSEMODEF2P): Ditto.
4628         (AVXMODEF2P): Ditto.
4629         (AVXMODEFDP): Ditto.
4630         (AVXMODEFSP): Ditto.
4631         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
4632         unconditional.
4633         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
4634         unconditional.
4635         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
4636         xop_pcmov_<mode>256.  Use V mode iterator.
4637
4638         Adjust RTX patterns globally for renamed mode attributes.
4639
4640 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4641
4642         * haifa-sched.c (sched_emit_insn): Emit insn before first
4643         non-scheduled insn.  Inform back-end about new insn.  Add
4644         new insn to scheduled_insns list.
4645
4646 2011-05-02  Richard Guenther  <rguenther@suse.de>
4647
4648         PR tree-optimization/48822
4649         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
4650         (process_scc): Indicate which iteration we start.
4651
4652 2011-05-02  Jan Hubicka  <jh@suse.cz>
4653
4654         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
4655         (lto_section_overrun): New.
4656         * lto-section-out.c (append_block): Rename to ...
4657         (lto_append_block): ... this one; export.
4658         (lto_output_1_stream): Move lto lto-streamer.h
4659         (lto_output_data_stream): Update.
4660         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
4661         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
4662         functions.
4663
4664 2011-05-02  Richard Guenther  <rguenther@suse.de>
4665
4666         * tree.c (tree_code_counts): New global array.
4667         (record_node_allocation_statistics): Count individual tree codes.
4668         (dump_tree_statistics): Dump individual code stats.
4669
4670 2011-05-01  Jan Hubicka  <jh@suse.cz>
4671
4672         * ipa-inline.c (caller_growth_limits): Fix thinko when
4673         looking for largest stack frame.
4674         * ipa-inline.h (dump_inline_summary): Declare.
4675         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
4676         on stack usage.
4677         (dump_inline_summary): Export.
4678         (debug_inline_summary): Declare as DEBUG_FUNCTION.
4679
4680 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
4681
4682         * reginfo.c (memory_move_cost): Change rclass argument type form
4683         'enum reg_class' to reg_class_t.
4684         * reload.h (memory_move_cost): Update prototype.
4685         * postreload.c reload_cse_simplify_set): Change type dclass var to
4686         reg_class_t.
4687         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
4688         Update prototype.
4689         (ira_allocate_and_set_costs): Change aclass argument type form
4690         'enum reg_class' to reg_class_t.
4691         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
4692         Change aclass argument type to reg_class_t.
4693         (update_conflict_hard_reg_costs): Change type aclass and pref vars
4694         to reg_class_t.
4695         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
4696         memory_move_cost call.
4697
4698         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
4699         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
4700         Change type tmp var to reg_class_t.
4701
4702 2011-04-30  Jan Hubicka  <jh@suse.cz>
4703
4704         * ipa-inline.c (can_inline_edge_p): Disregard limits when
4705         inlining into function with flatten attribute.
4706         (want_inline_small_function_p): Be more realistic about inlining
4707         cold calls where callee size grows.
4708
4709 2011-04-30  Jan Hubicka  <jh@suse.cz>
4710
4711         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
4712         flags.
4713
4714 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
4715
4716         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
4717         PRINT_OPERAND_PUNCT_VALID_P): Remove.
4718         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
4719         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
4720         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
4721         (print_operand): Rename to...
4722         (sparc_print_operand): ...this. Make static. Adjust
4723         sparc_print_operand function call.
4724         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
4725         functions.
4726
4727 2011-04-30  Jan Hubicka  <jh@suse.cz>
4728
4729         PR middle-end/48752
4730         * ipa-inline.c (early_inliner): Disable when doing late
4731         addition of function.
4732
4733 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
4734
4735         * dwarf2out.c (get_address_mode): New inline.
4736         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
4737         if not dwarf_strict emit
4738         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
4739         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
4740         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
4741         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
4742         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
4743         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
4744         mem_loc_descriptor callers.
4745         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
4746         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
4747         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
4748         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
4749         (base_types): New variable.
4750         (get_base_type_offset, calc_base_type_die_sizes,
4751         base_type_for_mode, mark_base_types, base_type_cmp,
4752         move_marked_base_types): New functions.
4753         (calc_die_sizes): Assert that die_offset is 0 or equal to
4754         next_die_offset.
4755         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
4756         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
4757         callers.  If not dwarf_strict, call mem_loc_descriptor even for
4758         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
4759         (gen_subprogram_die): Don't give up on call site parameters
4760         with non-integral or large integral modes.  Adjust
4761         mem_loc_descriptor callers.
4762         (prune_unused_types): Call prune_unused_types_mark on base_types
4763         vector entries.
4764         (resolve_addr): Call mark_base_types.
4765         (dwarf2out_finish): Call move_marked_base_types.
4766
4767         PR tree-optimization/48809
4768         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
4769         type.
4770         (gen_inbound_check): Don't compute index_expr - range_min in utype
4771         again, instead reuse SSA_NAME initialized in build_arrays.
4772         Remove two useless gsi_for_stmt calls.
4773
4774 2011-04-29  Jeff Law  <law@redhat.com>
4775
4776         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
4777
4778 2011-04-29  Martin Jambor  <mjambor@suse.cz>
4779
4780         * cgraph.h (cgraph_postorder): Remove declaration.
4781         * ipa-utils.h (ipa_free_postorder_info): Declare.
4782         (ipa_reverse_postorder): Likewise.
4783         * cgraphunit.c: Include ipa-utils.h.
4784         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
4785         * ipa-inline.c: Include ipa-utils.h.
4786         (ipa_inline): Update call to ipa_reverse_postorder.
4787         * ipa-pure-const.c (propagate_pure_const): Update call to
4788         ipa_reduced_postorder and ipa_print_order.  Call
4789         ipa_free_postorder_info to clean up.
4790         (propagate_nothrow): Likewise.
4791         * ipa-reference.c (propagate): Removed a useless call to
4792         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
4793         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
4794         * ipa.c: Include ipa-utils.h.
4795         (ipa_profile): Update call to ipa_reverse_postorder.
4796         (cgraph_postorder): Moved to...
4797         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
4798         (ipa_utils_print_order): Renamed to ipa_print_order.
4799         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
4800         comments.
4801         (ipa_free_postorder_info): New function.
4802         * passes.c: Include ipa-utils.h.
4803         (do_per_function_toporder): Update call to ipa_reverse_postorder.
4804         (ipa_write_summaries): Likewise.
4805         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
4806         (cgraphunit.o): Likewise.
4807         (ipa.o): Likewise.
4808         (ipa-inline.o): Likewise.
4809
4810 2011-04-29  Jan Hubicka  <jh@suse.cz>
4811
4812         * gcc.dg/tree-ssa/inline-10.c: New testcase.
4813         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
4814         * ipa-inline.h (clause_t): Turn into unsigned int.
4815         * ipa-inline-analysis.c (add_clause): Do more simplification.
4816         (and_predicates): Shortcut more cases.
4817         (predicates_equal_p): Move forward; check that clauses are properly
4818         ordered.
4819         (or_predicates): Shortcut more cases.
4820         (edge_execution_predicate): Rewrite as...
4821         (set_cond_stmt_execution_predicate): ... this function; handle
4822         __builtin_constant_p.
4823         (set_switch_stmt_execution_predicate): New .
4824         (compute_bb_predicates): New.
4825         (will_be_nonconstant_predicate): Update TODO.
4826         (estimate_function_body_sizes): Use compute_bb_predicates
4827         and free them later, always try to estimate if stmt is constant.
4828         (estimate_time_after_inlining, estimate_size_after_inlining):
4829         Gracefully handle optimized out edges.
4830         (read_predicate): Fix off by one error.
4831
4832 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
4833
4834         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
4835
4836 2011-04-27  Xinliang David Li  <davidxl@google.com>
4837
4838         * tree-profile.c (init_ic_make_global_vars): Set
4839         tls attribute on ic vars.
4840         * coverage.c (coverage_end_function): Initialize
4841         function_list with zero.
4842
4843 2011-04-29  Richard Guenther  <rguenther@suse.de>
4844
4845         * builtins.c (fold_builtin_classify_type): Use integer_type_node
4846         for the type of the result.
4847         (fold_builtin_isascii): Likewise.
4848         (fold_builtin_toascii): Use integer_type_node where appropriate.
4849         (fold_builtin_logb): Likewise.
4850         (fold_builtin_frexp): Likewise.
4851         (fold_builtin_strstr): Likewise.
4852         (fold_builtin_strpbrk): Likewise.
4853         (fold_builtin_fputs): Likewise.
4854         (fold_builtin_sprintf): Likewise.
4855         (fold_builtin_snprintf): Likewise.
4856         (fold_builtin_printf): Likewise.
4857         (do_mpfr_remquo): Use a proper type for the assigned constant.
4858         (do_mpfr_lgamma_r): Likewise.
4859         * dwarf2out.c (resolve_one_addr): Use size_int.
4860         * except.c (init_eh): Likewise.
4861         (assign_filter_values): Use integer_type_node for filter values.
4862         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
4863         indices.
4864         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
4865         for EH region numbers.
4866         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
4867         for the shift amount.
4868
4869 2011-04-29  Richard Guenther  <rguenther@suse.de>
4870
4871         * expr.h (expand_shift): Rename to ...
4872         (expand_variable_shift): ... this.
4873         (expand_shift): Take a constant shift amount.
4874         * expmed.c (expand_shift): Rename to ...
4875         (expand_variable_shift): ... this.
4876         (expand_shift): New wrapper around expand_variable_shift.
4877         * expr.c (convert_move, emit_group_load_1, emit_group_store,
4878         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
4879         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
4880         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
4881         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
4882         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
4883         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
4884         emit_store_flag_1, emit_store_flag): Likewise.
4885         * builtins.c (expand_builtin_signbit): Likewise.
4886         * calls.c (load_register_parameters): Likewise.
4887         * function.c (assign_parm_setup_block): Likewise.
4888         * lower-subreg.c (resolve_shift_zext): Likewise.
4889         * optabs.c (widen_bswap, expand_abs_nojump,
4890         expand_one_cmpl_abs_nojump, expand_float): Likewise.
4891         * spu/spu.c (spu_expand_extv): Likewise.
4892         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
4893
4894 2011-04-29  Richard Guenther  <rguenther@suse.de>
4895
4896         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
4897         for the remapped region number.
4898         * predict.c (build_predict_expr): Use integer_type_node for the
4899         predict kind.
4900         * fold-const.c (fold_binary_loc): Use integer_type_node for
4901         the shift amount.  Use a proper type for the PLUS_EXPR operand.
4902
4903 2011-04-29  Michael Matz  <matz@suse.de>
4904
4905         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
4906         other trees that just builtins.
4907         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
4908
4909 2011-04-29  Richard Guenther  <rguenther@suse.de>
4910
4911         * tree-nested.c (get_trampoline_type): Use size_int.
4912         (get_nl_goto_field): Likewise.
4913         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
4914         for all indexes.
4915         (lower_eh_constructs_2): Likewise.
4916         (lower_resx): Likewise.
4917         (lower_eh_dispatch): Likewise.
4918         * tree-mudflap.c (mf_build_string): Use size_int.
4919         (mudflap_register_call): Use integer_type_node for the flag.
4920         (mudflap_enqueue_constant): Use size_int.
4921         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
4922         instead of rebuilding it.
4923
4924 2011-04-29  Richard Guenther  <rguenther@suse.de>
4925
4926         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
4927         Handle OBJ_TYPE_REF.
4928         (find_func_aliases_for_call): Use it more consistently.
4929
4930 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
4931
4932         * haifa-sched.c (last_nondebug_scheduled_insn): New.
4933         (rank_for_schedule): Use it.
4934         (schedule_block): Set it.
4935
4936 2011-04-28  David Li  <davidxl@google.com>
4937
4938         * tree.c (crc32_string): Use crc32_byte.
4939         (crc32_byte): New function.
4940         * tree.h (crc32_byte): New function.
4941         * gcov.c (read_graph_file): Handle new cfg_cksum.
4942         (read_count_file): Ditto.
4943         * profile.c (instrument_values): Ditto.
4944         (get_exec_counts): Ditto.
4945         (read_profile_edge_counts): Ditto.
4946         (compute_branch_probabilities): Ditto.
4947         (compute_value_histograms): Ditto.
4948         (branch_prob): Ditto.
4949         (end_branch_prob): Ditto.
4950         * coverage.c (read_counts_file): Ditto.
4951         (get_coverage_counts): Ditto.
4952         (tree_coverage_counter_addr): Ditto.
4953         (coverage_checksum_string): Ditto.
4954         (coverage_begin_output): Ditto.
4955         (coverage_end_function): Ditto.
4956         (build_fn_info_type): Ditto.
4957         (build_fn_info_value): Ditto.
4958         * libgcov.c (gcov_exit): Ditto.
4959         * gcov-dump.c (tag_function): Ditto.
4960         (compute_checksum): Remove.
4961
4962 2011-04-29  Alan Modra  <amodra@gmail.com>
4963
4964         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
4965         unspec plus offset.  Tidy macho code.
4966
4967 2011-04-29  Martin Jambor  <mjambor@suse.cz>
4968
4969         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
4970         node instead of a decl.  Update all callers.
4971         * cgraph.h: Update declaration.
4972
4973 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
4974
4975         PR tree-optimization/48765
4976         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
4977         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
4978         to indicate if loop aware SLP is being used.  Scan the statements
4979         and update the vectorization factor according to the type of
4980         vectorization before statement analysis.
4981         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
4982         pass it to vect_analyze_loop_operations.
4983         (vectorizable_reduction): Set number of copies to 1 in case of pure
4984         SLP statement.
4985         * tree-vect-stmts.c (vectorizable_conversion,
4986         vectorizable_assignment, vectorizable_shift,
4987         vectorizable_operation, vectorizable_type_demotion,
4988         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
4989         Likewise.
4990         (vectorizable_condition): Move the check that it is not SLP
4991         vectorization before the number of copies check.
4992         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
4993         to vectorize the loop using SLP.
4994
4995 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
4996
4997         PR middle-end/48597
4998         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
4999         inline asm.
5000
5001 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
5002
5003         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
5004         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
5005         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
5006         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
5007         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
5008         linux*.h headers.
5009         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
5010         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5011         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5012         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5013         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
5014         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
5015         REG_NAME.
5016         * config/i386/linux.h (REG_NAME): Don't define.
5017         * config/i386/linux64.h (REG_NAME): Don't define.
5018         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
5019         Undefine before defining.
5020
5021 2011-04-28  Jan Hubicka  <jh@suse.cz>
5022
5023         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
5024         nonconstant_names array.
5025         (estimate_function_body_sizes): Build nonconstant_names array; handle
5026         BUILT_IN_CONSTANT_P.
5027
5028 2011-04-28  Richard Guenther  <rguenther@suse.de>
5029
5030         PR bootstrap/48804
5031         Revert
5032         2011-04-28  Richard Guenther  <rguenther@suse.de>
5033
5034         * tree-ssa-structalias.c (solve_constraints): Build succ graph
5035         as late as possible.
5036
5037 2011-04-28  Richard Guenther  <rguenther@suse.de>
5038
5039         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
5040         (debug_constraint): Do it here.
5041         (dump_constraints): And here.
5042         (rewrite_constraints): And here.
5043         (dump_constraint_edge): Remove.
5044         (dump_constraint_graph): Rewrite to produce DOT output.
5045         (solve_constraints): Build succ graph as late as possible.
5046         Dump constraint graphs before and after solving.
5047
5048 2011-04-28  Richard Guenther  <rguenther@suse.de>
5049
5050         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5051         New function split out from ...
5052         (find_func_aliases): ... here.  Call it.
5053         (find_func_aliases_for_call): Likewise.
5054
5055 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5056
5057         * internal-fn.h (internal_fn_name_array): Declare.
5058         (internal_fn_flags_array): Likewise.
5059
5060 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
5061
5062         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
5063         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
5064         Move from sse.md.
5065         (ssemodefsuffix): Remove.
5066         (ssevecmodesuffix): New mode attribute.
5067         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
5068         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
5069         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
5070         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
5071         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
5072         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
5073         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
5074         ssemodesuffix mode attribute.
5075         (float splitters): Use ssevecmodesuffix mode attribute.
5076         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
5077         (sseinsmode): Rename from avxvecmode.
5078         (avxsizesuffix): Rename from avxmodesuffix.
5079         (sseintvecmode): Rename from avxpermvecmode.
5080         (ssedoublevecmode): Rename from ssedoublesizemode.
5081         (ssehalfvecmode): Rename from avxhalfvecmode.
5082         (ssescalarmode): Rename from avxscalarmode.
5083         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
5084         templates for ssemodesuffix mode attribute.
5085         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
5086         mode attribute.
5087
5088         Adjust RTX patterns globally for renamed mode attributes.
5089
5090 2011-04-27  Jan Hubcika  <jh@suse.cz>
5091
5092         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
5093         * ipa-inline-analysis.c: Include alloc-pool.h.
5094         (edge_predicate_pool): New.
5095         (trye_predicate_p): New function
5096         (false_predicate_p): New function.
5097         (add_clause): Sanity check that false clauses are "optimized";
5098         never add clauses to predicate that is already known to be false.
5099         (and_predicate): Use flase_predicate_p.
5100         (evaulate_predicate): Rename to ...
5101         (evaluate_predicate): ... this one; update all callers; assert
5102         that false is not listed among possible truths.
5103         (dump_predicate): Use true_predicate_p.
5104         (account_size_time): Use false_predicate_p.
5105         (evaulate_conditions_for_edge): Rename to ...
5106         (evaluate_conditions_for_edge) ... this one.
5107         (edge_set_predicate): New function.
5108         (inline_edge_duplication_hook): Duplicate edge predicates.
5109         (inline_edge_removal_hook): Free edge predicates.
5110         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
5111         (dump_inline_summary): Update.
5112         (estimate_function_body_sizes): Set edge predicates.
5113         (estimate_calls_size_and_time): Handle predicates.
5114         (estimate_callee_size_and_time): Update.
5115         (remap_predicate): Add toplev_predicate; update comment.
5116         (remap_edge_predicates): New function.
5117         (inline_merge_summary): Compute toplev predicate; update.
5118         (read_predicate): New function.
5119         (read_inline_edge_summary): Use it.
5120         (inline_read_section): Likewise.
5121         (write_predicate): New function.
5122         (write_inline_edge_summary): Use it.
5123         (inline_write_summary): Likewise.
5124         (inline_free_summary): Free alloc pool and edge summary vec.
5125
5126 2011-04-27  Richard Guenther  <rguenther@suse.de>
5127
5128         * tree-ssa-structalias.c (changed_count): Remove.
5129         (changed): Use a bitmap.
5130         (unify_nodes): Adjust.
5131         (do_sd_constraint): Likewise.
5132         (do_ds_constraint): Likewise.
5133         (do_complex_constraint): Likewise.
5134         (solve_graph): Likewise.
5135
5136 2011-04-27  Jan Hubicka  <jh@suse.cz>
5137
5138         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
5139
5140 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
5141
5142         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
5143         (avx_vperm2f128_*_operand): Ditto.
5144         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
5145         Use avx_vpermilp_parallel in insn condition.
5146         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
5147         Use avx_vperm2f128_parallel in insn condition.
5148
5149 2011-04-27  Richard Guenther  <rguenther@suse.de>
5150
5151         * Makefile.in (tree-ssa-structalias.o): Remove
5152         gt-tree-ssa-structalias.h dependency.
5153         (GTFILES): Remove tree-ssa-structalias.c.
5154         * tree.c (allocate_decl_uid): New function.
5155         (make_node_stat): Use it.
5156         (copy_node_stat): Likewise.
5157         * tree.h (allocate_decl_uid): Declare.
5158         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
5159         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
5160         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
5161         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
5162         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
5163         (struct heapvar_map): Likewise.
5164         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
5165         heapvar_insert): Likewise.
5166         (make_heapvar_for): Rename to ...
5167         (make_heapvar): ... this.  Simplify.
5168         (fake_var_decl_obstack): New global var.
5169         (build_fake_var_decl): New function.
5170         (make_constraint_from_heapvar): Adjust.
5171         (handle_lhs_call): Likewise.
5172         (create_function_info_for): Likewise.
5173         (intra_create_variable_infos): Likewise.
5174         (init_alias_vars): Allocate fake_var_decl_obstack.
5175         (init_alias_heapvars, delete_alias_heapvars): Remove.
5176         (compute_points_to_sets): Do not call init_alias_heapvars.
5177         (ipa_pta_execute): Likewise.
5178         (delete_points_to_sets): Free fake_var_decl_obstack.
5179
5180 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5181
5182         * config/spu/divmovti4.c (union qword_UTItype): New data type.
5183         (si_from_UTItype, si_to_UTItype): New functions.
5184         (__udivmodti4): Use them to implement type-punning.
5185         * config/spu/multi3.c (union qword_TItype): New data type.
5186         (si_from_TItype, si_to_TItype): New functions.
5187         (__multi3): Use them to implement type-punning.
5188
5189 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5190
5191         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
5192
5193 2011-04-27  Jan Hubicka  <jh@suse.cz>
5194
5195         * ipa-prop.c (function_insertion_hook_holder): New holder.
5196         (ipa_add_new_function): New function.
5197         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
5198         Register/deregister holder.
5199
5200 2011-04-27  Richard Guenther  <rguenther@suse.de>
5201
5202         PR tree-optimization/48772
5203         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
5204
5205 2011-04-27  Richard Guenther  <rguenther@suse.de>
5206
5207         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
5208         TARGET_MEM_REF handling.
5209
5210 2011-04-27  Nick Clifton  <nickc@redhat.com>
5211
5212         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
5213         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
5214         (REG_CLASS_NAMES): Likewise.
5215         (REG_CLASS_CONTENTS): Likewise.
5216         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
5217         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
5218         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
5219         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
5220         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
5221         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
5222         duplicate register classes.
5223         (frv_class_likely_spilled_p): Likewise.
5224         (frv_register_move_cost): Likewise.
5225
5226         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
5227         end of the regno_reg_class array.
5228
5229 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
5230
5231         PR c/48742
5232         * c-typeck.c (build_binary_op): Don't wrap arguments if
5233         int_operands is true.
5234
5235 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
5236
5237         PR target/48767
5238         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
5239         targetm.calls.must_pass_in_stack for void type.
5240
5241 2011-04-26  Jan Hubicka  <jh@suse.cz>
5242
5243         * cgraphbuild.c (build_cgraph_edges): Update call
5244         of cgraph_create_edge and cgraph_create_indirect_edge.
5245         * cgraph.c (cgraph_create_edge_including_clones,
5246         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
5247         cgraph_update_edges_for_call_stmt_node): Do not take nest
5248         argument; do not initialize call_stmt_size/time.
5249         (dump_cgraph_node): Do not dump nest.
5250         (cgraph_clone_edge): Do not take loop_nest argument;
5251         do not propagate it; do not clone call_stmt_size/time.
5252         (cgraph_clone_node): Likewise.
5253         (cgraph_create_virtual_clone): Update.
5254         * cgraph.h (struct cgraph_edge): Remove
5255         call_stmt_size/call_stmt_time/loop_nest.
5256         (cgraph_create_edge, cgraph_create_indirect_edge,
5257         cgraph_create_edge_including_clones, cgraph_clone_node): Update
5258         prototype.
5259         * tree-emutls.c (gen_emutls_addr): Update.
5260         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
5261         loop_nest; handle indirect calls, too.
5262         (clone_inlined_nodes): Do not care about updating inline summaries.
5263         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
5264         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
5265         stream call_stmt_size/call_stmt_time/loop_nest.
5266         * ipa-inline.c (edge_badness): Update.
5267         (ipa_inline): dump summaries after inlining.
5268         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
5269         New.
5270         (inline_edge_summary): New function.
5271         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
5272         (inline_edge_removal_hook): Handle edge summaries.
5273         (inline_edge_duplication_hook): New hook.
5274         (inline_summary_alloc): Alloc hooks.
5275         (initialize_growth_caches): Do not register removal hooks.
5276         (free_growth_caches); Do not free removal hook.
5277         (dump_inline_edge_summary): New function.
5278         (dump_inline_summary): Use it.
5279         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
5280         (inline_update_callee_summaries): New function.
5281         (inline_merge_summary): Use it.
5282         (do_estimate_edge_time, do_estimate_edge_growth): Update.
5283         (read_inline_edge_summary): New function.
5284         (inline_read_section): Use it.
5285         (write_inline_edge_summary): New function.
5286         (inline_write_summary): Use it.
5287         (inline_free_summary): Free edge new holders.
5288         * tree-inline.c (copy_bb): Update.
5289
5290 2011-04-26  Jason Merrill  <jason@redhat.com>
5291
5292         * tree-eh.c (lower_try_finally_switch): Create the label along with
5293         the CASE_LABEL_EXPR.
5294
5295 2011-04-26  David S. Miller  <davem@davemloft.net>
5296             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5297
5298         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
5299         * configure: Regenerate.
5300
5301 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
5302
5303         PR target/48258
5304         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
5305         reduction.
5306         (VEC_reduc): New code iterator and splitters for vector reduction.
5307         (VEC_reduc_name): Ditto.
5308         (VEC_reduc_rtx): Ditto.
5309         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
5310         (reduc_<VEC_reduc_name>_v4sf): Ditto.
5311
5312         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
5313         support for extracting SF on VSX.
5314
5315         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
5316         generating xscvspdp.
5317         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
5318         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
5319         double add, minimum, maximum vector reduction.
5320         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
5321         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
5322         optimize double vector reduction.
5323         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
5324
5325 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
5326
5327         * config/fr30/fr30.h (inhibit_libc): Don't define.
5328         * config/m32r/m32r-protos.h: Correct comment.
5329         * config/v850/v850.h (GHS_default_section_names,
5330         GHS_current_section_names): Use tree, not union tree_node *.
5331
5332 2011-04-26  Xinliang David Li  <davidxl@google.com>
5333
5334         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
5335         * c-family/c-opts.c (c_common_handle_option): Set
5336         warn_maybe_uninitialized.
5337         * opts.c (common_handle_option): Ditto.
5338         * common.opt:  New option.
5339         * tree-ssa.c (warn_uninit): Add one more parameter.
5340         (warn_uninitialized_var): Pass warning code.
5341         * tree-flow.h: Interface change.
5342
5343 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5344
5345         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
5346         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
5347         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
5348
5349 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5350
5351         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
5352         * config/mips/mips.opt (mmips-tfile): Remove.
5353
5354         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
5355         mips-tdump reference to ...
5356         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
5357         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
5358         reference by Tru64 UNIX.
5359
5360 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
5361
5362         PR debug/48768
5363         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
5364         is error_mark_node, set value to NULL.
5365
5366         PR tree-optimization/48734
5367         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
5368         if return value from maybe_fold_*_comparsions isn't something
5369         the code is prepared to handle.
5370
5371 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
5372
5373         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
5374         mode check.
5375         (ext_QIreg_nomode_operands): Remove.
5376         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
5377         (*andsi_1): Ditto.
5378         (*andhi_1): Ditto.
5379
5380 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
5381
5382         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
5383
5384 2011-04-26  Richard Guenther  <rguenther@suse.de>
5385
5386         * c-typeck.c (build_unary_op): Do not expand array-refs via
5387         pointer arithmetic.  Only adjust qualifiers for function types.
5388
5389 2011-04-26  Richard Guenther  <rguenther@suse.de>
5390
5391         PR middle-end/48694
5392         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
5393         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
5394         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
5395         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
5396
5397 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
5398
5399         * doc/extend.texi: Document __underlying_type.
5400
5401 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
5402
5403         * config/rs6000/titan.md (automata_option "progress"): Remove.
5404
5405 2011-04-25  Jeff Law  <law@redhat.com>
5406
5407         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
5408
5409 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
5410
5411         * system.h (ENUM_BITFIELD): Remove.
5412
5413 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
5414             Eric Botcazou  <ebotcazou@adacore.com>
5415
5416         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
5417         for STORE_FLAG_VALUE==-1 case.
5418
5419 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
5420
5421         PR target/43804
5422         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
5423         LEGITIMATE_PIC_OPERAND_P.
5424
5425 2011-04-24  Jan Hubicka  <jh@suse.cz>
5426
5427         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
5428         WPA hack.
5429         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
5430         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
5431         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
5432         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
5433         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
5434         Sanity check predicate length.
5435         (remap_predicate): Likewise; sanity check jump functions.
5436         (inline_read_section, inline_write_summary): Sanity check
5437         predicate length.
5438
5439 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
5440
5441         PR other/48748
5442         * doc/extend.texi (Type Traits): Document __is_standard_layout,
5443         __is_literal_type, and __is_trivial; update throughout about
5444         possibly cv-qualified void types.
5445
5446 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
5447
5448         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
5449         testsuite and make it version agnostic.
5450
5451 2011-04-22  Jan Hubicka  <jh@suse.cz>
5452
5453         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
5454
5455 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
5456
5457         PR c/48685
5458         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
5459         to VOID_TYPE even around MODIFY_EXPR.
5460
5461 2011-04-22  Mike Stump  <mikestump@comcast.net>
5462
5463         * gensupport.c (read_md_rtx): Fix typo in comment.
5464         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
5465         comment.
5466
5467 2011-04-22  Jan Hubicka  <jh@suse.cz>
5468
5469         * gengtype.c (open_base_files): Add ipa-inline.h include.
5470         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
5471         ipa-prop.c; update all uses.
5472         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
5473         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
5474         merge summary of inlined function into former caller.
5475         * ipa-inline.c (max_benefit): Remove.
5476         (edge_badness): Compensate for removal of benefits.
5477         (update_caller_keys): Use
5478         reset_node_growth_cache/reset_edge_growth_cache.
5479         (update_callee_keys): Likewise.
5480         (update_all_callee_keys): Likewise.
5481         (inline_small_functions): Do not collect max_benefit; do not reset
5482         estimated_growth; call free_growth_caches and initialize_growth_caches.
5483         * ipa-inline.h (struct condition, type clause_t, struct predicate,
5484         struct size_time_entry): New structures.
5485         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
5486         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
5487         and estimated_growth.
5488         (edge_growth_cache_entry): New structure.
5489         (node_growth_cache, edge_growth_cache): New global vars.
5490         (estimate_growth): Turn into inline.
5491         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
5492         initialize_growth_caches, free_growth_caches): Declare.
5493         (estimate_edge_growth): Rewrite.
5494         (estimate_edge_time): Implement as inline cache lookup.
5495         (reset_node_growth_cache, reset_edge_growth_cache): New inline
5496         functions.
5497         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
5498         (NUM_CONDITIONS): New constant.
5499         (predicate_conditions): New enum.
5500         (IS_NOT_CONSTANT): New constant.
5501         (edge_removal_hook_holder): New var.
5502         (node_growth_cache, edge_growth_cache): New global vars.
5503         (true_predicate, single_cond_predicate, false_predicate,
5504         not_inlined_predicate, add_condition, add_clause, and_predicates,
5505         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
5506         dump_clause, dump_predicate, account_size_time,
5507         evaulate_conditions_for_edge): New functions.
5508         (inline_summary_alloc): Move to heap.
5509         (inline_node_removal_hook): Clear condition and entry vectors.
5510         (inline_edge_removal_hook): New function.
5511         (initialize_growth_caches, free_growth_caches): New function.
5512         (dump_inline_summary): Update.
5513         (edge_execution_predicate): New function.
5514         (will_be_nonconstant_predicate): New function.
5515         (estimate_function_body_sizes): Compute BB and constantness predicates.
5516         (compute_inline_parameters): Do not clear estimated_growth.
5517         (estimate_edge_size_and_time): New function.
5518         (estimate_calls_size_and_time): New function.
5519         (estimate_callee_size_and_time): New function.
5520         (remap_predicate): New function.
5521         (inline_merge_summary): New function.
5522         (do_estimate_edge_time): New function based on...
5523         (estimate_edge_time): ... this one.
5524         (do_estimate_edge_growth): New function.
5525         (do_estimate_growth): New function based on....
5526         (estimate_growth): ... this one.
5527         (inline_analyze_function): Analyze after deciding on jump functions.
5528         (inline_read_section): New function.
5529         (inline_read_summary): Use it.
5530         (inline_write_summary): Write all the new data.
5531         * ipa-prop.c (ipa_get_param_decl_index): Export.
5532         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
5533         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
5534         Declare.
5535         (ipa_get_lattice): Move here from ipa-cp.c
5536         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
5537         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
5538         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
5539         cgraph_edge_inlinable_p): Remove.
5540         * cgraphunit.c: Include ipainline.h
5541         (cgraph_process_new_functions): Update call of
5542         compute_inline_parameters.
5543
5544 2011-04-22  Richard Guenther  <rguenther@suse.de>
5545
5546         * tree.c (build_int_cst): Properly create canonicalized integer
5547         constants.
5548         (build_int_cst_type): Remove scary comments.
5549
5550 2011-04-22  Xinliang David Li  <davidxl@google.com>
5551
5552         * toplev.c (process_options): Enable -Werror=coverage-mismatch
5553         by default when -Wno-error is not specified.
5554         * opts-global.c (decode_options): Remove call to
5555         control_warning_options.
5556
5557 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
5558
5559         PR tree-optimization/48717
5560         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
5561         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
5562
5563 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
5564
5565         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
5566         definition where used.
5567
5568 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
5569
5570         PR c/48716
5571         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
5572         TREE_STATIC variables declared inside of some OpenMP construct.
5573
5574 2011-04-22  Martin Jambor  <mjambor@suse.cz>
5575
5576         PR middle-end/48585
5577         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
5578
5579 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
5580
5581         PR c/36750
5582         * c-typeck.c (pop_init_level): Do not warn about initializing
5583         with ` = {0}'.
5584
5585 2011-04-22  Alan Modra  <amodra@gmail.com>
5586
5587         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
5588         when returning call_cookie.
5589         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
5590         pointers, to functions with no more vector args than the current
5591         function, and some non-local calls for ABI_V4.
5592         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
5593         sibcall_nonlocal_aix64): Combine to ..
5594         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
5595         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
5596         (sibcall_value_nonlocal_aix<mode>): ..likewise.
5597         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
5598         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
5599         operand.
5600         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
5601         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
5602         sibcall_value_symbolic_64): Delete.
5603
5604 2011-04-21  Xinliang David Li  <davidxl@google.com>
5605
5606         * cgraph.h: Remove pid.
5607         * cgraph.c: Remove pid.
5608         * value-prof.c (init_node_map): New function.
5609         (del_node_map): New function.
5610         (find_func_by_funcdef_no): New function.
5611         (gimple_ic_transform): Call new function.
5612         * cgraphunit.c (cgraph_finalize_function): Remove pid.
5613         * function.c (get_last_funcdef_no): New function.
5614         * function.h (get_last_funcdef_no): New function.
5615         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
5616         to libgcov function.
5617         (tree-profiling): Call node map init and delete function.
5618
5619 2011-04-21  Ian Lance Taylor  <iant@google.com>
5620
5621         * godump.c (go_format_type): Use exported Go name for anonymous
5622         field name.
5623
5624 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
5625
5626         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
5627         Call builtin_function_type_list instead of builtin_function_type.
5628         (UNARY, BINARY, TRINARY, QUAD): Likewise.
5629
5630 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
5631
5632         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
5633         build_function_type_list instead of build_function_type.
5634         Delete variable `endlink'.
5635
5636 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
5637
5638         * config/s390/s390.c (s390_init_builtins): Call
5639         build_function_type_list instead of build_function_type.
5640
5641 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
5642
5643         * config/ia64/ia64.c (ia64_init_builtins): Call
5644         build_function_type_list instead of builtin_function_type.
5645
5646 2011-04-21  Easwaran Raman  <eraman@google.com>
5647
5648         * cfgexpand.c (stack_var): Remove OFFSET...
5649         (add_stack_var): ...and its reference here...
5650         (expand_stack_vars): ...and here.
5651         (stack_var_cmp): Sort by descending order of size.
5652         (partition_stack_vars): Change heuristic.
5653         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
5654         (dump_stack_var_partition): Add newline after each partition.
5655
5656 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
5657             Jeff Law  <law@redhat.com>
5658
5659         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
5660         * gengtype.c (matching_file_name_substitute): Likewise.
5661
5662 2011-04-21  Richard Guenther  <rguenther@suse.de>
5663
5664         PR lto/48703
5665         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
5666
5667 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
5668
5669         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
5670
5671 2011-04-21  Richard Guenther  <rguenther@suse.de>
5672
5673         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
5674         file name.
5675
5676 2011-04-21  Richard Guenther  <rguenther@suse.de>
5677
5678         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
5679         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
5680         Use DECL_P, not SSA_VAR_P.
5681         (ptr_derefs_may_alias_p): Likewise.
5682         (ptr_deref_may_alias_ref_p_1): Likewise.
5683         (decl_refs_may_alias_p): Likewise.
5684         (refs_may_alias_p_1): Likewise.
5685         (ref_maybe_used_by_call_p_1): Likewise.
5686         (call_may_clobber_ref_p_1): Likewise.
5687         (indirect_ref_may_alias_decl_p): Assume indirect refrences
5688         are either MEM_REF or TARGET_MEM_REF.
5689         (indirect_refs_may_alias_p): Likewise.
5690         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
5691         for MEM_EXPR of indirect calls.
5692
5693 2011-04-21  Tristan Gingold  <gingold@adacore.com>
5694
5695         * vmsdbgout.c (write_srccorr): Compute file length from the string.
5696         (dst_file_info_struct): Remove flen field.
5697         (lookup_filename): Remove code that set flen field.
5698
5699 2011-04-21  Tristan Gingold  <gingold@adacore.com>
5700
5701         * config/ia64/ia64.c (ia64_start_function): Add a guard.
5702
5703 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
5704
5705         PR target/48708
5706         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
5707         vec_extract and vec_concat for non-SSE4_1 targets.
5708
5709 2011-04-21  Richard Guenther  <rguenther@suse.de>
5710
5711         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
5712         return statements.
5713
5714 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
5715
5716         * config/i386/cygming.h (union tree_node, TREE): Don't define or
5717         undefine.
5718         (FILE): Don't undefine.
5719
5720 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
5721
5722         * config/alpha/alpha.c (struct machine_function): Use rtx, not
5723         struct rtx_def *.
5724         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
5725         struct rtx_def *.
5726         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
5727         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
5728         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
5729         rtx_def *.
5730         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
5731         definitions where used.
5732         * config/microblaze/microblaze.h (struct microblaze_args): Use
5733         rtx, not struct rtx_def *.
5734         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
5735         rtx_def *.
5736         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
5737         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
5738         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
5739         not struct rtx_def *.
5740         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
5741         struct rtx_def *.
5742         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
5743         rtx_def *.
5744         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
5745
5746 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
5747
5748         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
5749         operand_equal_p to compare DR_BASE_ADDRESSes.
5750         (vect_check_interleaving): Likewise.
5751
5752 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
5753
5754         PR target/46329
5755         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
5756         for all Neon struct constants.
5757
5758 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
5759
5760         * target.def (legitimate_constant_p): New hook.
5761         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
5762         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
5763         * doc/tm.texi: Regenerate.
5764         * hooks.h (hook_bool_mode_rtx_true): Declare.
5765         * hooks.c (hook_bool_mode_rtx_true): Define.
5766         * system.h (LEGITIMATE_CONSTANT_P): Poison.
5767         * calls.c (precompute_register_parameters): Replace uses of
5768         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
5769         (emit_library_call_value_1): Likewise.
5770         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
5771         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
5772         * ira-costs.c (scan_one_insn): Likewise.
5773         * recog.c (general_operand, immediate_operand): Likewise.
5774         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
5775         * reload1.c (init_eliminable_invariants): Likewise.
5776
5777         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
5778         mode argument.
5779         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
5780         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
5781         argument.
5782         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5783         * config/alpha/predicates.md (input_operand): Update call to
5784         alpha_legitimate_constant_p.
5785
5786         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
5787         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
5788         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
5789         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5790         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
5791         (arm_legitimate_constant_p): New functions.
5792         (arm_cannot_force_const_mem): Make static.
5793
5794         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
5795
5796         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
5797         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
5798         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
5799         instead of bfin_legitimate_constant_p.
5800         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
5801         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5802
5803         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
5804
5805         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
5806
5807         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
5808         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
5809         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5810         (frv_legitimate_constant_p): Make static.  Add a mode argument.
5811
5812         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
5813         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
5814         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
5815
5816         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
5817         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
5818         * config/i386/i386.c (legitimate_constant_p): Rename to...
5819         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
5820         argument.
5821         (ix86_cannot_force_const_mem): Update accordingly.
5822         (ix86_legitimate_address_p): Likewise.
5823         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5824         * config/i386/i386.md: Update commentary.
5825
5826         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
5827         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
5828         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5829         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
5830
5831         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
5832
5833         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
5834         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
5835         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5836         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
5837
5838         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
5839         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
5840         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
5841
5842         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
5843         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5844         (m32r_legitimate_constant_p): New function.
5845
5846         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
5847         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
5848         LEGITIMATE_CONSTANT_P.
5849         (LEGITIMATE_CONSTANT_P): Delete.
5850         * config/m68k/m68k.c (m68k_expand_prologue): Call
5851         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
5852         (m68k_legitimate_constant_p): New function.
5853         * config/m68k/m68k.md: Update comments.
5854
5855         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
5856         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5857         (mcore_legitimate_constant_p): New function.
5858
5859         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
5860         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
5861         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
5862         Add a mode argument.
5863         (mep_legitimate_address): Update accordingly.
5864         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5865
5866         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
5867         Delete.
5868         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
5869         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
5870         static.  Check OP's mode for VOIDmode.
5871         (microblaze_legitimate_constant_p): New function.
5872         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5873
5874         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
5875         * config/mips/mips.c (mips_legitimate_constant_p): New function.
5876         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
5877         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5878         * config/mips/predicates.md: Update comments.
5879
5880         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
5881         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
5882         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5883         (mmix_legitimate_constant_p): Make static, return a bool, and take
5884         a mode argument.
5885         (mmix_print_operand_address): Update accordingly.
5886
5887         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
5888         Delete.
5889         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
5890         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
5891         static.  Add a mode argument.
5892         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5893
5894         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
5895
5896         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
5897         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5898         (pa_legitimate_constant_p): New function.
5899
5900         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
5901
5902         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
5903         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5904         (pdp11_legitimate_constant_p): New function.
5905
5906         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
5907         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5908         (rs6000_legitimate_constant_p): New function.
5909
5910         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
5911         (rx_legitimate_constant_p): ...this.
5912         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
5913         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
5914         (rx_legitimate_constant_p): ...this.
5915         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5916         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
5917
5918         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
5919         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
5920         * config/s390/s390.c (legitimate_constant_p): Rename to...
5921         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
5922         and add a mode argument.
5923         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5924
5925         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
5926
5927         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
5928         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5929         (sh_legitimate_constant_p): New function.
5930
5931         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
5932         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
5933         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5934         (legitimate_constant_p): Rename to...
5935         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
5936         argument.
5937         (constant_address_p): Update accordingly.
5938
5939         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
5940         argument and return a bool.
5941         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
5942         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5943         (spu_legitimate_constant_p): Add a mode argument and return a bool.
5944         (spu_rtx_costs): Update accordingly.
5945         * config/spu/predicates.md (vec_imm_operand): Likewise.
5946
5947         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
5948
5949         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
5950         * config/v850/v850.c (v850_legitimate_constant_p): New function.
5951         (TARGET_LEGITIMATE_CONSTANT_P): Define.
5952
5953         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
5954         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
5955         * config/vax/vax.c (legitimate_constant_p): Likewise.
5956
5957         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
5958         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
5959         (xtensa_legitimate_constant_p): New function.
5960
5961 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
5962
5963         * target.def (cannot_force_const_mem): Add a mode argument.
5964         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
5965         * doc/tm.texi: Regenerate.
5966         * hooks.h (hook_bool_mode_rtx_false): Declare.
5967         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
5968         (hook_bool_mode_const_rtx_true): Likewise.
5969         (hook_bool_mode_rtx_false): New function.
5970         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
5971         to be non-VOID.  Update call to cannot_force_const_mem.
5972         (find_reloads): Update accordingly.
5973         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
5974         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
5975         argument.
5976         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
5977         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
5978         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
5979         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
5980         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
5981         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
5982         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
5983         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5984         (m68k_cannot_force_const_mem): ...this new function.
5985         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
5986         argument.
5987         (mips_const_insns, mips_legitimize_const_move): Update calls.
5988         (mips_secondary_reload_class): Likewise.
5989         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
5990         (pa_cannot_force_const_mem): ...this new function.
5991         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
5992         (rs6000_cannot_force_const_mem): ...this new function.
5993         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
5994         argument.
5995         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
5996         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
5997         to...
5998         (xtensa_cannot_force_const_mem): ...this new function.
5999
6000 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
6001
6002         * config/mips/mips.c (mips16_build_function_stub): Call
6003         build_function_type_list instead of build_function_type.
6004         (mips16_build_call_stub): Likewise.
6005
6006 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
6007
6008         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
6009         instead of build_function_type.
6010
6011 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
6012
6013         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
6014         instead of build_function_type.
6015
6016 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
6017
6018         PR target/48678
6019         * config/i386/i386.md (insv): Change operand 0 constraint to
6020         "register_operand".  Change operand 1 and 2 constraint to
6021         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
6022         * config/i386/sse.md (sse4_1_pinsrb): Export.
6023         (sse2_pinsrw): Ditto.
6024         (sse4_1_pinsrd): Ditto.
6025         (sse4_1_pinsrq): Ditto.
6026         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
6027         * config/i386/i386.c (ix86_expand_pinsr): New.
6028
6029 2011-04-20  Easwaran Raman  <eraman@google.com>
6030
6031         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
6032         containing union type only with -fstrict-aliasing.
6033
6034 2011-04-20  Jim Meyering  <meyering@redhat.com>
6035
6036         Remove useless if-before-free tests.
6037         * calls.c (expand_call, save_area): Likewise.
6038         * cfgcleanup.c (try_forward_edges): Likewise.
6039         * collect2.c (collect_execute): Likewise.
6040         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
6041         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
6042         * coverage.c (coverage_checksum_string): Likewise.
6043         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
6044         * cselib.c (cselib_init): Likewise.
6045         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
6046         (df_set_clean_cfg): Likewise.
6047         * function.c (free_after_compilation): Likewise.
6048         * gcc.c (do_spec_1, main): Likewise.
6049         * gcov.c (create_file_names): Likewise.
6050         * gensupport.c (identify_predicable_attribute): Likewise.
6051         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
6052         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
6053         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
6054         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
6055         * ipa-pure-const.c (local_pure_const): Likewise.
6056         * ipa-reference.c (propagate): Likewise.
6057         * ira-costs.c (free_ira_costs): Likewise.
6058         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
6059         * matrix-reorg.c (mat_free): Likewise.
6060         * prefix.c (get_key_value): Likewise.
6061         * profile.c (compute_value_histograms): Likewise.
6062         * reload1.c (free_reg_equiv): Likewise.
6063         * sched-deps.c (free_deps): Likewise.
6064         * sel-sched-ir.c (fence_clear): Likewise.
6065         * sese.c (set_rename, if_region_set_false_region): Likewise.
6066         * tree-data-ref.c (free_rdg): Likewise.
6067         * tree-eh.c (lower_try_finally): Likewise.
6068         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
6069         * tree-ssa-live.c (delete_var_map): Likewise.
6070         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
6071         * tree-ssa-pre.c (phi_trans_add): Likewise.
6072
6073 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
6074
6075         PR tree-optimization/48611
6076         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
6077         beyond ERT_MUST_NOT_THROW region.
6078
6079 2011-04-20  Catherine Moore  <clm@codesourcery.com>
6080
6081         * config/mips/mips.opt (mfix-24k): New.
6082         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
6083         * config/mips/mips.md (length): Increase by 4 for stores if
6084         fixing 24K errata.
6085         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
6086         all noreorder if fixing 24K errata.
6087         * doc/invoke.texi: Document mfix-24k.
6088
6089 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
6090
6091         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
6092         quad-word modes, reduce to 9-bit index range when above 1016 limit.
6093
6094 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
6095
6096         * config/arm/arm.c (arm_gen_constant): Move movw support ....
6097         (const_ok_for_op): ... to here.
6098
6099 2011-04-20  Kai Tietz  <ktietz@redhat.com>
6100
6101         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
6102         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
6103
6104 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
6105
6106         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
6107
6108 2011-04-20  Richard Guenther  <rguenther@suse.de>
6109
6110         PR tree-optimization/47892
6111         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
6112         are if-convertible.
6113
6114 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
6115
6116         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
6117
6118 2011-04-20  Tristan Gingold  <gingold@adacore.com>
6119
6120         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
6121
6122 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
6123
6124         PR target/18145
6125
6126         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
6127         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
6128         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
6129         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
6130         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
6131
6132         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
6133         New prototype.
6134
6135         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
6136         (avr_asm_named_section, avr_asm_output_aligned_common,
6137         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
6138         New functions to update...
6139         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
6140         (avr_asm_init_sections): Overwrite section callbacks for
6141         data_section, bss_section.
6142         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
6143         from here to...
6144         (avr_file_end): ...here.
6145
6146 2011-04-20  Richard Guenther  <rguenther@suse.de>
6147
6148         PR middle-end/48695
6149         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
6150         objects and types here.  Adjust for their offset before comparing.
6151
6152 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
6153
6154         * tree-vect-stmts.c (vectorizable_store): Only chain one related
6155         statement per copy.
6156
6157 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
6158
6159         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
6160         (GIMPLE_H): Include $(INTERNAL_FN_H).
6161         (OBJS-common): Add internal-fn.o.
6162         (internal-fn.o): New rule.
6163         * internal-fn.def: New file.
6164         * internal-fn.h: Likewise.
6165         * internal-fn.c: Likewise.
6166         * gimple.h: Include internal-fn.h.
6167         (GF_CALL_INTERNAL): New gf_mask.
6168         (gimple_statement_call): Put fntype into a union with a new
6169         internal_fn field.
6170         (gimple_build_call_internal): Declare.
6171         (gimple_build_call_internal_vec): Likewise.
6172         (gimple_call_same_target_p): Likewise.
6173         (gimple_call_internal_p): New function.
6174         (gimple_call_internal_fn): Likewise.
6175         (gimple_call_fntype): Return null for internal calls.
6176         (gimple_call_set_fntype): Assert that the function is not internal.
6177         (gimple_call_set_fn): Likewise.
6178         (gimple_call_set_fndecl): Likewise.
6179         (gimple_call_set_internal_fn): New function.
6180         (gimple_call_addr_fndecl): Handle null functions.
6181         (gimple_call_return_type): Likewise null types.
6182         * gimple.c (gimple_build_call_internal_1): New function.
6183         (gimple_build_call_internal): Likewise.
6184         (gimple_build_call_internal_vec): Likewise.
6185         (gimple_call_same_target_p): Likewise.
6186         (gimple_call_flags): Handle calls to internal functions.
6187         (gimple_call_fnspec): New function.
6188         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
6189         (gimple_has_side_effects): Handle null functions.
6190         (gimple_rhs_has_side_effects): Likewise.
6191         (gimple_call_copy_skip_args): Handle calls to internal functions.
6192         * cfgexpand.c (expand_call_stmt): Likewise.
6193         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
6194         * gimple-fold.c (gimple_fold_call): Handle null functions.
6195         (gimple_fold_stmt_to_constant_1): Don't fold
6196         calls to internal functions.
6197         * gimple-low.c (gimple_check_call_args): Handle calls to internal
6198         functions.
6199         * gimple-pretty-print.c (dump_gimple_call): Likewise.
6200         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
6201         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
6202         (do_warn_unused_result): Likewise.
6203         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
6204         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
6205         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
6206         the target of a call.
6207         (initialize_hash_element): Update accordingly.
6208         (hashable_expr_equal_p): Use gimple_call_same_target_p.
6209         (iterative_hash_hashable_expr): Handle calls to internal functions.
6210         (print_expr_hash_elt): Likewise.
6211         * tree-ssa-pre.c (can_value_number_call): Likewise.
6212         (eliminate): Handle null functions.
6213         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
6214         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
6215         (find_func_aliases): Likewise.
6216         * value-prof.c (gimple_ic_transform): Likewise.
6217         (gimple_indirect_call_to_profile): Likewise.
6218         * lto-streamer-in.c (input_gimple_stmt): Likewise.
6219         * lto-streamer-out.c (output_gimple_stmt): Likewise.
6220
6221 2011-04-19  Jan Hubicka  <jh@suse.cz>
6222
6223         * ipa-inline-transform.c (save_inline_function_body): Add comments.
6224         * ipa-inline.c (inline_small_functions): Compute summaries first,
6225         populate heap later.
6226
6227 2011-04-19  Jan Hubicka  <jh@suse.cz>
6228
6229         * cgraph.h (save_inline_function_body): Remove.
6230         * ipa-inline-transform.c: New file, broke out of...
6231         * ipa-inline.c: ... this one; Update toplevel comment.
6232         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
6233         make global.
6234         (update_noncloned_frequencies): Move to ipa-inline-transform.c
6235         (cgraph_mark_inline_edge): Rename to inline_call; move to
6236         ipa-inline-transform.c.
6237         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
6238         move to ipa-inline-transform.c
6239         (recursive_inlining, inline_small_functions, flatten_function,
6240         ipa_inline, inline_always_inline_functions,
6241         early_inline_small_functions): Update.
6242         (inline_transform): Move to ipa-inline-transform.c.
6243         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
6244         Declare.
6245         * Makefile.in (ipa-inline-transform.o): New file.
6246         * cgraphunit.c (save_inline_function_body): Move to
6247         ipa-inline-transform.c
6248
6249 2011-04-19  DJ Delorie  <dj@redhat.com>
6250
6251         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
6252         registers if we already know there aren't any.
6253         (m32c_emit_epilogue): Don't emit a barrier here.
6254         (m32c_emit_eh_epilogue): Likewise.
6255         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
6256         operands at expand time.
6257         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
6258         int" wchar type.
6259         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
6260         duplicates.  Provide aliases instead.
6261         * config/m32c/prologue.md (eh_return): Emit a barrier here.
6262         (eh_epilogue): Add a "(return)" here as a hint to other parts of
6263         the compiler.
6264
6265 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
6266
6267         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
6268         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
6269         (general_or_i64_p, sparc_register_move_cost): New function.
6270
6271 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6272
6273         * doc/install.texi (Configuration, --enable-threads): Remove mach.
6274         Add lynx, mipssde.  Sort table.
6275
6276 2011-04-19  Xinliang David Li  <davidxl@google.com>
6277
6278         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
6279         not negative.
6280
6281 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
6282
6283         PR target/48678
6284         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
6285         is a SUBREG with non-MODE_INT mode inside of it.
6286
6287 2011-04-19  Martin Jambor  <mjambor@suse.cz>
6288
6289         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
6290         also according to actual contants.
6291         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
6292         (gimple_fold_call): Use it.
6293         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
6294
6295 2011-04-19  Martin Jambor  <mjambor@suse.cz>
6296
6297         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
6298         non-pointer assignments.
6299
6300 2011-04-19  Martin Jambor  <mjambor@suse.cz>
6301
6302         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
6303         account anc_offset and otr_type from the indirect edge info.
6304         * ipa-prop.c (get_ancestor_addr_info): New function.
6305         (compute_complex_ancestor_jump_func): Assignment analysis moved to
6306         get_ancestor_addr_info, call it.
6307         (ipa_note_param_call): Do not initialize information about polymorphic
6308         calls, return the indirect call graph edge.  Remove the last
6309         parameter, adjust all callers.
6310         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
6311         parameters.  Initialize polymorphic information in the indirect edge.
6312
6313 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
6314
6315         PR lto/48148
6316         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
6317         the types if they have different enumeration identifiers.
6318
6319 2011-04-19  Jan Hubicka  <jh@suse.cz>
6320
6321         * cgraph.h (cgraph_optimize_for_size_p): Declare.
6322         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
6323         * predict.c (cgraph_optimize_for_size_p): Break out from ...
6324         (optimize_function_for_size_p) ... here.
6325
6326 2011-04-19  Richard Guenther  <rguenther@suse.de>
6327
6328         PR lto/48207
6329         * tree.c (free_lang_data): Do not reset the decl-assembler-name
6330         langhook.
6331
6332 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
6333
6334         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
6335         if DECL_NO_INLINE_WARNING_P is set on the function.
6336
6337 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
6338
6339         PR fortran/47976
6340         * reload1.c (inc_for_reload): Return void. All callers changed.
6341         (emit_input_reload_insns): Don't try to delete previous output
6342         reloads to a register, or record spill_reg_store for autoincs.
6343
6344 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
6345
6346         * gengtype.h: Updated copyright year.
6347         (struct input_file_st): Add inpisplugin field.
6348         (type_fileloc): New function.
6349         * gengtype.c
6350         (write_typed_struct_alloc_def): Add gcc_assert.
6351         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
6352         (write_typed_alloc_defns): Don't output for plugin files.
6353         (input_file_by_name): Clear inpisplugin field.
6354         (main): Set inpisplugin field for plugin files.
6355
6356 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
6357
6358         * gengtype-state.c (string_eq): New.
6359         (read_state): Use string_eq instead of strcmp when creating the
6360         state_ident_tab.
6361
6362 2011-04-19  Wei Guozhi  <carrot@google.com>
6363
6364         PR target/47855
6365         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
6366         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
6367         linkage.
6368         * config/arm/constraints.md (Uu): New constraint.
6369         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
6370
6371 2011-04-19  Tristan Gingold  <gingold@adacore.com>
6372
6373         * config.gcc (-*-*-*vms): Added.
6374         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
6375         definitions moved.
6376         * config/vms/vms-ld.c: New file.
6377         * config/vms/vms-ar.c: New file.
6378         * config/vms/t-vmsnative: New file.
6379
6380 2011-04-18  Xinliang David Li  <davidxl@google.com>
6381
6382         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
6383
6384 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
6385
6386         PR middle-end/48661
6387         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
6388         if TREE_TYPE (v) is non-NULL.
6389
6390         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
6391         gimple_get_virt_mehtod_for_binfo.
6392         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
6393         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
6394         callers.
6395         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6396
6397 2011-04-18  Michael Matz  <matz@suse.de>
6398             Steve Ellcey  <sje@cup.hp.com>
6399
6400         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
6401         use its mode as source mode if it isn't VOIDmode.
6402
6403 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
6404
6405         * doc/passes.texi: Fill crossref nodes.
6406
6407 2011-04-18  Jim Meyering  <meyering@redhat.com>
6408
6409         Fix doubled-word typos in comments and strings
6410         * config/alpha/vms-unwind.h: s/for for/for/
6411         * config/arm/unwind-arm.h: Likewise.
6412         * config/microblaze/microblaze.c: Likewise.
6413         * config/sh/constraints.md: s/in in/in/
6414         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
6415
6416 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
6417
6418         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
6419         (AVX_FLOAT_MODE_P): Ditto.
6420         (AVX128_VEC_FLOAT_MODE_P): Ditto.
6421         (AVX256_VEC_FLOAT_MODE_P): Ditto.
6422         (AVX_VEC_FLOAT_MODE_P): Ditto.
6423         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
6424         (UNSPEC_MASKSTORE): Ditto.
6425         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
6426         Merge from <sse>_movmsk<ssemodesuffix> and
6427         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
6428         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
6429         iterator.
6430         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
6431         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
6432         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
6433
6434 2011-04-18  Jan Hubicka  <jh@suse.cz>
6435
6436         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
6437
6438         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
6439         (want_inline_function_called_once_p): Break out the logic from
6440         ipa_inline.
6441         (edge_badness): Ensure that profile is not misupdated.
6442         (lookup_recursive_calls): Prioritize by call frequencies.
6443         (inline_small_functions): Move program size estimates here;
6444         actually process whole queue even when unit growth has been
6445         met. (to properly compute inline_failed reasons and for the
6446         case unit size decrease.) Revisit comments on recursive inlining.
6447         (ipa_inline): Remove unit summary code; first inline hot calls
6448         of functions called once, cold calls next.
6449         (order, nnodes): Remove unused variables.
6450         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
6451         (GTFILES): Remove ipa-inline.c
6452         * sel-sched.c (fill_insns): Silence uninitialized var warning.
6453
6454 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
6455
6456         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
6457
6458 2011-04-18  Jie Zhang  <jie@codesourcery.com>
6459             Richard Earnshaw  <rearnsha@arm.com>
6460
6461         * arm.c (neon_builtin_type_bits): Remove.
6462         (typedef enum neon_builtin_mode): New.
6463         (T_MAX): Don't define.
6464         (typedef enum neon_builtin_datum): Remove bits, codes[],
6465         num_vars and base_fcode.  Add mode, code and fcode.
6466         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
6467         VAR10): Change accordingly.
6468         (neon_builtin_data[]): Change accordingly
6469         (arm_init_neon_builtins): Change accordingly.
6470         (neon_builtin_compare): Remove.
6471         (locate_neon_builtin_icode): Remove.
6472         (arm_expand_neon_builtin): Change accordingly.
6473
6474         * arm.h (enum arm_builtins): Move to ...
6475         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
6476
6477         * arm.c (arm_builtin_decl): Declare.
6478         (TARGET_BUILTIN_DECL): Define.
6479         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
6480         (arm_builtin_decls[]): New.
6481         (arm_init_neon_builtins): Store builtin declarations in
6482         arm_builtin_decls[].
6483         (arm_init_tls_builtins): Likewise.
6484         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
6485         (arm_builtin_decl): New.
6486
6487 2011-04-18  Richard Guenther  <rguenther@suse.de>
6488
6489         * tree.c (upper_bound_in_type): Build properly canonicalized
6490         INTEGER_CSTs.
6491         (lower_bound_in_type): Likewise.
6492
6493 2011-04-18  Richard Guenther  <rguenther@suse.de>
6494
6495         * gimple.h (gimple_call_addr_fndecl): New function.
6496         (gimple_call_fndecl): Use it.
6497         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
6498         for direct calls.
6499         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
6500         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
6501
6502 2011-04-18  Richard Guenther  <rguenther@suse.de>
6503
6504         PR middle-end/48650
6505         * tree.c (build_string): STRING_CST is now derived from tree_typed.
6506
6507 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
6508
6509         PR lto/48492
6510         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
6511         DECL_IN_CONSTANT_POOL without RTL.
6512
6513 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
6514             Ira Rosen  <ira.rosen@linaro.org>
6515
6516         PR target/48252
6517         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
6518         to match neon_vzip/vuzp/vtrn_internal.
6519         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
6520         outputs explicitly dependent on both inputs.
6521         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
6522
6523 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
6524
6525         PR tree-optimization/48616
6526         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
6527         whether the shift is by scalar or vector based on whether all SLP
6528         scalar stmts have the same rhs.
6529
6530 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
6531
6532         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
6533         memory operands.
6534
6535 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
6536
6537         PR target/43700
6538         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
6539         registers.
6540
6541 2011-04-17  Jan Hubicka  <jh@suse.cz>
6542
6543         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
6544         * cgrpahunit.c (cgraph_finalize_function): Do not set
6545         finalized_by_frontend.
6546         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6547         finalized_by_frontend.
6548
6549 2011-04-17  Jan Hubicka  <jh@suse.cz>
6550
6551         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
6552         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
6553         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
6554         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
6555         method.
6556         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
6557         gimple-fold.c
6558         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
6559
6560 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
6561
6562         PR lto/48538
6563         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
6564         is non-null before accessing it.
6565         (input_cgraph): Remove trailing spaces.
6566
6567 2011-04-17  Revital Eres  <revital.eres@linaro.org>
6568
6569         * params.def (sms-min-sc): New param flag.
6570         * modulo-sched.c (sms_schedule): Use it.
6571         * doc/invoke.texi (sms-min-sc): Document it.
6572
6573 2011-04-17  Jan Hubicka  <jh@suse.cz>
6574
6575         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
6576         present, also set gimple_call_set_cannot_inline.
6577         * ipa-inline.c: Update toplevel comment.
6578         (MAX_TIME): Remove.
6579         (cgraph_clone_inlined_nodes): Fix linebreaks.
6580         (cgraph_check_inline_limits): Restructure to ...
6581         (caller_growth_limits): ... this one; be more tolerant
6582         on growth in nested inline chains; add explanatory comment;
6583         fix stack accounting thinko introduced by previous patch.
6584         (cgraph_default_inline_p): Remove.
6585         (report_inline_failed_reason): New function.
6586         (can_inline_edge_p): New function.
6587         (can_early_inline_edge_p): New function.
6588         (leaf_node_p): Move upwards in file.
6589         (want_early_inline_function_p): New function.
6590         (want_inline_small_function_p): New function.
6591         (want_inline_self_recursive_call_p): New function.
6592         (cgraph_edge_badness): Rename to ...
6593         (edge_badness) ... this one; fix linebreaks.
6594         (update_edge_key): Update call of edge_baddness; add
6595         detailed dump about queue updates.
6596         (update_caller_keys): Use can_inline_edge_p and
6597         want_inline_small_function_p.
6598         (cgraph_decide_recursive_inlining): Rename to...
6599         (recursive_inlining): Use can_inline_edge_p and
6600         want_inline_self_recursive_call_p; simplify and remove no longer
6601         valid FIXME.
6602         (cgraph_set_inline_failed): Remove.
6603         (add_new_edges_to_heap): Use can_inline_edge_p and
6604         want_inline_small_function_p.
6605         (cgraph_decide_inlining_of_small_functions): Rename to ...
6606         (inline_small_functions): ... this one; cleanup; use
6607         can/want predicates; cleanup debug ouput; work edges till fibheap
6608         is exhausted and do not stop once unit growth is reached; remove
6609         later loop processing remaining edges.
6610         (cgraph_flatten): Rename to ...
6611         (flatten_function): ... this one; use can_inline_edge_p
6612         and can_early_inline_edge_p predicates.
6613         (cgraph_decide_inlining): Rename to ...
6614         (ipa_inline): ... this one; remove unreachable nodes before
6615         inlining functions called once; simplify the pass.
6616         (cgraph_perform_always_inlining): Rename to ...
6617         (inline_always_inline_functions): ... this one; use
6618         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
6619         (cgraph_decide_inlining_incrementally): Rename to ...
6620         (early_inline_small_functions): ... this one; simplify
6621         using new predicates; cleanup; make dumps prettier.
6622         (cgraph_early_inlining): Rename to ...
6623         (early_inliner): newer inline regular functions into always-inlines;
6624         fix updating of call stmt summaries.
6625         (pass_early_inline): Update for new names.
6626         (inline_transform): Fix formating.
6627         (gate_cgraph_decide_inlining): Rename to ...
6628         (pass_ipa_inline): ... this one.
6629         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
6630         * ipa-inline-analysis.c (dump_inline_summary): Update.
6631         (compute_inline_parameters): Do not compute disregard_inline_limits;
6632         look for mismatching arguments.
6633         (estimate_growth): Fix handlig of non-trivial self recursion.
6634         (inline_read_summary): Do not read info->disregard_inline_limits.
6635         (inline_write_summary): Do not write info->disregard_inline_limits.
6636         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
6637         and move all checks into can_inline_edge_p predicate; re-enable code
6638         comparing optimization levels.
6639         (expand_call_inline): Do not test inline_forbidden_into_p.
6640         * Makefile.in (ipa-inline.o): Update arguments.
6641
6642 2011-04-17  Revital Eres  <revital.eres@linaro.org>
6643
6644         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
6645
6646 2011-04-17  Revital Eres  <revital.eres@linaro.org>
6647
6648         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
6649
6650 2011-04-17  Michael Matz  <matz@suse.de>
6651
6652         PR tree-optimization/48622
6653         PR lto/48645
6654         * ipa-inline-analysis.c (inline_read_summary): Read size/time
6655         in same order as they're written.
6656
6657 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6658
6659         * config/pa/predicates.md: Reorganize and simplify predicates.
6660         Eliminate duplicate code checks.
6661         (arith_operand): Rename to arith14_operand
6662         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
6663         * config/pa/pa.md: Use renamed operands.
6664         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
6665         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
6666         arith11_operand, adddi3_operand, indexed_memory_operand,
6667         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
6668         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
6669         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
6670         move_dest_operand, move_src_operand, prefetch_cc_operand,
6671         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
6672         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
6673         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
6674         div_operand, int5_operand, movb_comparison_operator,
6675         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
6676         arith_double_operand, ireg_operand, lhs_lshift_operand,
6677         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
6678         integer_store_memory_operand): Likewise.
6679         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
6680         (integer_store_memory_operand, read_only_operand,
6681         function_label_operand, borx_reg_operand,
6682         non_hard_reg_operand): Likewise.
6683         (eq_neq_comparison_operator): Delete unused operator.
6684         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
6685         function_label_operand.
6686         (emit_move_sequence): Likewise.
6687
6688 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
6689
6690         * config/i386/sse.md (sseunpackmode): New mode attribute.
6691         (ssepackmode): Ditto.
6692         (vec_pack_trunc_<mode>): Macroize expander from
6693         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
6694         (vec_unpacks_lo_<mode>): Macroize expander from
6695         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6696         (vec_unpacks_hi_<mode>): Macroize expander from
6697         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6698         (vec_unpacku_lo_<mode>): Macroize expander from
6699         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6700         (vec_unpacku_hi_<mode>): Macroize expander from
6701         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
6702         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
6703         ix86_expand_sse4_unpack.
6704         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
6705
6706 2011-04-16  Jan Hubicka  <jh@suse.cz>
6707
6708         * cgraphbuild.c: Include ipa-inline.h.
6709         (reset_inline_failed): Use initialize_inline_failed.
6710         * cgraph.c: Include ipa-inline.h.
6711         (cgraph_create_node_1): Do not initialize estimated_growth.
6712         (initialize_inline_failed): More to ipa-inline-analysis.c
6713         (dump_cgraph_node): Do not dump inline flags.
6714         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
6715         and disregard_inline_limits flags.
6716         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
6717         time, size, estimated_growth.
6718         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
6719         Update.
6720         * cgraphunit.c (cgraph_decide_is_function_needed): Use
6721         DECL_DISREGARD_INLINE_LIMITS.
6722         (cgraph_analyze_function): Do not initialize
6723         node->local.disregard_inline_limits.
6724         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
6725         inlinable, versionable and disregard_inline_limits.
6726         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
6727         cgraph_check_inline_limits, cgraph_default_inline_p,
6728         cgraph_edge_badness, update_caller_keys, update_callee_keys,
6729         add_new_edges_to_heap): Update.
6730         (cgraph_decide_inlining_of_small_function): Update; set
6731         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
6732         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
6733         cgraph_decide_inlining_incrementally): Update.
6734         * ipa-inline.h (inline_summary): Add inlinable, versionable,
6735         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
6736         time, size and estimated_growth parameters.
6737         (estimate_edge_growth): Update.
6738         (initialize_inline_failed): Declare.
6739         * ipa-split.c: Include ipa-inline.h
6740         (execute_split_functions): Update.
6741         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
6742         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
6743         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
6744         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
6745         estimated_growth to INT_MIN.
6746         (inline_node_duplication_hook): Likewise.
6747         (dump_inline_summary): Dump new fields.
6748         (compute_inline_parameters): Update.
6749         (estimate_edge_time, estimate_time_after_inlining,
6750         estimate_size_after_inlining, estimate_growth, inline_read_summary,
6751         inline_write_summary):
6752         (initialize_inline_failed): Move here from cgraph.c.
6753         * tree-sra.c: Include ipa-inline.h.
6754         (ipa_sra_preliminary_function_checks): Update.
6755         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
6756         ipa-inline.h.
6757
6758 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
6759
6760         * config/i386/sse.md (V16): New mode iterator.
6761         (VI1, VI8): Ditto.
6762         (AVXMODEQI, AVXMODEDI): Remove.
6763         (sse2, sse3): New mode attribute.
6764         (mov<mode>): Use V16 mode iterator.
6765         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
6766         (push<mode>1): Use V16 mode iterator.
6767         (movmisalign<mode>): Ditto.
6768         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6769         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
6770         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
6771         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
6772         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
6773         avx_movdqu<avxmodesuffix>.
6774         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
6775         *avx_movdqu<avxmodesuffix>.
6776         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
6777         avx_lddqu<avxmodesuffix>.
6778         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
6779         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
6780         avx_movnt<AVXMODEDI:mode>.
6781         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
6782         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
6783
6784 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
6785
6786         PR target/48629
6787         * haifa-sched.c (prune_ready_list, schedule_block): Use
6788         sched_pressure_p rather than flag_sched_pressure.
6789
6790 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
6791
6792         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
6793         cgraph_get_node instead of cgraph_get_create_node.
6794
6795 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
6796
6797         * cfgexpand.c (expand_debug_expr): Use
6798         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
6799
6800 2011-04-15  Michael Matz  <matz@suse.de>
6801
6802         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
6803         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
6804         * function.c (gimplify_parameters): Ditto.
6805         * gimplify.c (gimplify_vla_decl): Ditto.
6806
6807         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
6808         (gimple_call_set_alloca_for_var): New inline function.
6809         (gimple_call_alloca_for_var_p): Ditto.
6810         * gimple.c (gimple_build_call_from_tree): Remember
6811         CALL_ALLOCA_FOR_VAR_P state.
6812         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
6813
6814         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
6815         calls if they were for VLA objects.
6816
6817 2011-04-15  Martin Jambor  <mjambor@suse.cz>
6818
6819         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
6820         of ADR_EXPRs.
6821
6822 2011-04-15  Martin Jambor  <mjambor@suse.cz>
6823
6824         PR middle-end/48601
6825         * tree-emutls.c (lower_emutls_function_body): Call
6826         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
6827         result is non-NULL.
6828
6829 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
6830
6831         * c-decl.c (detect_field_duplicates): Call
6832         objc_detect_field_duplicates instead of objc_get_interface_ivars.
6833
6834 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
6835
6836         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
6837         * gimple.c (gimple_asm_clobbers_memory_p): Define.
6838         * ipa-pure-const.c (check_stmt): Call it.
6839         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
6840
6841 2011-04-15  Richard Guenther  <rguenther@suse.de>
6842
6843         PR tree-optimization/48290
6844         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
6845         Properly decide inhibiting propagation based on the valueized
6846         operand.  Do loop-closed SSA form preserving here ...
6847         (init_copy_prop): ... not here.
6848
6849 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
6850
6851         PR target/48612
6852         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
6853         (*ieee_smax<mode>3): Likewise.
6854
6855 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6856
6857         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
6858         Replace match_operand with match_dup for the third operand in
6859         these expanders.
6860
6861 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
6862
6863         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
6864         to track processing of conditionals.  Update all callers.
6865         (try_combine, simplify_if_then_else): Update.
6866
6867 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
6868
6869         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
6870         -fsched-pressure.
6871
6872 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
6873
6874         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
6875         instead of match_operand for operand 3.
6876
6877 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
6878
6879         * recog.h (insn_operand_data): Add an "allows_mem" field.
6880         * genoutput.c (output_operand_data): Initialize it.
6881         * optabs.c (maybe_legitimize_operand_same_code): New function.
6882         (maybe_legitimize_operand): Use it when matching the original
6883         op->value.
6884
6885 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6886
6887         * gimplify.c: Fix issues in comments throughout.
6888         (voidify_wrapper_expr): Fix long line.
6889         (build_stack_save_restore): Likewise.
6890         (gimplify_loop_expr): Likewise.
6891         (gimplify_compound_lval): Likewise.
6892         (gimplify_init_ctor_eval): Likewise.
6893         (gimplify_modify_expr_rhs): Likewise.
6894         (omp_notice_threadprivate_variable): Likewise.
6895
6896 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
6897
6898         * cfgexpand.c (expand_call_stmt): Convert the function type to the
6899         original one if this is not a builtin function.
6900
6901 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
6902
6903         PR target/48605
6904         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
6905         offset it as needed based on top 2 bits in operands[3], change
6906         MEM mode to SFmode and mask those 2 bits away from operands[3].
6907
6908 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
6909
6910         * c-parser.c (c_parser_objc_protocol_definition): Updated for
6911         change from objc_declare_protocols() to objc_declare_protocol().
6912
6913 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
6914
6915         * config/i386/sse.md (sse4_1): New mode attribute.
6916         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
6917         avx_blend<ssemodesuffix><avxmodesuffix> and
6918         sse4_1_blend<ssemodesuffix> using VF mode iterator.
6919         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
6920         avx_blendv<ssemodesuffix><avxmodesuffix> and
6921         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
6922         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
6923         avx_dp<ssemodesuffix><avxmodesuffix> and
6924         sse4_1_dp<ssemodesuffix> using VF mode iterator.
6925         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
6926         (sse4_1_packusdw): Merge with *avx_packusdw.
6927         (sse4_1_pblendvb): Merge with *avx_pblendvb.
6928         (sse4_1_pblendw): Merge with *avx_pblendw.
6929         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
6930         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
6931         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
6932         VF mode iterator.
6933         (sse4_1_round<ssescalarmodesuffix>): Merge with
6934         *avx_round<ssescalarmodesuffix>.
6935         (aesenc): Merge with *avx_aesenc.
6936         (aesenclast): Merge with *avx_aesenclast.
6937         (aesdec): Merge with *avx_aesdec.
6938         (aesdeclast): Merge with *avx_aesdeclast.
6939         (pclmulqdq): Merge with *pclmulqdq.
6940         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
6941         New predicate.
6942         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
6943
6944 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
6945
6946         PR middle-end/48608
6947         * cfgexpand.c (get_decl_align_unit): Renamed to ...
6948         (align_local_variable): This.  Update DECL_ALIGN.
6949         (add_stack_var): Updated.
6950         (expand_one_stack_var): Likewise.
6951
6952 2011-04-14  Richard Guenther  <rguenther@suse.de>
6953
6954         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
6955         Remove.
6956         (dse_initialize_block_local_data, dse_leave_block,
6957         record_voperand_set, get_stmt_uid): Likewise.
6958         (dse_possible_dead_store_p): Allow any kind of killing stmt.
6959         (dse_optimize_stmt): Remove voperand set handling code.
6960         Simplify and improve to handle any kind of killing stmt.
6961         (dse_record_phi): Remove.
6962         (dse_enter_block): Simplify.
6963         (tree_ssa_dse): Likewise.
6964         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
6965
6966 2011-04-14  Jan Hubicka  <jh@suse.cz>
6967
6968         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
6969         * cgraph.h (struct inline_summary): Move to ipa-inline.h
6970         (cgraph_local_info): Remove inline_summary.
6971         * ipa-cp.c: Include ipa-inline.h.
6972         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
6973         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
6974         accesor.
6975         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
6976         (input_overwrite_node): Do not set inline summary.
6977         (input_node): Do not stream inline summary.
6978         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
6979         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
6980         growth; we do not have inline parameters computed for that anyway.
6981         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
6982         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
6983         (inline_summary_t): New type and VECtor.
6984         (debug_inline_summary, dump_inline_summaries): Declare.
6985         (inline_summary): Use VOCtor.
6986         (estimate_edge_growth): Kill hack computing call stmt size directly.
6987         * lto-section-in.c (lto_section_name): Add inline section.
6988         * ipa-inline-analysis.c: Include lto-streamer.h
6989         (node_removal_hook_holder, node_duplication_hook_holder): New holders
6990         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
6991         (inline_summary_vec): Define.
6992         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
6993         dump_inline_summaries): New functions.
6994         (estimate_function_body_sizes): Properly compute size/time of outgoing
6995         calls.
6996         (compute_inline_parameters): Alloc inline_summary; do not compute
6997         size/time of incomming calls.
6998         (estimate_edge_time): Avoid missing time summary hack.
6999         (inline_read_summary): Read inline summary info.
7000         (inline_write_summary): Write inline summary info.
7001         (inline_free_summary): Free all hooks and inline summary vector.
7002         * lto-streamer.h: Add LTO_section_inline_summary section.
7003         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
7004         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
7005
7006 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
7007
7008         * tree-vectorizer.h (vect_strided_store_supported): Add a
7009         HOST_WIDE_INT argument.
7010         (vect_strided_load_supported): Likewise.
7011         (vect_permute_store_chain): Return void.
7012         (vect_transform_strided_load): Likewise.
7013         (vect_permute_load_chain): Delete.
7014         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
7015         count argument.  Check that the count is a power of two.
7016         (vect_strided_load_supported): Likewise.
7017         (vect_permute_store_chain): Return void.  Update after above changes.
7018         Assert that the access is supported.
7019         (vect_permute_load_chain): Likewise.
7020         (vect_transform_strided_load): Return void.
7021         * tree-vect-stmts.c (vectorizable_store): Update calls after
7022         above interface changes.
7023         (vectorizable_load): Likewise.
7024         (vect_analyze_stmt): Don't check for strided powers of two here.
7025
7026 2011-04-14  Richard Guenther  <rguenther@suse.de>
7027
7028         PR tree-optimization/48590
7029         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
7030         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7031         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
7032         BUILT_IN_STACK_SAVE.
7033         * tree-ssa-dce.c (propagate_necessity): Handle
7034         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
7035
7036 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
7037
7038         * c-parser.c (c_parser_objc_class_declaration): Updated call to
7039         objc_declare_class.
7040
7041 2011-04-14  Richard Guenther  <rguenther@suse.de>
7042
7043         * tree.h (get_object_alignment_1): Declare.
7044         * builtins.c (get_object_alignment_1): Split out worker from ...
7045         (get_object_alignment): ... here.
7046         * fold-const.c (get_pointer_modulus_and_residue): Use
7047         get_object_alignment_1.
7048
7049 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
7050
7051         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
7052         type parameter.
7053         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
7054         parameter.  Generalise code to handle arrays as well as vectors.
7055         (vect_setup_realignment): Update accordingly.
7056         * tree-vect-stmts.c (vectorizable_store): Likewise.
7057         (vectorizable_load): Likewise.
7058
7059 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
7060
7061         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
7062         within the per-copy loop.
7063
7064 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
7065
7066         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
7067         in the dump file.
7068
7069 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
7070
7071         * doc/options.texi (Negative): Explicitly mention that the
7072         Negative chain must be circular.
7073
7074 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
7075
7076         * function.h (block_chainon): Declare.
7077         * function.c (block_chainon): Define.
7078
7079 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
7080             Eric Weddington  <eric.weddington@atmel.com>
7081             Georg-Johann Lay  <avr@gjlay.de>
7082
7083         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
7084         New Includes
7085         (avr_init_builtins, avr_expand_builtin,
7086         avr_expand_delay_cycles, avr_expand_unop_builtin,
7087         avr_expand_binop_builtin ): New functions.
7088         (avr_builtin_id): New enum
7089         (struct avr_builtin_description): New struct
7090         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
7091         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
7092
7093         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
7094         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
7095         UNSPECV_DELAY_CYCLES): new enumeration values
7096         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
7097         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
7098         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
7099         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
7100         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
7101         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
7102         "fmulsu"): New insns
7103
7104         * config/avr/avr-c.c: fix line endings
7105         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
7106         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
7107         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
7108         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
7109         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
7110
7111         * doc/extend.texi (AVR Built-in Functions): New node
7112         (Target Builtins): Add documentation of AVR
7113         built-in functions.
7114
7115 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
7116
7117         PR target/44643
7118         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
7119         alone. Error if non-const data has attribute progmem.
7120
7121 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
7122
7123         * tree.h (struct tree_constructor): Include tree_typed instead of
7124         tree_common.
7125         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
7126         TS_TYPED instead of TS_COMMON.
7127
7128 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
7129
7130         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
7131         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
7132         (sse2_psadbw): Merge with *avx_psadbw.
7133         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
7134         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
7135         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
7136         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
7137         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
7138         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
7139         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
7140         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
7141         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
7142         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
7143         (ssse3_palignrti): Merge with *avx_palignrti.
7144
7145 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
7146
7147         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
7148         * tree-ssanames.c (fini_ssanames): VEC_free it.
7149         (make_ssa_name_fn): Update for VECness of free_ssanames.
7150         (release_ssa_name, release_dead_ssa_names): Likewise.
7151         * tree.h (struct tree_ssa_name): Include tree_typed instead of
7152         tree_common.
7153         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
7154         TS_TYPED instead of TS_COMMON.
7155
7156 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
7157
7158         * postreload-gcse.c (gcse_after_reload_main): Add calls to
7159         statistics_counter_event.
7160         * tree-ssa-copyrename.c (stats): Define.
7161         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
7162         statistics_counter_event.
7163         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
7164         (bswap_stats, widen_mul_stats): Define.
7165         (insert_reciprocals): Increment rdivs_inserted.
7166         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
7167         rfuncs_inserted.  Add calls to statistics_counter_event.
7168         (execute_cse_sincos_1): Increment inserted.
7169         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
7170         statistics_counter_event.
7171         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
7172         of bswap_stats.  Add calls to statistics_counter_event.
7173         (convert_mult_to_widen): Increment widen_mults_inserted.
7174         (convert_plusminus_to_widen): Increment maccs_inserted.
7175         (convert_mult_to_fma): Increment fmas_inserted.
7176         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
7177         calls to statistics_counter_event.
7178
7179 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
7180
7181         PR rtl-optimization/48455
7182         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
7183         `temp_costs->mem_cost'.
7184
7185 2011-04-13  Jan Hubicka  <jh@suse.cz>
7186
7187         * ipa-inline.h: New file.
7188         * ipa-inline-analysis.c: New file. Broken out of ...
7189         * ipa-inline.c: ... this file; update toplevel comment;
7190         include ipa-inline.h
7191         (inline_summary): Move to ipa-inline.h
7192         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
7193         ipa-inline-analysis.c.
7194         (cgraph_estimate_time_after_inlining): Rename to
7195         estiamte_time_after_inlining; move to ipa-inline-analysis.c
7196         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
7197         to estimate_edge_growth.
7198         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
7199         rename to estimate_size_after_inlining.
7200         (cgraph_mark_inline_edge): Update for new naming convention.
7201         (cgraph_check_inline_limits): Likewise.
7202         (cgraph_edge_badness): Likewise.
7203         (cgraph_decide_recursive_inlining): Likewise.
7204         (cgraph_decide_inlining_of_small_functions): Likewise.
7205         (cgraph_decide_inlining_incrementally): Likewise.
7206         (cgraph_estimate_growth): Rename to estimate_growth; move to
7207         ipa-inline-analysis.c.
7208         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
7209         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
7210         (compute_inline_parameters): Likewise.
7211         (compute_inline_parameters_for_current): Likewise.
7212         (pass_inline_parameters): Likewise.
7213         (inline_indirect_intraprocedural_analysis): Likewise.
7214         (analyze_function): Rename to inline_analyze_function; likewise.
7215         (add_new_function): Move to ipa-inline-analysis.c.
7216         (inline_generate_summary): Likewise.
7217         (inline_read_summary): Likewise.
7218         (inline_write_summary): Likewise.
7219         * Makefile.in (ipa-inline-analysis.c): New file.
7220
7221 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7222
7223         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
7224         * configure: Regenerate.
7225
7226 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
7227
7228         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
7229         instead of tree_common.
7230         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
7231         Likewise.
7232         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
7233         TS_TYPED rather than TS_COMMON.
7234         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
7235
7236 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
7237
7238         PR target/45263
7239         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
7240         r20 around calls of __tablejump_elpm__
7241
7242 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
7243
7244         PR middle-end/48591
7245         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
7246         NULL.
7247         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
7248
7249 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
7250
7251         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
7252         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
7253         (cfi_vec): New typedef.
7254         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
7255         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
7256         (cie_cfi_vec): New static variable.
7257         (cie_cfi_head): Delete.
7258         (add_cfi): Accept a cfi_vec * as first argument. All callers and
7259         declaration changed. Use vector rather than list operations.
7260         (new_cfi): Don't initialize the dw_cfi_next field.
7261         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
7262         rather than list operations.
7263         (lookup_cfa): Use vector rather than list operations.
7264         (output_cfis): New argument upto. Accept a cfi_vec rather than
7265         a dw_cfi_ref list head as argument. All callers changed.
7266         Iterate over the vector using upto as a maximum index.
7267         (output_all_cfis): New static function.
7268         (output_fde): Use vector rather than list operations. Use the
7269         new upto argument for output_cfis rather than manipulating a
7270         list.
7271         (dwarf2out_begin_prologue): Change initializations to match
7272         new struct members.
7273         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
7274         from the vector length rather than searching for the end of a list.
7275         Use output_all_cfis.
7276         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
7277
7278 2011-04-13  Nick Clifton  <nickc@redhat.com>
7279
7280         * config/rx/rx.md (movmemsi): Do not use this pattern when
7281         volatile pointers are involved.
7282
7283 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
7284
7285         * config/i386/sse.md (pinsrbits): Remove.
7286         (sse2_packsswb): Merge with *avx_packsswb.
7287         (sse2_packssdw): Merge with *avx_packssdw.
7288         (sse2_packuswb): Merge with *avx_packuswb.
7289         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
7290         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
7291         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
7292         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
7293         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
7294         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
7295         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
7296         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
7297         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
7298         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
7299         (sse2_loadld): Merge with *avx_loadld.
7300         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
7301         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
7302         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
7303         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
7304         (vec_concatv2di): Merge with *vec_concatv2di_avx.
7305
7306 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
7307
7308         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
7309         calling TREE_CHAIN.
7310         * print-tree.c (print_node): Likewise.
7311         * tree-inline.c (copy_tree_r): Likewise.
7312         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
7313         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
7314         instead of TS_COMMON.
7315         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
7316         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
7317         (copy_node_stat): Zero TREE_CHAIN only if necessary.
7318         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
7319         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
7320         ...and these...
7321         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
7322         * tree.h: ...here.
7323         (TREE_CHAIN): Check for a TS_COMMON structure.
7324         (TREE_TYPE): Check for a TS_TYPED structure.
7325
7326 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
7327
7328         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
7329         cgraph_get_create_node instead of cgraph_node.
7330
7331 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
7332
7333         * c-parser.c (c_parser_initelt): Updated call to
7334         objc_build_message_expr.
7335         (c_parser_postfix_expression): Likewise.
7336
7337 2011-04-12  Kai Tietz  <ktietz@redhat.com>
7338
7339         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
7340         MASK_MS_BITFIELD_LAYOUT bit.
7341
7342 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
7343
7344         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
7345         assert it is always true.
7346         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
7347         moves.
7348
7349 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
7350
7351         * c-parser.c (c_lex_one_token): Rewritten conditional used when
7352         compiling Objective-C to be more efficient.
7353
7354 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
7355
7356         * opts-common.c (decode_cmdline_options_to_array): Remove variable
7357         argv_copied.
7358
7359 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
7360
7361         * recog.h, genoutput.c, optabs.c: Revert last patch.
7362
7363 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7364
7365         PR target/48090
7366         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
7367
7368 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
7369
7370         * recog.h (insn_operand_data): Add an "allows_mem" field.
7371         * genoutput.c (output_operand_data): Initialize it.
7372         * optabs.c (maybe_legitimize_operand_same_code): New function.
7373         (maybe_legitimize_operand): Use it when matching the original
7374         op->value.
7375
7376 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
7377
7378         * genpreds.c (process_define_predicate): Move most processing
7379         to gensupport.c.  Continue to validate the expression.
7380         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
7381         (process_define_predicate): Move processing to gensupport.c.
7382         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
7383         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
7384         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
7385         argument.
7386         (valid_predicate_name_p): New function, split out from old
7387         genpreds.c:process_define_predicate.
7388         (process_define_predicate): New function, combining code from
7389         old genpreds.c and genrecog.c functions.
7390         (process_rtx): Call it for DEFINE_PREDICATE and
7391         DEFINE_SPECIAL_PREDICATE.
7392
7393 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
7394
7395         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
7396         size of a '%A' memory reference.
7397         (T_DREG, T_QREG): New neon_builtin_type_bits.
7398         (arm_init_neon_builtins): Assert that the load and store operands
7399         are neon_struct_operands.
7400         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
7401         (NEON_ARG_MEMORY): New builtin_arg.
7402         (neon_dereference_pointer): New function.
7403         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
7404         Handle NEON_ARG_MEMORY.
7405         (arm_expand_neon_builtin): Update after above interface changes.
7406         Use NEON_ARG_MEMORY for loads and stores.
7407         * config/arm/predicates.md (neon_struct_operand): New predicate.
7408         * config/arm/iterators.md (V_two_elem): Tweak formatting.
7409         (V_three_elem): Use BLKmode for accesses that have no associated mode.
7410         (V_four_elem): Tweak formatting.
7411         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
7412         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
7413         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
7414         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
7415         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
7416         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
7417         (neon_vst4<mode>): Replace pointer operand with a memory operand.
7418         Use %A in the output template.
7419         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
7420         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
7421         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
7422         the width of the memory access.  Remove post-increment.
7423         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
7424
7425 2011-04-12  Nick Clifton  <nickc@redhat.com>
7426
7427         * config/v850/v850.c (expand_prologue): Do not use the CALLT
7428         instruction for interrupt handlers if the target is the basic V850
7429         architecture.
7430         (expand_epilogue): Likewise.
7431
7432 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
7433
7434         PR rtl-optimization/48549
7435         * combine.c (propagate_for_debug): Also stop after BB_END of
7436         this_basic_block.  Process LAST and just stop processing after it.
7437         (combine_instructions): If last_combined_insn has been deleted,
7438         set last_combined_insn to its PREV_INSN.
7439
7440 2011-04-12  Richard Guenther  <rguenther@suse.de>
7441
7442         PR tree-optimization/46076
7443         * gimple.h (struct gimple_statement_call): Add fntype field.
7444         (gimple_call_fntype): Adjust.
7445         (gimple_call_set_fntype): New function.
7446         * gimple.c (gimple_build_call_1): Set the call function type.
7447         * gimplify.c (gimplify_call_expr): Preserve the function
7448         type the frontend used for the call.
7449         (gimplify_modify_expr): Likewise.
7450         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
7451         function type.
7452         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
7453         function type.
7454         * tree-ssa.c (useless_type_conversion_p): Function pointer
7455         conversions are useless.
7456
7457 2011-04-12  Martin Jambor  <mjambor@suse.cz>
7458
7459         * cgraph.h (cgraph_node): Remove function declaration.
7460         (cgraph_create_node): Declare.
7461         (cgraph_get_create_node): Likewise.
7462         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
7463         Updated all callers.
7464         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
7465         the decl does not already exist.  Call cgraph_get_create_node instead
7466         of cgraph_node.
7467         (cgraph_get_create_node): New function.
7468         (cgraph_same_body_alias): Update comment.
7469         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
7470         assert it does not return NULL.
7471         (cgraph_update_edges_for_call_stmt): Likewise.
7472         (cgraph_clone_edge): Likewise.
7473         (cgraph_create_virtual_clone): Likewise.
7474         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
7475         instead of cgraph_node.
7476         (cgraph_add_new_function): Call cgraph_create_node or
7477         cgraph_get_create_node instead of cgraph_node.
7478         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
7479         instead of cgraph_node.
7480         (record_eh_tables): Likewise.
7481         (mark_address): Likewise.
7482         (mark_load): Likewise.
7483         (build_cgraph_edges): Call cgraph_get_create_node instead
7484         of cgraph_node.
7485         (rebuild_cgraph_edges): Likewise.
7486         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
7487         instead of cgraph_node.
7488         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
7489         cgraph_node.
7490         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
7491         cgraph_create_node instead of cgraph_node.
7492         * c-decl.c (finish_function): Call cgraph_get_create_node instead
7493         of cgraph_node.
7494         * lto-cgraph.c (input_node): Likewise.
7495         * lto-streamer-in.c (input_function): Likewise.
7496         * varasm.c (mark_decl_referenced): Likewise.
7497         (assemble_alias): Likewise.
7498
7499 2011-04-12  Martin Jambor  <mjambor@suse.cz>
7500
7501         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
7502         instead of cgraph_node and assert it does not return NULL.
7503         * lto-streamer-in.c (lto_read_body): Likewise.
7504         * omp-low.c (new_omp_context): Likewise.
7505         (create_task_copyfn): Likewise.
7506         * tree-emutls.c (lower_emutls_function_body): Likewise.
7507         * matrix-reorg.c (transform_allocation_sites): Likewise.
7508
7509 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
7510
7511         PR c/48552
7512         * c-typeck.c (build_asm_expr): Error out on attempts to use
7513         void type outputs or inputs for constraints that allow reg or
7514         don't allow memory.
7515
7516 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
7517             Richard Earnshaw  <rearnsha@arm.com>
7518
7519         PR target/48250
7520         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
7521         to use sign-magnitude offsets. Reject unsupported unaligned
7522         cases. Add detailed description in comments.
7523         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
7524         condition from TARGET_32BIT to TARGET_ARM.
7525
7526 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
7527
7528         * tree.h (struct typed_tree): New.
7529         (struct tree_common): Include it instead of tree_base.
7530         (TREE_TYPE): Update for new location of type field.
7531         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
7532         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
7533         (union tree_node): Add typed field.
7534         * treestruct.def (TS_TYPED): New.
7535         * lto-streamer.c (check_handled_ts_structures): Handle it.
7536         * tree.c (MARK_TS_TYPED): New macro.
7537         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
7538
7539 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
7540
7541         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
7542         (force_nonfallthru): Do not alter the loop nest if no basic block
7543         was created.
7544
7545 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
7546
7547         * config/i386/sse.md (VI): New mode iterator.
7548         (SSEMODEI): Remove.
7549         (AVX256MODEI): Ditto.
7550         (AVXMODEF4P): Ditto.
7551         (avxvecpsmode): Ditto.
7552         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
7553         (sse2_andnot<mode>3): New expander.
7554         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
7555         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
7556         (<any_logic:code><mode>3): Use VI mode iterator.
7557         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
7558         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
7559         (*andnottf3): Handle AVX three-operand constraints.
7560         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
7561
7562 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7563             Robert Millan  <rmh@gnu.org>
7564
7565         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
7566         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
7567         GNU_USER_DYNAMIC_LINKER64): Define.
7568         (REG_NAME): Don't undefine.
7569         (MD_UNWIND_SUPPORT): Undefine.
7570         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
7571         (REG_NAME): Don't undefine.
7572         (MD_UNWIND_SUPPORT): Undefine.
7573         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
7574
7575 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7576
7577         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
7578         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
7579
7580 2011-04-11  Xinliang David Li  <davidxl@google.com>
7581
7582         * value-profile.c (check_ic_target): New function.
7583         (gimple_ic_transform): Sanity check indirect call target.
7584         * gimple-low.c (gimple_check_call_args): Interface change.
7585         (gimple_check_call_matching_types): New function.
7586         * tree-inline.c (tree_can_inline_p): Call new function.
7587
7588 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
7589
7590         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
7591         tree-pretty-print.h & realmpfr.h.
7592
7593 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
7594
7595         PR middle-end/48464
7596         * ira.c (setup_pressure_classes): Fix typo in loop condition.
7597         (setup_allocno_and_important_classes): Ditto.
7598
7599 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7600
7601         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
7602         GNU_USER_DYNAMIC_LINKER.
7603         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
7604         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7605         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
7606         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7607         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7608         GNU_USER_TARGET_OS_CPP_BUILTINS.
7609         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
7610         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7611         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7612         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7613         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
7614         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7615         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7616         GNU_USER_TARGET_OS_CPP_BUILTINS.
7617         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7618         GNU_USER_DYNAMIC_LINKER.
7619         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7620         GNU_USER_TARGET_OS_CPP_BUILTINS.
7621         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
7622         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7623         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
7624         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7625         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
7626         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
7627         GNU_USER_DYNAMIC_LINKER64): Remove.
7628         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
7629         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7630         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7631         GNU_USER_DYNAMIC_LINKER.
7632         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7633         GNU_USER_TARGET_OS_CPP_BUILTINS.
7634         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7635         GNU_USER_TARGET_OS_CPP_BUILTINS.
7636         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
7637         to GNU_USER_TARGET_OS_CPP_BUILTINS.
7638         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
7639         GNU_USER_TARGET_OS_CPP_BUILTINS.
7640         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
7641         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
7642         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7643         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
7644         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7645         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7646         GNU_USER_DYNAMIC_LINKER.
7647         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
7648         GNU_USER_TARGET_OS_CPP_BUILTINS.
7649         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
7650         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7651         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7652         GNU_USER_DYNAMIC_LINKER.
7653         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7654         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7655         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
7656         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7657         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7658         GNU_USER_DYNAMIC_LINKER.
7659         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
7660         GNU_USER_DYNAMIC_LINKERN32.
7661         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
7662         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
7663         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
7664         GNU_USER_DYNAMIC_LINKER32.
7665         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
7666         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7667         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7668         GNU_USER_DYNAMIC_LINKER.
7669         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
7670         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7671         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
7672         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7673         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7674         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
7675         GNU_USER_DYNAMIC_LINKER32.
7676         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
7677         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
7678         GNU_USER_DYNAMIC_LINKER.
7679         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
7680         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7681         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7682         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
7683         GNU_USER_DYNAMIC_LINKER64.
7684         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
7685         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7686         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7687         GNU_USER_DYNAMIC_LINKER.
7688         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
7689         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7690         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
7691         GNU_USER_DYNAMIC_LINKER.
7692         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
7693         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7694         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
7695         GNU_USER_DYNAMIC_LINKER32.
7696         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7697         GNU_USER_DYNAMIC_LINKER64.
7698         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
7699         GNU_USER_DYNAMIC_LINKER64.
7700         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
7701         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7702         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
7703         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
7704         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
7705
7706 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7707
7708         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
7709         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
7710         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
7711         GNU_USER_DYNAMIC_LINKER.
7712         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7713         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
7714         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
7715         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
7716         GNU_USER_DYNAMIC_LINKER64.
7717         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
7718         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
7719         GNU_USER_LINK_EMULATION.
7720         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
7721         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
7722         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
7723         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
7724         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
7725         CPP_SPEC, CC1_SPEC): Remove.
7726         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
7727         (GNU_USER_DYNAMIC_LINKER): Define.
7728         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
7729         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
7730         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
7731         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
7732         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
7733         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
7734         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7735         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
7736         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
7737         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
7738         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
7739         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
7740         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
7741         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
7742         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
7743         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
7744         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7745         GNU_USER_DYNAMIC_LINKER.
7746         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7747         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
7748         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7749         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
7750         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
7751         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
7752         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
7753         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
7754         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
7755         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
7756
7757 2011-04-11  Kai Tietz  <ktietz@redhat.com>
7758
7759         PR target/9601
7760         PR target/11772
7761         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
7762         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
7763         comment.
7764         (ix86_is_msabi_thiscall): Removed.
7765         (ix86_is_type_thiscall): Likewise.
7766         (ix86_get_callcvt): New function.
7767         (ix86_comp_type_attributes): Simplify check.
7768         (ix86_function_regparm): Use ix86_get_callcvt for calling
7769         convention attribute checks.
7770         (ix86_return_pops_args): Likewise.
7771         (ix86_static_chain): Likewise.
7772         (x86_this_parameter): Likewise.
7773         (x86_output_mi_thunk): Likewise.
7774         (ix86_function_type_abi): Optimize check for types without attributes.
7775         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
7776         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
7777         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
7778         by flag-values.
7779         (IX86_BASE_CALLCVT): Helper macro.
7780         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
7781         Use ix86_get_callcvt for calling convention attribute checks and avoid
7782         symbol-decoration for stdcall in TARGET_RTD case.
7783         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
7784         Likewise.
7785         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
7786         for declaration.
7787
7788 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
7789
7790         * config/i386/sse.md (VI_128): New mode iterator.
7791         (VI12_128): Rename from SSEMODE12.
7792         (VI14_128): Rename from SSEMODE14.
7793         (VI124_128): New mode iterator.
7794         (VI24_128): Rename from SSEMODE248.
7795         (VI248_128): Rename from SSEMODE248.
7796         (SSEMODE124C8): Remove.
7797         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7798         (*sse2_<plusminus_insn><mode>3): Merge with
7799         *avx_<plusminus_insn><mode>3.
7800         (*mulv8hi3): Merge with *avx_mulv8hi3.
7801         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
7802         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
7803         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
7804         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
7805         (ashr<mode>3): Merge with *avx_ashr<mode>3.
7806         (lshr<mode>3): Merge with *avx_lshr<mode>3.
7807         (ashl<mode>3): Merge with *avx_ashl<mode>3.
7808         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
7809         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
7810         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7811         (*<smaxmin:code>v8hi3): Ditto.
7812         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
7813         (*<smaxmin:code>v16qi3): Ditto.
7814         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
7815         (*sse2_eq<mode>3): Ditto.
7816         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
7817         (*sse2_gt<mode>3): Ditto.
7818         (vcondv2di): Split out of vcond<mode>.
7819         (vconduv2di): Split out of vcondu<mode>.
7820
7821 2011-04-11  Richard Guenther  <rguenther@suse.de>
7822
7823         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
7824         before calling tree_low_cst.
7825
7826 2011-04-11  Richard Guenther  <rguenther@suse.de>
7827
7828         * stor-layout.c (layout_type): Compute all array index size operations
7829         in the original type.
7830         (initialize_sizetypes): Add comment.
7831         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
7832
7833 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
7834
7835         * common.opt (Tbss=, Tdata=, Ttext=): New options.
7836
7837 2011-04-11  Martin Jambor  <mjambor@suse.cz>
7838
7839         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
7840         of cgraph_node, handle NULL return value.
7841         (cgraph_global_info): Likewise.
7842         (cgraph_rtl_info): Likewise.
7843         * tree-inline.c (estimate_num_insns): Likewise.
7844         * gimplify.c (unshare_body): Likewise.
7845         (unvisit_body): Likewise.
7846         (gimplify_body): Likewise.
7847         * predict.c (optimize_function_for_size_p): Likewise.
7848         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
7849         (call_may_clobber_ref_p_1): Likewise.
7850         * varasm.c (function_section_1): Likewise.
7851         (assemble_start_function): Likewise.
7852
7853 2011-04-11  Martin Jambor  <mjambor@suse.cz>
7854
7855         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
7856         of cgraph_node.
7857         * final.c (rest_of_clean_state): Likewise.
7858         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
7859         * passes.c (pass_init_dump_file): Likewise.
7860         (execute_all_ipa_transforms): Likewise.
7861         (function_called_by_processed_nodes_p): Likewise.
7862         * predict.c (maybe_hot_frequency_p): Likewise.
7863         (probably_never_executed_bb_p): Likewise.
7864         (compute_function_frequency): Likewise.
7865         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
7866         (unnest_nesting_tree_1): Likewise.
7867         (lower_nested_functions): Likewise.
7868         * tree-optimize.c (execute_fixup_cfg): Likewise.
7869         (tree_rest_of_compilation): Likewise.
7870         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
7871         * tree-sra.c (ipa_early_sra): Likewise.
7872         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
7873         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
7874         * ipa.c (record_cdtor_fn): Likewise.
7875         * ipa-inline.c (cgraph_early_inlining): Likewise.
7876         (compute_inline_parameters_for_current): Likewise.
7877         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
7878         * ipa-pure-const.c (local_pure_const): Likewise.
7879         * ipa-split.c (split_function): Likewise.
7880         (execute_split_functions): Likewise.
7881         * cgraphbuild.c (build_cgraph_edges): Likewise.
7882         (rebuild_cgraph_edges): Likewise.
7883         (cgraph_rebuild_references): Likewise.
7884         (remove_cgraph_callee_edges): Likewise.
7885         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
7886         (verify_cgraph_node): Likewise.
7887         (cgraph_analyze_functions): Likewise.
7888         (cgraph_preserve_function_body_p): Likewise.
7889         (save_inline_function_body): Likewise.
7890         (save_inline_function_body): Likewise.
7891         * tree-inline.c (copy_bb): Likewise.
7892         (optimize_inline_calls): Likewise.
7893
7894 2011-04-11  Martin Jambor  <mjambor@suse.cz>
7895
7896         PR tree-optimization/48195
7897         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
7898         ipa_check_create_edge_args.
7899         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
7900         ipa_check_create_edge_args.
7901         * ipa-inline.c (inline_generate_summary): Do not call
7902         ipa_check_create_node_params and ipa_check_create_edge_args.
7903         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
7904         ipa_check_create_edge_args.
7905
7906 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
7907
7908         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
7909         instead of loop.
7910         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
7911         * function.c (record_hard_reg_sets): Likewise.
7912         * ira.c (compute_regs_asm_clobbered): Likewise.
7913         * sched-deps.c (sched_analyze_1): Likewise.
7914         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
7915
7916 2011-04-09  Xinliang David Li  <davidxl@google.com>
7917
7918         PR tree-optimization/PR48484
7919         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
7920         has_valid_pred lazily
7921
7922 2011-04-09  Duncan Sands  <baldrick@free.fr>
7923
7924         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
7925
7926 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
7927
7928         * combine.c (combine_validate_cost): Adjust comments.  Set registered
7929         cost of I0 to zero at the end, if any.
7930
7931 2011-04-08  Xinliang David Li  <davidxl@google.com>
7932
7933         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
7934         to insane profile data.
7935
7936 2011-04-08  Xinliang David Li  <davidxl@google.com>
7937
7938         * ipa-cp.c (ipcp_update_profiling): Correct
7939          negative scale factor due to insane profile data.
7940
7941 2011-04-08  Xinliang David Li  <davidxl@google.com>
7942
7943         * final.c (dump_basic_block_info): New function.
7944         (final): Dump basic block.
7945         (final_scan_insn): Remove old dump.
7946
7947 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
7948
7949         PR target/47829
7950         * config.gcc (i386-*-freebsd): Disable unwind table generation for
7951         crtbegin/crtend.
7952
7953 2011-04-08  Michael Matz  <matz@suse.de>
7954
7955         PR middle-end/48389
7956         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
7957         functions.
7958         (rebuild_jump_labels): Call rebuild_jump_labels_1.
7959         * rtl.h (rebuild_jump_labels_chain): Declare.
7960         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
7961         insns inserted on edges.
7962
7963 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
7964
7965         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
7966         * config/arm/arm-arches.def: New.
7967         * config/arm/arm-opts.h: New.
7968         * config/arm/genopt.sh: New.
7969         * config/arm/arm-tables.opt: New (generated).
7970         * config/arm/arm.c (arm_handle_option, arm_target_help,
7971         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
7972         (all_architectures): Get most table contents from arm-arches.def.
7973         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
7974         arm_selected_tune here.
7975         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
7976         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
7977         (march=, mcpu=, mtune=): Use Enum and Var.
7978         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
7979         (arm.o): Update dependencies.
7980
7981 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
7982
7983         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
7984         of header_file.
7985         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
7986         (write_typed_alloc_defns): Likewise.
7987         (main): Calls write_typed_alloc_defns with output_header.
7988
7989 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
7990
7991         PR inline-asm/48435
7992         * ira-color.c (setup_profitable_hard_regs): Add comments.
7993         Don't take prohibited hard regs into account.
7994         (setup_conflict_profitable_regs): Rename to
7995         get_conflict_profitable_regs.
7996         (check_hard_reg_p): Check prohibited hard regs.
7997
7998 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
7999
8000         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
8001         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
8002         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
8003
8004 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8005
8006         PR target/48366
8007         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
8008         move from floating point to shift amount register.
8009         (emit_move_sequence): Remove secondary reload support for floating
8010         point to shift amount amount register copies.
8011         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
8012         amount register copies.
8013         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
8014         register, return false if mode isn't a scalar integer mode.
8015         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
8016
8017 2011-04-08  Richard Guenther  <rguenther@suse.de>
8018
8019         * gimple.c (gimple_call_flags): Remove kludge.
8020
8021 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
8022
8023         * sel-sched.c (sel_region_init): Move call to
8024         sel_setup_region_sched_flags after setup_current_loop_nest.
8025
8026 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
8027
8028         PR rtl-optimization/48272
8029         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
8030         init_insn_reg_pressure_info.  Adjust a caller.
8031         * sched-int.h (init_insn_reg_pressure_info): Declare.
8032         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
8033         when sched-pressure is enabled.
8034
8035 2011-04-08  Richard Guenther  <rguenther@suse.de>
8036
8037         * gimple.c (gimple_set_modified): Do not queue calls to
8038         MODIFIED_NORETURN_CALLS here ...
8039         * tree-ssa-operands.c (update_stmt_operands): ... but here.
8040
8041 2011-04-08  Richard Guenther  <rguenther@suse.de>
8042
8043         PR lto/48467
8044         * toplev.c (lang_dependent_init): Do not open asm_out_file
8045         in WPA mode, nor perform debug machinery initialization.
8046         (finalize): Do not unlink asm_out_file in WPA mode.
8047
8048 2011-04-08  Richard Guenther  <rguenther@suse.de>
8049
8050         * gimple.h (gimple_call_fntype): New function.
8051         (gimple_call_return_type): Use it.
8052         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
8053         * gimple-low.c (gimple_check_call_args): Likewise.
8054         * gimple.c (gimple_call_flags): Likewise.
8055         (gimple_call_arg_flags): Likewise.
8056         (gimple_call_return_flags): Likewise.
8057         * tree-cfg.c (verify_gimple_call): Likewise.
8058         (do_warn_unused_result): Likewise.
8059         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
8060         * value-prof.c (gimple_ic_transform): Fix fndecl check.
8061
8062 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
8063
8064         PR rtl-optimization/48235
8065         * sel-sched.c (code_motion_process_successors): Recompute the last
8066         insn in basic block if control flow changed.
8067         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
8068         Update condition for ilist_remove.
8069
8070 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
8071
8072         PR rtl-optimization/48302
8073         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
8074         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
8075         it to record added preheader blocks.
8076         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
8077         on to sel_add_loop_preheaders.
8078         (sel_region_init): Move call to setup_current_loop_nest after
8079         sel_init_bbs.
8080
8081 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
8082
8083         PR target/48273
8084         * cfgloop.h (loop_has_exit_edges): New helper.
8085         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
8086         non-clonable.
8087         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
8088         that have no exit edges.
8089
8090 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
8091
8092         PR rtl-optimization/48442
8093         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
8094         all callers.  Adjust assert.
8095
8096 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
8097
8098         PR tree-optimization/48377
8099         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
8100         is_packed to true even for types with smaller TYPE_ALIGN than
8101         TYPE_SIZE.
8102
8103 2011-04-08  Richard Guenther  <rguenther@suse.de>
8104
8105         PR bootstrap/48513
8106         * doc/tm.texi: Re-generate.
8107
8108 2011-04-08  Wei Guozhi  <carrot@google.com>
8109
8110         PR target/47855
8111         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
8112         * config/arm/arm.c (arm_attr_length_push_multi): New function.
8113         * config/arm/arm.md (*push_multi): Change the length computation to
8114         call a C function.
8115
8116 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
8117
8118         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
8119         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
8120         * doc/tm.texi: Regenerate.
8121         * system.h (ASM_OUTPUT_BSS): Poison.
8122         * varasm.c (asm_output_bss): Remove function.
8123         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
8124
8125         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
8126         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
8127         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
8128         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8129         Likewise.
8130         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8131         Likewise.
8132         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
8133         Likewise.
8134         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
8135
8136 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
8137
8138         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
8139         EnumValue lines.
8140
8141 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
8142
8143         * config/m68k/m68k.c (m68k_handle_option): Don't handle
8144         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
8145         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
8146         OPT_mcpu32.
8147         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8148         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
8149         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
8150         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
8151         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
8152         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
8153         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8154         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
8155         options.  Don't map other m68k options manually.  Don't handle
8156         old-style options as canonical.
8157         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
8158         * doc/install.texi (m68k-*-*): Document binutils version requirement.
8159
8160 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
8161
8162         * basic-block.h (force_nonfallthru): Move to...
8163         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
8164         (force_nonfallthru): ...here.
8165         * cfghooks.c (force_nonfallthru): New function.
8166         * cfgrtl.c (force_nonfallthru): Rename into...
8167         (rtl_force_nonfallthru): ...this.
8168         (commit_one_edge_insertion): Do not set AUX field.
8169         (commit_edge_insertions): Do not discover new basic blocks.
8170         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
8171         (cfg_layout_rtl_cfg_hooks): Likewise.
8172         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
8173         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
8174         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
8175
8176 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
8177
8178         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
8179         Remove macros.
8180
8181 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
8182
8183         * config/i386/sse.md: Update copyright year.
8184         (avxcvtvecmode): Remove.
8185         (sse_movhlps): Merge with *avx_movhlps.
8186         (sse_movlhps): Merge with *avx_movlhps.
8187         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
8188         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
8189         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
8190         (sse_loadhps): Merge with *avx_loadhps.
8191         (sse_storelps): Merge with *avx_storelps.
8192         (sse_loadlps): Merge with *avx_loadlps.
8193         (sse_movss): Merge with *avx_movss.
8194         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
8195         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
8196         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
8197         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
8198         (vec_set<mode>_0): Ditto.
8199         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
8200         (sse4_1_insertps): Merge with *avx_insertps.
8201         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
8202         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
8203         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
8204         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
8205         (sse2_storehpd): Merge with *avx_storehpd.
8206         (sse2_loadhpd): Merge with *avx_loadhpd.
8207         (sse2_loadlpd): Merge with *avx_loadlpd.
8208         (sse2_movsd): Merge with *avx_movsd.
8209         (*vec_concatv2df): Merge with *vec_concatv2df.
8210
8211 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
8212
8213         PR debug/48343
8214         * combine.c (combine_instructions): Add last_combined_insn,
8215         update it if insn is after it, pass it to all try_combine calls.
8216         (try_combine): Add last_combined_insn parameter, pass it instead of
8217         i3 to propagate_for_debug.
8218
8219 2011-04-07  Nick Clifton  <nickc@redhat.com>
8220
8221         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
8222         to handle MDR <-> data register transfers.
8223         (movhi_internal): Likewise.
8224
8225 2011-04-07  Alan Modra  <amodra@gmail.com>
8226
8227         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
8228         previous stack info.
8229
8230 2011-04-07  Tom de Vries  <tom@codesourcery.com>
8231
8232         PR target/43920
8233         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
8234         flow_find_cross_jump.  Swap variables to implement backward replacement.
8235         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
8236
8237 2011-04-07  Tom de Vries  <tom@codesourcery.com>
8238
8239         PR target/43920
8240         * cfgcleanup.c (walk_to_nondebug_insn): New function.
8241         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
8242         and bb2.
8243         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
8244         src1 or src2.  Redirect edges to the last basic block.  Update
8245         frequency and count on multiple basic blocks in case of fallthru.
8246
8247 2011-04-07  Tom de Vries  <tom@codesourcery.com>
8248
8249         PR target/43920
8250         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
8251         function.
8252         (old_insns_match_p): Change return type.  Replace return false/true
8253         with return dir_none/dir_both.  Use can_replace_by.
8254         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
8255         direction from dir_p.  Register replacement direction in dir, last_dir
8256         and afterlast_dir.  Handle new return type of old_insns_match_p using
8257         merge_dir.  Return replacement direction in dir_p.
8258         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
8259         return type of old_insns_match_p.
8260         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
8261         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
8262         flow_find_cross_jump.
8263         * basic-block.h (enum replace_direction): New type.
8264         (flow_find_cross_jump): Add parameter to declaration.
8265
8266 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
8267
8268         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
8269         (AVXMODEDCVTPS2DQ): Ditto.
8270         (VEC_FLOAT_MODE): Ditto.
8271         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
8272         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8273         (<any_logic:code><mode>3): Use VF mode iterator.
8274         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
8275         Use VF mode iterator.
8276         (copysign<mode>3): Use VF mode iterator.
8277         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
8278         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
8279         (*<any_logic:code><MODEF:mode>3): Merge with
8280         *avx_<any_logic:code><MODEF:mode>3.
8281         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
8282         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
8283         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
8284         (avx_cvtdq2ps<avxmodesuffix>): Remove.
8285         (sse2_cvtdq2ps): Use %v modifier.
8286         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
8287         (avx_cvtps2dq<avxmodesuffix>): Remove.
8288         (sse2_cvtps2dq): Use %v modifier.
8289         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
8290         (avx_cvttps2dq<avxmodesuffix>): Remove.
8291         (sse2_cvttps2dq): Use %v modifier.
8292         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
8293         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
8294         (sse2_cvtsd2siq): Fix insn template.
8295         (sse2_cvtsd2siq_2): Ditto.
8296         (sse2_cvttsd2siq): Ditto.
8297         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
8298         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
8299
8300 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
8301
8302         * gcov-io.c: Use GCC Runtime Library Exception.
8303
8304 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
8305
8306         PR debug/48466
8307         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
8308         as base_reg whatever register reg has been eliminated to, instead
8309         of hardcoding STACK_POINTER_REGNUM.
8310
8311 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
8312
8313         * doc/tm.texi.in: Document C target hooks as separate from general
8314         target hooks.
8315         * doc/tm.texi: Regenerate.
8316         * genhooks.c (struct hook_desc): Add docname field.
8317         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
8318         docname field.
8319         (hook_array): Include c-target.def.
8320         (emit_documentation): Use docname field in output.
8321         (emit_init_macros): Take docname argument.  Only emit definitions
8322         for hooks matching docname.
8323         (main): Expect additional arguments in all cases.  Pass argument
8324         to emit_init_macros.
8325         * target.def: Move initial macro definitions and comments to
8326         target-hooks-macros.h.
8327         (gcc_targetcm): Move to c-family/c-target.def.
8328         * target.h (targetcm): Move declaration to c-family/c-target.h.
8329         * targhooks.c (default_handle_c_option): Move to
8330         c-family/c-opts.c.
8331         * targhooks.h (default_handle_c_option): Move declaration to
8332         c-family/c-common.h.
8333         * target-hooks-macros.h: New file.
8334         * config.gcc (target_has_targetcm): Define and use to add to
8335         c_target_objs and cxx_target_objs.
8336         * config/default-c.c: New file.
8337         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
8338         of target.h and target-def.h.
8339         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
8340         (darwin_objc_construct_string, darwin_cfstring_ref_p,
8341         darwin_check_cfstring_format_arg): Make static.
8342         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8343         TARGET_STRING_OBJECT_REF_TYPE_P,
8344         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
8345         * config/darwin-protos.h (darwin_objc_construct_string,
8346         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
8347         declare.
8348         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
8349         TARGET_STRING_OBJECT_REF_TYPE_P,
8350         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
8351         * config/t-darwin (darwin-c.o): Update dependencies.
8352         * system.h (TARGET_HAS_TARGETCM): Poison.
8353         * Makefile.in (TARGET_H): Update.
8354         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
8355         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
8356         (default-c.o): New target.
8357         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
8358         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
8359         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
8360         c-target.def.
8361         (build/genhooks.o): Update dependencies.
8362
8363 2011-04-06  Richard Guenther  <rguenther@suse.de>
8364
8365         * ipa-inline.c (enum inlining_mode): Remove.
8366         (cgraph_flatten): Use some other token.
8367         (cgraph_edge_early_inlinable_p): New function, split out from ...
8368         (cgraph_perform_always_inlining): New function, split out from ...
8369         (cgraph_decide_inlining_incrementally): ... here.
8370         (cgraph_mark_inline_edge): Adjust.
8371         (cgraph_early_inlining): Re-structure.
8372         (pass_early_inline): Require SSA form.
8373
8374 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
8375             Julian Brown  <julian@codesourcery.com>
8376             Mark Shinwell  <shinwell@codesourcery.com>
8377
8378         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
8379         LO_REGS only for Thumb-1.
8380         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
8381         be used in short instructions when optimising for size on Thumb-2.
8382
8383 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
8384
8385         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
8386         associated with user returns to be preserved.
8387
8388 2011-04-06  Tristan Gingold  <gingold@adacore.com>
8389
8390         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
8391         symbol_queue_size, DBXOUT_DECR_NESTING,
8392         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
8393         if XCOFF_DEBUGGING_INFO.
8394
8395 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
8396
8397         * config/i386/i386.md (attribute isa): New.
8398         (attribute enabled): New.
8399         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
8400         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
8401         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
8402         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
8403         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
8404         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8405         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
8406         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
8407
8408         * config/i386/sse.md (VF): New mode iterator.
8409         (VF1): Ditto.
8410         (VF2): Ditto.
8411         (VF_128): Ditto.
8412         (SSEMODEF4): Remove.
8413         (attribute sse): Handle V8SF and V4DF modes.
8414         (<absneg:code><mode>2): Use VF mode iterator.
8415         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
8416         mode iterator.
8417         (<plusminus_insn><mode>3): Use VF mode iterator.
8418         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
8419         Use VF mode iterator.
8420         (<sse>_vm<plusminus_insn><mode>3): Merge with
8421         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
8422         (mul<mode>3): Use VF mode iterator.
8423         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
8424         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
8425         mode iterator.
8426         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
8427         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
8428         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
8429         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
8430         mode iterator.
8431         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
8432         Use VF1 mode iterator.
8433         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
8434         (sqrt<VF2:mode>2): New expander.
8435         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
8436         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
8437         and sqrtv2df2.  Use VF mode iterator.
8438         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
8439         mode iterator.
8440         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
8441         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
8442         Use VF1 mode iterator.
8443         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
8444         (<smaxmin:code><mode>3): Use VF mode iterator.
8445         (*<smaxmin:code><mode>3_finite): Merge with
8446         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
8447         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
8448         (<sse>_vm<smaxmin:code><mode>2): Merge with
8449         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
8450         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
8451         mode iterator.
8452         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
8453         mode iterator.
8454         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
8455         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
8456         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
8457         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
8458         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
8459         VF mode iterator.
8460         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
8461         Use VF_128 mode iterator.
8462         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
8463         mode iterator.
8464         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
8465         VF_128 mode iterator.
8466         (vcond<mode>): Use VF mode iterator.
8467         * config/i386/predicates.md (sse_comparison_operator): Merge with
8468         avx_comparison_float_operator.  Do not declare as special_predicate.
8469         * config/i386/i386.c (struct builtin_description): Update for renamed
8470         compare patterns.
8471         (ix86_expand_args_builtin): Ditto.
8472         (ix86_expand_sse_compare_mask): Ditto.
8473
8474 2011-04-06  Richard Guenther  <rguenther@suse.de>
8475
8476         * tree-inline.c (estimate_num_insns): For calls simply account
8477         for all passed arguments and a used return value.
8478
8479 2011-04-06  Richard Guenther  <rguenther@suse.de>
8480
8481         PR tree-optimization/47663
8482         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
8483         call_stmt_time fields.
8484         (cgraph_edge_inlinable_p): Declare.
8485         (cgraph_edge_recursive_p): New inline function.
8486         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
8487         (cgraph_clone_edge): Copy it.
8488         * ipa-inline.c (cgraph_estimate_edge_time): New function.
8489         Account for call stmt time.
8490         (cgraph_estimate_time_after_inlining): Take edge argument.
8491         (cgraph_estimate_edge_growth): Account call stmt size.
8492         (cgraph_estimate_size_after_inlining): Take edge argument.
8493         (cgraph_mark_inline_edge): Adjust.
8494         (cgraph_check_inline_limits): Likewise.
8495         (cgraph_recursive_inlining_p): Remove.
8496         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
8497         (cgraph_decide_recursive_inlining): Take edge argument and
8498         adjust.
8499         (cgraph_decide_inlining_of_small_functions): Do not avoid
8500         diags for recursive inlining here.
8501         (cgraph_flatten): Adjust.
8502         (cgraph_decide_inlining_incrementally): Likewise.
8503         (estimate_function_body_sizes): Remove call cost handling.
8504         (compute_inline_parameters): Initialize caller edge call costs.
8505         (cgraph_estimate_edge_growth): New function.
8506         (cgraph_estimate_growth): Use it.
8507         (cgraph_edge_badness): Likewise.
8508         (cgraph_check_inline_limits): Take an edge argument.
8509         (cgraph_decide_inlining_of_small_functions): Adjust.
8510         (cgraph_decide_inlining): Likewise.
8511         * tree-inline.c (estimate_num_insns): Only account for call
8512         return value if it is used.
8513         (expand_call_inline): Avoid diagnostics on recursive inline
8514         functions here.
8515         * lto-cgraph.c (lto_output_edge): Output edge call costs.
8516         (input_edge): Input edge call costs.
8517
8518 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8519
8520         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
8521
8522 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
8523
8524         * doc/invoke.texi (Spec Files): Fix typo.
8525
8526 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
8527
8528         * profile.c (branch_prob): Move declaration of local variable.  Remove
8529         obsolete ??? comment.  Expand the location explicitly instead of using
8530         the LOCATION_FILE and LOCATION_LINE macros.
8531
8532 2011-04-06  Wei Guozhi  <carrot@google.com>
8533
8534         PR target/47855
8535         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
8536         (arm_cond_branch): Likewise.
8537         (arm_cond_branch_reversed): Likewise.
8538         (arm_jump): Likewise.
8539         (push_multi): Likewise.
8540         * config/arm/constraints.md (Py): New constraint.
8541
8542 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8543
8544         PR bootstrap/48471
8545         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
8546         Move these...
8547         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
8548         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
8549         #ifdef DBX_DEBUGGING_INFO.
8550
8551 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
8552
8553         PR bootstrap/48403
8554         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
8555         if old and new states differ.
8556
8557 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
8558
8559         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
8560         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
8561         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
8562         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
8563         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
8564         mcfv4e): Use Alias.
8565         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
8566         ColdFire options to -mcpu= options.
8567
8568 2011-04-05  Jeff Law  <law@redhat.com>
8569
8570         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
8571         check if BB is a successor of LOOP->header and return
8572         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
8573
8574 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
8575
8576         * cprop.c (struct reg_use): Remove.
8577         (reg_use_table): Make an array of RTX.
8578         (find_used_regs, constprop_register, local_cprop_pass,
8579         bypass_block): Simplify users of reg_use_table.
8580         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
8581         on one of the uses found by find_used_regs.
8582
8583 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8584
8585         PR bootstrap/48469
8586         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
8587         declaration.
8588
8589 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8590
8591         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
8592         as an rtx.
8593         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
8594
8595 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
8596
8597         PR middle-end/48441
8598         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
8599
8600 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8601
8602         * combine.c: Include obstack.h.
8603         (struct insn_link): Define.
8604         (uid_log_links): Adjust type.
8605         (FOR_EACH_LOG_LINK): New macro.
8606         (insn_link_obstack): Declare.
8607         (alloc_insn_link): Define.
8608         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
8609         type of link variables.
8610         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
8611         (try_combine, record_promoted_values, distribute_notes): Likewise.
8612         (distribute_links): Likewise.  Tweak prototype.
8613         (clear_log_links): Delete.
8614         (adjust_for_new_dest): Call alloc_insn_link.
8615         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
8616
8617 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8618
8619         * gcse.c (modify_mem_list): Convert to an array of VECs.
8620         (canon_modify_mem_list, compute_transp): Tweak formatting.
8621         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
8622         (load_killed_in_block_p): Likewise.
8623         (record_last_mem_set_info): Likewise.
8624         (clear_modify_mem_tables): Likewise.
8625
8626 2011-04-05  Tom de Vries  <tom@codesourcery.com>
8627
8628         PR middle-end/48461
8629         * function.c (emit_use_return_register_into_block): Only define if
8630         HAVE_return.
8631
8632 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
8633
8634         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
8635
8636 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
8637
8638         * config/rx/rx-opts.h: New.
8639         * config/rx/rx.c (rx_cpu_type): Remove.
8640         (rx_handle_option): Don't assert that global structures are in
8641         use.  Access variables via opts pointer.  Defer most handling of
8642         OPT_mint_register_.  Use error_at.
8643         (rx_option_override): Handle deferred OPT_mint_register_ here.
8644         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
8645         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
8646         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
8647         (rx_cpu_types): New Enum and EnumValue entries.
8648         (mint-register=): Use Defer and use Var accordingly.
8649
8650 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8651
8652         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
8653         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
8654         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
8655         Move these...
8656         (debug_free_queue, debug_nesting, symbol_queue_index):
8657         ...and these...
8658         * dbxout.c: ...to here.  Make static.
8659
8660 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
8661
8662         * gcse.c (modify_pair): Define.  Define a VEC of it.
8663         (canon_modify_mem_list): Convert to an array of VECs.
8664         (free_insn_expr_list_list): Delete.
8665         (clear_modify_mem_tables): Call VEC_free instead.
8666         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
8667         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
8668         (canon_list_insert, compute_transp): Likewise.
8669
8670 2011-04-05  Tom de Vries  <tom@codesourcery.com>
8671
8672         PR target/43920
8673         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
8674         for size.
8675
8676 2011-04-05  Tom de Vries  <tom@codesourcery.com>
8677
8678         PR target/43920
8679         * function.c (emit_use_return_register_into_block): New function.
8680         (thread_prologue_and_epilogue_insns): Use
8681         emit_use_return_register_into_block.
8682
8683 2011-04-05  Tom de Vries  <tom@codesourcery.com>
8684
8685         PR target/43920
8686         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
8687         insn.
8688
8689 2011-04-05  Tom de Vries  <tom@codesourcery.com>
8690
8691         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
8692
8693 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
8694
8695         * config/arm/arm.md (define_constants for unspec): Replace with
8696         define_c_enum.
8697         (define_constants for unspecv): Replace with define_c_enum.
8698         * config/arm/neon.md (define_constants for unspec): Replace with
8699         define_c_enum.
8700
8701 2011-04-04  Richard Henderson  <rth@redhat.com>
8702
8703         PR bootstrap/48400
8704         * dwarf2out.c (output_line_info): Always emit line info from
8705         at least one section.
8706         (dwarf2out_init): Create text_section_line_info here ...
8707         (set_cur_line_info_table): ... not here.
8708
8709 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
8710
8711         PR target/48380
8712         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
8713         not called.
8714
8715         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
8716
8717 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
8718
8719         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
8720         (expr_equiv_p): Remove.
8721         (insert_set_in_table): Look at <dest, src> pair instead of expr.
8722         (hash_scan_set): Update call to insert_set_in_table.
8723         (dump_hash_table): Dump <dest, src> pair.
8724         (lookup_set): Simplify.  Lookup <dest, src> pair.
8725         (compute_transp): Remove, fold heavily simplified code into...
8726         (compute_local_properties): ...here.  Expect COMP and TRANSP
8727         unconditionally.
8728         (find_avail_set): Take set directly from struct expr.
8729         (find_bypass-set): Likewise.
8730         (bypass_block): Likewise.
8731         (cprop_insn): Likewise.  Remove redundant INSN_P test.
8732
8733         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
8734         checks on form of COND from find_implicit_sets to here.
8735         (find_implicit_sets): Cleanup control flow. Split critical edges
8736         if it exposes implicit sets.  Allocate/resize implicit_sets as
8737         necessary.
8738         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
8739         changed something.  Run df_analyze after find_implicit_sets if any
8740         edges were split.  Do not allocate implicit_sets here.
8741
8742         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
8743         (gcse_obstack): Renamed to cprop_obstack.
8744         (GNEW, GNEWVEC, GNEWVAR): Remove.
8745         (gmalloc): Remove.
8746         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
8747         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
8748         (gcse_alloc): Likewise, and rename to cprop_alloc.
8749         (alloc_gcse_men, free_gcse_mem): Remove.
8750         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
8751         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
8752         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
8753
8754         * cprop.c (oprs_not_set_p): Remove.
8755         (mark_set, mark_clobber): Remove.
8756         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
8757         (reg_not_set_p): New function.
8758         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
8759         (cprop_insn): Likewise.
8760         (cprop_jump): Use FOR_EACH_EDGE.
8761
8762 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
8763
8764         PR bootstrap/48403
8765         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
8766         (rank_for_schedule): Use scheduled_insns vector instead of
8767         last_scheduled_insn.
8768         (ok_for_early_queue_removal): Likewise.
8769         (queue_to_ready): Search forward in nonscheduled_insns_begin if
8770         we have a dbg_cnt.
8771         (choose_ready): Likewise.
8772         (commit_schedule): Use VEC_iterate.
8773         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
8774         a dbg_cnt, use it and ensure the first insn is in the ready list.
8775         (haifa_sched_init): Allocate scheduled_insns.
8776         (sched_extend_ready_list): Don't allocate it; reserve space.
8777         (haifa_sched_finish): Free it.
8778
8779 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
8780
8781         * optc-gen.awk: Always remove type from Variable entry before
8782         recording in var_seen.
8783
8784 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
8785
8786         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
8787         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
8788         call to tidy_fallthru_edges.
8789
8790 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
8791
8792         * doc/options.texi (ToLower): Document.
8793         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
8794         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
8795         * opts.h (cl_option): Add cl_tolower field.
8796         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
8797         arguments with lowercase strings.
8798         * config/rx/rx.opt (mcpu=): Add ToLower.
8799         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
8800         argument.
8801
8802 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
8803
8804         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
8805
8806 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
8807
8808         * config/vax/vax.c: Include reload.h.
8809
8810 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
8811
8812         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
8813         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
8814         (sparc_preferred_reload_class): New function.
8815
8816 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
8817
8818         PR debug/48401
8819         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
8820         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
8821
8822 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
8823
8824         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
8825         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
8826
8827 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
8828
8829         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
8830         (ASM_OUTPUT_ALIGNED_BSS): Define.
8831
8832 2011-04-03  Michael Matz  <matz@suse.de>
8833
8834         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
8835         and next_slot members.
8836         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
8837         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
8838         (lto_streamer_cache_append): Declare.
8839         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
8840         unsigned index, remove offset parameter, ensure that we append
8841         or update existing entries.
8842         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
8843         parameter, update next_slot for append.
8844         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
8845         parameter.
8846         (lto_streamer_cache_insert_at): Likewise.
8847         (lto_streamer_cache_append): New function.
8848         (lto_streamer_cache_lookup): Use unsigned index.
8849         (lto_streamer_cache_get): Likewise.
8850         (lto_record_common_node): Don't test tree_node_can_be_shared.
8851         (preload_common_node): Adjust call to lto_streamer_cache_insert.
8852         (lto_streamer_cache_delete): Don't free offsets member.
8853         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
8854         (lto_output_string_with_length): Use lto_output_data_stream.
8855         (lto_output_tree_header): Remove ix parameter, don't write it.
8856         (lto_output_builtin_tree): Likewise.
8857         (lto_write_tree): Adjust callers to above, don't track and write
8858         offset, write unsigned index.
8859         (output_unreferenced_globals): Don't emit all global vars.
8860         (write_global_references): Use unsigned indices.
8861         (lto_output_decl_state_refs): Likewise.
8862         (write_symbol): Likewise.
8863         * lto-streamer-in.c (lto_input_chain): Move earlier.
8864         (input_function): Use unsigned index.
8865         (input_alias_pairs): Don't read and then ignore all global vars.
8866         (lto_materialize_tree): Remove ix_p parameter, don't read index,
8867         don't pass it back, use lto_streamer_cache_append.
8868         (lto_register_var_decl_in_symtab): Use unsigned index.
8869         (lto_register_function_decl_in_symtab): Likewise.
8870         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
8871         index.
8872         (lto_get_builtin_tree): Don't read index, use
8873         lto_streamer_cache_append.
8874         (lto_read_tree): Adjust call to lto_materialize_tree.
8875
8876         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
8877         don't use function calls in arguments to MIN.
8878
8879         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
8880         twice.
8881
8882         * gimple.c (gimple_type_leader_entry): Mark deletable.
8883
8884 2011-04-03  Alan Modra  <amodra@gmail.com>
8885
8886         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
8887
8888 2011-04-03  Michael Matz  <matz@suse.de>
8889
8890         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
8891         an integer.
8892         * tree.h (tree_decl_non_common.vindex): Adjust comment.
8893
8894 2011-04-03  Michael Matz  <matz@suse.de>
8895
8896         * cgraphbuild.c (record_reference): Canonicalize constructor values.
8897         * gimple-fold.c (canonicalize_constructor_val): Accept being called
8898         without function context.
8899         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
8900         current_function_decl and cfun.
8901
8902 2011-04-03  Michael Matz  <matz@suse.de>
8903
8904         * tree.c (decl_init_priority_insert): Don't create entry for
8905         default priority.
8906         (decl_fini_priority_insert): Ditto.
8907         (fields_compatible_p, find_compatible_field): Remove.
8908         * tree.h (fields_compatible_p, find_compatible_field): Remove.
8909         * gimple.c (gimple_compare_field_offset): Adjust block comment.
8910
8911 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
8912
8913         * combine.c (try_combine): Remove useless local variable.
8914
8915 2011-04-03  Richard Guenther  <rguenther@suse.de>
8916             Ira Rosen  <ira.rosen@linaro.org>
8917
8918         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
8919         non-variable offsets and compare the remaining bases of the two
8920         accesses instead of looking for exact same data-ref.
8921
8922 2011-04-02  Kai Tietz  <ktietz@redhat.com>
8923
8924         PR target/48416
8925         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
8926
8927         * i386.c (ix86_is_msabi_thiscall): New helper function.
8928         (ix86_is_type_thiscall): New helper function.
8929         (ix86_comp_type_attributes): Handle thiscall for method-functions
8930         special.
8931         (init_cumulative_args): Likewise.
8932         (find_drap_reg): Likewise.
8933         (ix86_static_chain): Likewise.
8934         (x86_this_parameter): Likewise.
8935         (x86_output_mi_thunk): Likewise.
8936
8937 2011-04-01  Olivier Hainque  <hainque@adacore.com>
8938             Nicolas Setton  <setton@adacore.com>
8939             Eric Botcazou  <ebotcazou@adacore.com>
8940
8941         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
8942         (add_gnat_descriptive_type_attribute): New function.
8943         (gen_array_type_die): Call it.
8944         (gen_enumeration_type_die): Likewise.
8945         (gen_struct_or_union_type_die): Likewise.
8946         (modified_type_die): Likewise.
8947         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
8948         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
8949         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
8950
8951 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
8952
8953         PR bootstrap/48148
8954         * dwarf2out.c (resolve_addr): Don't call force_decl_die
8955         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
8956
8957         Revert:
8958         2011-03-17  Richard Guenther  <rguenther@suse.de>
8959
8960         PR bootstrap/48148
8961         * lto-cgraph.c (input_overwrite_node): Clear the abstract
8962         origin for decls in other ltrans units.
8963         (input_varpool_node): Likewise.
8964
8965 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
8966
8967         PR middle-end/48335
8968         * expr.c (expand_assignment): Handle all possibilities
8969         if TO_RTX is CONCAT.
8970         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
8971         (store_split_bit_field): If SUBREG_REG (op0) or
8972         op0 itself has smaller mode than word, return it
8973         for offset 0 and const0_rtx for out-of-bounds stores.
8974         If word is const0_rtx, skip it.
8975
8976 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
8977
8978         * config/h8300/h8300.c (print_operand_address): Rename to...
8979         (h8300_print_operand_address): ...this. Make static. Adjust comments.
8980         Call h8300_print_operand and h8300_print_operand_address instead of
8981         print_operand and print_operand_address. Declare.
8982         (print_operand): Renake to...
8983         (h8300_print_operand): ...this. Make static. Adjust comments.
8984         Call h8300_print_operand instead of print_operand. Declare.
8985         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
8986         (h8300_register_move_cost): Likewise.
8987         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
8988         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
8989         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
8990         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
8991         * config/h8300/h8300-protos.h (print_operand): Delete.
8992         (print_operand_address): Delete.
8993
8994 2011-04-01  Richard Henderson  <rth@redhat.com>
8995
8996         PR 48400
8997         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
8998         in strict mode before dwarf4.  Re-order tests to early out
8999         before switching sections.
9000
9001 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
9002
9003         * config/h8300/constraints.md: New file.
9004         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
9005         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
9006         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
9007         * config/h8300/predicates.md (bit_operand): Likewise.
9008         (incdec_operand): Use satisfies_constraint_M and
9009         satisfies_constraint_O.  Don't use C code block.
9010         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
9011         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
9012         (compute_mov_length): Use satisfies_constraint_G.
9013         (fix_bit_operand): Use satisfies_constraint_U.
9014         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
9015         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
9016         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
9017         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
9018         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
9019         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
9020         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
9021         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
9022         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
9023         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
9024         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
9025         (EXTRA_MEMORY_CONSTRAINT): Delete.
9026
9027 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
9028             Michael Meissner  <meissner@linux.vnet.ibm.com>
9029
9030         PR target/48262
9031         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
9032         operands, as per the specifications.
9033
9034         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
9035         (vec_extract_evenv4sf): Ditto.
9036         (vec_extract_evenv8hi): Ditto.
9037         (vec_extract_evenv16qi): Ditto.
9038         (vec_extract_oddv4si): Ditto.
9039
9040 2011-03-31  Mark Wielaard  <mjw@redhat.com>
9041
9042         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
9043         high_pc attribute if the CU has no associated code. Only output
9044         DW_AT_entry_pc for CU if not generating strict dwarf and
9045         dwarf_version < 4.
9046
9047 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
9048
9049         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
9050         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
9051         out of ...
9052         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
9053         * final.c (final_start_function): Call the new function rather
9054         than using a NULL argument for dwarf2out_frame_debug.
9055
9056         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
9057         that contains the prologue.
9058
9059         * haifa-sched.c (queue_insn): New arg REASON.  All callers
9060         changed.  Print it in debugging output.
9061
9062         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
9063
9064         * sched-ebb.c (begin_schedule_ready): Remove second argument.
9065         Split most of the code into...
9066         (begin_move_insn): ... here.  New function.
9067         (ebb_sched_info): Add a pointer to it.
9068         * haifa-sched.c (scheduled_insns): New static variable.
9069         (sched_extend_ready_list): Allocate it.
9070         (schedule_block): Use it to record the order of scheduled insns.
9071         Perform RTL changes to move insns only after all scheduling
9072         decisions have been made.
9073         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
9074         begin_move_insn field.
9075         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
9076         * sched-int.h (struct haifa_sched_info): Remove second argument
9077         from begin_schedule_ready hook.  Add new member begin_move_insn.
9078         * sched-rgn.c (begin_schedule_ready): Remove second argument.
9079         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
9080
9081         * haifa-sched.c (prune_ready_list): New function, broken out of
9082         schedule_block.
9083         (schedule_block): Use it.
9084
9085 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9086
9087         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
9088
9089 2011-04-01  Kai Tietz  <ktietz@redhat.com>
9090
9091         * config.gcc (*-*-mingw*): Allow as option the
9092         posix threading model.
9093         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
9094         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
9095         definition.
9096         (CPP_SPEC): Add pthread/no-pthread handling.
9097         (LIB_SPEC): Likewise.
9098         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
9099         (LIB_SPEC): Likewise.
9100         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
9101         flag to pass -pthread option for shared libgcc build.
9102         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
9103         for shared libgcc build.
9104         * config/i386/t-mingw-pthread: New file.
9105         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
9106         New define to enable use of library pthread by default.
9107         * config/i386/mingw.opt (pthread): New driver option.
9108         (no-pthread): New driver option.
9109         * config/i386/cygming.opt: Make sure trailing empty line is retained.
9110         * config/i386/mingw-w64.opt: Likewise.
9111
9112 2011-04-01  Gary Funck  <gary@intrepid.com>
9113
9114         * c-decl.c (grokdeclarator): Fix formatting.
9115
9116 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
9117
9118         * expr.c (emit_block_move_via_movmem): Use n_generator_args
9119         instead of n_operands.
9120         (set_storage_via_setmem): Likewise.
9121         * optabs.c (maybe_gen_insn): Likewise.
9122         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
9123         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
9124         (mips_expand_builtin_direct): Likewise.
9125         * config/spu/spu.c (expand_builtin_args): Likewise.
9126
9127 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
9128
9129         * recog.h (insn_data_d): Add n_generator_args.
9130         * genoutput.c (data): Likewise.
9131         (output_insn_data): Print it.
9132         (max_opno, num_dups): Delete.
9133         (scan_operands): Just fill in "d->operand[...]".
9134         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
9135
9136 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
9137
9138         * gensupport.h (pattern_stats): New structure.
9139         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
9140         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
9141         (max_operand_1, max_operand_vec): Delete.
9142         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
9143
9144 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
9145
9146         * emit-rtl.c (emit_pattern_after_setloc): New function.
9147         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
9148         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
9149         (emit_pattern_after): New function.
9150         (emit_insn_after, emit_jump_insn_after): Call it.
9151         (emit_call_insn_after, emit_debug_insn_after): Likewise.
9152         (emit_pattern_before_setloc): New function.
9153         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
9154         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
9155         Likewise.
9156         (emit_pattern_before): New function.
9157         (emit_insn_before, emit_jump_insn_before): Call it.
9158         (emit_call_insn_before, emit_debug_insn_before): Likewise.
9159
9160 2011-03-31  Richard Henderson  <rth@redhat.com>
9161
9162         * dwarf2out.c (dw_separate_line_info_ref): Remove.
9163         (dw_separate_line_info_entry): Remove.
9164         (enum dw_line_info_opcode): New.
9165         (dw_line_info_entry): Use it.
9166         (dw_line_info_table, dw_line_info_table_p): New.
9167         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
9168         (line_info_table, line_info_label_num): Remove.
9169         (line_info_table_in_use): Remove.
9170         (separate_line_info_table): Remove.
9171         (separate_line_info_table_allocated): Remove.
9172         (separate_line_info_table_in_use): Remove.
9173         (LINE_INFO_TABLE_INCREMENT): Remove.
9174         (line_info_label_num): New.
9175         (cur_line_info_table): New.
9176         (text_section_line_info, cold_text_section_line_info): New.
9177         (separate_line_info): New.
9178         (SEPARATE_LINE_CODE_LABEL): Remove.
9179         (print_dwarf_line_table): Remove.
9180         (debug_dwarf): Don't dump it.
9181         (output_one_line_info_table): New.
9182         (output_line_info): Use it.
9183         (new_line_info_table): New.
9184         (set_cur_line_info_table): New.
9185         (dwarf2out_switch_text_section): Use it.
9186         (dwarf2out_begin_function): Likewise.
9187         (push_dw_line_info_entry): New.
9188         (dwarf2out_source_line): Rewrite for new line info tables.
9189         (dwarf2out_init): Remove dead initailizations.
9190
9191 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
9192
9193         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
9194         various flags.
9195         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
9196         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
9197         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
9198         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
9199         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
9200         * opt-functions.awk (flag_init, switch_bit_fields): New.
9201         (switch_flags): Don't handle flags moved to bit-fields.  Don't
9202         generate CL_MISSING_OK or CL_SAVE.
9203         * optc-gen.awk: Update to generate bit-field output as well as
9204         flags field.
9205         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
9206         bit-field instead of CL_REJECT_DRIVER flag.
9207         * opts-common.c (generate_canonical_option,
9208         decode_cmdline_option): Use bit-fields instead of CL_* flags.
9209         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
9210         instead of CL_REJECT_NEGATIVE flag.
9211         * toplev.c (print_switch_values): Use cl_report bit-field instead
9212         of CL_REPORT flag.
9213
9214 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
9215
9216         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
9217         a zero minimum index only if it is redundant.
9218
9219 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
9220
9221         PR rtl-optimization/48381
9222         * ira-color.c (assign_hard_reg): Use hard reg set intersection
9223         instead of ira_class_hard_reg_index for calculating conflicting
9224         hard registers.
9225
9226 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
9227
9228         * cprop.c: Clean up hash table building.
9229         (reg_avail_info): Remove.
9230         (oprs_available_p): Remove.
9231         (record_last_reg_set_info): Remove.
9232         (record_last_set_info): Remove.
9233         (reg_available_p): New function.
9234         (gcse_constant_p): Do not treat unfolded conditions as constants.
9235         (make_set_regs_unavailable): New function.
9236         (hash_scan_set): Simplify with new reg_available_p.
9237         (compute_hash_table_work): Traverse insns stream only once.
9238         Do not compute reg_avail_info. Traverse insns in reverse order.
9239         Record implicit sets after recording explicit sets from the block.
9240
9241 2011-03-31  Michael Matz  <matz@suse.de>
9242
9243         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
9244
9245 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
9246
9247         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
9248         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
9249         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
9250         (h8300_mode_dependent_address_p): New function.
9251         (h8300_get_index): Make static.
9252
9253 2011-03-31  Jeff Law  <law@redhat.com>
9254
9255         * reload1.c (elimination_effects): Fix typo in recent change.
9256
9257         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
9258         typo potentially leading to null pointer dereference.
9259
9260         * caller-save.c (new_saved_hard_reg): Eliminate return value.
9261         (setup_save_areas): Corresponding changes to avoid useless
9262         assignments.
9263
9264         * jump.c (reversed_comparison_code_parts): Avoid successive return
9265         statements when REVERSE_CONDITION is defined.
9266
9267         * expr.c (expand_assignment): Avoid useless assignments.
9268         (expand_expr_real_1): Likewise.
9269         (expand_expr_real_2): Avoid useless statements.
9270
9271         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
9272
9273         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
9274
9275         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
9276         statements.
9277
9278         * stmt.c (expand_expr_stmt): Avoid useless assignment.
9279
9280 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
9281
9282         PR target/47109
9283         * doc/tm.texi.in (TARGET_VERSION): Remove.
9284         * doc/tm.texi: Regenerate.
9285         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
9286         * collect2.c (main): Don't use TARGET_VERSION.
9287         * mips-tdump.c (main): Don't use TARGET_VERSION.
9288         * mips-tfile.c (main): Don't use TARGET_VERSION.
9289         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
9290         * config/rs6000/vxworksae.h: Remove.
9291         * config/alpha/alpha.h (TARGET_VERSION): Remove.
9292         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
9293         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
9294         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
9295         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9296         * config/arm/arm.h (TARGET_VERSION): Remove.
9297         * config/arm/coff.h (TARGET_VERSION): Remove.
9298         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
9299         * config/arm/elf.h (TARGET_VERSION): Remove.
9300         * config/arm/freebsd.h (TARGET_VERSION): Remove.
9301         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
9302         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
9303         * config/arm/pe.h (TARGET_VERSION): Remove.
9304         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
9305         * config/arm/semi.h (TARGET_VERSION): Remove.
9306         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
9307         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
9308         * config/arm/vxworks.h (TARGET_VERSION): Remove.
9309         * config/avr/avr.h (TARGET_VERSION): Remove.
9310         * config/bfin/bfin.h (TARGET_VERSION): Remove.
9311         * config/fr30/fr30.h (TARGET_VERSION): Remove.
9312         * config/frv/frv.h (TARGET_VERSION): Remove.
9313         * config/h8300/h8300.h (TARGET_VERSION): Remove.
9314         * config/i386/cygwin.h (TARGET_VERSION): Remove.
9315         * config/i386/darwin.h (TARGET_VERSION): Remove.
9316         * config/i386/darwin64.h (TARGET_VERSION): Remove.
9317         * config/i386/djgpp.h (TARGET_VERSION): Remove.
9318         * config/i386/freebsd.h (TARGET_VERSION): Remove.
9319         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
9320         * config/i386/gnu.h (TARGET_VERSION): Remove.
9321         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
9322         * config/i386/i386elf.h (TARGET_VERSION): Remove.
9323         * config/i386/linux.h (TARGET_VERSION): Remove.
9324         * config/i386/linux64.h (TARGET_VERSION): Remove.
9325         * config/i386/lynx.h (TARGET_VERSION): Remove.
9326         * config/i386/mingw32.h (TARGET_VERSION): Remove.
9327         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
9328         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
9329         * config/i386/netware.h (TARGET_VERSION): Remove.
9330         * config/i386/nto.h (TARGET_VERSION): Remove.
9331         * config/i386/openbsd.h (TARGET_VERSION): Remove.
9332         * config/i386/vxworks.h (TARGET_VERSION): Remove.
9333         * config/ia64/elf.h (TARGET_VERSION): Remove.
9334         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
9335         * config/ia64/hpux.h (TARGET_VERSION): Remove.
9336         * config/ia64/linux.h (TARGET_VERSION): Remove.
9337         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
9338         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
9339         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9340         * config/lm32/lm32.h (TARGET_VERSION): Remove.
9341         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
9342         * config/m32c/m32c.h (TARGET_VERSION): Remove.
9343         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
9344         * config/m32r/m32r.h (TARGET_VERSION): Remove.
9345         * config/m68k/linux.h (TARGET_VERSION): Remove.
9346         * config/m68k/m68k.h (TARGET_VERSION): Remove.
9347         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
9348         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
9349         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
9350         * config/mep/mep.h (TARGET_VERSION): Remove.
9351         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
9352         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
9353         * config/mips/iris6.h (MACHINE_TYPE): Remove.
9354         * config/mips/linux.h (TARGET_VERSION): Remove.
9355         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
9356         * config/mips/vxworks.h (TARGET_VERSION): Remove.
9357         * config/mmix/mmix.h (TARGET_VERSION): Remove.
9358         * config/mn10300/linux.h (TARGET_VERSION): Remove.
9359         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
9360         * config/pa/pa.h (TARGET_VERSION): Remove.
9361         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
9362         * config/picochip/picochip.h (TARGET_VERSION): Remove.
9363         * config/rs6000/aix.h (TARGET_VERSION): Remove.
9364         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
9365         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
9366         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
9367         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
9368         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
9369         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
9370         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
9371         * config/rs6000/linux.h (TARGET_VERSION): Remove.
9372         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
9373         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
9374         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
9375         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
9376         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
9377         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
9378         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
9379         * config/s390/linux.h (TARGET_VERSION): Remove.
9380         * config/s390/s390.h (TARGET_VERSION): Remove.
9381         * config/s390/tpf.h (TARGET_VERSION): Remove.
9382         * config/score/score.h (TARGET_VERSION): Remove.
9383         * config/sh/linux.h (TARGET_VERSION): Remove.
9384         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
9385         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
9386         * config/sh/sh.h (TARGET_VERSION): Remove.
9387         * config/sh/sh64.h (TARGET_VERSION): Remove.
9388         * config/sh/superh.h (TARGET_VERSION): Remove.
9389         * config/sh/vxworks.h (TARGET_VERSION): Remove.
9390         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
9391         * config/sparc/linux.h (TARGET_VERSION): Remove.
9392         * config/sparc/linux64.h (TARGET_VERSION): Remove.
9393         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
9394         TARGET_NAME32, TARGET_NAME): Remove.
9395         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
9396         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
9397         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
9398         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
9399         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
9400         * config/spu/spu.h (TARGET_VERSION): Remove.
9401         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
9402         * config/v850/v850.h (TARGET_VERSION): Remove.
9403         * config/vax/linux.h (TARGET_VERSION): Remove.
9404         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
9405         * config/xtensa/elf.h (TARGET_VERSION): Remove.
9406         * config/xtensa/linux.h (TARGET_VERSION): Remove.
9407
9408 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
9409
9410         PR target/48142
9411         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
9412         frame-related from frame-unrelated adjustments to the stack pointer.
9413
9414 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
9415
9416         * common.opt (fdebug-types-section): Move earlier.
9417         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
9418
9419 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
9420
9421         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
9422         var.
9423
9424 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
9425
9426         * tree.h (CASE_CHAIN): Define.
9427         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
9428         (gimple_redirect_edge_and_branch): Likewise.
9429
9430 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
9431
9432         PR middle-end/48367
9433         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
9434         calculation.
9435
9436 2011-03-30  Jeff Law  <law@redhat.com>
9437
9438         * PR bootstrap/48371
9439         * reload1.c (reload): Fix botch in last change.
9440
9441         * reload.h (struct reload): Fix typo introduced in last change.
9442
9443 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
9444
9445         * config/arm/arm.opt (mhard-float, msoft-float): Mark
9446         Undocumented.  Remove help text.
9447         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
9448         -mhard-float.
9449
9450 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
9451
9452         * doc/options.texi (NegativeAlias): Document.
9453         (Alias): Mention NegativeAlias.
9454         * opt-functions.awk: Handle NegativeAlias.
9455         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
9456         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
9457         * opts.h (CL_NEGATIVE_ALIAS): Define.
9458         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
9459         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
9460         OPT_mspe_.
9461         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
9462         Alias entries.
9463         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9464         mno-spe and mno-isel instead of mspe=no and -misel=no.
9465
9466 2011-03-29  Mark Wielaard  <mjw@redhat.com>
9467
9468         * common.opt (fdebug-types-section): New flag.
9469         * doc/invoke.texi: Document new -fno-debug-types-section flag.
9470         * dwarf2out.c (use_debug_types): New define.
9471         (struct die_struct): Mark die_id with GTY desc use_debug_types.
9472         (print_die): Guard output of type unit signatures using
9473         use_debug_types.
9474         (build_abbrev_table): Replace assert of dwarf_version >= 4
9475         with assert on use_debug_types.
9476         (size_of_die): Likewise.
9477         (unmark_dies): Likewise.
9478         (value_format): Decide AT_ref_external form on use_debug_types.
9479         (output_die): Replace dwarf_version version check guard with
9480         use_debug_types where appropriate.
9481         (modified_type_die): Likewise.
9482         (gen_reference_type_die): Likewise.
9483         (dwarf2out_start_source_file): Likewise.
9484         (dwarf2out_end_source_file): Likewise.
9485         (prune_unused_types_walk_attribs): Likewise.
9486         (dwarf2out_finish): Likewise.
9487
9488 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
9489
9490         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
9491
9492 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
9493
9494         PR rtl-optimization/48332
9495         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
9496         mode of input operand N and modeN to its actual mode.
9497
9498 2011-03-30  Jeff Law  <law@redhat.com>
9499
9500         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
9501         define accessor macro.
9502         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
9503         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
9504         (reg_equiv_init): Likewise.
9505         (reg_equivs_size): New variable.
9506         (reg_equiv_init_size): Remove.
9507         (allocate_initial_values): Move prototype to here from....
9508         * integrate.h (allocate_initial_values): Remove prototype.
9509         * integrate.c: Include reload.h.
9510         (allocate_initial_values): Corresponding changes.
9511         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
9512         (fix_reg_equiv_init, no_equiv): Corresponding changes.
9513         (update_equiv_regs): Corresponding changes.
9514         (ira): Corresponding changes.
9515         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
9516         (push_secondary_reload): Corresponding changes.
9517         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
9518         (make_memloc, find_reloads_address): Corresponding changes.
9519         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
9520         (find_reloads_address_1): Corresponding changes.
9521         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
9522         (refers_to_regno_for_reload_p): Corresponding changes.
9523         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
9524         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
9525         * reload1.c: Include ggc.h.
9526         (grow_reg_equivs): New function.
9527         (replace_pseudos_in, reload): Corresponding changes.
9528         (calculate_needs_all_insns, alter_regs): Corresponding changes.
9529         (eliminate_regs_1, elimination_effects): Corresponding changes.
9530         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
9531         (delete_output_reload): Likewise.
9532         * caller-save.c (mark_referenced_regs): Corresponding changes.
9533         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
9534         * frv/predicates.md (frv_load_operand): Corresponding changes.
9535         * microblaze/microblaze.c (double_memory_operand): Corresponding
9536         changes.
9537         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
9538         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
9539         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
9540         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
9541         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
9542         changes.
9543         * pa/pa.c (emit_move_sequence): Corresponding changes.
9544         * vax/vax.c (nonindexed_address_p): Corresponding changes.
9545
9546 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
9547
9548         PR target/47551
9549         * config/arm/arm.c (coproc_secondary_reload_class): Handle
9550         structure modes.  Don't check neon_vector_mem_operand for
9551         vector or structure modes.
9552
9553 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
9554             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9555
9556         PR target/43590
9557         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
9558         operand 1 and reshuffle the operands to match.
9559         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
9560
9561 2011-03-30  Christian Schüler  <cschueler@gmx.de>
9562
9563         PR driver/48208
9564         * config/c.opt (F): Added 'Driver' to -F option.
9565
9566         PR driver/48260
9567         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
9568           handler function.
9569         * config/darwin.opt: Added '-arch' option.
9570
9571 2011-03-30  Nick Clifton  <nickc@redhat.com>
9572
9573         * config/rx/rx.md: Add peepholes and patterns to combine
9574         extending loads and simple arithmetic instructions.
9575         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
9576         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
9577         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
9578         modes to use pre-decrement and post-increment addressing.
9579         (rx_is_restricted_memory_address): Add range checking of REG+INT
9580         addresses.
9581         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
9582         (rx_memory_move_cost): Adjust cost of stores.
9583         (rx_adjust_insn_length): New function.
9584
9585 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
9586
9587         PR c/48305
9588         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9589         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
9590         matching arg00/arg01 types.
9591
9592 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
9593
9594         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
9595         last_location to UNKNOWN_LOCATION.
9596
9597 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
9598
9599         PR target/48349
9600         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
9601         FLOAT_SSE_REGS.
9602
9603 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
9604             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9605
9606         PR bootstrap/48337
9607         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
9608         Init(PROCESSOR_V7).
9609         (sparc_cpu): Likewise.
9610         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
9611         PROCESSOR_V7.
9612
9613 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
9614
9615         PR target/48336
9616         PR middle-end/48342
9617         PR rtl-optimization/48345
9618         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
9619         hard regs for given mode from profitable regs when doing secondary
9620         allocation.
9621
9622 2011-03-29  Jeff Law  <law@redhat.com>
9623
9624         PR bootstrap/48327
9625         * tree-ssa-threadupdate.c (struct redirection_data): Remove
9626         do_not_duplicate field.
9627         (lookup_redirection_data): Corresponding changes.
9628         (create_duplicates): Always create a template block.
9629         (redirect_edges): Remove code which reused the original block
9630         when it was going to become unreachable code.
9631         (thread_block): Don't set do_not_duplicate field.
9632
9633 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
9634
9635         * lto-opts.c (register_user_option_p, lto_register_user_option):
9636         Make type argument unsigned.
9637         * lto-streamer.h (lto_register_user_option): Make type argument
9638         unsigned.
9639         * opth-gen.awk: Make CL_* macros unsigned.
9640         * opts-common.c (find_opt): Make lang_mask argument unsigned.
9641         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
9642         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
9643         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
9644         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
9645         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
9646         (find_opt): Make lang_mask argument unsigned.
9647
9648 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
9649
9650         PR rtl-optimization/48331
9651         PR rtl-optimization/48334
9652         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
9653         for any used algorithm.
9654
9655 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
9656
9657         * ira-conflicts.c (build_object_conflicts): Add unused attribute
9658         to parent_max.
9659
9660 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
9661
9662         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
9663         (alpha_option_override): Don't set alpha_sr_alias_set.
9664         (emit_frame_store_1): Use gen_frame_mem rather than calling
9665         set_mem_alias_set.
9666         (alpha_expand_epilogue): Ditto.
9667
9668 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
9669
9670         PR tree-optimization/48290
9671         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
9672         vectorization, check that relevant phis in the basic block after
9673         the inner loop are really inner loop's exit phis.
9674
9675 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
9676
9677         PR debug/48190
9678         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
9679         (cached_dw_loc_list_def): New structure.
9680         (cached_dw_loc_list): New typedef.
9681         (cached_dw_loc_list_table): New variable.
9682         (cached_dw_loc_list_table_hash): New function.
9683         (cached_dw_loc_list_table_eq): Likewise.
9684         (add_location_or_const_value_attribute): Take a bool cache_p.
9685         Cache the list when the parameter is true.
9686         (gen_formal_parameter_die): Update caller.
9687         (gen_variable_die): Likewise.
9688         (dwarf2out_finish): Likewise.
9689         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
9690         while generating debug info for the decl.
9691         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
9692         (dwarf2out_init): Initialize cached_dw_loc_list_table.
9693         (resolve_addr): Cache the result of resolving a chain of
9694         location lists.
9695
9696 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
9697
9698         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
9699         conflict object hard regset nodes have intersecting hard reg sets.
9700
9701         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
9702         after regstat_init_n_sets_and_refs.
9703
9704         * ira.c: Add more comments at the top.
9705         (setup_stack_reg_pressure_class, setup_pressure_classes):
9706         Add comments how we compute the register pressure classes.
9707         (setup_allocno_and_important_classes): Add more comments.
9708         (setup_class_translate_array, reorder_important_classes)
9709         (setup_reg_class_relations): Add comments.
9710
9711         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
9712         start of the file.
9713
9714         * ira-color.c: Add 2011 to the Copyright line.
9715         (assign_hard_reg):  Add more comments.
9716         (improve_allocation): Ditto.
9717
9718         * ira-costs.c: Add 2011 to the Copyright line.
9719         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
9720         comments.
9721         (setup_regno_cost_classes_by_mode): Ditto.
9722
9723         Initial patches from ira-improv branch:
9724
9725         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
9726
9727         * ira-build.c (ira_create_object): Remove initialization of
9728         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
9729         (ira_create_allocno): Remove initialization of
9730         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
9731         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
9732         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9733         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
9734         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
9735         Initialize ALLOCNO_ADD_DATA.
9736         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
9737         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
9738         ALLOCNO_REG.
9739         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
9740         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
9741
9742         * ira.c (ira_reallocate): Remove.
9743         (setup_pressure_classes): Call
9744         ira_init_register_move_cost_if_necessary.  Use
9745         ira_register_move_cost instead of ira_get_register_move_cost.
9746         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
9747         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
9748
9749         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
9750         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
9751         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
9752         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
9753         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
9754         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
9755         Fix formatting.
9756         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
9757         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9758         (struct allocno_color_data): New.
9759         (allocno_color_data_t): New typedef.
9760         (allocno_color_data): New definition.
9761         (ALLOCNO_COLOR_DATA): New macro.
9762         (struct object_color_data): New.
9763         (object_color_data_t): New typedef.
9764         (object_color_data): New definition.
9765         (OBJECT_COLOR_DATA): New macro.
9766         (update_copy_costs, calculate_allocno_spill_cost): Call
9767         ira_init_register_move_cost_if_necessary.  Use
9768         ira_register_move_cost instead of ira_get_register_move_cost.
9769         (move_spill_restore, update_curr_costs): Ditto.
9770         (allocno_spill_priority): Make it inline.
9771         (color_pass): Allocate and free allocno_color_dat and object_color_data.
9772         (struct coalesce_data, coalesce_data_t): New.
9773         (allocno_coalesce_data): New definition.
9774         (ALLOCNO_COALESCE_DATA): New macro.
9775         (merge_allocnos, coalesced_allocno_conflict_p): Use
9776         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
9777         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
9778         (coalesce_allocnos): Ditto.
9779         (setup_coalesced_allocno_costs_and_nums): Ditto.
9780         (collect_spilled_coalesced_allocnos): Ditto.
9781         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
9782         (setup_slot_coalesced_allocno_live_ranges): Ditto.
9783         (coalesce_spill_slots): Ditto.
9784         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
9785         free allocno_coalesce_data.
9786
9787         * ira-conflicts.c: Fix formatting.
9788         (process_regs_for_copy): Call
9789         ira_init_register_move_cost_if_necessary.  Use
9790         ira_register_move_cost instead of ira_get_register_move_cost.
9791         (build_object_conflicts): Optimize.
9792
9793         * ira-costs.c (record_reg_classes): Optimize.  Call
9794         ira_init_register_move_cost_if_necessary.  Use
9795         ira_register_move_cost, ira_may_move_in_cost, and
9796         ira_may_move_out_cost instead of ira_get_register_move_cost and
9797         ira_get_may_move_cost.
9798         (record_address_regs): Ditto.
9799         (scan_one_insn): Optimize.
9800         (find_costs_and_classes): Optimize.
9801         (process_bb_node_for_hard_reg_moves): Call
9802         ira_init_register_move_cost_if_necessary.  Use
9803         ira_register_move_cost instead of ira_get_register_move_cost.
9804
9805         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
9806         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
9807         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
9808         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
9809         definitions.
9810         (ira_initiate_emit_data, ira_finish_emit_data)
9811         (create_new_allocno): New functions.
9812         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
9813         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
9814         Use ira_register_move_cost instead of ira_get_register_move_cost.
9815
9816         * ira-int.h: Fix some comments.
9817         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
9818         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
9819         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
9820         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
9821         add_data.
9822         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
9823         bitfield after mode.  Make hard_regno a short int.  Make
9824         hard_regno short.  Remove first_coalesced_allocno and
9825         next_coalesced_allocno.  Move mem_optimized_dest_p,
9826         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
9827         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
9828         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
9829         temp, colorable_p.  Add new member add_data.
9830         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
9831         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
9832         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
9833         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
9834         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
9835         (ALLOCNO_ADD_DATA): New macro.
9836         (ira_emit_data_t): New typedef.
9837         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
9838         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
9839         from struct ira_allocno.
9840         (ALLOCNO_EMIT_DATA): New macro.
9841         (ira_allocno_emit_data, allocno_emit_reg): New.
9842         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
9843         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
9844         (OBJECT_ADD_DATA): New macro.
9845         (ira_reallocate): Remove.
9846         (ira_initiate_emit_data, ira_finish_emit_data): New.
9847         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
9848         (ira_init_register_move_cost_if_necessary): New.
9849         (ira_object_conflict_iter_next): Merge into
9850         ira_object_conflict_iter_cond.
9851         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
9852
9853         * ira-live.c (process_single_reg_class_operands): Call
9854         ira_init_register_move_cost_if_necessary.  Use
9855         ira_register_move_cost instead of ira_get_register_move_cost.
9856
9857         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
9858
9859         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
9860
9861         * ira-costs.c: Fix formatting.
9862         (cost_classes, cost_classes_num): Remove.
9863         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
9864         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
9865         (cost_classes_del, cost_classes_htab): New.
9866         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
9867         (initiate_regno_cost_classes, setup_cost_classes): New.
9868         (setup_regno_cost_classes_by_aclass): New.
9869         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
9870         (record_reg_classes): Use regno_cost_classes instead of
9871         cost_classes.  Move checking opposite operand up.
9872         (record_address_regs): Use regno_cost_classes
9873         instead of cost_classes.
9874         (scan_one_insn): Ditto.  Use always general register.
9875         (print_allocno_costs): Use regno_cost_classes instead of
9876         cost_classes.
9877         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
9878         (find_costs_and_classes): Set up cost classes for each registers.
9879         Use also their mode for this.  Use regno_cost_classes instead of
9880         cost_classes.
9881         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
9882         cost_classes.
9883         (free_ira_costs, ira_init_costs): Don't use cost_classes.
9884         (ira_costs, ira_set_pseudo_classes): Call
9885         initiate_regno_cost_classes and finish_regno_cost_classes.
9886
9887         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
9888
9889         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
9890
9891         * target.def (ira_cover_classes): Remove.
9892
9893         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
9894
9895         * doc/tm.texi.in: Ditto.
9896
9897         * ira-conflicts.c: Remove mentioning cover classes from the file.
9898         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
9899         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
9900
9901         * targhooks.c (default_ira_cover_classes): Remove.
9902
9903         * targhooks.h (default_ira_cover_classes): Ditto.
9904
9905         * haifa-sched.c: Remove mentioning cover classes from the file.
9906         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
9907         ira_pressure_classes and ira_pressure_classes_num instead of
9908         ira_reg_class_cover_size and ira_reg_class_cover.  Use
9909         sched_regno_pressure_class instead of sched_regno_cover_class.
9910         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
9911         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
9912
9913         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
9914         classes from the file.
9915         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
9916         (struct object_hard_regs, struct object_hard_regs_node): New.
9917         (struct ira_object): New members profitable_hard_regs,
9918         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
9919         (struct ira_allocno): Rename cover_class to aclass.  Rename
9920         cover_class_cost and updated_cover_class_cost to class_cost and
9921         updated_class_cost.  Remove splay_removed_p and
9922         left_conflict_size.  Add new members colorable_p.
9923         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
9924         (ALLOCNO_COLORABLE_P): New macro.
9925         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
9926         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
9927         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
9928         (OBJECT_...): Rename parameter C to O.
9929         (OBJECT_PROFITABLE_HARD_REGS): New macro.
9930         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
9931         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
9932         (struct target_ira_int): New members x_ira_max_memory_move_cost,
9933         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
9934         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
9935         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
9936         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
9937         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
9938         x_ira_reg_class_subunion.
9939         (ira_max_memory_move_cost, ira_max_register_move_cost)
9940         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
9941         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
9942         (ira_important_class_nums, ira_reg_class_superunion): New macros.
9943         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
9944         (ira_reg_class_union): Rename to ira_reg_class_subunion.
9945         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
9946         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
9947         (ira_tune_allocno_costs_and_cover_classes): Rename to
9948         ira_tune_allocno_costs.
9949         (ira_debug_hard_regs_forest): New.
9950         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
9951         (ira_object_conflict_iter_next): Fix comments.
9952         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
9953         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
9954         cover_class to aclass.
9955         (ira_allocate_and_accumulate_costs): Ditto.
9956         (ira_allocate_and_set_or_copy_costs): Ditto.
9957
9958         * opts.c (decode_options): Remove ira_cover_class check.
9959
9960         * ira-color.c: Remove mentioning cover classes from the file.  Use
9961         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
9962         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
9963         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
9964         (splay-tree.h): Remove include.
9965         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
9966         before copy_freq_compare_func.
9967         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
9968         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
9969         New definitions.
9970         (hard_regs_roots, hard_regs_node_vec): Ditto.
9971         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
9972         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
9973         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
9974         (create_new_object_hard_regs_node): Ditto.
9975         (add_new_object_hard_regs_node_to_forest): Ditto.
9976         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
9977         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
9978         Ditto.
9979         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
9980         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
9981         (remove_unused_object_hard_regs_nodes): Ditto.
9982         (enumerate_object_hard_regs_nodes): Ditto.
9983         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
9984         (object_hard_regs_subnode_t): Ditto.
9985         (struct object_hard_regs_subnode): Ditto.
9986         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
9987         (setup_object_hard_regs_subnode_index): Ditto.
9988         (get_object_hard_regs_subnodes_num): Ditto.
9989         (form_object_hard_regs_nodes_forest): Ditto.
9990         (finish_object_hard_regs_nodes_tree): Ditto.
9991         (finish_object_hard_regs_nodes_forest): Ditto.
9992         (allocnos_have_intersected_live_ranges_p): Rename to
9993         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
9994         (pseudos_have_intersected_live_ranges_p): Rename to
9995         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
9996         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
9997         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
9998         (update_copy_costs): Remove assert.  Skip cost update if the hard
9999         reg does not belong the class.
10000         (assign_hard_reg): Process only profitable hard regs.
10001         (uncolorable_allocnos_num): Make it scalar.
10002         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
10003         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
10004         and ira_reg_class_max_nregs.
10005         (bucket_allocno_compare_func): Check frequency first.
10006         (sort_bucket): Add compare function as a parameter.
10007         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
10008         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
10009         (push_allocno_to_stack): Rewrite for checking new allocno
10010         colorability.
10011         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
10012         (push_only_colorable): Pass new parameter to sort_bucket.
10013         (push_allocno_to_spill): Remove.
10014         (allocno_spill_priority_compare): Make it inline and rewrite.
10015         (splay_tree_allocate, splay_tree_free): Remove.
10016         (allocno_spill_sort_compare): New function.
10017         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
10018         build and use splay tree.  Choose first allocno in uncolorable
10019         allocno bucket to spill.  Remove setting spill cost.
10020         (all_conflicting_hard_regs): Remove.
10021         (setup_allocno_available_regs_num): Check only profitable hard
10022         regs.  Print info about hard regs nodes.
10023         (setup_allocno_left_conflicts_size): Remove.
10024         (put_allocno_into_bucket): Don't call
10025         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
10026         (improve_allocation): New.
10027         (color_allocnos): Call setup_profitable_hard_regs,
10028         form_object_hard_regs_nodes_forest, improve_allocation,
10029         finish_object_hard_regs_nodes_forest.  Setup spill cost.
10030         (print_loop_title): Use pressure classes.
10031         (color_allocnso): Ditto.
10032         (do_coloring): Remove allocation and freeing splay_tree_node_pool
10033         and allocnos_for_spilling.
10034         (ira_sort_regnos_for_alter_reg): Don't setup members
10035         {first,next}_coalesced_allocno.
10036         (color): Remove allocating and freeing removed_splay_allocno_vec.
10037         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
10038         prohibited_class_mode_regs.
10039
10040         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
10041         formatting.
10042         (update_allocno_pressure_excess_length): Use pressure classes.
10043         (inc_register_pressure, dec_register_pressure): Check for pressure
10044         class.
10045         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
10046         pressure class.  Use ira_reg_class_nregs instead of
10047         ira_reg_class_max_nregs.
10048         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
10049         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
10050         (single_reg_class): Use ira_reg_class_nregs instead of
10051         ira_reg_class_max_nregs.
10052         (process_bb_node_lives): Use pressure classes.
10053
10054         * ira-emit.c: Remove mentioning cover classes from the file.  Use
10055         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
10056         (change_loop): Use pressure classes.
10057         (modify_move_list): Call ira_set_allocno_class instead of
10058         ira_set_allocno_cover_class.
10059
10060         * ira-build.c: Remove mentioning cover classes from the file.  Use
10061         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
10062         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
10063         ALLOCNO_UPDATED_CLASS_COST instead of
10064         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
10065         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
10066         (ira_create_allocno): Remove initialization of
10067         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
10068         ALLOCNO_COLORABLE_P.
10069         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
10070         Update conflict regs for the objects.
10071         (create_cap_allocno): Remove assert.  Don't propagate
10072         ALLOCNO_AVAILABLE_REGS_NUM.
10073         (ira_free_allocno_costs): New function.
10074         (finish_allocno): Change a part of code into call of
10075         ira_free_allocno_costs.
10076         (low_pressure_loop_node_p): Use pressure classes.
10077         (object_range_compare_func): Don't compare classes.
10078         (setup_min_max_conflict_allocno_ids): Ditto.
10079
10080         * loop-invariant.c: Remove mentioning cover classes from the file.
10081         Use ira_pressure_classes and ira_pressure_classes_num instead of
10082         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
10083         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
10084         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10085         Use reg_allocno_class instead of reg_cover_class.
10086         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
10087         STACK_REG_COVER_CLASS.
10088         (get_regno_cover_class): Rename to get_regno_pressure_class.
10089         (move_loop_invariants): Initialize and finalize regstat.
10090
10091         * ira.c: Remove mentioning cover classes from the file.  Add
10092         comments about coloring without cover classes.  Use ALLOCNO_CLASS
10093         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
10094         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
10095         setup_class_subset_and_memory_move_costs.
10096         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
10097         (setup_cover_and_important_classes): Rename to
10098         setup_allocno_and_important_classes.
10099         (setup_class_translate_array): New.
10100         (setup_class_translate): Call it for allocno and pressure classes.
10101         (cover_class_order): Rename to allocno_class_order.
10102         (comp_reg_classes_func): Use ira_allocno_class_translate instead
10103         of ira_class_translate.
10104         (reorder_important_classes): Set up ira_important_class_nums.
10105         (setup_reg_class_relations): Set up ira_reg_class_superunion.
10106         (print_class_cover): Rename to print_classes.  Add parameter.
10107         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
10108         Print pressure classes too.
10109         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
10110         setup_reg_subclasses.
10111         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10112         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10113         (setup_prohibited_class_mode_regs): Use
10114         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
10115         (clarify_prohibited_class_mode_regs): New function.
10116         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
10117         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
10118         (ira_init_once): Initialize them.
10119         (free_register_move_costs): Process them.
10120         (ira_init): Move calls of find_reg_classes and
10121         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
10122         Call clarify_prohibited_class_mode_regs.
10123         (ira_no_alloc_reg): Remove.
10124         (too_high_register_pressure_p): Use pressure classes.
10125
10126         * sched-deps.c: Remove mentioning cover classes from the file.
10127         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
10128         ira_pressure_classes and ira_pressure_classes_num instead of
10129         ira_reg_class_cover_size and ira_reg_class_cover.
10130         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
10131         sched_regno_pressure_class instead of sched_regno_cover_class.
10132         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
10133         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
10134
10135         * ira.h: Add 2010 to Copyright.
10136         (ira_no_alloc_reg): Remove external.
10137         (struct target_ira): Rename x_ira_hard_regno_cover_class,
10138         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
10139         x_ira_class_translate to x_ira_hard_regno_allocno_class,
10140         x_ira_allocno_classes_num, x_ira_allocno_classes, and
10141         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
10142         x_ira_pressure_classes, x_ira_pressure_class_translate, and
10143         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
10144         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
10145         x_ira_no_alloc_regs.
10146         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
10147         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
10148         ira_allocno_classes_num and ira_allocno_classes.
10149         (ira_class_translate): Rename to ira_allocno_class_translate.
10150         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
10151         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
10152         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
10153         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
10154         (ira_no_alloc_regs): New.
10155
10156         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
10157         classes from the file.  Use ALLOCNO_CLASS instead of
10158         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
10159         ALLOCNO_COVER_CLASS_COST.
10160         (regno_cover_class): Rename to regno_aclass.
10161         (record_reg_classes): Use ira_reg_class_subunion instead of
10162         ira_reg_class_union.
10163         (record_address_regs): Check overflow.
10164         (scan_one_insn): Ditto.
10165         (print_allocno_costs): Print total mem cost fore regional allocation.
10166         (print_pseudo_costs): Use REG_N_REFS.
10167         (find_costs_and_classes): Use classes intersected with them on the
10168         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
10169         ira_reg_class_union.  Use ira_allocno_class_translate and
10170         regno_aclass instead of ira_class_translate and regno_cover_class.
10171         Modify code for finding regno_aclass.  Setup preferred classes for
10172         the next pass.
10173         (setup_allocno_cover_class_and_costs): Rename to
10174         setup_allocno_class_and_costs.  Use regno_aclass instead of
10175         regno_cover_class.  Use ira_set_allocno_class instead of
10176         ira_set_allocno_cover_class.
10177         (init_costs, finish_costs): Use regno_aclass instead of
10178         regno_cover_class.
10179         (ira_costs): Use setup_allocno_class_and_costs instead of
10180         setup_allocno_cover_class_and_costs.
10181         (ira_tune_allocno_costs_and_cover_classes): Rename to
10182         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
10183         by processing objects.  Use ira_reg_class_max_nregs instead of
10184         ira_reg_class_nregs.
10185
10186         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
10187
10188         * sched-int.h: Remove mentioning cover classes from the file.
10189         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
10190
10191         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
10192         classes from the file.
10193         (struct reg_pref): Rename coverclass into allocnoclass.
10194         (reg_cover_class): Rename to reg_allocno_class.
10195
10196         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
10197
10198         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
10199
10200         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
10201
10202         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
10203
10204         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
10205
10206         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
10207
10208         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
10209
10210         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
10211
10212         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
10213
10214         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
10215
10216         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
10217         (i386_ira_cover_classes): Ditto.
10218
10219         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
10220
10221         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
10222
10223         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
10224
10225         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
10226
10227         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
10228
10229         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
10230
10231         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
10232         (mips_ira_cover_classes): Ditto.
10233
10234         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
10235
10236         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
10237
10238         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
10239
10240         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
10241
10242         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
10243
10244         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
10245         (IRA_COVER_CLASSES_VSX): Ditto.
10246
10247         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
10248         (rs6000_ira_cover_classes): Ditto.
10249
10250         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
10251
10252         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
10253
10254         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
10255
10256         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
10257
10258         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
10259
10260         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
10261
10262         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
10263
10264         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
10265
10266         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
10267
10268         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
10269
10270 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
10271
10272         PR debug/48253
10273         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
10274         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
10275         dw_fde_unlikely_section_end_label, cold_in_std_section,
10276         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
10277         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
10278         fields.
10279         (output_fde): Use dw_fde_second_{begin,end} if second is
10280         true, otherwise dw_fde_{begin,end}.
10281         (output_call_frame_info): Test dw_fde_second_begin != NULL
10282         instead of dw_fde_switched_sections.
10283         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
10284         fields, initialize new fields.  Initialize in_std_section
10285         unconditionally from the first partition.
10286         (dwarf2out_end_epilogue): Don't override dw_fde_end when
10287         dw_fde_second_begin is non-NULL.
10288         (dwarf2out_switch_text_section): Stop initializing removed
10289         dw_fde_struct fields, initialize new fields, initialize
10290         also dw_fde_end here.  Set dw_fde_switch_cfi even when
10291         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
10292         (struct var_loc_list_def): Add last_before_switch field.
10293         (arange_table, arange_table_allocated, arange_table_in_use,
10294         ARANGE_TABLE_INCREMENT, add_arange): Removed.
10295         (size_of_aranges): Count !in_std_section and !second_in_std_section
10296         hunks in fdes, instead of looking at arange_table_in_use.
10297         (output_aranges): Add aranges_length argument, don't call
10298         size_of_aranges here.  Instead of using aranges_table*
10299         emit ranges for fdes when !in_std_section resp.
10300         !second_in_std_section.
10301         (dw_loc_list): Break ranges crossing section switch.
10302         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
10303         use dw_fde_second_end instead of dw_fde_end as end of last range.
10304         (gen_subprogram_die): Don't call add_arange.  Use
10305         dw_fde_{begin,end} for first partition and if switched
10306         section dw_fde_second_{begin,end} for the second.
10307         (var_location_switch_text_section_1,
10308         var_location_switch_text_section): New functions.
10309         (dwarf2out_begin_function): Initialize cold_text_section even
10310         when function_section () isn't text_section.
10311         (prune_unused_types): Don't walk arange_table.
10312         (dwarf2out_finish): Don't needlessly test
10313         flag_reorder_blocks_and_partition when testing cold_text_section_used.
10314         If info_section_emitted, call size_of_aranges and if it indicates
10315         non-empty .debug_aranges, call output_aranges with the computed
10316         size.  Stop using removed dw_fde_struct fields, use
10317         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
10318         for second.
10319
10320         PR debug/48203
10321         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
10322         create ENTRY_VALUE if incoming or address of incoming's MEM
10323         is a hard REG.
10324         * dwarf2out.c (mem_loc_descriptor): Don't emit
10325         DW_OP_GNU_entry_value of DW_OP_fbreg.
10326         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
10327         on ENTRY_VALUE is able to find the canonical parameter VALUE.
10328         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
10329         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
10330         ENTRY_VALUE_EXPs.
10331         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
10332         is a REG_P or MEM_P with REG_P address, compute hash directly
10333         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
10334         (preserve_only_constants): Don't clear VALUES forwaring
10335         ENTRY_VALUE to some other VALUE.
10336
10337 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
10338
10339         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
10340         instead of GEN_INT.
10341
10342 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
10343
10344         * cfgexpand.c (expand_gimple_cond): Always set the source location and
10345         block before expanding the statement.
10346         (expand_gimple_stmt_1): Likewise.  Set them here...
10347         (expand_gimple_stmt): ...and not here.  Tidy.
10348         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
10349         unknown.
10350
10351 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
10352
10353         * Makefile.in: New rule for cprop.o.
10354         * gcse.c: Move constant/copy propagation to cprop.c.
10355         (compute_local_properties): Only handle expression tables.
10356         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
10357         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
10358         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
10359         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
10360         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
10361         compute_cprop_data, find_used_regs, try_replace_reg,
10362         find_avail_set, cprop_jump, constprop_register, cprop_insn,
10363         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
10364         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
10365         find_bypass_set, reg_killed_on_edge, bypass_block,
10366         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
10367         execute_rtl_cprop, pass_rtl_cprop): Move to...
10368         * cprop.c: ...here.  New file, constant/copy propagation for RTL
10369         moved from gcse.c to here with minor cleanups in duplicated code.
10370
10371 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
10372
10373         * config/i386/i386.c (flag_opts): Fix a typo in
10374         -mavx256-split-unaligned-store.
10375
10376 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
10377
10378         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
10379         LIBCALL_VALUE): Remove macros.
10380         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10381         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10382         (h8300_function_value, h8300_libcall_value,
10383         h8300_function_value_regno_p): New functions.
10384
10385 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
10386
10387         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
10388
10389 2011-03-28  Jeff Law  <law@redhat.com>
10390
10391         * tree-ssa-threadupdate.c (redirect_edges): Call
10392         create_edge_and_update_destination_phis as needed.
10393         (create_edge_and_update_destination_phis): Accept new BB argument.
10394         All callers updated.
10395         (thread_block): Do not update the profile when threading around
10396         intermediate blocks.
10397         (thread_single_edge): Likewise.
10398         (determine_bb_domination_status): If BB is not a successor of the
10399         loop header, return NONDOMINATING.
10400         (register_jump_thread): Note when we register a jump thread around
10401         an intermediate block.
10402         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
10403         (thread_across_edge): Use it.
10404
10405 2011-03-28  Tristan Gingold  <gingold@adacore.com>
10406
10407         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
10408         when for_return is 2.
10409
10410 2011-03-28  Jeff Law  <law@redhat.com>
10411
10412         * var-tracking.c (canonicalize_values_mark): Delete unused
10413         lhs assignment.
10414         (canonicalize_values_star, set_variable_part): Likewise.
10415         (clobber_variable_part, delete_variable_part): Likewise.
10416
10417 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
10418
10419         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
10420
10421 2011-03-28  Martin Jambor  <mjambor@suse.cz>
10422
10423         * tree-inline.c (expand_call_inline): Do not check that destination
10424         node is analyzed.
10425         (optimize_inline_calls): Assert that destination node is analyzed.
10426         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
10427         not call tree_lowering_passes.
10428         * cgraph.h (cgraph_analyze_function): Declare.
10429         * cgraphunit.c (cgraph_analyze_function): Make public.
10430
10431 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
10432
10433         * config/sparc/sparc-opts.h: New.
10434         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
10435         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
10436         (sparc_option_override): Store processor_type enumeration rather
10437         than string in cpu_default.  Remove name and enumeration from
10438         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
10439         without using sparc_select.  Use target_flags_explicit instead of
10440         fpu_option_set.
10441         * config/sparc/sparc.h (enum processor_type): Move to
10442         sparc-opts.h.
10443         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
10444         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
10445         HeaderInclude entry.
10446         (mcpu=, mtune=): Use Var and Enum.
10447         (sparc_processor_type): New Enum and EnumValue entries.
10448
10449 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10450             Iain Sandoe  <iains@gcc.gnu.org>
10451
10452         PR target/48245
10453         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
10454
10455 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
10456
10457         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
10458         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
10459         Insert new statements at it in lieu of STMT.
10460         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
10461         * tree-vect-stmts.c (vectorizable_store): Likewise.
10462         (vectorizable_load): Likewise.
10463
10464 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
10465
10466         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
10467         (divtf3): Ditto.
10468         (multf3): Ditto.
10469         (subtf3): Ditto.
10470
10471 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10472
10473         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
10474         unaligned 256bit load/store.
10475         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
10476         (*avx_movdqu<avxmodesuffix>): Likewise.
10477
10478 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10479
10480         PR target/48288
10481         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
10482         * config/pa/pa.md (iordi3): Use new predicate in expander.
10483         (iorsi3): Likewise.
10484
10485 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
10486
10487         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
10488         FUNCTION_VALUE_REGNO_P): Remove macros.
10489         * config/mips/mips-protos.h (mips_function_value): Remove.
10490         * config/mips/mips.c (mips_function_value): Rename to...
10491         (mips_function_value_1): ... this. Make static.  Handle receiving
10492         the function type in 'fn_decl_or_type' argument.
10493         (mips_function_value, mips_libcall_value,
10494         mips_function_value_regno_p): New function.
10495         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10496         TARGET_FUNCTION_VALUE_REGNO_P): Define.
10497
10498 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
10499
10500         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
10501         and -mavx256-split-unaligned-store.
10502         (ix86_option_override_internal): Split 32-byte AVX unaligned
10503         load/store by default.
10504         (ix86_avx256_split_vector_move_misalign): New.
10505         (ix86_expand_vector_move_misalign): Use it.
10506
10507         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
10508         -mavx256-split-unaligned-store.
10509
10510         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
10511         256bit load/store.  Generate unaligned store on misaligned memory
10512         operand.
10513         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
10514         256bit load/store.
10515         (*avx_movdqu<avxmodesuffix>): Likewise.
10516
10517         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
10518         -mavx256-split-unaligned-store.
10519
10520 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
10521
10522         PR target/38598
10523         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
10524         Update commentary.
10525
10526 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
10527
10528         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
10529         opno arguments with an expand_operand.  Use create_input_operand.
10530         (mips_prepare_builtin_target): Delete.
10531         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
10532         functions.
10533         (mips_expand_builtin_direct): Use create_output_operand and
10534         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
10535         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
10536         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
10537
10538 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
10539
10540         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
10541         function.
10542         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
10543
10544 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
10545
10546         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
10547         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
10548         basic blocks and call commit_edge_insertions directly.
10549         (fixup_abnormal_edges): Move from here to...
10550         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
10551         on the edges and return whether some have actually been inserted.
10552         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
10553         compensation code.
10554
10555 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
10556
10557         PR rtl-optimization/48144
10558         * sel-sched-ir.c (merge_history_vect): Factor out from ...
10559         (merge_expr_data): ... here.
10560         (av_set_intersect): Rename to av_set_code_motion_filter.
10561         Update all callers.  Call merge_history_vect when an expression
10562         is found in both sets.
10563         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
10564
10565 2011-03-26  Alan Modra  <amodra@gmail.com>
10566
10567         * config/rs6000/predicates.md (word_offset_memref_op): Handle
10568         cmodel medium addresses.
10569         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
10570         64-bit gpr loads and stores.
10571         (rs6000_secondary_reload_ppc64): New function.
10572         * config/rs6000/rs6000-protos.h: Declare it.
10573         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
10574
10575 2011-03-26  Alan Modra  <amodra@gmail.com>
10576
10577         PR target/47487
10578         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
10579         GNU Go in traceback table.
10580
10581 2011-03-25  Richard Henderson  <rth@redhat.com>
10582
10583         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
10584         if there are exactly 6 operands.
10585         (set_storage_via_setmem): Similarly.
10586
10587 2011-03-25  Kai Tietz  <ktietz@redhat.com>
10588
10589         * collect2.c (write_c_file_stat): Handle backslash
10590         as right-hand directory separator.
10591         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
10592         checking just for slash.
10593         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
10594         instead of checking for trailing slash.
10595         * gcc.c (record_temp_file): Use filename_cmp instead
10596         of strcmp.
10597         (do_spec_1): Likewise.
10598         (replace_outfile_spec_function): Likewise.
10599         (is_directory): Use filename_ncmp instead of strncmp.
10600         (print_multilib_info): Likewise.
10601         * gcov.c (find_source): Use filename_cmp instead
10602         instead of strcmp.
10603         (make_gcov_file_name): Fix order of slash/backslash
10604         checks.
10605         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
10606         (add_standard_paths): Likewise.
10607         * mips-tfile.c (saber_stop): Handle backslash.
10608         * prefix.c (update_path): Use filename_ncmp instead of
10609         strncmp.
10610         * profile.c (output_location): Use filename_cmp instead
10611         of strcmp.
10612         * read-md.c (handle_toplevel_file): Handle backslash.
10613         * tlink.c (frob_extension):  Likewise.
10614         * tree-cfg.c (same_line_p): Use filename_cmp instead of
10615         strcmp.
10616         * tree-dump.c (dequeue_and_dump): Handle backslash.
10617         * tree.c (get_file_function_name): Likewise.
10618         * gengtype.c (read_input_list): Likewise.
10619         (get_file_realbasename): Likewise.
10620         (get_output_file_with_visibility): Use filename_cmp
10621         instead of strcmp.
10622
10623 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
10624
10625         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
10626         case to VFPv1.
10627
10628 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
10629
10630         * fold-const.c (expr_location_or): New function.
10631         (fold_truth_not_expr): Call it.
10632
10633 2011-03-25  Jeff Law  <law@redhat.com>
10634
10635         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
10636         va_end.
10637         * c-family/c-common.c (def_fn_type): Likewise.
10638         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
10639         * emit-rtl.c (gen_rtvec): Likewise.
10640         * lto/lto-lang.c (def_fn_type): Likewise.
10641
10642 2011-03-25  Richard Guenther  <rguenther@suse.de>
10643
10644         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
10645         also generate copies.
10646         (fini_copy_prop): Handle constant values properly.
10647
10648 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
10649
10650         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
10651         mode size instead of bitsize with DWARF2_ADDR_SIZE.
10652         (hash_loc_operands, compare_loc_operands): Handle
10653         DW_OP_GNU_entry_value.
10654
10655 2011-03-25  Kai Tietz  <ktietz@redhat.com>
10656
10657         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
10658         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
10659         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
10660         comment and use macro TARGET_64BIT_MS_ABI instead.
10661         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
10662         and change default behavior for 32-bit MS_ABI.
10663         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
10664         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
10665         32-bit, too.
10666         (ix86_cfun_abi): Likewise.
10667         (ix86_maybe_switch_abi): Adjust comment.
10668         (init_cumulative_args): Check for bit-ness in MS_ABI case.
10669         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
10670         instead of checking for SYSV_ABI.
10671         (ix86_nsaved_sseregs): Likewise.
10672         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
10673         to 16 bytes.
10674         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
10675         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
10676         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
10677         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
10678         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
10679
10680 2011-03-25  Richard Guenther  <rguenther@suse.de>
10681
10682         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
10683         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10684         (verify_gimple): Remove.
10685         * tree-cfg.c (verify_gimple_call): Merge verification
10686         from verify_stmts.
10687         (verify_gimple_phi): Merge verification from verify_stmts.
10688         (verify_gimple_label): New function.
10689         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
10690         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
10691         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
10692         (verify_stmts): Rename to verify_gimple_in_cfg.
10693         (verify_gimple_in_cfg): New function.
10694         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
10695         * tree-ssa.c (verify_ssa): Likewise.
10696         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
10697
10698 2011-03-25  Richard Guenther  <rguenther@suse.de>
10699
10700         * passes.c (init_optimization_passes): Add FRE pass after
10701         early SRA.
10702
10703 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
10704             Andrew Stubbs  <ams@codesourcery.com>
10705
10706         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
10707         for Cortex-A8.
10708         (arm_movdi_vfp_cortexa8): New pattern.
10709         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
10710         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
10711         instructions when tuning for Cortex-A8.  Set attribute "arch".
10712         * config/arm/arm.md: Move include arm-tune.md up a bit.
10713         (define_attr "arch"): Add "onlya8" and "nota8" values.
10714         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
10715
10716 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
10717
10718         PR bootstrap/48282
10719         Revert:
10720         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
10721
10722         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10723         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
10724         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10725         * passes.c (init_optimization_passes): Move
10726         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10727
10728 2011-03-25  Kai Tietz  <ktietz@redhat.com>
10729
10730         * c-typeck.c (comptypes_internal): Replace target
10731         hook call of comp_type_attributes by version in tree.c file.
10732         * gimple.c (gimple_types_compatible_p_1): Likewise.
10733         * tree-ssa.c (useless_type_conversion_p): Likewise.
10734         * tree.c (build_type_attribute_qual_variant): Likewise.
10735         (attribute_value_equal): New static helper function.
10736         (comp_type_attributes): New function.
10737         (merge_attributes): Use attribute_value_equal for comparison.
10738         (attribute_list_contained): Likewise.
10739         * tree.h (comp_type_attributes): New prototype.
10740
10741 2011-03-25  Richard Guenther  <rguenther@suse.de>
10742
10743         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
10744         of complex types at -O0.
10745         (verify_gimple_assign_binary): Likewise.
10746         (verify_gimple_assign_ternary): Likewise.
10747
10748 2011-03-24  Mark Wielaard  <mjw@redhat.com>
10749
10750         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
10751         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
10752
10753 2011-03-24  Mark Wielaard  <mjw@redhat.com>
10754
10755         PR debug/48041
10756         * dwarf2out.c (output_abbrev_section): Only write table when
10757         abbrev_die_table_in_use > 1.
10758
10759 2011-02-24  Richard Henderson  <rth@redhat.com>
10760
10761         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
10762         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
10763         (alpha_expand_unaligned_load_words): Use extql.
10764         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
10765         (emit_insxl): Handle all modes for consistency.
10766
10767 2011-02-24  Richard Henderson  <rth@redhat.com>
10768
10769         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
10770         (alpha_expand_unaligned_load): Likewise.
10771         (alpha_expand_unaligned_store): Likewise.
10772         (alpha_expand_unaligned_load_words): Likewise.
10773         (alpha_expand_unaligned_store_words): Likewise.
10774         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
10775         (alpha_split_lock_test_and_set_12): Likewise.
10776         (print_operand, alpha_fold_builtin_extxx): Likewise.
10777         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
10778         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
10779         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
10780         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
10781         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
10782         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
10783         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
10784         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
10785         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
10786         (extwl, extll, extql): Similarly.
10787         (inswh, inslh, insqh): Similarly.
10788         (mskbl, mskwl, mskll, mskql): Similarly.
10789         (mskwh, msklh, mskqh): Similarly.
10790
10791 2011-02-24  Richard Henderson  <rth@redhat.com>
10792
10793         * config/alpha/alpha.md (attribute isa): Add er, ner.
10794         (attribute enabled): Handle them.
10795         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
10796
10797 2011-02-24  Richard Henderson  <rth@redhat.com>
10798
10799         * config/alpha/alpha.md (attribute isa): Add vms.
10800         (attribute enabled): Handle it.
10801         (*movsf): Merge *movsf_{nofix,fix,nofp}.
10802         (*movdf): Merge *movdf_{nofix,fix,nofp}.
10803         (*movtf): Rename from *movtf_internal for consistency.
10804         (*movsi): Merge with *movsi_nt_vms.
10805         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
10806         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
10807         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
10808         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
10809
10810 2011-02-24  Richard Henderson  <rth@redhat.com>
10811
10812         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
10813         (extendqisi2, extendhisi2): Likewise.
10814         (extendqidi2): Simplify BWX/non-BWX expansions.
10815         (extendhidi2): Similarly.
10816
10817 2011-02-24  Richard Henderson  <rth@redhat.com>
10818
10819         * config/alpha/alpha.md (attribute isa): New.
10820         (attribute enabled): New.
10821         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
10822         (zero_extendqisi2, zero_extendqidi2): Similarly.
10823         (zero_extendhisi2, zero_extendhidi2): Similarly.
10824         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
10825
10826 2011-02-24  Richard Henderson  <rth@redhat.com>
10827
10828         * config/alpha/predicates.md (input_operand): Revert last change;
10829         update comment to mention 32-bit VMS rather than Windows.
10830
10831 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
10832
10833         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
10834         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
10835         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
10836         * passes.c (init_optimization_passes): Move
10837         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
10838
10839 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
10840
10841         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
10842
10843 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
10844
10845         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
10846         correctly.
10847
10848 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
10849
10850         PR debug/48204
10851         * simplify-rtx.c (simplify_const_unary_operation): Call
10852         real_convert when changing mode class with FLOAT_EXTEND.
10853
10854 2011-03-24  Nick Clifton  <nickc@redhat.com>
10855
10856         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
10857         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10858         * config/rx/rx.c (rx_option_override): Set align_jumps,
10859         align_loops and align_labels if not set by the user.
10860         (rx_align_for_label): New function.
10861         (rx_max_skip_for_label): New function.
10862         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
10863         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
10864         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
10865         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
10866         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
10867
10868 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
10869
10870         PR rtl-optimization/48263
10871         * optabs.c (expand_binop_directly): Reinstate convert_modes code
10872         and original commutative_p handling.  Use maybe_gen_insn.
10873
10874 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10875
10876         * reload.c (find_reloads_subreg_address): Add address_reloaded
10877         parameter and return true there if the full address has been
10878         reloaded.
10879         (find_reloads_toplev): Pass address_reloaded flag.
10880         (find_reloads_address_1): Don't use address_reloaded parameter.
10881
10882 2011-03-24  Jeff Law  <law@redhat.com>
10883
10884         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
10885         unused variable "ann".
10886         (remove_unused_locals): Likewise.
10887
10888         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
10889         statement.
10890
10891         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
10892         after it is freed.
10893
10894 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10895
10896         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
10897         for invalid symbolic addresses.
10898         (s390_secondary_reload): Don't use s390_check_symref_alignment for
10899         larl operands.
10900
10901 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
10902
10903         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
10904         the argument in calls to fold_truth_not_expr.
10905
10906 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
10907
10908         * tree.c (record_node_allocation_statistics): New function.
10909         (make_node_stat, copy_node_stat, build_string): Call it.
10910         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
10911         (build1_stat, build_omp_clause): Likewise.
10912
10913 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
10914
10915         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
10916         last commit.
10917
10918 2011-03-24  Richard Guenther  <rguenther@suse.de>
10919
10920         PR tree-optimization/48271
10921         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
10922         blocks that still exist.
10923
10924 2011-03-24  Richard Guenther  <rguenther@suse.de>
10925
10926         PR tree-optimization/48270
10927         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
10928         not free datarefs before ddrs.
10929
10930 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
10931
10932         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
10933         from the address built for a reference with variable offset.
10934
10935 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
10936
10937         PR target/48237
10938         * config/i386/i386.md (*movdf_internal_rex64): Do not split
10939         alternatives that can be handled with movq or movabsq insn.
10940         (*movdf_internal): Disable for !TARGET_64BIT.
10941         (*movdf_internal_nointeger): Ditto.
10942         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
10943
10944 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
10945
10946         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10947         (FUNCTION_ARG_ADVANCE): Likewise.
10948         * tm.texi.in: Change references to them to hook references.
10949         * tm.texi: Regenerate.
10950         * targhooks.c (default_function_arg): Eliminate check for target macro.
10951         (default_function_incoming_arg): Likewise.
10952         (default_function_arg_advance): Likewise.
10953         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10954         (function_arg_advance): Likewise.
10955         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10956
10957 2011-03-24  Richard Guenther  <rguenther@suse.de>
10958
10959         PR middle-end/48269
10960         * tree-object-size.c (addr_object_size): Do not double-account
10961         for MEM_REF offsets.
10962
10963 2011-03-24  Diego Novillo  <dnovillo@google.com>
10964
10965         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
10966         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
10967         (lto_input_data_block): Move from lto-opts.c.  Make extern.
10968         Update all users.
10969         (lto_input_string): Rename from input_string.  Make extern.
10970         Update all users.
10971         * lto-streamer-out.c (lto_output_string_with_length): Rename from
10972         output_string_with_length.
10973         Output 0 to indicate a non-NULL string.  Update all callers to
10974         not emit 0.
10975         (lto_output_string): Rename from output_string.  Make extern.
10976         Update all users.
10977         (lto_output_decl_state_streams): Make extern.
10978         (lto_output_decl_state_refs): Make extern.
10979         * lto-streamer.h (lto_input_string): Declare.
10980         (lto_input_data_block): Declare.
10981         (lto_output_string): Declare.
10982         (lto_output_string_with_length): Declare.
10983         (lto_output_decl_state_streams): Declare.
10984         (lto_output_decl_state_refs): Declare.
10985
10986 2011-03-24  Richard Guenther  <rguenther@suse.de>
10987
10988         PR tree-optimization/46562
10989         * tree.c (build_invariant_address): New function.
10990         * tree.h (build_invariant_address): Declare.
10991         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
10992         a renamed function moved ...
10993         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
10994         Take valueization callback parameter.
10995         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
10996         * gimple-fold.h: New file.
10997         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
10998         (ccp_fold, fold_const_aggregate_ref,
10999         fold_ctor_reference, fold_nonarray_ctor_reference,
11000         fold_array_ctor_reference, fold_string_cst_ctor_reference,
11001         get_base_constructor): Move ...
11002         * gimple-fold.c: ... here.
11003         (gimple_fold_stmt_to_constant_1): New function
11004         split out from ccp_fold.  Take a valueization callback parameter.
11005         Valueize all operands.
11006         (gimple_fold_stmt_to_constant): New wrapper function.
11007         (fold_const_aggregate_ref_1): New function split out from
11008         fold_const_aggregate_ref.  Take a valueization callback parameter.
11009         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
11010         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
11011         invariant POINTER_PLUS_EXPRs to invariant form.
11012         (vn_valueize): New function.
11013         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
11014         * tree-vrp.c (vrp_valueize): New function.
11015         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
11016         to fold statements to constants.
11017         * tree-ssa-pre.c (eliminate): Properly guard propagation of
11018         function declarations.
11019         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
11020         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
11021
11022 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
11023
11024         * config/h8300/predicates.md (jump_address_operand): Fix register
11025         mode check.
11026
11027 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
11028
11029         * doc/invoke.texi (max-stores-to-sink): Document.
11030         * params.h (MAX_STORES_TO_SINK): Define.
11031         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
11032         if either vectorization or if-conversion is disabled.
11033         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
11034         tree-vect-data-refs.c vect_equal_offsets.
11035         (dr_equal_offsets_p): New function.
11036         (find_data_references_in_bb): Remove static.
11037         * tree-data-ref.h (find_data_references_in_bb): Declare.
11038         (dr_equal_offsets_p): Likewise.
11039         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
11040         (vect_drs_dependent_in_basic_block): Update calls to
11041         vect_equal_offsets.
11042         (vect_check_interleaving): Likewise.
11043         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
11044         (cond_if_else_store_replacement): Rename to...
11045         (cond_if_else_store_replacement_1): ... this.  Change arguments and
11046         documentation.
11047         (cond_if_else_store_replacement): New function.
11048         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
11049         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
11050
11051 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
11052
11053         PR target/46934
11054         * config/arm/arm.md (casesi): Use the gen_int_mode() function
11055         to subtract lower bound instead of GEN_INT().
11056
11057 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
11058
11059         PR other/48179
11060         PR other/48221
11061         PR other/48234
11062         * doc/extend.texi (Alignment): Move section to match order in TOC.
11063         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
11064         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
11065
11066 2011-03-23  Jeff Law  <law@redhat.com>
11067
11068         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
11069         before removing the edge.
11070
11071         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
11072         it may have been freed by redirect_branch_edge or
11073         redirect_edge_succ_nodup.
11074
11075 2011-03-23  Richard Guenther  <rguenther@suse.de>
11076
11077         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
11078         (check_va_list_escapes): Likewise.
11079         (check_all_va_list_escapes): Likewise.
11080
11081 2011-03-23  Richard Guenther  <rguenther@suse.de>
11082
11083         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
11084         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
11085         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
11086         (alias.o): Likewise.
11087         (ipa-type-escape.o): Remove.
11088         (ipa-struct-reorg.o): Likewise.
11089         (GTFILES): Remove ipa-struct-reorg.c.
11090         * alias.c: Do not include ipa-type-escape.h.
11091         * tree-ssa-alias.c: Likewise.
11092         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
11093         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
11094         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
11095         and ipa-type-escape passes.
11096         * tree-pass.h (pass_ipa_type_escape): Remove.
11097         (pass_ipa_struct_reorg): Likewise.
11098         * ipa-struct-reorg.h: Remove.
11099         * ipa-struct-reorg.c: Likewise.
11100         * ipa-type-escape.h: Likewise.
11101         * ipa-type-escape.c: Likewise.
11102         * doc/invoke.texi (-fipa-struct-reorg): Remove.
11103         (--param struct-reorg-cold-struct-ratio): Likewise.
11104         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11105         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
11106         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
11107
11108 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11109
11110         * config/s390/2084.md: Enable all insn reservations also for z9_ec
11111         cpu attribute value.
11112         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
11113         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
11114         * config/s390/s390.c (processor_flags_table): New constant array.
11115         (s390_handle_arch_option): Remove.
11116         (s390_handle_option): Remove s390_handle_arch_option invocations
11117         and OPT_mwarn_framesize_ handling.
11118         (s390_option_override): Remove s390_handle_arch_option invocation.
11119         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
11120         warnings.
11121         * config/s390/s390.md (cpu attribute): Add z9_ec value.
11122         * config/s390/s390.opt (s390_tune, s390_arch)
11123         (march=): Replace s390_arch_option enum and values with
11124         processor_type.  Set variable name to s390_arch.  Set
11125         initialization value.
11126         (mtune=): Replace s390_arch_option with processor_type.  Set
11127         variable name to s390_tune.  Set initialization value.
11128
11129 2011-03-23  Julian Brown  <julian@codesourcery.com>
11130
11131         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
11132         accesses which are not naturally aligned.
11133
11134 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
11135
11136         PR target/47553
11137         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
11138
11139 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
11140
11141         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
11142         parameter from "int" to "enum insn_code".
11143         (expand_operand_type): New enum.
11144         (expand_operand): New structure.
11145         (create_expand_operand): New function.
11146         (create_fixed_operand, create_output_operand): Likewise
11147         (create_input_operand, create_convert_operand_to): Likewise.
11148         (create_convert_operand_from, create_address_operand): Likewise.
11149         (create_integer_operand): Likewise.
11150         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
11151         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11152         (expand_insn, expand_jump_insn): Likewise.
11153         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
11154         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
11155         (expand_movstr, expand_builtin___clear_cache): Likewise.
11156         (expand_builtin_lock_release): Likewise.
11157         * explow.c (allocate_dynamic_stack_space): Likewise.
11158         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
11159         and use the default handling in that case.
11160         * expmed.c (check_predicate_volatile_ok): Delete.
11161         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
11162         (emit_cstore): Likewise.
11163         * expr.c (emit_block_move_via_movmem): Likewise.
11164         (set_storage_via_setmem, expand_assignment): Likewise.
11165         (emit_storent_insn, try_casesi): Likewise.
11166         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
11167         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
11168         (expand_vec_shift_expr, expand_binop_directly): Likewise.
11169         (expand_twoval_unop, expand_twoval_binop): Likewise.
11170         (expand_unop_direct, emit_indirect_jump): Likewise.
11171         (emit_conditional_move, vector_compare_rtx): Likewise.
11172         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
11173         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
11174         (expand_sync_lock_test_and_set): Likewise.
11175         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
11176         (emit_unop_insn): Likewise.
11177         (expand_copysign_absneg): Change icode to an insn_code.
11178         (create_convert_operand_from_type): New function.
11179         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
11180         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
11181         (expand_insn, expand_jump_insn): Likewise.
11182         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
11183         than const_int_operand for operand 2.
11184
11185 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11186
11187         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
11188         if possible.
11189
11190 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
11191
11192         * emit-rtl.c (emit_pattern_before_noloc): New function.
11193         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
11194         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
11195         (emit_pattern_after_noloc): New function.
11196         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
11197         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
11198
11199 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
11200
11201         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
11202         (__ffsDI2): Likewise.
11203
11204 2011-03-22  Richard Henderson  <rth@redhat.com>
11205
11206         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
11207         of !TARGET_ABI_OPEN_VMS.
11208         (alpha_trampoline_init, alpha_start_function): Likewise.
11209         (alpha_expand_epilogue, alpha_file_start): Likewise.
11210         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
11211         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
11212         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
11213         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
11214         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
11215
11216 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11217
11218         * config/s390/s390-opts.h: New.
11219         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
11220         s390_arch_flags, s390_warn_framesize, s390_stack_size,
11221         s390_stack_guard): Remove.
11222         (s390_handle_arch_option): Return void.  Take enum
11223         s390_arch_option value instead of string and searching array.
11224         (s390_handle_option): Don't assert that global structures are in
11225         use.  Access variables via opts pointer.  Use error_at.  Don't use
11226         sscanf for -mstack-guard= or -mstack-size=.  Update call to
11227         s390_handle_arch_option.
11228         (s390_option_override): Update call to s390_handle_arch_option.
11229         (s390_emit_prologue): Use %d format for s390_stack_size in
11230         diagnostic.  Use %wd for HOST_WIDE_INT.
11231         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
11232         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
11233         * config/s390/s390.opt (config/s390/s390-opts.h): New
11234         HeaderInclude entry.
11235         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
11236         s390_arch_flags, s390_warn_framesize): New Variable entries.
11237         (s390_arch_option): New Enum and EnumValue entries.
11238         (march=): Use Enum instead of Var.
11239         (mstack-guard=, mstack-size=): Use UInteger and Var.
11240         (mtune=): Use Enum.
11241
11242 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11243
11244         * config/score/score.c (score_handle_option): Don't assert that
11245         global structures are in use.  Access target_flags via opts
11246         pointer.  Use value of -march= option to determine target_flags
11247         settings.
11248         * config/score/score.opt (march=): Use Enum.
11249         (score_arch): New Enum and EnumValue entries.
11250
11251 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11252
11253         * config/mep/mep.c (option_mtiny_specified): Remove.
11254         (mep_option_override): Move register handling for -mivc2 from
11255         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
11256         instead of option_mtiny_specified.
11257         (mep_handle_option): Access target_flags via opts pointer.  Don't
11258         assert that global structures are in use.  Defer part of -mivc2
11259         handling and move it to mep_option_override.
11260         * config/mep/mep.opt (IVC2): New Mask entry.
11261         (mivc2): Use Var and Defer instead of Mask.
11262
11263 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11264
11265         * config/v850/v850-opts.h: New.
11266         * config/v850/v850.c (small_memory): Replace with
11267         small_memory_physical_max array.  Make that array static const.
11268         (v850_handle_memory_option): Take integer value of argument.  Take
11269         gcc_options pointer, option text and location.  Return void.
11270         Update for changes to small memory structures.
11271         (v850_handle_option): Access target_flags via opts pointer.  Don't
11272         assert that global structures are in use.  Update calls to
11273         v850_handle_memory_option.
11274         (v850_encode_data_area): Update references to small memory settings.
11275         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
11276         (enum small_memory_type): Move to v850-opts.h.
11277         * config/v850/v850.opt (config/v850/v850-opts.h): New
11278         HeaderInclude entry.
11279         (small_memory_max): New Variable entry.
11280         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
11281         (mtda, mzda): Likewise.
11282
11283 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11284
11285         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
11286         pointer.  Don't assert that global structures are in use.
11287
11288 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11289
11290         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
11291         via opts pointer.  Don't assert that global structures are in use.
11292
11293 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11294
11295         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
11296         (munix=93): Use Var.
11297         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
11298         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
11299         * config/pa/pa-opts.h: New.
11300         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
11301         (pa_handle_option): Don't assert that global structures are in
11302         use.  Access target_flags via opts pointer.  Don't handle
11303         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
11304         OPT_munix_98 here.
11305         (pa_option_override): Handle deferred OPT_mfixed_range_.
11306
11307 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11308
11309         * config/mn10300/mn10300-opts.h: New.
11310         * config/mn10300/mn10300.c (mn10300_processor,
11311         mn10300_tune_string): Remove.
11312         (mn10300_handle_option): Don't assert that global structures are
11313         in use.  Access mn10300_processor via opts pointer.  Don't handle
11314         OPT_mtune_ here.
11315         * config/mn10300/mn10300.h (enum processor_type): Move to
11316         mn10300-opts.h.
11317         (mn10300_processor): Remove.
11318         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
11319         HeaderInclude entry.
11320         (mn10300_processor): New Variable entry.
11321         (mtune=): Use Var.
11322
11323 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11324
11325         * config/microblaze/microblaze.c: Don't include opts.h.
11326         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
11327         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
11328         (mno-clearbss): Use Var and Warn.
11329
11330 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11331
11332         * config/m32r/m32r-opts.h: New.
11333         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
11334         (m32r_handle_option): Don't assert that global structures are in
11335         use.  Access target_flags and m32r_cache_flush_func via opts
11336         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
11337         OPT_mno_flush_trap here.
11338         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
11339         include of m32r-opts.h.
11340         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
11341         HeaderInclude entry.
11342         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
11343         (mmodel=): Use Enum and Var.
11344         (m32r_model): New Enum and EnumValue entries.
11345         (mno-flush-trap): Use Var.
11346         (msdata=): Use Enum and Var.
11347         (m32r_sdata): New Enum and EnumValue entries.
11348
11349 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11350
11351         * config/m32c/m32c.c: Don't include opts.h.
11352         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
11353         m32c_handle_option): Remove.
11354         (m32c_option_override): Check global_options_set.x_target_memregs
11355         instead of target_memregs_set.
11356         * config/m32c/m32c.h (target_memregs): Remove.
11357         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
11358         variable.
11359
11360 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11361
11362         * config/iq2000/iq2000-opts.h: New.
11363         * config/iq2000/iq2000.c: Don't include opts.h.
11364         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
11365         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
11366         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
11367         HeaderInclude entry.
11368         (iq2000_tune): New Variable entry.
11369         (march=): Add comment.  Use Enum.
11370         (iq2000_arch): New Enum and EnumValue entries.
11371         (mcpu=): Use Enum and Var.
11372         (iq2000_tune): New Enum and EnumValue entries.
11373
11374 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11375
11376         * config/ia64/ia64-opts.h: New.
11377         * config/ia64/ia64.c (ia64_tune): Remove.
11378         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
11379         here.  Use error_at.
11380         (ia64_option_override): Handle deferred OPT_mfixed_range_.
11381         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
11382         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
11383         HeaderInclude entry.
11384         (ia64_tune): New Variable entry.
11385         (mfixed-range=): Use Defer and Var.
11386         (mtune=): Use Enum and Var.
11387         (ia64_tune): New Enum and EnumValue entries.
11388
11389 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11390
11391         * config/frv/frv-opts.h: New.
11392         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
11393         frv-opts.h.
11394         (frv_cpu_type): Remove.
11395         * config/frv/frv.c: Don't include opts.h.
11396         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
11397         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
11398         (frv_cpu_type): New Variable entry.
11399         (frv_cpu): New Enum and EnumValue entries.
11400
11401 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11402
11403         * config/cris/cris.c (cris_handle_option): Access target_flags via
11404         opts pointer.  Don't assert that global structures are in use.
11405         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
11406         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
11407
11408 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11409
11410         * config/bfin/bfin-opts.h: New.
11411         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
11412         bfin_si_revision, bfin_workarounds): Remove.
11413         (bfin_cpus): Make static const.
11414         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
11415         not bfin_lib_id_given.
11416         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
11417         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
11418         pointer. Use error_at.  Don't assert that global structures are in use.
11419         * config/bfin/bfin.h: Include bfin-opts.h.
11420         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
11421         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
11422         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
11423         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
11424         entries.
11425
11426 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11427
11428         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
11429         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
11430         or -msoft-float here.
11431         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
11432         -msoft-float and -mhard-float.
11433         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
11434         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11435         msoft-float.
11436         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
11437         -msoft-float.
11438         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
11439         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
11440         not mhard-float.
11441         (LIBGCC_SPEC): Don't handle -msoft-float.
11442         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
11443         -mhard-float.
11444         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
11445         msoft-float.
11446         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
11447         -mfloat-abi=*, not -msoft-float and -mhard-float.
11448         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
11449         -msoft-float.
11450         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
11451         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
11452         mhard-float and msoft-float.
11453         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
11454         mfloat-abi=soft in comments, not mhard-float and msoft-float.
11455         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
11456         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
11457         mhard-float.
11458         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
11459         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
11460         msoft-float.
11461         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
11462         not mhard-float.
11463         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
11464         not msoft-float.
11465
11466 2011-03-22  Richard Henderson  <rth@redhat.com>
11467
11468         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
11469         TARGET_ABI_WINDOWS_NT.
11470         (alpha_output_function_end_prologue): Likewise.
11471         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
11472         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
11473         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
11474         (trap, *movsi_nt_vms): Likewise.
11475         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
11476         (*tablejump_osf_nt_internal): Remove.
11477         * config/alpha/predicates.md (input_operand): Only test Pmode.
11478
11479 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11480
11481         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
11482         via opts pointer.  Use error_at.  Don't assert that global
11483         structures are in use.
11484
11485 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11486
11487         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
11488         (ix86_handle_option): Access ix86_isa_flags and
11489         ix86_isa_flags_explicit via opts pointer.  Don't assert that
11490         global structures are in use.
11491         (ix86_function_specific_save, ix86_function_specific_restore):
11492         Update ix86_isa_flags_explicit field name.
11493         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
11494         (ix86_isa_flags_explicit): Rename TargetSave entry to
11495         x_ix86_isa_flags_explicit.
11496
11497 2011-03-22  Richard Henderson  <rth@redhat.com>
11498
11499         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
11500         (alpha_option_override, direct_return): Likewise.
11501         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
11502         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
11503         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
11504         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11505         (alpha_expand_epilogue, alpha_end_function): Likewise.
11506         (alpha_init_libfuncs): Likewise.
11507         (struct machine_function): Remove unicosmk members.
11508         (print_operand) ['t']: Remove.
11509         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
11510         unicosmk_output_module_name, unicosmk_output_common,
11511         current_section_align, unicosmk_output_text_section_asm_op,
11512         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
11513         unicosmk_section_type_flags, unicosmk_unique_section,
11514         unicosmk_asm_named_section, unicosmk_insert_attributes,
11515         unicosmk_output_align, unicosmk_defer_case_vector,
11516         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
11517         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
11518         unicosmk_output_ssib, unicosmk_add_call_info_word,
11519         unicosmk_extern_head, unicosmk_output_default_externs,
11520         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
11521         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
11522         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
11523         * config/alpha/alpha-protos.h: Update.
11524         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
11525         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
11526         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
11527         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
11528         (*mulsi_se, mulvsi3): Likewise.
11529         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
11530         (*divmodsi_internal, call, call_value, realign): Likewise.
11531         (moddi3, umoddi3): Likewise; remove duplicate expander.
11532         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
11533         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
11534         (*movdi_nofix): Remove r/U alternative.
11535         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
11536         * config/alpha/constraints.md ("U"): Remove.
11537         * config/alpha/predicates.md (call_operand"): Don't test
11538         TARGET_ABI_UNICOSMK.
11539
11540 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11541
11542         * target.def (handle_option): Take gcc_options and
11543         cl_decoded_option pointers and location_t.
11544         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
11545         * doc/tm.texi: Regenerate.
11546         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
11547         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
11548         * lto-opts.c (lto_reissue_options): Generate option structure for
11549         targetm.handle_option call.
11550         * opts.c (target_handle_option): Update call to
11551         targetm.handle_option.  Remove assertions about values now passed
11552         down to hook.
11553         * targhooks.c (default_target_handle_option): New.
11554         * targhooks.h (default_target_handle_option): Declare.
11555         * config/alpha/alpha.c: Include opts.h.
11556         (alpha_handle_option): Update to new hook interface.
11557         * config/arm/arm.c: Include opts.h.
11558         (arm_handle_option): Update to new hook interface.
11559         * config/arm/t-arm (arm.o): Update dependencies.
11560         * config/bfin/bfin.c: Include opts.h.
11561         (bfin_handle_option): Update to new hook interface.
11562         * config/cris/cris.c: Include opts.h.
11563         (cris_handle_option): Update to new hook interface.
11564         * config/frv/frv.c: Include opts.h.
11565         (frv_handle_option): Update to new hook interface.
11566         * config/i386/i386.c: Include opts.h.
11567         (ix86_handle_option): Update to new hook interface.
11568         (ix86_valid_target_attribute_inner_p): Generate option structure
11569         for call to ix86_handle_option.
11570         * config/i386/t-i386 (i386.o): Update dependencies.
11571         * config/ia64/ia64.c: Include opts.h.
11572         (ia64_handle_option): Update to new hook interface.
11573         * config/ia64/t-ia64 (ia64.o): Update dependencies.
11574         * config/iq2000/iq2000.c: Include opts.h.
11575         (iq2000_handle_option): Update to new hook interface.
11576         * config/m32c/m32c.c: Include opts.h.
11577         (m32c_handle_option): Update to new hook interface.
11578         * config/m32r/m32r.c: Include opts.h.
11579         (m32r_handle_option): Update to new hook interface.
11580         * config/m68k/m68k.c: Include opts.h.
11581         (m68k_handle_option): Update to new hook interface.
11582         * config/mep/mep.c: Include opts.h.
11583         (mep_handle_option): Update to new hook interface.
11584         * config/microblaze/microblaze.c: Include opts.h.
11585         (microblaze_handle_option): Update to new hook interface.
11586         * config/mips/mips.c: Include opts.h.
11587         (mips_handle_option): Update to new hook interface.
11588         * config/mn10300/mn10300.c: Include opts.h.
11589         (mn10300_handle_option): Update to new hook interface.
11590         * config/pa/pa.c: Include opts.h.
11591         (pa_handle_option): Update to new hook interface.
11592         * config/pdp11/pdp11.c: Include opts.h.
11593         (pdp11_handle_option): Update to new hook interface.
11594         * config/rs6000/rs6000.c: Include opts.h.
11595         (rs6000_handle_option): Update to new hook interface.
11596         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
11597         * config/rx/rx.c: Include opts.h.
11598         (rx_handle_option): Update to new hook interface.
11599         * config/s390/s390.c: Include opts.h.
11600         (s390_handle_option): Update to new hook interface.
11601         * config/score/score.c: Include opts.h.
11602         (score_handle_option): Update to new hook interface.
11603         * config/sh/sh.c: Include opts.h.
11604         (sh_handle_option): Update to new hook interface.
11605         * config/sparc/sparc.c: Include opts.h.
11606         (sparc_handle_option): Update to new hook interface.
11607         * config/v850/v850.c: Include opts.h.
11608         (v850_handle_option): Update to new hook interface.
11609
11610 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11611
11612         * gcc.c (driver_unknown_option_callback): Only permit and save
11613         unknown -Wno- options.
11614         (driver_wrong_lang_callback): Save options directly instead of via
11615         driver_unknown_option_callback.
11616
11617 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
11618
11619         * combine.c (simplify_set): Try harder to find the best CC mode when
11620         simplifying a nested COMPARE on the RHS.
11621
11622 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
11623
11624         * config/alpha/gnu.h: Remove.
11625         * config/arc: Remove directory.
11626         * config/arm/netbsd.h: Remove.
11627         * config/arm/t-pe: Remove.
11628         * config/crx: Remove directory.
11629         * config/i386/netbsd.h: Remove.
11630         * config/m68hc11: Remove directory.
11631         * config/m68k/uclinux-oldabi.h: Remove.
11632         * config/mcore/mcore-pe.h: Remove.
11633         * config/mcore/t-mcore-pe: Remove.
11634         * config/netbsd-aout.h: Remove.
11635         * config/rs6000/gnu.h: Remove.
11636         * config/sh/sh-symbian.h: Remove.
11637         * config/sh/symbian-base.c: Remove.
11638         * config/sh/symbian-c.c: Remove.
11639         * config/sh/symbian-cxx.c: Remove.
11640         * config/sh/symbian-post.h: Remove.
11641         * config/sh/symbian-pre.h: Remove.
11642         * config/sh/t-symbian: Remove.
11643         * config/svr3.h: Remove.
11644         * config/vax/netbsd.h: Remove.
11645         * config.build: Don't handle i[34567]86-*-pe.
11646         * config.gcc: Remove handling of deprecations for most deprecated
11647         targets.
11648         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
11649         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
11650         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
11651         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
11652         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
11653         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
11654         Remove cases.
11655         * config.host: Don't handle i[34567]86-*-pe.
11656         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
11657         (ASM_SPEC32): Don't handle -mcall-gnu.
11658         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
11659         -mcall-gnu.
11660         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
11661         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
11662         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11663         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
11664         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
11665         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
11666         conditional on SYMBIAN.
11667         * configure.ac: Don't handle powerpc*-*-gnu*.
11668         * configure: Regenerate.
11669         * doc/extend.texi (interrupt attribute): Don't mention CRX.
11670         * doc/install-old.texi (m6811, m6812): Don't mention.
11671         * doc/install.texi (arc-*-elf*): Don't document multilib option.
11672         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
11673         (m68k-uclinuxoldabi): Don't mention.
11674         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
11675         Remove.
11676         (-mcall-gnu): Remove.
11677         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
11678         families): Remove constraint documentation.
11679
11680 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
11681
11682         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
11683         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
11684         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
11685
11686 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
11687
11688         PR target/48226
11689         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
11690         vector when peeking at the next token for vector, don't expand the
11691         keywords.
11692
11693 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
11694
11695         * config/avr/avr-protos.h (expand_epilogue): Change prototype
11696         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
11697         * config/avr/avr.c (init_cumulative_args)
11698         (avr_function_arg_advance): Use it.
11699         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
11700         sibcall epilogues.
11701         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
11702         (avr_function_ok_for_sibcall): ...this new function.
11703         (avr_lookup_function_attribute1): New static Function.
11704         (avr_naked_function_p, interrupt_function_p)
11705         (signal_function_p, avr_OS_task_function_p)
11706         (avr_OS_main_function_p): Use it.
11707         * config/avr/avr.md ("sibcall", "sibcall_value")
11708         ("sibcall_epilogue"): New expander.
11709         ("*call_insn", "*call_value_insn"): New insn.
11710         ("call_insn", "call_value_insn"): Remove
11711         ("call", "call_value", "epilogue"): Change expander to handle
11712         sibling calls.
11713
11714 2011-03-21  Nick Clifton  <nickc@redhat.com>
11715
11716         * doc/invoke.texi (Overall Options): Move closing brace to end of
11717         options list.
11718         (Optimization Options): Add missing @gol.
11719         (Directory Options): Likewise.
11720         (i386 and x86-64 Options): Likewise.
11721         (RS6000 and PowerPC Options): Likewise.
11722         (i386 and x86-64 Windows Options): Likewise.
11723         (V850 Options): Add text missing from descriptions.
11724
11725 2011-03-22  Richard Henderson  <rth@redhat.com>
11726
11727         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
11728         (avr_incoming_return_addr_rtx): New.
11729         (emit_push_byte): New.
11730         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
11731         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
11732         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
11733         (emit_pop_byte): New.
11734         (expand_epilogue): Use it.  Pop frame pointer by bytes.
11735         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
11736         (INCOMING_RETURN_ADDR_RTX): New.
11737         (INCOMING_FRAME_SP_OFFSET): New.
11738         (ARG_POINTER_CFA_OFFSET): New.
11739         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
11740         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
11741         (pophi): Remove.
11742
11743         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
11744
11745 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
11746
11747         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
11748         (FUNCTION_ARG_ADVANCE): Likewise.
11749         * tm.texi.in: Change references to them to hook references.
11750         * tm.texi: Regenerate.
11751         * targhooks.c (default_function_arg): Eliminate check for target
11752         macro.
11753         (default_function_incoming_arg): Likewise.
11754         (default_function_arg_advance): Likewise.
11755         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
11756         (function_arg_advance): Likewise.
11757         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
11758
11759 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
11760
11761         * tree.c (build_call_1): New function.
11762         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
11763
11764 2011-03-22  Richard Guenther  <rguenther@suse.de>
11765
11766         PR tree-optimization/48228
11767         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
11768         for single-arg PHIs.
11769
11770 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
11771
11772         PR rtl-optimization/48143
11773         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
11774         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
11775         sse2_cvtps2pd): Likewise.
11776
11777 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11778
11779         * recog.c (canonicalize_change_group): Use validate_unshare_change.
11780
11781 2011-03-22  Richard Guenther  <rguenther@suse.de>
11782
11783         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
11784         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
11785         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
11786         and REALIGN_LOAD_EXPR.
11787         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
11788         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
11789         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
11790         DOT_PROD_EXPR case ...
11791         (expand_expr_real_2): ... here.
11792         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
11793         and REALIGN_LOAD_EXPR.
11794         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
11795         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
11796         (vect_create_epilog_for_reduction): Likewise.
11797         (vectorizable_reduction): Likewise.
11798         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
11799         * tree-vect-stmts.c (vectorizable_load): Likewise.
11800
11801 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
11802
11803         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
11804
11805 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11806
11807         * config/s390/s390.c (s390_delegitimize_address): Fix offset
11808         handling for PLTOFF/GOTOFF.
11809
11810 2011-03-22  Nick Clifton  <nickc@redhat.com>
11811
11812         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
11813         trailing backslash from the end of the macro definition.
11814
11815 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11816
11817         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
11818         and PLT unspecs.
11819
11820 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
11821
11822         * expr.h (prepare_operand): Move to...
11823         * optabs.h (prepare_operand): ...here and change the insn code
11824         parameter from "int" to "enum insn_code".
11825         (insn_operand_matches): Declare.
11826         * expr.c (init_expr_target): Use insn_operand_matches.
11827         (compress_float_constant): Likewise.
11828         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
11829         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
11830         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
11831         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
11832         Likewise.
11833         (gen_cond_trap): Likewise.
11834         (prepare_operand): Likewise.  Change icode to an insn_code.
11835         (insn_operand_matches): New function.
11836         * reload.c (find_reloads_address_1): Use insn_operand_matches.
11837         * reload1.c (gen_reload): Likewise.
11838         * targhooks.c (default_secondary_reload): Likewise.
11839
11840 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
11841
11842         * config/alpha/alpha.md (unspec): New define_c_enum.
11843         (unspecv): Ditto.
11844
11845 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
11846
11847         PR debug/48214
11848         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
11849         between a call and its CALL_ARG_LOCATION note.
11850
11851 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
11852
11853         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
11854
11855 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
11856
11857         PR c/42544
11858         PR c/48197
11859         * c-common.c (shorten_compare): If primopN is first sign-extended
11860         to opN and then zero-extended to result type, set primopN to opN.
11861
11862 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
11863
11864         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
11865         for barrier handlers.
11866
11867 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
11868
11869         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
11870         UNSPEC constants to be in the unspec enumeration, and redefine
11871         all UNSPECV constants to be in the unspecv enumeration, so that
11872         dumps print which unspec/unspec_volatile this is.
11873         * config/rs6000/vector.md (UNSPEC_*): Ditto.
11874         * config/rs6000/paired.md (UNSPEC_*): Ditto.
11875         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
11876         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
11877         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
11878
11879         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
11880         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
11881         UNSPECV_LWSYNC, since these are used as unspec_volatile.
11882         * config/rs6000/sync.md (isync, lwsync): Ditto.
11883
11884 2011-03-21  Richard Guenther  <rguenther@suse.de>
11885
11886         * params.def (lto-min-partition): Fix typo.
11887
11888 2011-03-21  Richard Guenther  <rguenther@suse.de>
11889
11890         PR c/47939
11891         * c-decl.c (grokdeclarator): Drop to the main variant only
11892         for array types.  Drop flag_gen_aux_info check.
11893
11894 2011-03-21  Richard Guenther  <rguenther@suse.de>
11895
11896         PR translation/47911
11897         * params.def (lto-partitions): Fix typo.
11898         (lto-min-partition): Fix wording.
11899
11900 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
11901
11902         * config/rs6000/t-freebsd: Remove duplication from file.
11903
11904 2011-03-21  Richard Guenther  <rguenther@suse.de>
11905
11906         PR middle-end/47661
11907         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
11908
11909 2011-03-21  Richard Guenther  <rguenther@suse.de>
11910
11911         PR lto/48210
11912         * params.def (lto-partitions): Require at least 1 partition.
11913
11914 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11915
11916         * gthr-solaris.h: Remove.
11917         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
11918         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
11919         (LIB_SPEC): Likewise.
11920         * config/sol2.opt (threads): Remove.
11921         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
11922         (sparc*-*-solaris2*): Likewise.
11923         * configure.ac (enable_threads): Enable solaris support.
11924         * configure: Regenerate.
11925         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
11926         * doc/install.texi (Configuration, --enable-threads=lib): Remove
11927         solaris.
11928
11929 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11930
11931         * config.gcc: Obsolete *-*-solaris2.8*.
11932         * doc/install.texi (Specific, *-*-solaris2*): Document it.
11933
11934 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11935
11936         PR bootstrap/48135
11937         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
11938         reference.  Solaris 8 perl works.
11939
11940 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11941
11942         PR bootstrap/48135
11943         * doc/install.texi (Prerequisites): Move jar etc. up.
11944         Explain support library version requirements.
11945
11946 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11947
11948         PR bootstrap/48135
11949         * doc/install.texi (Prerequisites): Move Perl to build
11950         requirements.  Always necessary on Solaris 2 with Sun ld.
11951
11952 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11953
11954         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
11955         binutils 2.21.
11956         (Specific, i?86-*-solaris2.[89]): Likewise.
11957         (Specific, i?86-*-solaris2.10): Likewise.
11958         (Specific, mips-sgi-irix6): Likewise.
11959         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
11960         Update for binutils 2.21.
11961
11962 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11963
11964         * configure.ac (gcc_cv_lto_plugin): Fix typo.
11965         Allow -fuse-linker-plugin for non-default plugin linker.
11966         * configure: Regenerate.
11967
11968 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
11969
11970         PR bootstrap/48167
11971         * gengtype.c (files_rules): Added rule for cp/parser.h.
11972
11973 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
11974
11975         PR target/48213
11976         * config/s390/s390.c (s390_delegitimize_address): Don't call
11977         lowpart_subreg if orig_x has BLKmode.
11978
11979 2011-03-21  Kai Tietz  <ktietz@redhat.com>
11980
11981         PR target/12171
11982         * doc/plugins.texi: Adjust documentation for plugin register_callback.
11983         * tree.h (attribute_spec): Add new member affects_type_identity.
11984         * attribs.c (empty_attribute_table): Adjust attribute_spec
11985         initializers.
11986         * config/alpha/alpha.c: Likewise.
11987         * config/arc/arc.c: Likewise.
11988         * config/arm/arm.c: Likewise.
11989         * config/avr/avr.c: Likewise.
11990         * config/bfin/bfin.c: Likewise.
11991         * config/crx/crx.c: Likewise.
11992         * config/darwin.h: Likewise.
11993         * config/h8300/h8300.c: Likewise.
11994         * config/i386/cygming.h: Likewise.
11995         * config/i386/i386.c: Likewise.
11996         * config/ia64/ia64.c: Likewise.
11997         * config/m32c/m32c.c: Likewise.
11998         * config/m32r/m32r.c: Likewise.
11999         * config/m68hc11/m68hc11.c: Likewise.
12000         * config/m68k/m68k.c: Likewise.
12001         * config/mcore/mcore.c: Likewise.
12002         * config/mep/mep.c: Likewise.
12003         * config/microblaze/microblaze.c: Likewise.
12004         * config/mips/mips.c: Likewise.
12005         * config/rs6000/rs6000.c: Likewise.
12006         * config/rx/rx.c: Likewise.
12007         * config/sh/sh.c: Likewise.
12008         * config/sol2.h: Likewise.
12009         * config/sparc/sparc.c: Likewise.
12010         * config/spu/spu.c: Likewise.
12011         * config/stormy16/stormy16.c: Likewise.
12012         * config/v850/v850.c: Likewise.
12013
12014 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
12015
12016         * simplify-rtx.c (simplify_binary_operation_1): Handle
12017         (xor (and A B) C) case when B and C are both constants.
12018
12019 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
12020
12021         * tree-dfa.c (add_referenced_var): Fix typo in comment.
12022
12023 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
12024
12025         PR bootstrap/48168
12026         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
12027
12028 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
12029
12030         PR rtl-optimization/48156
12031         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
12032         assume df and df_lr are not NULL.
12033
12034 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12035
12036         PR debug/48023
12037         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
12038         between a call and its CALL_ARG_LOCATION note.
12039
12040 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
12041
12042         PR debug/48178
12043         * config/sh/sh.c (find_barrier): Don't emit a constant pool
12044         between a call and its corresponding CALL_ARG_LOCATION note.
12045
12046 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
12047
12048         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
12049         instead of loop. Use HARD_REGISTER_NUM_P predicate.
12050         * haifa-sched.c (setup_ref_regs): Ditto.
12051         * caller-save.c (add_used_regs_1): Ditto.
12052         * dse.c (look_for_hardregs): Ditto.
12053         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
12054         * sched-rgn.c (check_live_1): Ditto.
12055
12056 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
12057
12058         * c-decl.c (diagnose_mismatched_decls): Give an error for
12059         redefining a typedef with variably modified type.
12060
12061 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
12062
12063         * c-decl.c (grokfield): Don't allow typedefs for structures or
12064         unions with no tag by default.
12065         * doc/extend.texi (Unnamed Fields): Update.
12066
12067 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
12068
12069         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12070         Rewrite using indirect functions.
12071         (lwp_slwpcb): Ditto.
12072         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
12073         (avx_vinsertf128<mode>): Ditto.
12074
12075 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12076
12077         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
12078         unspecs.
12079
12080 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12081
12082         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
12083         splitting between a call and its corresponding CALL_ARG_LOCATION note.
12084
12085 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
12086
12087         PR rtl-optimization/48170
12088         * gcse.c (hoist_code): Remove bogus asserts.
12089
12090 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
12091
12092         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
12093         computation for prologue/epilogue.
12094
12095 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12096
12097         * Makefile.in (check-consistency): Remove.
12098
12099 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
12100
12101         PR debug/48176
12102         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
12103         arange_table_in_use is 0, but either text_section_used or
12104         cold_text_section_used is true.  Don't call it if
12105         !info_section_emitted.
12106
12107 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
12108
12109         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
12110         FUNCTION_VALUE_REGNO_P): Remove.
12111         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
12112         Remove.
12113         * config/avr/avr.c (avr_ret_register): Make static inline.
12114         (avr_function_value_regno_p): New function.
12115         (avr_libcall_value): Make static. Add 'func' argument.
12116         (avr_function_value): Make static. Rename 'func' argument to
12117         'fn_decl_or_type', forward it to avr_libcall_value. Call
12118         avr_ret_register function instead of RET_REGISTER macro.
12119         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
12120
12121 2011-03-18  Jason Merrill  <jason@redhat.com>
12122
12123         PR c++/23372
12124         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
12125
12126 2011-03-18  Richard Guenther  <rguenther@suse.de>
12127
12128         * doc/install.texi (--enable-gold): Remove.
12129         (--with-plugin-ld): Document.
12130         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
12131
12132 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
12133
12134         PR middle-end/47790
12135         * expr.c (optimize_bitfield_assignment_op): Revamp to work
12136         again after expansion changes.
12137
12138 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
12139
12140         * combine.c (try_combine): Do simplification only call of
12141         subst() on i2 even when i1 is present. Update comments.
12142
12143 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
12144
12145         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
12146         and UNSPEC_PCREL_SYMOFF.
12147
12148 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12149
12150         * config/s390/s390.md: Use define_c_enum for the unspec constant
12151         definitions.
12152
12153 2011-03-18  Richard Henderson  <rth@redhat.com>
12154             Jakub Jelinek  <jakub@redhat.com>
12155
12156         PR bootstrap/48161
12157         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
12158         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
12159
12160 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12161
12162         PR middle-end/47725
12163         * combine.c (cant_combine_insn_p): Don't check zero/sign
12164         extended hard registers.
12165
12166 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12167
12168         PR middle-end/47725
12169         * combine.c (cant_combine_insn_p): Check zero/sign extended
12170         hard registers.
12171
12172 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
12173
12174         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
12175         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
12176         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
12177         Change return type to bool.
12178         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
12179
12180 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
12181
12182         PR debug/48163
12183         * var-tracking.c (prepare_call_arguments): If CALL target
12184         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
12185         pc instead of looking it up using cselib_lookup and use
12186         Pmode for it if x has VOIDmode.
12187         * dwarf2out.c (gen_subprogram_die): If also both first and
12188         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
12189
12190         PR debug/48163
12191         * function.c (assign_parms): For data.passed_pointer parms
12192         use MEM of data.entry_parm instead of data.entry_parm itself
12193         as DECL_INCOMING_RTL.
12194         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
12195         also when passed and declared mode is the same, DECL_RTL
12196         is a MEM with pseudo as address and DECL_INCOMING_RTL is
12197         a MEM too.
12198
12199 2011-03-16  Jeff Law  <law@redhat.com>
12200
12201         PR rtl-optimization/37273
12202         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12203         handle them like argument loads from stack slots.  Do not double
12204         count memory for memory constants and argument loads from stack slots.
12205
12206 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12207
12208         PR debug/48160
12209         * var-tracking.c (prepare_call_arguments): Check SUBREG.
12210
12211 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
12212
12213         PR target/48171
12214         * config/i386/i386.opt: Add Save to -mavx and -mfma.
12215
12216 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
12217
12218         PR bootstrap/48153
12219         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
12220         if dwarf_strict.
12221         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
12222         Clear call_arg_locations and call_arg_loc_last always.
12223
12224         PR middle-end/48152
12225         * var-tracking.c (prepare_call_arguments): If argument needs to be
12226         passed by reference, adjust argtype and mode.
12227
12228 2011-03-17  Richard Guenther  <rguenther@suse.de>
12229
12230         PR middle-end/48134
12231         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
12232         a value make sure to fold the statement.
12233
12234 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
12235
12236         PR target/43872
12237         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
12238         return condition with !cfun->calls_alloca.
12239
12240 2011-03-17  Richard Guenther  <rguenther@suse.de>
12241
12242         PR bootstrap/48148
12243         * lto-cgraph.c (input_overwrite_node): Clear the abstract
12244         origin for decls in other ltrans units.
12245         (input_varpool_node): Likewise.
12246
12247 2011-03-17  Richard Guenther  <rguenther@suse.de>
12248
12249         PR middle-end/48165
12250         * tree-object-size.c (compute_object_offset): Properly return
12251         the offset operand of MEM_REFs as sizetype.
12252
12253 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
12254
12255         PR rtl-optimization/48141
12256         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
12257         * dse.c: Include params.h.
12258         (active_local_stores_len): New variable.
12259         (add_wild_read, dse_step1): Clear it when setting active_local_stores
12260         to NULL.
12261         (record_store, check_mem_read_rtx): Decrease it when removing
12262         from the chain.
12263         (scan_insn): Likewise.  Increase it when adding to chain, if it
12264         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
12265         set active_local_stores to NULL before the addition.
12266         * Makefile.in (dse.o): Depend on $(PARAMS_H).
12267
12268         PR rtl-optimization/48141
12269         * dse.c (record_store): If no positions are needed in an insn
12270         that cannot be deleted, at least unchain it from active_local_stores.
12271
12272 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
12273
12274         PR debug/47510
12275         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
12276         (lookup_type_die_strip_naming_typedef): ... here.
12277         (get_context_die): Use it.
12278         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
12279         the anonymous struct named by the naming typedef.
12280
12281 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
12282
12283         PR target/48154
12284         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
12285         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12286
12287 2011-03-16  Jeff Law  <law@redhat.com>
12288
12289         * tree-vrp.c (identify_jump_threads): Slightly simplify type
12290         check for operands of conditional.  Allow type to be a pointer.
12291
12292 2011-03-16  Richard Guenther  <rguenther@suse.de>
12293
12294         PR tree-optimization/48149
12295         * fold-const.c (fold_binary_loc): Fold
12296         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
12297
12298 2011-03-16  Richard Guenther  <rguenther@suse.de>
12299
12300         PR tree-optimization/26134
12301         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
12302         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
12303         (non_rewritable_mem_ref_base): Handle complex type component
12304         accesses, constrain offsets for vector and complex extracts
12305         more properly.
12306
12307 2011-03-16  Richard Guenther  <rguenther@suse.de>
12308
12309         PR tree-optimization/48146
12310         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
12311         operands avoiding the need for renaming.
12312
12313 2011-03-16  Richard Guenther  <rguenther@suse.de>
12314
12315         * gimple-fold.c (maybe_fold_reference): Open-code relevant
12316         constant folding.  Move MEM_REF canonicalization first.
12317         Rely on fold_const_aggregate_ref for initializer folding.
12318         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
12319
12320 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
12321
12322         PR middle-end/48136
12323         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
12324         arg0/arg1 or their arguments are always fold converted to matching
12325         types.
12326
12327         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
12328         to nargs.
12329
12330 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12331
12332         PR lto/46944
12333         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
12334         Handle in-tree gold.
12335         (ld_vers): Extract binutils version for gold.
12336         (gcc_cv_ld_hidden): Handle gold here.
12337         (gcc_cv_lto_plugin): Determine level of linker plugin support.
12338         * configure: Regenerate.
12339         * config.in: Regenerate.
12340         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
12341         -fuse-linker-plugin otherwise.
12342         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
12343         (LINK_COMMAND_SPEC): Use it.
12344         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
12345
12346 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
12347
12348         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
12349         * calls.c: Remove debug.h include.
12350         (emit_call_1): Don't call virtual_call_token debug hook.
12351         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
12352         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
12353         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
12354         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
12355         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
12356         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
12357         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
12358         dwarf2out_virtual_call): Remove.
12359         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
12360         copy_call_info and virtual_call hooks.
12361         (dwarf2out_init): Don't initialize vcall_insn_table,
12362         debug_dcall_section and debug_vcall_section.
12363         (prune_unused_types): Don't mark nodes from dcall_table.
12364         (dwarf2out_finish): Don't output dcall or vcall tables.
12365         * final.c (final_scan_insn): Don't call direct_call or
12366         virtual_call debug hooks.
12367         * debug.h (struct gcc_debug_hooks): Remove direct_call,
12368         virtual_call_token, copy_call_info and virtual_call hooks.
12369         (debug_nothing_uid): Remove prototype.
12370         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
12371         copy_call_info and virtual_call hooks.
12372         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12373         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12374         * debug.c (do_nothing_debug_hooks): Likewise.
12375         (debug_nothing_uid): Remove.
12376         * doc/invoke.texi (-fenable-icf-debug): Remove.
12377         * common.opt (-fenable-icf-debug): Likewise.
12378
12379         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
12380         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
12381         call's MEM.  Handle functions returning aggregate through a hidden
12382         first pointer.  For virtual calls add clobbered pc to call arguments
12383         chain.
12384         * dwarf2out.c (gen_subprogram_die): Emit
12385         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
12386         can't be emitted.
12387
12388         PR debug/45882
12389         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
12390         * rtl.h (ENTRY_VALUE_EXP): Define.
12391         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
12392         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
12393         * print-rtl.c (print_rtx): Likewise.
12394         * gengtype.c (adjust_field_rtx_def): Likewise.
12395         * var-tracking.c (vt_add_function_parameter): Adjust
12396         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
12397         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
12398         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
12399         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
12400         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
12401
12402         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
12403         Call var_location debug hook even on CALL_INSNs.
12404         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
12405         * rtl.def (ENTRY_VALUE): New.
12406         * dwarf2out.c: Include cfglayout.h.
12407         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12408         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
12409         (struct call_arg_loc_node): New type.
12410         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
12411         tail_call_site_count): New variables.
12412         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
12413         DW_TAG_GNU_call_site_parameter.
12414         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
12415         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
12416         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
12417         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
12418         and DW_AT_GNU_all_source_call_sites.
12419         (mem_loc_descriptor): Handle ENTRY_VALUE.
12420         (add_src_coords_attributes): Don't add enything if
12421         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
12422         (dwarf2out_abstract_function): Save and clear call_arg_location,
12423         call_site_count and tail_call_site_count around dwarf2out_decl call.
12424         (gen_call_site_die): New function.
12425         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
12426         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
12427         (dwarf2out_function_decl): Clear call_arg_locations,
12428         call_arg_loc_last, set call_site_count and tail_call_site_count
12429         to -1 and free block_map.
12430         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
12431         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
12432         followed by any real instructions.
12433         (dwarf2out_begin_function): Set call_site_count and
12434         tail_call_site_count to 0.
12435         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
12436         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
12437         attempt to force a DIE for it and worst case remove the attribute.
12438         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
12439         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
12440         the decl itself.
12441         * var-tracking.c: Include tm_p.h.
12442         (vt_stack_adjustments): For calls call note_register_arguments.
12443         (argument_reg_set): New variable.
12444         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
12445         ensure the VALUE is resolved.
12446         (call_arguments): New variable.
12447         (prepare_call_arguments): New function.
12448         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
12449         (struct expand_loc_callback_data): Add ignore_cur_loc field.
12450         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
12451         always use the best expression.
12452         (vt_expand_loc): Add ignore_cur_loc argument.
12453         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
12454         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
12455         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
12456         note for all calls.
12457         (vt_add_function_parameter): Use cselib_lookup_from_insn.
12458         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
12459         argument.  Don't call cselib_preserve_only_values and
12460         cselib_reset_table.
12461         (note_register_arguments): New function.
12462         (vt_initialize): Compute argument_reg_set.  Call
12463         vt_add_function_parameters before processing basic blocks instead of
12464         afterwards.  For calls call prepare_call_arguments before calling
12465         cselib_process_insn.
12466         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
12467         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
12468         (var-tracking.o): Depend on $(TM_P_H).
12469         * cfglayout.h (insn_scope): New prototype.
12470         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
12471         * cfglayout.c (insn_scope): No longer static.
12472         * insn-notes.def (CALL_ARG_LOCATION): New.
12473         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
12474         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
12475         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
12476         nothing for DECL_EXTERNAL BLOCK_VARS.
12477
12478 2011-03-16  Alan Modra  <amodra@gmail.com>
12479
12480         PR target/45844
12481         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
12482         create invalid offset address for vsx splat insn.
12483         * config/rs6000/predicates.md (splat_input_operand): New.
12484         * config/rs6000/vsx.md (vsx_splat_*): Use it.
12485
12486 2011-03-15  Xinliang David Li  <davidxl@google.com>
12487
12488         PR c/47837
12489         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
12490         (normalize_preds): New function.
12491         (is_use_properly_guarded): Normalize def predicates.
12492
12493 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
12494
12495         PR target/46788
12496         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
12497         in the output template.
12498
12499 2011-03-15  Richard Guenther  <rguenther@suse.de>
12500
12501         PR middle-end/47650
12502         * tree-pretty-print.c (dump_function_declaration): Properly
12503         dump unprototyped and varargs function types.
12504
12505 2011-03-15  Richard Guenther  <rguenther@suse.de>
12506
12507         PR tree-optimization/13954
12508         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
12509         and friends.
12510
12511 2011-03-15  Richard Guenther  <rguenther@suse.de>
12512
12513         PR tree-optimization/48037
12514         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
12515         selects into BIT_FIELD_REFs.
12516         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
12517         vector select.
12518
12519 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
12520
12521         PR tree-optimization/48129
12522         * builtins.c (fold_builtin_snprintf): Convert to type of
12523         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
12524         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
12525
12526 2011-03-15  Richard Guenther  <rguenther@suse.de>
12527
12528         PR tree-optimization/41490
12529         * tree-ssa-dce.c (propagate_necessity): Handle returns without
12530         value but with VUSE.
12531         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
12532         return statements.
12533         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
12534         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
12535         * tree-tailcall.c (find_tail_calls): Ignore returns.
12536
12537 2011-03-15  Richard Guenther  <rguenther@suse.de>
12538
12539         PR middle-end/48031
12540         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
12541         or variable-indexed array accesses when in gimple form.
12542
12543 2011-03-15  Richard Guenther  <rguenther@suse.de>
12544
12545         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
12546
12547 2011-03-15  Alan Modra  <amodra@gmail.com>
12548
12549         PR target/48032
12550         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
12551         presume symbol_refs without a symbol_ref_decl are suitably
12552         aligned, nor other trees we may see here.  Handle anchor symbols.
12553         (legitimate_constant_pool_address_p): Comment.  Add mode param.
12554         Check cmodel=medium addresses.  Adjust all calls.
12555         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
12556         creating cmodel=medium optimized access to locals.
12557         * config/rs6000/constraints.md (R): Pass QImode to
12558         legitimate_constant_pool_address_p.
12559         * config/rs6000/predicates.md (input_operand): Pass mode to
12560         legitimate_constant_pool_address_p.
12561         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
12562         Update prototype.
12563
12564 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
12565
12566         PR target/48053
12567         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
12568         64-bit constants being loaded into registers other than GPRs such
12569         as loading 0 into a VSX register.
12570
12571 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12572
12573         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
12574
12575 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
12576
12577         PR middle-end/47917
12578         * builtins.c (fold_builtin_snprintf): New function.
12579         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
12580         (fold_builtin_4): Likewise.
12581
12582         PR middle-end/38878
12583         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
12584         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
12585         and C - X == X also strip nops from +/-/p+ operand.
12586         When optimizing -X == C, fold C to arg0's type.
12587
12588         PR debug/47946
12589         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
12590         emit it as add_AT_int instead of add_AT_unsigned.
12591
12592 2011-03-14  Tom Tromey  <tromey@redhat.com>
12593
12594         * unwind-dw2.c: Include sys/sdt.h if it exists.
12595         (_Unwind_DebugHook): Use STAP_PROBE2.
12596         * config.in, configure: Rebuild.
12597         * configure.ac: Check for sys/sdt.h.
12598
12599 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
12600
12601         * config/i386/i386.md (ROUND_FLOOR): New constant.
12602         (ROUND_CEIL): Ditto.
12603         (ROUND_TRUNC): Ditto.
12604         (ROUND_MXCSR): Ditto.
12605         (ROUND_NO_EXC): Ditto.
12606         (rint<mode>2): Use new defines instead of numerical constants.
12607         (floor<mode>2): Ditto.
12608         (ceil<mode>2): Ditto.
12609         (btrunc<mode>2): Ditto.
12610         * config/i386/i386-builtin-types.def: Define ROUND function type
12611         aliases.
12612         * config/i386/i386.c (enum ix86_builtins): Add
12613         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
12614         (struct builtin_description): Add
12615         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
12616         (ix86_expand_sse_round): New static function.
12617         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
12618         function types.
12619         (ix86_builtin_vectorized_function): Handle
12620         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
12621
12622 2011-03-14  Tom Tromey  <tromey@redhat.com>
12623
12624         * c-parser.c (c_parser_asm_string_literal): Clear
12625         warn_overlength_strings.
12626
12627 2011-03-14  Tom Tromey  <tromey@redhat.com>
12628
12629         * c-parser.c (disable_extension_diagnostics): Save
12630         warn_overlength_strings.
12631         (restore_extension_diagnostics): Restore warn_overlength_strings.
12632
12633 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
12634
12635         * BASE-VER: Change to 4.7.0.
12636
12637 2011-03-14  Richard Guenther  <rguenther@suse.de>
12638
12639         PR middle-end/48098
12640         * tree.c (build_vector_from_val): Adjust assert to requirements
12641         and reality.
12642
12643 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
12644
12645         PR bootstrap/48102
12646         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
12647
12648 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
12649
12650         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
12651         terms of target_flags_explicit. Adjust copyright year.
12652
12653         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
12654         * config/rs6000/t-freebsd: New file. Add override for
12655         LIB2FUNCS_EXTRA.
12656
12657 2011-03-13  Chris Demetriou  <cgd@google.com>
12658
12659         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
12660         (-fno-diagnostics-show-option): this, to reflect current default.
12661         (-Werror=): Update text about -fno-diagnostics-show-option.
12662
12663 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
12664
12665         PR target/48053
12666         * config/rs6000/predicates.md (easy_vector_constant_add_self,
12667         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
12668         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
12669         mode is not V2DImode or V2DFmode.
12670         (vspltis_constant): Do not handle V2DImode and V2DFmode.
12671         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
12672         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
12673         registers to 0.
12674         (movdi_internal64): Likewise.
12675
12676 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
12677
12678         PR tree-optimization/47127
12679         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
12680         parameter.
12681         (set_cloog_options): Same.
12682         (scop_to_clast): Same.
12683         (print_clast_stmt): Do not call cloog_state_malloc and
12684         cloog_state_free.
12685         (print_generated_program): Same.
12686         (gloog): Same.
12687         * graphite-clast-to-gimple.h (cloog_state): Declared.
12688         (scop_to_clast): Adjust declaration.
12689         * graphite.c (cloog_state): Defined here.
12690         (graphite_initialize): Call cloog_state_malloc.
12691         (graphite_finalize): Call cloog_state_free.
12692
12693 2011-03-11  Jason Merrill  <jason@redhat.com>
12694
12695         * attribs.c (lookup_attribute_spec): Take const_tree.
12696         * tree.h: Adjust.
12697
12698 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
12699
12700         * config/sparc/sparc.c (sparc_option_override): Use
12701         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
12702
12703 2011-03-11  Richard Guenther  <rguenther@suse.de>
12704
12705         PR tree-optimization/48067
12706         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
12707         multiplication result will be only used once on the target
12708         stmt.
12709
12710 2011-03-11  Richard Guenther  <rguenther@suse.de>
12711
12712         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
12713
12714 2011-03-11  Richard Guenther  <rguenther@suse.de>
12715
12716         PR lto/48073
12717         * tree.c (find_decls_types_r): Do not walk types only reachable
12718         from IDENTIFIER_NODEs.
12719
12720 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
12721
12722         PR middle-end/48044
12723         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
12724         all vnode->force_output nodes as needed.
12725
12726 2011-03-11  Jason Merrill  <jason@redhat.com>
12727
12728         PR c++/48069
12729         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
12730         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
12731
12732 2011-03-11  Martin Jambor  <mjambor@suse.cz>
12733
12734         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
12735         cgraph_node.
12736
12737 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
12738
12739         PR tree-optimization/48063
12740         * ipa-inline.c (cgraph_decide_inlining): Don't try to
12741         inline functions called once if !tree_can_inline_p (node->callers).
12742
12743 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
12744
12745         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
12746         extra_objs.
12747         * config/score/score3.c: Delete.
12748         * config/score/score3.h: Delete.
12749         * config/score/mul-div.S: Delete.
12750         * config/score/sfp-machine.h: Add new file.
12751         * config/score/constraints.md: Add new file.
12752         * config/score/t-score-softfp: Add new file.
12753         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
12754         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
12755         (score7_extra_constraint): Delete.
12756         (score7_option_override): Remove unused code.
12757         * config/score/score.c: Remove score3 and score5 define and code.
12758         * config/score/score.h: Remove score3 and score5 define and code.
12759         * config/score/score.md: Remove score3 template and unusual insn.
12760         * config/score/score.opt: Remove score3 and score5 options.
12761
12762 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12763
12764         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
12765         when _HPUX_SOURCE is defined.
12766         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
12767
12768 2011-03-10  Jason Merrill  <jason@redhat.com>
12769
12770         PR c++/48029
12771         * stor-layout.c (layout_type): Don't set structural equality
12772         on arrays of incomplete type.
12773         * tree.c (type_hash_eq): Handle comparing them properly.
12774
12775 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
12776
12777         PR debug/48043
12778         * config/s390/s390.c (s390_delegitimize_address): Make sure the
12779         result mode matches original rtl mode.
12780
12781 2011-03-10  Nick Clifton  <nickc@redhat.com>
12782
12783         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
12784         (andsi3, andsi3_flags): Fix timings for three operand alternative.
12785
12786 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
12787
12788         PR rtl-optimization/47866
12789         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
12790         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
12791         if target wasn't scalar.
12792         * function.c (assign_stack_temp_for_type): Assert that neither
12793         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
12794         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
12795         macro.
12796         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
12797
12798 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12799
12800         * config/s390/s390-protos.h (s390_label_align): New prototype.
12801         * config/s390/s390.c (s390_label_align): New function.
12802         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
12803
12804 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
12805
12806         PR target/47755
12807         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
12808         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
12809         (output_vec_const_move): Ditto.
12810
12811 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
12812
12813         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
12814         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
12815         * config/mips/mips.c (mips_preferred_reload_class): Make static.
12816         Change 'rclass' argument and result type to reg_class_t.
12817         (TARGET_PREFERRED_RELOAD_CLASS): Define.
12818
12819 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
12820
12821         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12822         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
12823         (TARGET_MEMORY_MOVE_COST): Define.
12824         (avr_register_move_cost, avr_memory_move_cost): New Functions.
12825
12826 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
12827
12828         PR debug/47881
12829         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
12830         removed anything.
12831
12832         PR tree-optimization/48022
12833         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
12834         for EQ/NE_EXPR.
12835
12836 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
12837
12838         PR debug/47991
12839         * var-tracking.c (find_use_val): Return NULL for
12840         cui->sets && cui->store_p BLKmode MEMs.
12841
12842 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
12843
12844         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
12845         Remove.
12846         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
12847         xstormy16_print_operand_address): Remove.
12848         * config/stormy16/stormy16.c (xstormy16_print_operand,
12849         xstormy16_print_operand_address): Make static.
12850         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12851
12852 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
12853
12854         PR target/47862
12855         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
12856         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
12857         before definition.
12858
12859 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
12860
12861         PR bootstrap/48000
12862         * cfgloopmanip.c (fix_bb_placements): Return immediately
12863         if FROM is BASE_LOOP's header.
12864
12865 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
12866
12867         * gimplify.c (gimplify_function_tree): Fix building calls
12868         to __builtin_return_address.
12869
12870 2011-03-07  Alan Modra  <amodra@gmail.com>
12871
12872         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
12873         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
12874         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
12875         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
12876         return_mode args.
12877         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
12878         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
12879         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
12880         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
12881         * config/rs6000/rs6000.c
12882         (rs6000_elf_end_indicate_exec_stack): Rename to..
12883         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
12884         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
12885         (rs6000_file_start): ..here.
12886         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
12887         file scope variables.
12888         (call_ABI_of_interest): New function.
12889         (init_cumulative_args): Set above vars when function return value
12890         is a float, vector, or small struct.
12891         (rs6000_function_arg_advance_1): Likewise for function args.
12892         (rs6000_va_start): Set rs6000_passes_float if variable arg function
12893         references float args.
12894
12895 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
12896
12897         * doc/cfg.texi: Remove "See" before @ref.
12898         * doc/invoke.texi: Likewise.
12899
12900 2011-03-05  Jason Merrill  <jason@redhat.com>
12901
12902         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
12903
12904 2011-03-05  Anthony Green  <green@moxielogic.com>
12905
12906         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
12907
12908 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
12909
12910         PR rtl-optimization/47899
12911         * cfgloopmanip.c (fix_bb_placements): Fix first argument
12912         to flow_loop_nested_p when moving the loop upward.
12913
12914 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
12915
12916         PR target/47719
12917         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
12918
12919 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
12920
12921         PR tree-optimization/47967
12922         * ipa-cp.c (build_const_val): Return NULL instead of creating
12923         VIEW_CONVERT_EXPR for mismatching sizes.
12924         (ipcp_create_replace_map): Return NULL if build_const_val failed.
12925         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
12926         give up on versioning.
12927
12928 2011-03-05  Alan Modra  <amodra@gmail.com>
12929
12930         PR target/47986
12931         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12932         full cmodel medium/large lo_sum + high addresses.
12933
12934 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12935
12936         * config/s390/s390.c (s390_decompose_address): Reject non-literal
12937         pool references in UNSPEC_LTREL_OFFSET.
12938
12939 2011-03-04  Jan Hubicka  <jh@suse.cz>
12940
12941         PR lto/47497
12942         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
12943         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
12944         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
12945         Add node pointers.
12946         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
12947         cgraph_add_thunk): Add node pointers.
12948         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
12949         associated to right node.
12950         (input_node): Update use of cgraph_same_body_alias
12951         and cgraph_add_thunk.
12952
12953 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
12954
12955         * config/i386/i386.opt (mprefer-avx128): New flag.
12956         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
12957         modes when the flag -mprefer-avx128 is on.
12958
12959 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
12960
12961         * dwarf2out.c (compare_loc_operands): Fix address handling.
12962
12963 2011-03-04  Alan Modra  <amodra@gmail.com>
12964
12965         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
12966
12967 2011-03-04  Richard Guenther  <rguenther@suse.de>
12968
12969         PR middle-end/47968
12970         * expmed.c (extract_bit_field_1): Prefer vector modes that
12971         vec_extract patterns can handle.
12972
12973 2011-03-04  Richard Guenther  <rguenther@suse.de>
12974
12975         PR middle-end/47975
12976         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
12977
12978 2011-03-04  Richard Henderson  <rth@redhat.com>
12979
12980         * explow.c (emit_stack_save): Remove 'after' parameter.
12981         (emit_stack_restore): Likewise.
12982         * expr.h: Update to match.
12983         * builtins.c, calls.c, stmt.c: Likewise.
12984         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
12985         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
12986         * function.c (expand_function_end): Insert the emit_stack_save
12987         sequence before parm_birth_insn instead of after.
12988
12989 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
12990
12991         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
12992         (ssse3_pmaddubsw128): Ditto.
12993         (ssse3_pmaddubsw): Ditto.
12994
12995 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
12996
12997         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
12998
12999 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
13000
13001         PR c/47963
13002         * gimplify.c (omp_add_variable): Only call omp_notice_variable
13003         on TYPE_SIZE_UNIT if it is a DECL.
13004
13005         PR debug/47283
13006         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
13007         first operand is not is_gimple_mem_ref_addr, try to fold it.
13008         If the operand still isn't is_gimple_mem_ref_addr, clear
13009         MEM_EXPR on op0.
13010
13011 2011-03-03  Richard Guenther  <rguenther@suse.de>
13012
13013         PR middle-end/47283
13014         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
13015         match comment.
13016         (refs_may_alias_p_1): For release branches return true if
13017         we are confused by our input.
13018
13019 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13020
13021         * config/s390/s390.c (s390_function_value): Rename to ...
13022         (s390_function_and_libcall_value): ... this.
13023         (s390_function_value): New function.
13024         (s390_libcall_value): New function.
13025         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
13026         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
13027         target macro definitions.
13028         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
13029
13030 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
13031
13032         * config/i386/freebsd64.h (CC1_SPEC): Define.
13033         * config/i386/linux64.h (CC1_SPEC): Define.
13034         * config/i386/x86-64.h (CC1_SPEC): Don't define.
13035
13036 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
13037
13038         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13039         Remove.
13040         * config/stormy16/stormy16.c: Include reload.h.
13041         (xstormy16_memory_move_cost): New function.
13042         (TARGET_MEMORY_MOVE_COST): Define.
13043
13044 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
13045
13046         PR rtl-optimization/47925
13047         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
13048         with side effects.  Remove the more-specific check for volatile asms.
13049
13050 2011-03-02  Alan Modra  <amodra@gmail.com>
13051
13052         PR target/47935
13053         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
13054         toc relative addresses for valid offsets.
13055
13056 2011-03-01  Richard Guenther  <rguenther@suse.de>
13057
13058         PR tree-optimization/47890
13059         * tree-vect-loop.c (get_initial_def_for_induction): Set
13060         related stmt properly.
13061
13062 2011-03-01  Richard Guenther  <rguenther@suse.de>
13063
13064         PR lto/47924
13065         * lto-streamer.c (lto_record_common_node): Also register
13066         the canonical type.
13067
13068 2011-03-01  Richard Guenther  <rguenther@suse.de>
13069
13070         PR lto/46911
13071         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13072         Do not stream DECL_ABSTRACT_ORIGIN.
13073         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13074         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13075         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13076         Do not stream DECL_ABSTRACT_ORIGIN.
13077         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
13078         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
13079
13080 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
13081
13082         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
13083         FUNCTION_VALUE_REGNO_P): Remove.
13084         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
13085         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
13086         Add 'outgoing' argument.
13087         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
13088         function.
13089         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
13090         TARGET_FUNCTION_VALUE_REGNO_P): Define.
13091
13092 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
13093
13094         PR debug/28047
13095         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
13096         (lookup_filename): Likewise.
13097         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
13098
13099 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
13100             Jakub Jelinek  <jakub@redhat.com>
13101
13102         PR middle-end/47893
13103         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
13104         (assign_stack_local_1): Change last argument type to int.
13105         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
13106         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
13107         don't record padding space into frame_space_list nor use those areas.
13108         (assign_stack_local): Adjust caller.
13109         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
13110         of assign_stack_local, pass 0 as last argument.
13111         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
13112         callers.
13113
13114 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
13115
13116         PR debug/47283
13117         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
13118         Use target address_mode and pointer_mode hooks instead of hardcoded
13119         Pmode and ptr_mode.  Handle some simple cases of extending if
13120         POINTERS_EXTEND_UNSIGNED < 0.
13121         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
13122         Call convert_debug_memory_address.
13123         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
13124         convert_debug_memory_address.
13125
13126         PR middle-end/46790
13127         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
13128         * configure: Regenerated.
13129         * config.in: Regenerated.
13130         * varasm.c (default_function_section): Return NULL
13131         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
13132
13133 2011-02-28  Martin Jambor  <mjambor@suse.cz>
13134
13135         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
13136         the description to match the printed values.
13137
13138 2011-02-28  Richard Guenther  <rguenther@suse.de>
13139
13140         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
13141         of the copied scope tree.
13142
13143 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13144
13145         * doc/extend.texi (Function Attributes): Avoid deeply (and
13146         wrongly) nested tables.
13147
13148 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
13149
13150         PR middle-end/47903
13151         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
13152         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
13153         r isn't op0 nor op1.
13154
13155 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
13156
13157         * config/avr/avr.md: Remove magic comment for emacs.
13158
13159 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
13160
13161         PR target/45261
13162         * config/avr/avr.c (avr_option_override): Use error on bad options.
13163         (avr_help): New function.
13164         (TARGET_HELP): Define.
13165
13166 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
13167
13168         PR target/42240
13169         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
13170         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
13171
13172 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
13173
13174         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
13175         (ARM Options): Ditto.
13176         (i386 and x86-64 Options): Ditto.
13177         (RX Options): Ditto.
13178         (SPARC Options): Ditto.
13179
13180 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
13181
13182         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
13183         FreeBSD 6 and later.  Generally use cpu generic.
13184
13185 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
13186
13187         * doc/cpp.texi: Update copyright years.
13188
13189 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
13190
13191         PR target/46898
13192         * config/lm32/lm32.md (ashrsi3): Added needed variable.
13193
13194 2011-02-25  Jon Beniston  <jon@beniston.com>
13195
13196         PR target/46898
13197         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
13198         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
13199         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
13200         (lm32_block_move_inline): Add type cast to remove warning.
13201         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
13202         (gen_int_relational): Move declarations to start of function.
13203
13204 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
13205
13206         PR tree-optimization/45470
13207         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
13208         can throw internally only.
13209         * tree-vect-stmts.c (vectorizable_call): Likewise.
13210
13211 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
13212
13213         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
13214         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
13215         * config/stormy16/stormy16-protos.h
13216         (xstormy16_preferred_reload_class): Remove.
13217         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
13218         static. Change 'rclass' argument and return type to reg_class_t.
13219         (TARGET_PREFERRED_RELOAD_CLASS,
13220         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
13221
13222 2011-02-24  Richard Guenther  <rguenther@suse.de>
13223
13224         * lto-streamer-in.c (input_bb): Do not find referenced vars
13225         in debug statements.
13226
13227 2011-02-23  Jason Merrill  <jason@redhat.com>
13228
13229         * common.opt (fabi-version): Document v5 and v6.
13230
13231 2011-02-23  Richard Guenther  <rguenther@suse.de>
13232
13233         PR tree-optimization/47849
13234         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
13235
13236 2011-02-23  Jie Zhang  <jie@codesourcery.com>
13237
13238         * opts-common.c (decode_cmdline_option): Print empty string
13239         argument as "" in decoded->orig_option_with_args_text.
13240         * gcc.c (execute): Print empty string argument as ""
13241         in the verbose output.
13242         (do_spec_1): Keep empty string argument.
13243
13244 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
13245
13246         * config.gcc: Declare score-* and crx-* obsolete.
13247
13248 2011-02-23  Jie Zhang  <jie@codesourcery.com>
13249
13250         PR rtl-optimization/47763
13251         * web.c (web_main): Ignore naked clobber when replacing register.
13252
13253 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
13254
13255         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
13256         Remove.
13257
13258 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
13259
13260         PR doc/47848
13261         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
13262
13263 2011-02-22  Mike Stump  <mikestump@comcast.net>
13264
13265         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
13266         assembler.
13267         * configure: Regenerate.
13268
13269 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
13270
13271         PR rtl-optimization/46002
13272         * ira-color.c (update_copy_costs): Change class intersection
13273         test to reg_class_contents[] test of 'hard_regno'.
13274
13275 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
13276
13277         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
13278         than Driver option.
13279         * config/hpux11.opt (mt): Likewise.
13280         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
13281         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
13282         * config/vax/elf.opt (mno-asm-pic): Likewise.
13283         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
13284
13285 2011-02-21  Mike Stump  <mikestump@comcast.net>
13286
13287         PR target/47822
13288         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
13289         tree so we can get save the type.
13290         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
13291         for CFString instead of trying to use past the end of the builtins.
13292         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
13293         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
13294         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
13295         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
13296         Rename to darwin_builtin_cfstring.
13297         (darwin_init_cfstring_builtins): Return the built type.
13298
13299 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
13300
13301         PR target/47840
13302         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
13303         (_mm256_insert_epi64): Use _mm_insert_epi64.
13304
13305 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
13306
13307         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13308         * config/stormy16/stormy16-protos.h
13309         (xstormy16_mode_dependent_address_p): Remove.
13310         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
13311         Make static. Change return type to bool. Change argument type to
13312         const_rtx. Remove dead code.
13313         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13314
13315 2011-02-21  Richard Guenther  <rguenther@suse.de>
13316
13317         PR lto/47820
13318         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
13319         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13320         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
13321         TUs context.
13322         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
13323         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
13324
13325 2011-02-20  Richard Guenther  <rguenther@suse.de>
13326
13327         PR lto/47822
13328         * tree.c (free_lang_data_in_decl): Clean builtins from
13329         the TU decl BLOCK_VARS.
13330
13331 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
13332
13333         PR debug/47620
13334         PR debug/47630
13335         * haifa-sched.c (fix_tick_ready): Skip tick computation
13336         for debug insns.
13337
13338 2011-02-19  Richard Guenther  <rguenther@suse.de>
13339
13340         PR lto/47647
13341         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
13342         Remove lazy BLOCK_VARS streaming.
13343         (lto_input_ts_block_tree_pointers): Likewise.
13344         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
13345
13346 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
13347
13348         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
13349
13350 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
13351
13352         * config/i386/biarch32.h, config/i386/mach.h,
13353         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
13354
13355 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
13356
13357         PR target/47800
13358         * config/i386/i386.md (peephole2 for shift and plus): Use
13359         operands[1] original mode in the first insn.
13360
13361 2011-02-18  Mike Stump  <mikestump@comcast.net>
13362
13363         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
13364
13365 2011-02-18  Jan Hubicka  <jh@suse.cz>
13366
13367         PR middle-end/47788
13368         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
13369         to zero when the function is not inlinable at all.
13370
13371 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13372
13373         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
13374         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13375         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
13376         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
13377         * config/pa/t-pa64: Likewise.
13378         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
13379
13380 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
13381
13382         PR driver/47787
13383         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
13384
13385 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13386
13387         PR target/47792
13388         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
13389
13390 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
13391
13392         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
13393         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
13394         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
13395         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
13396         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
13397         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
13398         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
13399         m32r_load_postinc_p, m32r_store_preinc_predec_p,
13400         m32r_legitimate_address_p): New functions.
13401         * config/m32r/constraints.md (constraint "S"): Don't use
13402         STORE_PREINC_PREDEC_P.
13403         (constraint "U"): Don't use LOAD_POSTINC_P.
13404
13405 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
13406
13407         PR rtl-optimization/46178
13408         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
13409         compute ira_hard_regno_cover_class[].
13410
13411 2011-02-18  Richard Guenther  <rguenther@suse.de>
13412
13413         PR lto/47798
13414         * lto-streamer.h (lto_global_var_decls): Declare.
13415         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
13416         statics for global var processing.
13417
13418 2011-02-18  Richard Guenther  <rguenther@suse.de>
13419
13420         PR tree-optimization/47737
13421         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
13422         edge dominance check.
13423
13424 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
13425
13426         PR debug/47780
13427         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
13428         avoid invalid rtx sharing.
13429
13430 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
13431
13432         * doc/cpp.texi (Obsolete Features): Add background on the
13433         origin of assertions.
13434
13435 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
13436
13437         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
13438         objc_abi == 2.
13439         * config/darwin.c (output_objc_section_asm_op): Added support for
13440         ABI v1 and v2.
13441         (is_objc_metadata): New.
13442         (darwin_objc2_section): New.
13443         (darwin_objc1_section): New.
13444         (machopic_select_section): Added support for ABI v1 and v2.
13445         (darwin_emit_objc_zeroed): New.
13446         (darwin_output_aligned_bss): Detect objc metadata and treat it
13447         appropriately.
13448         (darwin_asm_output_aligned_decl_common): Same.
13449         (darwin_asm_output_aligned_decl_local): Same.
13450         * config/darwin-sections.def: Updated for ABI v1 and v2.
13451         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
13452         compiling Objective-C code for the NeXT runtime, default to using
13453         ABI version 0 for 32-bit, and version 2 for 64-bit.
13454
13455 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
13456
13457         * common.opt (optimize_fast): New Variable.
13458         * opts.c (default_options_optimization): Use opts->x_optimize_fast
13459         instead of local variable ofast.
13460
13461 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
13462
13463         * doc/invoke.texi (fobjc-abi-version): Documented.
13464         (fobjc-nilcheck): Documented.
13465         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
13466         version.
13467
13468 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
13469
13470         PR driver/47390
13471         * common.opt (export-dynamic): New Driver option.
13472         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
13473
13474 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
13475
13476         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
13477
13478 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
13479             Jan Hubicka  <jh@suse.cz>
13480
13481         PR debug/47106
13482         PR debug/47402
13483         * cfgexpand.c (account_used_vars_for_block): Remove.
13484         (estimated_stack_frame_size): Use referenced vars.
13485         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
13486         that were referenced in the original function.  Test src_fn
13487         rather than cfun.  Drop redundant get_var_ann.
13488         (setup_one_parameter): Drop redundant get_var_ann.
13489         (declare_return_variable): Likewise.
13490         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
13491         (copy_arguments_for_versioning): Drop redundant get_var_ann.
13492         * ipa-inline.c (compute_inline_parameters): Do not compute
13493         disregard_inline_limits here.
13494         (compute_inlinable_for_current, pass_inlinable): New.
13495         (pass_inline_parameters): Require PROP_referenced_vars.
13496         * cgraphunit.c (cgraph_process_new_functions): Don't run
13497         compute_inline_parameters explicitly unless function is in SSA form.
13498         (cgraph_analyze_function): Set .disregard_inline_limits.
13499         * tree-sra.c (convert_callers): Compute inliner parameters
13500         only for functions already in SSA form.
13501
13502 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
13503
13504         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
13505         -mlittle-endian-data.
13506
13507 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
13508
13509         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
13510         -mno-fpu, not -fpu and -no-fpu.
13511         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
13512         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
13513
13514 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
13515
13516         PR target/43653
13517         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
13518         input reload with PLUS RTX.
13519
13520 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
13521
13522         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
13523         of InverseVar(MDMX).
13524
13525 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
13526
13527         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
13528         --m4-340.
13529
13530 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
13531
13532         * config/mn10300/mn10300.opt (mno-crt0): New.
13533
13534 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
13535
13536         * config/m68k/uclinux.opt (static-libc): New Driver option.
13537
13538 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
13539
13540         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
13541
13542 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
13543
13544         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
13545         %{muser-extend-enabled}.
13546
13547 2011-02-16  Richard Guenther  <rguenther@suse.de>
13548
13549         PR tree-optimization/47738
13550         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
13551         the TODO from tree_predictive_commoning.
13552
13553 2011-02-15  Jeff Law  <law@redhat.com>
13554
13555         Revert
13556         2011-01-25  Jeff Law  <law@redhat.com>
13557
13558         PR rtl-optimization/37273
13559         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13560         handle them like argument loads from stack slots.  Do not double
13561         count memory for memory constants and argument loads from stack slots.
13562
13563 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
13564
13565         PR middle-end/47725
13566         * combine.c (cant_combine_insn_p): Revert the last change.
13567
13568 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
13569
13570         PR target/47755
13571         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
13572         mode for vector constants.  Remove code that checks for TImode.
13573
13574 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
13575
13576         PR debug/47106
13577         PR debug/47402
13578         * cgraph.h (compute_inline_parameters): Return void.
13579         * ipa-inline.c (compute_inline_parameters): Adjust.
13580
13581 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
13582
13583         PR debug/47106
13584         PR debug/47402
13585         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
13586         rather than decl.
13587         * cfgexpand.c (estimated_stack_frame_size): Likewise.
13588         * ipa-inline.c (compute_inline_parameters): Adjust.
13589
13590 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
13591
13592         PR debug/47106
13593         PR debug/47402
13594         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
13595         Adjust all users.  Pass FN to...
13596         * tree-flow-inline.h (first_referenced_var): ... this.  Add
13597         fn argument.
13598         * ipa-struct-reorg.c: Adjust.
13599         * tree-dfa.c: Adjust.
13600         * tree-into-ssa.c: Adjust.
13601         * tree-sra.c: Adjust.
13602         * tree-ssa-alias.c: Adjust.
13603         * tree-ssa-live.c: Adjust.
13604         * tree-ssa.c: Adjust.
13605         * tree-ssanames.c: Adjust.
13606         * tree-tailcall.c: Adjust.
13607
13608 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
13609
13610         PR debug/47106
13611         PR debug/47402
13612         * tree-flow.h (referenced_var_lookup): Add fn parameter.
13613         Adjust all callers.
13614         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
13615         * tree-flow-inline.h: Adjust.
13616         * gimple-pretty-print.c: Adjust.
13617         * tree-into-ssa.c: Adjust.
13618         * tree-ssa.c: Adjust.
13619         * cfgexpand.c: Adjust.
13620
13621 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
13622
13623         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
13624         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13625         (EXTRA_CONSTRAINT): Delete.
13626         * config/iq2000/constraints.md: New file.
13627         * config/iq2000/iq2000.md: Include it.
13628         (define_insn ""): Delete.
13629         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
13630         unsupported constraint letters from patterns.
13631         (call_value, call_value_internal1): Likewise.
13632         (call_value_multiple_internal1): Likewise.
13633
13634 2011-02-15  Nick Clifton  <nickc@redhat.com>
13635
13636         * config/mn10300/mn10300.c: Include tm-constrs.h.
13637         (struct liw_data): New data structure describing an LIW candidate
13638         instruction.
13639         (extract_bundle): Use struct liw_data.  Allow small integer
13640         operands for some instructions.
13641         (check_liw_constraints): Use struct liw_data.  Remove swapped
13642         parameter.  Add comments describing the checks.  Fix bug when
13643         assigning the source of liw1 to the source of liw2.
13644         (liw_candidate): Delete.  Code moved into extract_bundle.
13645         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
13646         before swapping.
13647         * config/mn10300/predicates.md (liw_operand): New predicate.
13648         Allows registers and small integer constants.
13649         * config/mn10300/constraints.md (O): New constraint.  Accetps
13650         integers in the range -8 to +7 inclusive.
13651         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
13652         for moving a small integer into a register.  Give this alternative
13653         LIW attributes.
13654         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
13655         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
13656         using the J,K,L and M constraints,
13657         (liw): Remove SI mode on second operands to allow for HI and QI
13658         mode values.
13659         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
13660         instruction.
13661
13662 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
13663
13664         PR middle-end/47725
13665         * combine.c (cant_combine_insn_p): Check zero/sign extended
13666         hard registers.
13667
13668 2011-02-15  Richard Guenther  <rguenther@suse.de>
13669
13670         PR tree-optimization/47743
13671         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
13672         for a non-type-compatible VN lookup bail out.
13673
13674 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
13675
13676         * config/fr30/constraints.md: New file.
13677         * config/fr30/fr30.md: Include it.
13678         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
13679         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13680         (EXTRA_CONSTRAINT): Delete.
13681
13682 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
13683
13684         * config/frv/constraints.md: New file.
13685         * config/frv/predicates.md: Include it.
13686         * config/frv/frv.c (reg_class_from_letter): Delete.
13687         (frv_option_override): Don't initialize it.
13688         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
13689         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
13690         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
13691         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13692         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
13693         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13694         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
13695         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
13696         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
13697         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
13698         (REG_CLASS_FROM_CONSTRAINT): Delete.
13699
13700 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
13701
13702         PR middle-end/47581
13703         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
13704         if frame size is 0 in a leaf function.
13705
13706 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13707
13708         PR pch/14940
13709         * config/alpha/host-osf.c: New file.
13710         * config/alpha/x-osf: New file.
13711         * config.host (alpha*-dec-osf*): Use it.
13712
13713 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
13714
13715         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13716         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
13717         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
13718         (rx_mode_dependent_address_p): ...this. Make static. Change argument
13719         type to const_rtx.
13720         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13721
13722 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
13723
13724         * config/stormy16/constraints.md: New file.
13725         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
13726         Use satisfies_constraint_Q and satisfies_constraint_R.
13727         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
13728         Delete.
13729         (xstormy16_legitiamte_address_p): Declare.
13730         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
13731         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13732         (EXTRA_CONSTRAINT): Delete.
13733         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
13734         Un-staticize.
13735         (xstormy16_extra_constraint_p): Delete.
13736
13737 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
13738
13739         PR tree-optimization/46494
13740         * loop-unroll.c (split_edge_and_insert): Adjust comment.
13741         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
13742         (pass_rtl_loop_done): Add TODO_verify_flow.
13743         * fwprop.c (pass_rtl_fwprop): Likewise.
13744         * modulo-sched.c (pass_sms): Likewise.
13745         * tree-ssa-dom.c (pass_dominator): Likewise.
13746         * tree-ssa-loop-ch.c (pass_ch): Likewise.
13747         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
13748         (pass_tree_loop_done): Likewise.
13749         * tree-ssa-pre.c (execute_pre): Likewise.
13750         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
13751         * tree-ssa-sink.c (pass_sink_code): Likewise.
13752         * tree-vrp.c (pass_vrp): Likewise.
13753
13754 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
13755
13756         * config/v850/constraints.md: New file.
13757         * config/v850/v850.md: Include it.
13758         * config/v850/predicates.md (reg_or_0_operand): Use
13759         satisfies_constraint_G.
13760         (special_symbolref_operand): Use satisfies_constraint_K.
13761         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
13762         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
13763         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
13764         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
13765         (EXTRA_CONSTRAINT): Delete.
13766         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
13767         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
13768         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
13769
13770 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
13771
13772         PR target/47696
13773         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
13774         description.
13775
13776 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
13777
13778         * config/mcore/constraints.md: New file.
13779         * config/mcore/mcore.md: Include it.
13780         * config/mcore/mcore.c (reg_class_from_letter): Delete.
13781         * config/mcore/mcore.h (reg_class_from_letter): Delete.
13782         (REG_CLASS_FROM_LETTER): Delete.
13783         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
13784         insn_const_int_ok_for_constraint.
13785         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
13786         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
13787         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
13788         (EXTRA_CONSTRAINT): Delete.
13789
13790 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13791
13792         PR ada/41929
13793         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
13794         (IS_SIGHANDLER): Define.
13795         (sparc64_is_sighandler): New function, split off from
13796         sparc64_fallback_frame_state.
13797         (sparc_is_sighandler): New function, split off from
13798         sparc_fallback_frame_state.
13799         (sparc64_fallback_frame_state): Merge with ...
13800         (sparc_fallback_frame_state): ... this into ...
13801         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
13802         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
13803         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
13804         stack instead of hardcoded offsets.
13805
13806 2011-02-14  Andriy Gapon  <avg@freebsd.org>
13807
13808         PR target/45808
13809         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
13810
13811 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13812
13813         * configure: Regenerate.
13814
13815 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
13816
13817         PR driver/45731
13818         * gcc.c (asm_options): Correct spec matching --target-help.
13819
13820 2011-02-12  Martin Jambor  <mjambor@suse.cz>
13821
13822         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
13823         to gimple call error.
13824
13825 2011-02-12  Mike Stump  <mikestump@comcast.net>
13826
13827         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
13828         comments in backslash regions.
13829
13830 2011-02-12  Mike Stump  <mikestump@comcast.net>
13831             Jakub Jelinek  <jakub@redhat.com>
13832             Iain Sandoe  <iains@gcc.gnu.org>
13833
13834         PR target/47324
13835         * dwarf2out.c (output_cfa_loc): When required, apply the
13836         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
13837         (output_loc_sequence): Likewise.
13838         (output_loc_operands_raw): Likewise.
13839         (output_loc_sequence_raw): Likewise.
13840         (output_cfa_loc): Likewise.
13841         (output_loc_list): Suppress register number adjustment when
13842         calling output_loc_sequence()
13843         (output_die): Likewise.
13844
13845 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
13846
13847         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
13848         Remove macros.
13849         * config/xtensa/xtensa.c (xtensa_register_move_cost,
13850         xtensa_memory_move_cost): New functions.
13851         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
13852
13853 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
13854
13855         PR lto/47225
13856         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
13857         in the current directory.
13858         * configure: Rebuilt.
13859
13860 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
13861
13862         * config/darwin.c (darwin_override_options): Add a hunk missed
13863         from the commit of r168571.  Trim comment line lengths and
13864         correct indents of the preceding block.
13865
13866 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
13867
13868         * gcc.c (driver_handle_option): Concatenate the argument to -F with
13869         the switch.
13870
13871 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
13872
13873         * common.opt (nostartfiles): New Driver option.
13874
13875 2011-02-11  Xinliang David Li  <davidxl@google.com>
13876
13877         PR tree-optimization/47707
13878         * tree-chrec.c (convert_affine_scev): Keep type precision.
13879
13880 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
13881
13882         PR tree-optimization/47420
13883         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
13884
13885 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
13886
13887         PR rtl-optimization/47614
13888         * rtl.h (check_for_inc_dec): Declare.
13889         * dse.c (check_for_inc_dec): Externalize...
13890         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
13891         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
13892
13893 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
13894
13895         PR driver/47678
13896         * gcc.c (main): Do not compile inputs if there were errors in
13897         option handling.
13898         * opts-common.c (read_cmdline_option): Check for wrong language
13899         after other error checks.
13900
13901 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
13902
13903         * cgraph.c: Fix comment typos.
13904         * cgraph.h: Likewise.
13905         * cgraphunit.c: Likewise.
13906         * ipa-cp.c: Likewise.
13907         * ipa-inline.c: Likewise.
13908         * ipa-prop.c: Likewise.
13909         * ipa-pure-const.c: Likewise.
13910         * ipa-ref.c: Likewise.
13911         * ipa-reference.c: Likewise.
13912
13913 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
13914
13915         PR debug/47684
13916         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
13917
13918 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13919
13920         PR testsuite/47400
13921         * doc/sourcebuild.texi (Require Support): Document
13922         dg-require-ascii-locale.
13923
13924 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
13925
13926         * doc/lto.texi (Write summary): Fix missing parentheses.
13927
13928 2011-02-10  DJ Delorie  <dj@redhat.com>
13929
13930         * config/m32c/m32c.c (m32c_option_override): Disable
13931         -fcombine-stack-adjustments until flag value tracking and compare
13932         optimization can be rewritten.
13933
13934 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
13935
13936         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
13937         PROCESSOR_POWER7.
13938         (PROCESSOR_DEFAULT64): Likewise.
13939
13940 2011-02-10  Richard Henderson  <rth@redhat.com>
13941
13942         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
13943         change from 2011-02-03.
13944         * config/rx/rx.c (flags_from_code): Likewise.
13945         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
13946         is valid, n/pz otherwise.
13947         (rx_select_cc_mode): Return CCmode if Y is not zero.
13948
13949 2011-02-10  Richard Guenther  <rguenther@suse.de>
13950
13951         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
13952
13953 2011-02-10  Richard Guenther  <rguenther@suse.de>
13954
13955         PR tree-optimization/47677
13956         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
13957
13958 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
13959
13960         PR target/47665
13961         * combine.c (make_compound_operation): Only change shifts into
13962         multiplication for SCALAR_INT_MODE_P.
13963
13964 2011-02-10  Jie Zhang  <jie@codesourcery.com>
13965
13966         PR testsuite/47622
13967         Revert
13968         2011-02-05  Jie Zhang  <jie@codesourcery.com>
13969         PR debug/42631
13970         * web.c (entry_register): Don't clobber the number of the
13971         first uninitialized reference in used[].
13972
13973 2011-02-09  Richard Guenther  <rguenther@suse.de>
13974
13975         PR tree-optimization/47664
13976         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
13977         all edges again.
13978
13979 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
13980
13981         PR target/46481
13982         PR target/47032
13983         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
13984         PROCESSOR_POWER7.
13985         (PROCESSOR_DEFAULT64): Same.
13986         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
13987
13988 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13989
13990         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
13991
13992 2011-02-09  Martin Jambor  <mjambor@suse.cz>
13993
13994         PR middle-end/45505
13995         * tree-sra.c (struct access): New flags grp_scalar_read and
13996         grp_scalar_write.  Changed description of assignment read and write
13997         flags.
13998         (dump_access): Dump new flags, reorder all of them.
13999         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
14000         to detect multiple scalar reads.
14001         (analyze_access_subtree): Use the new scalar read write flags instead
14002         of the old flags.  Adjusted comments.
14003
14004 2011-02-08  DJ Delorie  <dj@redhat.com>
14005
14006         PR target/47548
14007         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
14008         patterns.
14009
14010 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14011
14012         * config/m68k/uclinux.opt: New.
14013         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
14014
14015 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14016
14017         * config/cris/elf.opt (sim): New Driver option.
14018
14019 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14020
14021         * config/xtensa/elf.opt: New.
14022         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
14023
14024 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14025
14026         * config/vax/elf.opt: New.
14027         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
14028
14029 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14030
14031         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
14032
14033 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14034
14035         * config/gnu-user.opt: New.
14036         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
14037         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
14038         *-*-uclinux*): Use gnu-user.opt.
14039
14040 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
14041
14042         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
14043         * config/i386/gnu.h (CPP_SPEC): Likewise.
14044
14045 2011-02-08  Ian Lance Taylor  <iant@google.com>
14046
14047         * common.opt (fcx-limited-range): Add SetByCombined flag.
14048         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
14049         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
14050         (fassociative-math, freciprocal-math): Likewise.
14051         (funsafe-math-optimizations): Likewise.
14052         * opth-gen.awk: Handle SetByCombined.
14053         * optc-gen.awk: Likewise.
14054         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
14055         (set_unsafe_math_optimizations_flags): Likewise.
14056         * doc/options.texi (Option properties): Document SetByCombined.
14057
14058 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
14059
14060         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
14061         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
14062         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
14063         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
14064         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
14065
14066 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
14067
14068         PR tree-optimization/46834
14069         PR tree-optimization/46994
14070         PR tree-optimization/46995
14071         * graphite-sese-to-poly.c (used_outside_reduction): New.
14072         (detect_commutative_reduction): Call used_outside_reduction.
14073         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
14074         translate_scalar_reduction_to_array only when at least one
14075         loop-phi/close-phi tuple has been detected.
14076
14077 2011-02-08  Richard Guenther  <rguenther@suse.de>
14078
14079         PR middle-end/47639
14080         * tree-vect-generic.c (expand_vector_operations_1): Update
14081         stmts here ...
14082         (expand_vector_operations): ... not here.  Cleanup EH info
14083         and the CFG if required.
14084
14085 2011-02-08  Richard Guenther  <rguenther@suse.de>
14086
14087         PR tree-optimization/47641
14088         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
14089         require type compatibility.
14090
14091 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14092
14093         * gimple-low.c (lower_function_body): Don't remove the location of
14094         the return statement here.
14095         (lower_gimple_return): Do it here instead but only if the return
14096         statement is actually used twice.
14097
14098 2011-02-08  Richard Guenther  <rguenther@suse.de>
14099
14100         PR tree-optimization/47632
14101         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
14102         unused up_to_stmt parameter, return whether cfg-cleanup is
14103         necessary, remove EH info properly.
14104         (forward_propagate_into_gimple_cond): Adjust caller.
14105         (forward_propagate_into_cond): Likewise.
14106         (forward_propagate_comparison): Likewise.
14107         (tree_ssa_forward_propagate_single_use_vars): Make
14108         forward_propagate_comparison case similar to the two others.
14109
14110 2011-02-08  Nick Clifton  <nickc@redhat.com>
14111
14112         * config/mn10300/mn10300.opt (mliw): New command line option.
14113         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
14114         (liw_bundling): New automaton.
14115         (liw): New attribute.
14116         (liw_op): New attribute.
14117         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
14118         (movsi_internal): Add LIW attributes.
14119         (andsi3): Likewise.
14120         (iorsi3): Likewise.
14121         (xorsi3): Likewise.
14122         (addsi3): Separate register and immediate alternatives.
14123         Add LIW attributes.
14124         (subsi3): Likewise.
14125         (cmpsi): Likewise.
14126         (aslsi3): Likewise.
14127         (lshrsi3): Likewise.
14128         (ashrsi3): Likewise.
14129         (liw): New pattern.
14130         * config/mn10300/mn10300.c (liw_op_names): New
14131         (mn10300_print_operand): Handle 'W' operand descriptor.
14132         (extract_bundle): New function.
14133         (check_liw_constraints): New function.
14134         (liw_candidate): New function.
14135         (mn10300_bundle_liw): New function.
14136         (mn10300_reorg): New function.
14137         (TARGET_MACHINE_DEPENDENT_REORG): Define.
14138         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
14139         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
14140         __LIW__ or __NO_LIW__.
14141         * doc/invoke.texi: Describe the -mliw command line option.
14142
14143 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14144
14145         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
14146         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
14147         pthread_mutex_unlock): Remove.
14148         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
14149         * config/pa/t-pa64: Likewise.
14150         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
14151         shared libc if not linking against libpthread.
14152         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
14153
14154 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
14155
14156         PR target/47558
14157         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
14158         on 10.6 and later to ensure that we always use the unwinder from
14159         the system.  Only add -no_compact_unwind when tarteting darwin
14160         10.6 or later.
14161
14162 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
14163
14164         PR target/46997
14165         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
14166         (vec_interleave_lowv2sf): Ditto.
14167         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
14168         (vec_extract_oddv2sf): Ditto.
14169
14170 2011-02-07  Mike Stump  <mikestump@comcast.net>
14171
14172         PR target/42333
14173         Add __ieee_divdc3 entry point.
14174         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
14175         entry point.
14176         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
14177         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
14178         * config/darwin.c (darwin_rename_builtins): Add.
14179         * config/darwin-protos.h (darwin_rename_builtins): Add.
14180
14181 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
14182
14183         PR target/47636
14184         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
14185         for the condition.
14186
14187 2011-02-07  Mike Stump  <mikestump@comcast.net>
14188
14189         * config/darwin.opt (mmacosx-version-min): Update default OS version.
14190
14191 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
14192
14193         PR target/47534
14194         * config/avr/libgcc.S (exit): Move .endfunc
14195
14196 2011-02-07  Richard Guenther  <rguenther@suse.de>
14197
14198         PR tree-optimization/47615
14199         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
14200         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
14201         (run_scc_vn): Initialize it.
14202         (visit_reference_op_load): Use it.
14203         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
14204
14205 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14206
14207         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
14208         DImode trapping arithmetic libfuncs.
14209
14210 2011-02-07  Richard Guenther  <rguenther@suse.de>
14211
14212         PR tree-optimization/47621
14213         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
14214         two duplicates ...
14215         (execute_update_addresses_taken): ... here.  Make it more
14216         conservative in what we accept.
14217
14218 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
14219
14220         * config/sparc/freebsd.h (ASM_SPEC): Define.
14221         * config/sparc/vxworks.h (ASM_SPEC): Define.
14222
14223 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
14224
14225         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14226
14227 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
14228
14229         * doc/invoke.texi: Remove reference to compiler internals from
14230         user documentation.
14231
14232         * reg-notes.def: Remove REG_VALUE_PROFILE.
14233         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
14234
14235 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
14236
14237         PR middle-end/47610
14238         * varasm.c (default_section_type_flags): If decl is NULL,
14239         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
14240
14241 2011-02-05  Jie Zhang  <jie@codesourcery.com>
14242
14243         PR debug/42631
14244         * web.c (entry_register): Don't clobber the number of the
14245         first uninitialized reference in used[].
14246
14247 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
14248
14249         PR tree-optimization/46194
14250         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
14251         (build_classic_dist_vector_1): Do not represent classic distance
14252         vectors when the access functions are variating in different loops.
14253
14254 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
14255
14256         * config/mips/iris6.opt: New.
14257         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
14258
14259 2011-02-04  Richard Henderson  <rth@redhat.com>
14260             Steve Ellcey  <sje@cup.hp.com>
14261
14262         PR target/46997
14263         * config/ia64/predicates.md (mux1_brcst_element): New.
14264         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
14265         * config/ia64/ia64.c (ia64_unpack_assemble): New.
14266         (ia64_unpack_sign): New.
14267         (ia64_expand_unpack): Rewrite using new routines.
14268         (ia64_expand_widen_sum): Ditto.
14269         (ia64_expand_dot_prod_v8qi): Ditto.
14270         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
14271         routines, add endian check.
14272         (pmpy2_even): Rename from pmpy2_r, add endian check.
14273         (pmpy2_odd): Rename from pmpy2_l, add endian check.
14274         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
14275         (vec_widen_smult_hi_v4hi): Ditto.
14276         (vec_widen_umult_lo_v4hi): Ditto.
14277         (vec_widen_umult_hi_v4hi): Ditto.
14278         (mulv2si3): Change endian checks.
14279         (sdot_prodv4hi): Rewrite with new calls.
14280         (udot_prodv4hi): New.
14281         (vec_pack_ssat_v4hi): Add endian check.
14282         (vec_pack_usat_v4hi): Ditto.
14283         (vec_pack_ssat_v2si): Ditto.
14284         (max1_even): Rename from max1_r, add endian check.
14285         (max1_odd): Rename from max1_l, add endian check.
14286         (*mux1_rev): Format change.
14287         (*mux1_mix): Ditto.
14288         (*mux1_shuf): Ditto.
14289         (*mux1_alt): Ditto.
14290         (*mux1_brcst_v8qi): Use new predicate.
14291         (vec_extract_evenv8qi): Remove endian check.
14292         (vec_extract_oddv8qi): Ditto.
14293         (vec_interleave_lowv4hi): Format change.
14294         (vec_interleave_highv4hi): Ditto.
14295         (mix2_even): Rename from mix2_r, add endian check.
14296         (mix2_odd): Rename from mux2_l, add endian check.
14297         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
14298         (vec_extract_evenodd_helper): Format change.
14299         (vec_extract_evenv4hi): Remove endian check.
14300         (vec_extract_oddv4hi): Remove endian check.
14301         (vec_interleave_lowv2si): Format change.
14302         (vec_interleave_highv2si): Format change.
14303         (vec_initv2si): Remove endian check.
14304         (vecinit_v2si): Add endian check.
14305         (reduc_splus_v2sf): Add endian check.
14306         (reduc_smax_v2sf): Ditto.
14307         (reduc_smin_v2sf): Ditto.
14308         (vec_initv2sf): Remove endian check.
14309         (fpack): Add endian check.
14310         (fswap): Add endian check.
14311         (vec_interleave_highv2sf): Add endian check.
14312         (vec_interleave_lowv2sf): Add endian check.
14313         (fmix_lr): Add endian check.
14314         (vec_setv2sf): Format change.
14315         (*vec_extractv2sf_0_be): Use shift to extract operand.
14316         (*vec_extractv2sf_1_be): New.
14317         (vec_pack_trunc_v4hi): Add endian check.
14318         (vec_pack_trunc_v2si): Format change.
14319
14320 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
14321
14322         PR inline-asm/23200
14323         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
14324         do bb, locus and block comparison and disallow loads if it is not set.
14325         (stmt_is_replaceable_p): New function.
14326         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
14327         callers.
14328         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
14329         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
14330         SSA_NAME_DEF_STMT.
14331         * tree-flow.h (stmt_is_replaceable_p): New prototype.
14332
14333 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
14334
14335         * config/rs6000/xilinx.opt: New.
14336         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
14337
14338 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
14339
14340         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
14341
14342 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
14343
14344         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
14345         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
14346         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
14347         secondary_reload_info, xtensa_secondary_reload): Remove.
14348         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
14349         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
14350         (xtensa_preferred_reload_class): Make static. Change return and
14351         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
14352         Use CONST_DOUBLE_P predicate.
14353         (xtensa_preferred_output_reload_class): New function.
14354         (xtensa_secondary_reload): Make static.
14355
14356 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
14357
14358         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
14359         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
14360         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
14361
14362 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
14363
14364         PR middle-end/31490
14365         * output.h (SECTION_RELRO): Define.
14366         (SECTION_MACH_DEP): Adjust.
14367         (get_variable_section): New prototype.
14368         * varpool.c (varpool_finalize_named_section_flags): New function.
14369         (varpool_assemble_pending_decls): Call it.
14370         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
14371         * cgraphunit.c (cgraph_output_in_order): Call
14372         varpool_finalize_named_section_flags.
14373         * varasm.c (get_section): Allow section flags conflicts between
14374         relro and read-only sections if the section hasn't been declared yet.
14375         Set SECTION_OVERRIDE after diagnosing section type conflict.
14376         (get_variable_section): No longer static.
14377         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
14378         readonly sections that need relocations.
14379         (decl_readonly_section_1): New function.
14380         (decl_readonly_section): Use it.
14381
14382         Revert:
14383         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
14384                     Steve Ellcey  <sje@cup.hp.com>
14385
14386         PR middle-end/31490
14387         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
14388         if section attribute used.
14389
14390 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
14391
14392         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
14393         * config/darwin.c (SECTION_NO_ANCHOR): Define.
14394         (darwin_init_sections): Remove assertion.
14395
14396 2011-02-03  Nick Clifton  <nickc@redhat.com>
14397
14398         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
14399         lt and ge.
14400         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
14401         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
14402         instead of "n" and "pz".
14403         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
14404         CC_FLAG_S.
14405
14406 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
14407
14408         PR target/47312
14409         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
14410         fma, expand FMA_EXPR as fma{,f,l} call.
14411
14412         PR lto/47274
14413         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
14414         copy them into a unsigned char variable and pass address of it to
14415         lto_output_data_stream.
14416
14417         PR target/47564
14418         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
14419         around backend_init_target and lang_dependent_init_target calls.
14420         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
14421         (verify_cgraph_node): Don't call set_cfun here.  Use
14422         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
14423         Set error_found for incorrectly represented calls to thunks.
14424
14425 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
14426
14427         PR debug/43092
14428         PR rtl-optimization/43494
14429         * rtl.h (for_each_inc_dec_fn): New type.
14430         (for_each_inc_dec): Declare.
14431         * rtlanal.c (struct for_each_inc_dec_ops): New type.
14432         (for_each_inc_dec_find_inc_dec): New fn.
14433         (for_each_inc_dec_find_mem): New fn.
14434         (for_each_inc_dec): New fn.
14435         * dse.c (struct insn_size): Remove.
14436         (replace_inc_dec, replace_inc_dec_mem): Remove.
14437         (emit_inc_dec_insn_before): New fn.
14438         (check_for_inc_dec): Use it, along with for_each_inc_dec.
14439         (canon_address): Pass mem modes to cselib_lookup.
14440         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
14441         (cselib_lookup_from_insn): Likewise.
14442         (cselib_subst_to_values): Likewise.
14443         * cselib.c (find_slot_memmode): New var.
14444         (cselib_find_slot): New fn.  Use it instead of
14445         htab_find_slot_with_hash everywhere.
14446         (entry_and_rtx_equal_p): Use find_slot_memmode.
14447         (autoinc_split): New fn.
14448         (rtx_equal_for_cselib_p): Rename and implement in terms of...
14449         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
14450         Deal with autoinc.  Special-case recursion into MEMs.
14451         (cselib_hash_rtx): Likewise.
14452         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
14453         address and MEM modes.
14454         (cselib_subst_to_values): Add memmode, pass it on.
14455         Deal with autoinc.
14456         (cselib_lookup): Add memmode argument, pass it on.
14457         (cselib_lookup_from_insn): Add memmode.
14458         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
14459         (struct cselib_record_autoinc_data): New.
14460         (cselib_record_autoinc_cb): New fn.
14461         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
14462         mode to cselib_lookup.  Reset autoinced REGs here instead of...
14463         (cselib_process_insn): ... here.
14464         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
14465         to cselib_lookup.
14466         (add_uses): Likewise, also to cselib_subst_to_values.
14467         (add_stores): Likewise.
14468         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
14469         cselib_subst_to_values.
14470         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
14471         * gcse.c (do_local_cprop): Adjusted.
14472         * postreload.c (reload_cse_simplify_set): Adjusted.
14473         (reload_cse_simplify_operands): Adjusted.
14474         * sel-sched-dump (debug_mem_addr_value): Pass mode.
14475
14476 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
14477
14478         PR tree-optimization/45122
14479         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
14480         unsafe assumptions when there's more than one loop exit.
14481
14482 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
14483
14484         PR target/47272
14485         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
14486         Document using vector double with the load/store builtins, and
14487         that the load/store builtins always use Altivec instructions.
14488
14489         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
14490         to use altivec memory instructions, even on VSX.
14491         (vector_altivec_store_<mode>): Ditto.
14492
14493         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
14494         function.
14495
14496         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14497         V2DF, V2DI support to load/store overloaded builtins.
14498
14499         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
14500         altivec load/store builtins for V2DF/V2DI types.
14501
14502         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
14503         set avoid indexed addresses on power6 if -maltivec.
14504         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
14505         vector_altivec_load/vector_altivec_store builtins.
14506         (altivec_expand_st_builtin): Ditto.
14507         (altivec_expand_builtin): Add VSX memory builtins.
14508         (rs6000_init_builtins): Add V2DI types to internal types.
14509         (altivec_init_builtins): Add support for V2DF/V2DI altivec
14510         load/store builtins.
14511         (rs6000_address_for_altivec): Insure memory address is appropriate
14512         for Altivec.
14513
14514         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
14515         vec_vsx_ld and vec_vsx_st.
14516         (vsx_store_<mode>): Ditto.
14517
14518         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
14519         variables to hold long long types for VSX vector memory builtins.
14520         (RS6000_BTI_unsigned_long_long): Ditto.
14521         (long_long_integer_type_internal_node): Ditti.
14522         (long_long_unsigned_type_internal_node): Ditti.
14523
14524         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
14525         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
14526         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
14527
14528         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
14529         short cuts.
14530         (vec_vsx_st): Ditto.
14531
14532 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
14533
14534         * config/pa/pa-hpux10.opt: New.
14535         * config/hpux11.opt (pthread): New Driver option.
14536         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
14537         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
14538
14539 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
14540
14541         * config/ia64/vms.opt: New.
14542         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
14543
14544 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
14545
14546         PR target/47580
14547         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
14548         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
14549         generator functions.
14550         (vsx_floatuns<VSi><mode>2): Ditto.
14551         (vsx_fix_trunc<mode><VSi>2): Ditto.
14552         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
14553
14554 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
14555
14556         * config/i386/djgpp.opt (posix): New Driver option.
14557
14558 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
14559
14560         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
14561         Move to the unsupported targets list.
14562
14563 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
14564
14565         PR rtl-optimization/47525
14566         * df-scan.c: Update copyright years.
14567         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
14568         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
14569
14570 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14571
14572         * config/i386/sysv4.h (TARGET_VERSION): Remove.
14573         (SUBTARGET_RETURN_IN_MEMORY): Remove.
14574         (ASM_OUTPUT_ASCII): Remove.
14575         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
14576
14577 2011-02-02  Jeff Law  <law@redhat.com>
14578
14579         PR middle-end/47543
14580         * reload.c (find_reloads_address): Handle reg+d address where both
14581         components are invalid by reloading the entire address.
14582
14583 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
14584             Richard Guenther  <rguenther@suse.de>
14585
14586         PR tree-optimization/40979
14587         PR bootstrap/47044
14588         * passes.c (init_optimization_passes): After LIM call copy_prop
14589         and DCE to clean up.
14590         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
14591
14592 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
14593
14594         PR tree-optimization/47576
14595         PR tree-optimization/47555
14596         * doc/invoke.texi (scev-max-expr-complexity): Documented.
14597         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14598         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
14599         * tree-scalar-evolution.c (follow_ssa_edge): Use
14600         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
14601
14602 2011-02-02  Richard Guenther  <rguenther@suse.de>
14603
14604         PR tree-optimization/47566
14605         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
14606
14607 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
14608
14609         PR debug/47106
14610         PR debug/47402
14611         * tree-inline.c (declare_return_variable): Remove unused caller
14612         variable.
14613
14614         PR debug/47106
14615         PR debug/47402
14616         * tree-flow-inline.h (clear_is_used, is_used_p): New.
14617         * cfgexpand.c (account_used_vars_for_block): Use them.
14618         * tree-nrv.c (tree_nrv): Likewise.
14619         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
14620         (dump_scope_block): Likewise.
14621         (remove_unused_locals): Likewise.
14622
14623         PR debug/47106
14624         PR debug/47402
14625         * tree-inline.c (declare_return_variable): Add result decl to
14626         local decls only once.
14627         * gimple-low.c (record_vars_into): Mark newly-created variables
14628         as referenced.
14629
14630 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
14631
14632         PR debug/47498
14633         PR debug/47501
14634         PR debug/45136
14635         PR debug/45130
14636         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14637         debug insns.
14638         (no_real_insns_p, schedule_block, set_priorities): Drop special
14639         treatment of boundary debug insns.
14640         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14641         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
14642         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14643         (BOUNDARY_DEBUG_INSN_P): Likewise.
14644         (SCHEDULE_DEBUG_INSN_P): Likewise.
14645         * sched-rgn.c (init_ready_list): Drop special treatment of
14646         boundary debug insns.
14647         * final.c (rest_of_clean_state): Clear notes' BB.
14648
14649 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14650
14651         * config/openbsd.opt (assert=): New Driver option.
14652
14653 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14654
14655         * config/i386/nto.opt: New.
14656         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
14657
14658 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14659
14660         * config/i386/netware.opt: New.
14661         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
14662
14663 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14664
14665         * config/interix.opt (posix): New Driver option.
14666
14667 2011-02-01  DJ Delorie  <dj@redhat.com>
14668
14669         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
14670
14671         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
14672         class for A0/A1.
14673
14674 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
14675
14676         PR tree-optimization/47561
14677         * toplev.c (process_options): Print the Graphite flags.  Add
14678         flag_loop_flatten to the list of options requiring Graphite.
14679
14680 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14681
14682         * config/i386/cygming.opt (posix): New Driver option.
14683
14684 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14685
14686         * config/arm/vxworks.opt: New.
14687         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
14688
14689 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
14690
14691         * config/alpha/elf.opt: New.
14692         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
14693         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
14694
14695 2011-02-01  Richard Guenther  <rguenther@suse.de>
14696
14697         PR tree-optimization/47559
14698         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
14699         store-motion on references that can throw.
14700
14701 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
14702
14703         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
14704         * tree-pass.h (TDF_CSELIB): New macro.
14705         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
14706         cselib_lookup): Check for it rather than for TDF_DETAILS.
14707
14708 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
14709
14710         PR driver/47547
14711         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
14712         is HOST_BIT_BUCKET.
14713
14714         * opts.c (finish_options): Don't add x_aux_base_name if it is
14715         HOST_BIT_BUCKET.
14716
14717 2011-02-01  Richard Guenther  <rguenther@suse.de>
14718
14719         PR tree-optimization/47555
14720         Revert
14721         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
14722
14723         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14724
14725 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
14726
14727         PR gcc/46692
14728         * config/lm32/t-lm32: Add multilib for all CPU options.
14729
14730 2011-02-01  Richard Guenther  <rguenther@suse.de>
14731
14732         PR tree-optimization/47541
14733         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
14734         sure to have a field at offset zero.
14735
14736 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
14737
14738         * config/arc/arc.opt (EB, EL): New Driver options.
14739
14740 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
14741
14742         * config/alpha/osf5.opt: New.
14743         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
14744
14745 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
14746
14747         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
14748
14749 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
14750
14751         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
14752         -floop-interchange.
14753         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
14754         is an alias of -floop-interchange and that it requires the
14755         Graphite infrastructure.
14756         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
14757         flag_loop_interchange based on the value of flag_tree_loop_linear.
14758
14759 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
14760             Richard Guenther  <rguenther@suse.de>
14761
14762         PR tree-optimization/47538
14763         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
14764         type instead of r1type, except for comparisons.  For right
14765         shifts and comparisons punt if there are mismatches in
14766         sizetype vs. non-sizetype types.
14767
14768 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14769
14770         * doc/sourcebuild.texi (Effective-Target Keywords): Document
14771         avx_runtime.
14772
14773 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14774
14775         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
14776         version number.
14777         * configure: Regenerate.
14778
14779 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14780
14781         * configure.ac (gcc_cv_ld_static_option): Define.
14782         (gcc_cv_ld_dynamic_option): Define.
14783         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
14784         instead.
14785         (HAVE_LD_STATIC_DYNAMIC): Update message.
14786         (LD_STATIC_OPTION): Define.
14787         (LD_DYNAMIC_OPTION): Define.
14788         * configure: Regenerate.
14789         * config.in: Regenerate.
14790         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
14791         HAVE_LD_STATIC_DYNAMIC]: Use them.
14792
14793 2011-01-31  Nick Clifton  <nickc@redhat.com>
14794
14795         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
14796         registers inside interrupt handlers if the handler is not a leaf
14797         function.
14798
14799 2011-01-31  Nick Clifton  <nickc@redhat.com>
14800
14801         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
14802         reg_renumber returning an INVALID_REGNUM.
14803
14804 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
14805
14806         PR libgcj/44341
14807         * doc/install.texi: Document host options discarded when cross
14808         configuring target libraries.
14809
14810 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
14811
14812         Reverted:
14813         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
14814         PR debug/45136
14815         PR debug/45130
14816         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
14817         debug insns.
14818         (no_real_insns_p, schedule_block, set_priorities): Drop special
14819         treatment of boundary debug insns.
14820         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
14821         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
14822         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
14823         (BOUNDARY_DEBUG_INSN_P): Likewise.
14824         (SCHEDULE_DEBUG_INSN_P): Likewise.
14825         * sched-rgn.c (init_ready_list): Drop special treatment of
14826         boundary debug insns.
14827         * final.c (rest_of_clean-state): Clear notes' BB.
14828
14829 2011-01-31  Alan Modra  <amodra@gmail.com>
14830
14831         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
14832         toc relative expressions as we do in print_operand_address.
14833
14834 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
14835
14836         * doc/extend.texi: Follow spelling conventions.
14837         * doc/invoke.texi: Fix a typo.
14838
14839 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
14840
14841         * config/hpux11.opt: New.
14842         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
14843         ia64*-*-hpux*): Use hpux11.opt.
14844
14845 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
14846
14847         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
14848         to tmake_file.
14849
14850 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
14851
14852         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
14853         support sites.
14854
14855 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
14856
14857         * doc/install.texi (Binaries): Remove outdated reference for
14858         Motorola 68HC11/68HC12 downloads.
14859
14860 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
14861
14862         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
14863         Drepper's paper.
14864
14865 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
14866
14867         PR bootstrap/47147
14868         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
14869         used by NetBSD.
14870
14871 2011-01-28  Ahmad Sharif  <asharif@google.com>
14872
14873         * value-prof.c (check_counter): Corrected error message.
14874
14875 2011-01-29  Jie Zhang  <jie@codesourcery.com>
14876
14877         * config/arm/arm.c (arm_legitimize_reload_address): New.
14878         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
14879         arm_legitimize_reload_address.
14880         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
14881
14882 2011-01-28  Ian Lance Taylor  <iant@google.com>
14883
14884         * godump.c (go_define): Ignore macros whose definitions include
14885         two adjacent operands.
14886
14887 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
14888
14889         PR target/42894
14890         * varasm.c (force_const_mem): Store copy of x in desc->constant
14891         instead of x itself.
14892         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
14893         itself into REG_EQUAL note.
14894
14895 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
14896
14897         * config/freebsd.opt (posix, rdynamic): New Driver options.
14898
14899 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14900
14901         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
14902         -Bstatic/-Bdynamic.
14903         * configure: Regenerate.
14904
14905 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
14906
14907         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
14908         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
14909
14910 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
14911
14912         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
14913         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
14914         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
14915         (s390_preferred_reload_class): Make static. Change return and
14916         'rclass' argument type to reg_class_t.
14917
14918 2011-01-27  Jan Hubicka  <jh@suse.cz>
14919
14920         PR middle-end/46949
14921         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
14922         (process_function_and_variable_attributes): Check defined weakrefs.
14923
14924 2011-01-27  Martin Jambor  <mjambor@suse.cz>
14925
14926         PR tree-optimization/47228
14927         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
14928         build_ref_for_offset.
14929
14930 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14931
14932         * config/spu/spu-elf.h (ASM_SPEC): Remove.
14933
14934 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
14935
14936         PR rtl-optimization/46856
14937         * postreload.c (reload_combine_recognize_const_pattern): Do not
14938         separate cc0 setter and user on cc0 targets.
14939
14940 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
14941
14942         PR c/43082
14943         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
14944         passed a VOID_TYPE expression, immediately emit an error and
14945         return error_mark_node.
14946
14947 2011-01-26  Jeff Law  <law@redhat.com>
14948
14949         PR rtl-optimization/47464
14950         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
14951         rather than may_trap_p as needed.
14952
14953 2011-01-26  DJ Delorie  <dj@redhat.com>
14954
14955         PR rtl-optimization/46878
14956         * combine.c (insn_a_feeds_b): Check for the implicit cc0
14957         setter/user dependency as well.
14958
14959 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
14960
14961         PR rtl-optimization/44469
14962         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
14963         after removing trivially dead basic blocks.
14964
14965 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14966
14967         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
14968         * config/frv/frv.h (LINK_SPEC): Likewise.
14969         * config/i386/netware.h (LINK_SPEC): Likewise.
14970         * config/m68k/linux.h (ASM_SPEC): Likewise.
14971         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
14972         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14973         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14974         * config/sparc/linux.h (ASM_SPEC): Likewise.
14975         * config/sparc/linux64.h (ASM_SPEC): Likewise.
14976         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14977
14978 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14979
14980         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
14981         * config/frv/frv.h (ASM_SPEC): Likewise.
14982         * config/m68k/linux.h (ASM_SPEC): Likewise.
14983         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
14984         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
14985         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
14986         * config/sparc/linux.h (ASM_SPEC): Likewise.
14987         * config/sparc/linux64.h (ASM_SPEC): Likewise.
14988         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
14989
14990 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14991
14992         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
14993         * config/frv/frv.h (LINK_SPEC): Likewise.
14994         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
14995
14996 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
14997
14998         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
14999         * config/frv/frv.h (ASM_SPEC): Likewise.
15000         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
15001         * config/m68k/linux.h (ASM_SPEC): Likewise.
15002         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
15003         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
15004         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
15005         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
15006         * config/sparc/linux.h (ASM_SPEC): Likewise.
15007         * config/sparc/linux64.h (ASM_SPEC): Likewise.
15008         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
15009         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
15010
15011 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
15012
15013         PR target/46997
15014         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
15015         (*mux2): Ditto.
15016         (vec_extract_evenodd_help): Ditto.
15017         (vec_extract_evenv4hi): Ditto.
15018         (vec_extract_oddv4hi): Ditto.
15019         (vec_interleave_lowv2si): Ditto.
15020         (vec_interleave_highv2si): Ditto.
15021         (vec_extract_evenv2si): Ditto.
15022         (vec_extract_oddv2si: Ditto.
15023         (vec_pack_trunc_v2si): Ditto.
15024
15025 2011-01-22  Jan Hubicka  <jh@suse.cz>
15026
15027         PR target/47237
15028         * cgraph.h (cgraph_local_info): New field can_change_signature.
15029         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
15030         signature can change.
15031         (ipcp_estimate_growth): Call sequence simplify only if calle signature
15032         can change.
15033         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
15034         (cgraph_function_versioning): We can not change signature of functions
15035         that don't allow that.
15036         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
15037         (lto_input_node): Likewise.
15038         * ipa-inline.c (compute_inline_parameters): Compute
15039         local.can_change_signature.
15040         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
15041         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
15042         functions that can not change signature.
15043         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
15044         init_cumulative_args): Do not use local calling conventions
15045         for functions that can not change signature.
15046
15047 2011-01-22  Jan Hubicka  <jh@suse.cz>
15048
15049         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
15050
15051 2011-01-26  Richard Guenther  <rguenther@suse.de>
15052
15053         PR tree-optimization/47190
15054         * cgraphunit.c (process_common_attributes): New function.
15055         (process_function_and_variable_attributes): Use it.
15056
15057 2011-01-26  Richard Guenther  <rguenther@suse.de>
15058
15059         PR lto/47423
15060         * cgraphbuild.c (record_eh_tables): Record reference to personality
15061         function.
15062
15063 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
15064
15065         PR debug/45454
15066         * sel-sched.c (moveup_expr): Don't let debug insns prevent
15067         non-debug insns from moving up.
15068
15069 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
15070
15071         PR target/40125
15072         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
15073         t-dlldir{,-x} fragment for build and add it to tmake_file.
15074         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15075         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
15076         * config/i386/t-dlldir: New file.
15077         (SHLIB_DLLDIR): Define.
15078         * config/i386/t-dlldir-x: New file.
15079         (SHLIB_DLLDIR): Define.
15080         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
15081         (SHLIB_INSTALL): Use it.
15082
15083 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
15084
15085         PR target/47246
15086         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
15087         lower bound of the allowed Thumb-2 coprocessor load/store
15088         index range to -256. Add explaining comment.
15089
15090 2011-01-25  Ian Lance Taylor  <iant@google.com>
15091
15092         * godump.c (go_define): Improve lexing of macro expansion to only
15093         accept expressions which match Go spec.
15094
15095 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
15096
15097         PR c++/43601
15098         * tree.c (handle_dll_attribute): Handle it.
15099         * doc/extend.texi (@item dllexport): Mention it.
15100         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
15101
15102 2011-01-25  Ian Lance Taylor  <iant@google.com>
15103
15104         PR tree-optimization/26854
15105         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
15106         (decl_jump_unsafe): Move higher in file, with no other change.
15107         (bind): Set has_jump_unsafe_decl if appropriate.
15108         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
15109         (check_earlier_gotos): Likewise.
15110         (c_check_switch_jump_warnings): Likewise.
15111
15112 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
15113
15114         * doc/invoke.texi (Warning Options): Add missing hyphen.
15115         (-fprofile-dir): Minor grammatical fixes.
15116         (-fbranch-probabilities): Likewise.
15117
15118 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
15119
15120         PR debug/45136
15121         PR debug/45130
15122         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
15123         debug insns.
15124         (no_real_insns_p, schedule_block, set_priorities): Drop special
15125         treatment of boundary debug insns.
15126         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
15127         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
15128         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
15129         (BOUNDARY_DEBUG_INSN_P): Likewise.
15130         (SCHEDULE_DEBUG_INSN_P): Likewise.
15131         * sched-rgn.c (init_ready_list): Drop special treatment of
15132         boundary debug insns.
15133         * final.c (rest_of_clean-state): Clear notes' BB.
15134
15135 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15136
15137         * Makefile.in (LAMBDA_H): Removed.
15138         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
15139         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
15140         lambda-trans.o, and tree-loop-linear.o.
15141         (lto-symtab.o): Remove dependence on LAMBDA_H.
15142         (tree-loop-linear.o): Remove rule.
15143         (lambda-mat.o): Same.
15144         (lambda-trans.o): Same.
15145         (lambda-code.o): Same.
15146         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
15147         (tree-vect-slp.o): Same.
15148         * hwint.h (gcd): Moved here.
15149         (least_common_multiple): Same.
15150         * lambda-code.c: Removed.
15151         * lambda-mat.c: Removed.
15152         * lambda-trans.c: Removed.
15153         * lambda.h: Removed.
15154         * tree-loop-linear.c: Removed.
15155         * lto-symtab.c: Do not include lambda.h.
15156         * omega.c (gcd): Removed.
15157         * passes.c (init_optimization_passes): Remove pass_linear_transform.
15158         * tree-data-ref.c (print_lambda_vector): Moved here.
15159         (lambda_vector_copy): Same.
15160         (lambda_matrix_copy): Same.
15161         (lambda_matrix_id): Same.
15162         (lambda_vector_first_nz): Same.
15163         (lambda_matrix_row_add): Same.
15164         (lambda_matrix_row_exchange): Same.
15165         (lambda_vector_mult_const): Same.
15166         (lambda_vector_negate): Same.
15167         (lambda_matrix_row_negate): Same.
15168         (lambda_vector_equal): Same.
15169         (lambda_matrix_right_hermite): Same.
15170         * tree-data-ref.h: Do not include lambda.h.
15171         (lambda_vector): Moved here.
15172         (lambda_matrix): Same.
15173         (dependence_level): Same.
15174         (lambda_transform_legal_p): Removed declaration.
15175         (lambda_collect_parameters): Same.
15176         (lambda_compute_access_matrices): Same.
15177         (lambda_vector_gcd): Same.
15178         (lambda_vector_new): Same.
15179         (lambda_vector_clear): Same.
15180         (lambda_vector_lexico_pos): Same.
15181         (lambda_vector_zerop): Same.
15182         (lambda_matrix_new): Same.
15183         * tree-flow.h (least_common_multiple): Removed declaration.
15184         * tree-parloops.c (lambda_trans_matrix): Moved here.
15185         (LTM_MATRIX): Same.
15186         (LTM_ROWSIZE): Same.
15187         (LTM_COLSIZE): Same.
15188         (LTM_DENOMINATOR): Same.
15189         (lambda_trans_matrix_new): Same.
15190         (lambda_matrix_vector_mult): Same.
15191         (lambda_transform_legal_p): Same.
15192         * tree-pass.h (pass_linear_transform): Removed declaration.
15193         * tree-ssa-loop.c (tree_linear_transform): Removed.
15194         (gate_tree_linear_transform): Removed.
15195         (pass_linear_transform): Removed.
15196         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
15197         flag_loop_interchange.
15198
15199 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
15200
15201         PR tree-optimization/47265
15202         PR tree-optimization/47443
15203         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
15204         if name still has some uses.
15205
15206 2011-01-25  Martin Jambor  <mjambor@suse.cz>
15207
15208         PR tree-optimization/47382
15209         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
15210         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
15211
15212 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
15213
15214         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
15215         sjlj_except_unwind_info.
15216
15217 2011-01-25  Richard Guenther  <rguenther@suse.de>
15218
15219         PR tree-optimization/47426
15220         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
15221         visible functions results escape.
15222
15223 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
15224
15225         PR target/45701
15226         * config/arm/arm.c (any_sibcall_uses_r3): New function.
15227         (arm_get_frame_offsets): Use it.
15228
15229 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15230             Jakub Jelinek  <jakub@redhat.com>
15231
15232         PR tree-optimization/47271
15233         * tree-if-conv.c (bb_postdominates_preds): New.
15234         (if_convertible_bb_p): Call bb_postdominates_preds.
15235         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
15236         (predicate_scalar_phi): Call bb_postdominates_preds.
15237
15238 2011-01-25  Nick Clifton  <nickc@redhat.com>
15239
15240         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
15241         * config/rx/rx.c (rx_function_value): Likewise.
15242         (rx_promote_function_mode): Likewise.
15243         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
15244         in order to make it legitimate.
15245         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
15246         make sure that the first operand is the same as the result register.
15247         (addsi3_unspec): Delete.
15248         (subdi3): Do not accept immediate operands.
15249         (subdi3_internal): Likewise.
15250
15251 2011-01-25  Jeff Law  <law@redhat.com>
15252
15253         PR rtl-optimization/37273
15254         * ira-costs.c (scan_one_insn): Detect constants living in memory and
15255         handle them like argument loads from stack slots.  Do not double
15256         count memory for memory constants and argument loads from stack slots.
15257
15258 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
15259
15260         PR tree-optimization/47427
15261         PR tree-optimization/47428
15262         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
15263         coalesce if the new root var would be TREE_READONLY.
15264
15265 2011-01-25  Richard Guenther  <rguenther@suse.de>
15266
15267         PR middle-end/47414
15268         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
15269         correct type for TBAA.
15270
15271 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15272
15273         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
15274         (close_phi_written_to_memory): Call for_each_index with
15275         dr_indices_valid_in_loop.
15276
15277 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15278
15279         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
15280         when it is initialized.
15281
15282 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15283
15284         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
15285         call to graphite_find_data_references_in_stmt.
15286         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
15287         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
15288         call to graphite_find_data_references_in_stmt.
15289         (analyze_drs_in_stmts): Same.
15290         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
15291         in which the scalar analysis of indices is performed.
15292         (create_data_ref): Same.  Update call to dr_analyze_indices.
15293         (find_data_references_in_stmt): Update call to create_data_ref.
15294         (graphite_find_data_references_in_stmt): Same.
15295         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
15296         declaration.
15297         (create_data_ref): Same.
15298         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
15299         call to create_data_ref.
15300
15301 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15302
15303         * graphite-sese-to-poly.c (build_poly_scop): Move
15304         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
15305
15306 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15307
15308         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
15309         VAR_DECL, PARM_DECL, and RESULT_DECL.
15310
15311 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15312
15313         * graphite-dependences.c (reduction_dr_1): Allow several reductions
15314         in a reduction PBB.
15315         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
15316         that have already been marked as PBB_IS_REDUCTION.
15317
15318 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15319
15320         * graphite-scop-detection.c (same_close_phi_node): New.
15321         (remove_duplicate_close_phi): New.
15322         (make_close_phi_nodes_unique): New.
15323         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
15324
15325 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15326
15327         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
15328         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
15329         of both data references to be the same.
15330
15331 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15332
15333         * graphite-dependences.c (build_lexicographical_constraint): Remove
15334         the gdim parameter.
15335         (build_lexicographical_constraint): Adjust call to
15336         ppl_powerset_is_empty.
15337         (dependence_polyhedron): Same.
15338         (graphite_legal_transform_dr): Same.
15339         (graphite_carried_dependence_level_k): Same.
15340         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
15341         parameter.
15342         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
15343
15344 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15345
15346         * graphite-sese-to-poly.c
15347         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
15348         (close_phi_written_to_memory): New.
15349         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
15350         and unshare_expr.
15351
15352 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15353
15354         * doc/install.texi: Update the expected version number of PPL to 0.11.
15355         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
15356         #if PPL_VERSION_MINOR < 11.
15357
15358 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15359
15360         * graphite-dependences.c: Include graphite-cloog-util.h.
15361         (new_poly_ddr): Inlined into dependence_polyhedron.
15362         (free_poly_ddr): Moved close by new_poly_ddr.
15363         (dependence_polyhedron_1): Renamed dependence_polyhedron.
15364         Early return NULL when ppl_powerset_is_empty returns true.
15365         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
15366         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
15367         (graphite_legal_transform_dr): Call new_poly_ddr.
15368         (graphite_carried_dependence_level_k): Same.
15369         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
15370         (dot_transformed_deps_stmt_1): Removed.
15371         (dot_deps_stmt_1): Call dot_deps_stmt_2.
15372         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
15373         (dot_deps_1): Call dot_deps_2.
15374         * Makefile.in (graphite-dependences.o): Add missing dependence on
15375         graphite-cloog-util.h.
15376
15377 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15378
15379         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
15380         (build_lexicographical_constraint): Same.
15381         (dependence_polyhedron_1): Same.
15382         (graphite_legal_transform_dr): Same.
15383         (graphite_carried_dependence_level_k): Same.
15384         * graphite-ppl.c (ppl_powerset_is_empty): New.
15385         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
15386         * tree-data-ref.c (dump_data_reference): Print the basic block index.
15387
15388 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15389
15390         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
15391         the "a followed by b" relation and document it.
15392
15393 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15394
15395         * graphite-dependences.c (build_lexicographical_constraint): Stop the
15396         iteration when the bag of constraints is empty.
15397
15398 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15399
15400         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
15401
15402 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15403
15404         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
15405         nest and two loop depths as parameters.
15406         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
15407         lst_perfect_nestify.
15408
15409 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15410
15411         * graphite-dependences.c (print_pddr): Call
15412         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
15413
15414 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
15415
15416         * graphite-ppl.c (debug_gmp_value): New.
15417         * graphite-ppl.h (debug_gmp_value): Declared.
15418
15419 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
15420
15421         * doc/install.texi: Document availability of cloog-0.16.
15422
15423 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
15424
15425         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
15426         invalid postdominance info.
15427
15428 2011-01-24  Jan Hubicka  <jh@suse.cz>
15429
15430         PR c/21659
15431         * doc/extend.texi (weak pragma): Drop claim that it must
15432         appear before definition.
15433         * varasm.c (merge_weak, declare_weak): Only sanity check
15434         that DECL is not output at a time it is declared weak.
15435
15436 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
15437
15438         * machmode.def: Fixed comments.
15439
15440 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
15441
15442         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
15443
15444 2011-01-24  Paul Koning  <ni1d@arrl.net>
15445
15446         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
15447         WORDS_BIG_ENDIAN.
15448
15449 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
15450
15451         PR target/46519
15452         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
15453         (block_info): Add scanned and prev.
15454         (move_or_delete_vzeroupper_2): Return if the basic block
15455         has been scanned and the upper 128bit state is unchanged
15456         from the last scan.
15457         (move_or_delete_vzeroupper_1): Return true if the exit
15458         state is changed.
15459         (move_or_delete_vzeroupper): Visit basic blocks using the
15460         work-list based algorithm based on vt_find_locations in
15461         var-tracking.c.
15462
15463         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
15464
15465 2011-01-24  Nick Clifton  <nickc@redhat.com>
15466
15467         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
15468         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
15469         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
15470         then define __v850e1__.
15471         * doc/invoke.texi: Document -mv850es.
15472
15473 2011-01-24  Richard Henderson  <rth@redhat.com>
15474
15475         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
15476         compound unordered comparisons.
15477         * config/rx/rx.c (rx_split_fp_compare): Remove.
15478         * config/rx/rx-protos.h: Update.
15479         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
15480         (cbranchsf4): Don't call rx_split_fp_compare.
15481         (*cbranchsf4): Use rx_split_cbranch.
15482         (*cmpsf): Don't accept "i" constraint.
15483         (*conditional_branch): Only valid after reload.
15484         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
15485
15486 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
15487
15488         PR target/47385
15489         * config/rs6000/altivec.md (vector constant splitters): Add
15490         support for creating vector single precision constants if -mvsx is
15491         used and we would create the constant using Altivec primitives.
15492
15493 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
15494             Richard Sandiford  <rdsandiford@googlemail.com>
15495
15496         PR rtl-optimization/47166
15497         * reload1.c (emit_reload_insns): Disable the spill_reg_store
15498         mechanism for PRE_MODIFY and POST_MODIFY.
15499         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
15500         reloadreg.
15501
15502 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
15503
15504         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
15505
15506 2011-01-22  Jan Hubicka  <jh@suse.cz>
15507
15508         PR lto/47333
15509         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
15510
15511 2011-01-22  Jan Hubicka  <jh@suse.cz>
15512
15513         PR tree-optimization/43884
15514         PR lto/44334
15515         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
15516         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
15517
15518 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
15519
15520         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
15521         * config/s390/s390.c (s390_register_move_cost,
15522         s390_memory_move_cost): New.
15523         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
15524
15525 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15526
15527         PR middle-end/47401
15528         * except.c (sjlj_assign_call_site_values): Move setting the
15529         crtl->uses_eh_lsda flag to ...
15530         (sjlj_mark_call_sites): ... here.
15531         (sjlj_emit_function_enter): Support NULL dispatch label.
15532         (sjlj_build_landing_pads): In a function with no landing pads
15533         that still has must-not-throw regions, generate code to register
15534         a personality function with empty LSDA.
15535
15536 2011-01-21  Richard Henderson  <rth@redhat.com>
15537
15538         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
15539
15540         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
15541
15542         * compare-elim.c: New file.
15543         * Makefile.in (OBJS-common): Add it.
15544         (compare-elim.o): New.
15545         * common.opt (fcompare-elim): New.
15546         * opts.c (default_options_table): Add OPT_fcompare_elim.
15547         * tree-pass.h (pass_compare_elim_after_reload): New.
15548         * passes.c (init_optimization_passes): Add it.
15549         * recog.h: Protect against re-inclusion.
15550         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
15551         * doc/invoke.texi (-fcompare-elim): Document it.
15552         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
15553         * doc/tm.texi: Rebuild.
15554
15555 2011-01-22  Nick Clifton  <nickc@redhat.com>
15556
15557         * config/rx/rx.md (cstoresf4): Pass comparison operator to
15558         rx_split_fp_compare.
15559
15560 2011-01-22  Nick Clifton  <nickc@redhat.com>
15561
15562         * config/rx/rx.md (UNSPEC_CONST): New.
15563         (deallocate_and_return): Wrap the amount popped off the stack in
15564         an UNSPEC_CONST in order to stop it being rejected by
15565         -mmax-constant-size.
15566         (pop_and_return): Add a "(return)" rtx.
15567         (call): Drop the immediate operand.
15568         (call_internal): Likewise.
15569         (call_value): Likewise.
15570         (call_value_internal): Likewise.
15571         (sibcall_internal): Likewise.
15572         (sibcall_value_internal): Likewise.
15573         (sibcall): Likewise.  Generate an explicit call using
15574         sibcall_internal.
15575         (sibcall_value): Likewise.
15576         (mov<>): FAIL if a constant operand is not legitimate.
15577         (addsi3_unpsec): New pattern.
15578
15579         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15580         (ok_for_max_constant): New function.
15581         (gen_safe_add): New function.
15582         (rx_expand_prologue): Use gen_safe_add.
15583         (rx_expand_epilogue): Likewise.
15584         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
15585         UNSPEC CONSTs.
15586
15587 2011-01-21  Jeff Law  <law@redhat.com>
15588
15589         PR tree-optimization/47053
15590         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
15591         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
15592         statements are deleted.
15593         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
15594         is nonempty, then purge dead edges and cleanup the CFG.
15595
15596 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
15597
15598         PR debug/47402
15599         Temporarily revert:
15600         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
15601         PR debug/47106
15602         * tree-dfa.c (create_var_ann): Mark variable as used.
15603
15604 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
15605
15606         PR middle-end/45566
15607         * except.c (convert_to_eh_region_ranges): Emit queued no-region
15608         notes from other section in hot/cold partitioning even if
15609         last_action is -3.  Increment call_site_base.
15610
15611         PR rtl-optimization/47366
15612         * fwprop.c (forward_propagate_into): Return bool.  If
15613         any changes are made, -fnon-call-exceptions is used and
15614         REG_EH_REGION note is present, call purge_dead_edges
15615         and return true if it purged anything.
15616         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
15617         any EH edges were purged.
15618
15619 2011-01-21  Jeff Law  <law@redhat.com>
15620
15621         PR rtl-optimization/41619
15622         * caller-save.c (setup_save_areas): Break out code to determine
15623         which hard regs are live across calls by examining the reload chains
15624         so that it is always used.
15625         Eliminate code which checked REG_N_CALLS_CROSSED.
15626
15627 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
15628
15629         PR tree-optimization/47355
15630         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
15631         NOP has non-debug uses beyond PHIs in new_bb.
15632
15633 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
15634
15635         PR debug/47106
15636         * cfgexpand.c (account_used_vars_for_block): Only account vars
15637         that are annotated as used.
15638         (estimated_stack_frame_size): Don't set TREE_USED.
15639         * tree-dfa.c (create_var_ann): Mark variable as used.
15640
15641 2011-01-21  Richard Guenther  <rguenther@suse.de>
15642
15643         PR middle-end/47395
15644         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
15645
15646 2011-01-21  Richard Guenther  <rguenther@suse.de>
15647
15648         PR tree-optimization/47365
15649         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
15650         (vn_reference_lookup_pieces): Adjust.
15651         (vn_reference_lookup): Likewise.
15652         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
15653         (vn_reference_lookup_3): Only look through kills if in
15654         VN_WALKREWRITE mode.
15655         (vn_reference_lookup_pieces): Adjust.
15656         (vn_reference_lookup): Likewise.
15657         (visit_reference_op_load): Likewise.
15658         (visit_reference_op_store): Likewise.
15659         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
15660         (compute_avail): Likewise.
15661         (eliminate): Likewise.
15662
15663 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
15664
15665         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
15666         DECL_IGNORED_P non-reg vars if they are used.
15667
15668         PR tree-optimization/47391
15669         * varpool.c (const_value_known_p): Return false if
15670         decl is volatile.
15671
15672 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
15673
15674         PR bootstrap/47215
15675         * config/i386/i386.c (ix86_local_alignment): Handle
15676         case for va_list_type_node is nil.
15677         (ix86_canonical_va_list_type): Likewise.
15678
15679 2011-01-21  Alan Modra  <amodra@gmail.com>
15680
15681         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
15682         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
15683
15684 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15685
15686         * config/arm/arm.md (define_attr type): Rename f_load
15687         and f_store to f_fpa_load and f_fpa_store. Update.
15688         (write_conflict): Deal with rename fallout.
15689         (*push_fp_multi): Likewise.
15690         * config/arm/fpa.md (f_load): Use f_fpa_load.
15691         (f_store): Use f_fpa_store.
15692         (*movsf_fpa): Likewise.
15693         (*movdf_fpa): Likewise.
15694         (*movxf_fpa): Likewise.
15695         (*thumb2_movsf_fpa): Likewise.
15696         (*thumb2_movdf_fpa): Likewise.
15697         (*thumb2_movxf_fpa): Likewise.
15698         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
15699         f_loadd and f_stored.
15700         (*thumb2_movdi_vfp): Likewise.
15701         (*thumb2_movsf_vfp): Fix attribute to f_loads.
15702         (*thumb2_movsi_vfp): Likewise.
15703         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
15704         Use f_loads instead of f_load.
15705         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
15706
15707 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
15708
15709         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
15710         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
15711         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
15712         (xtensa_mode_dependent_address_p): New function.
15713         (constantpool_address_p): Make static. Change return type to bool.
15714         Change argument type to const_rtx. Use CONST_INT_P predicate.
15715
15716 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
15717
15718         PR debug/46583
15719         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
15720
15721 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
15722
15723         PR debug/47283
15724         * cfgexpand.c (expand_debug_expr): Instead of generating
15725         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
15726         etc. handling.
15727
15728 2011-01-20  Richard Guenther  <rguenther@suse.de>
15729
15730         PR middle-end/47370
15731         * tree-inline.c (remap_gimple_op_r): Recurse manually for
15732         the pointer operand of MEM_REFs.
15733
15734 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
15735
15736         PR tree-optimization/46130
15737         * ipa-split.c (consider_split): If return_bb contains non-virtual
15738         PHIs other than for retval or if split_function would not adjust it,
15739         refuse to split.
15740
15741 2011-01-20  Richard Guenther  <rguenther@suse.de>
15742
15743         PR tree-optimization/47167
15744         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
15745         Revert previous change, only avoid enumeral type changes.
15746
15747 2011-01-19  Mike Stump  <mikestump@comcast.net>
15748
15749         * doc/tm.texi.in (BRANCH_COST): Englishify.
15750         * doc/tm.texi (BRANCH_COST): Likewise.
15751
15752 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
15753
15754         PR c++/47291
15755         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
15756         (gen_scheduled_generic_parms_dies): New functions.
15757         (gen_struct_or_union_type_die): Schedule template parameters DIEs
15758         generation for the end of CU compilation.
15759         (dwarf2out_finish): Generate template parameters DIEs here.
15760
15761 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
15762
15763         PR debug/46240
15764         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
15765         debug bind stmt on merge edges.
15766
15767 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
15768
15769         PR debug/47079
15770         PR debug/46724
15771         * function.c (instantiate_expr): Instantiate incoming rtl of
15772         implicit arguments, and recurse on VALUE_EXPRs.
15773         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
15774         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
15775
15776 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
15777
15778         * c-parser.c (c_parser_for_statement): Initialize
15779         collection_expression.
15780
15781 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
15782
15783         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
15784
15785 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
15786
15787         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
15788         (LINK_SHLIB_SPEC): Don't use %(link_path).
15789         (SUBTARGET_EXTRA_SPECS): Remove link_path.
15790
15791 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
15792
15793         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
15794         (NO_SHARED_LIB_SUPPORT): Remove.
15795         (LINK_SHLIB_SPEC): Remove one conditional definition.
15796
15797 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
15798
15799         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
15800         %{call_shared}.
15801         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
15802         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
15803         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
15804         %{call_shared} and conditionals on these options not being passed.
15805         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
15806         %{call_shared}.
15807
15808 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
15809
15810         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
15811         simplify.
15812
15813         * ipa-split.c: Spelling fixes.
15814
15815 2011-01-19  Richard Henderson  <rth@redhat.com>
15816
15817         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
15818         (*mulsi3): Likewise.
15819
15820         * longlong.h [__mn10300__] (count_leading_zeros): New.
15821         [__mn10300__] (umul_ppmm, smul_ppmm): New.
15822         [__mn10300__] (add_ssaaaa, subddmmss): New.
15823         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
15824         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
15825
15826 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15827
15828         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
15829
15830 2011-01-19  Richard Henderson  <rth@redhat.com>
15831
15832         * config/mn10300/mn10300.md (addsi3_flags): New.
15833         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
15834         (subsi3_flags, subc_internal, subdi3): New.
15835         (subdi3_internal, *subdi3_degenerate): New.
15836         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
15837
15838         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
15839         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
15840         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
15841         * config/mn10300/mn10300-protos.h: Update.
15842         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
15843         (return_ret): Likewise.  Rename from return_internal_regs.
15844         (return_internal): Remove.
15845
15846         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
15847         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
15848         (mn10300_legitimate_constant_p): Likewise.
15849         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
15850         (mn10300_frame_size): New.
15851         (mn10300_expand_prologue): Use it.
15852         (mn10300_expand_epilogue): Likewise.
15853         (mn10300_initial_offset): Likewise.
15854         * config/mn10300/mn10300-protos.h: Update.
15855         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
15856         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
15857         (prologue, epilogue, return_internal): Tidy output code.
15858         (mn10300_store_multiple_operation, return): Likewise.
15859         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
15860         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
15861         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
15862         (load_pic, am33_load_pic): New.
15863         (mn10300_load_pic0, mn10300_load_pic1): New.
15864
15865         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
15866         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
15867         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
15868         (cc_flags_for_mode, cc_flags_for_code): New.
15869         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
15870         overflow flag is not valid.  Validate that the flags we need
15871         for the comparison are valid.
15872         (mn10300_output_cmp): Remove.
15873         (mn10300_output_add): New.
15874         (mn10300_select_cc_mode): Use cc_flags_for_code.
15875         (mn10300_split_cbranch): New.
15876         (mn10300_match_ccmode): New.
15877         (mn10300_split_and_operand_count): New.
15878         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
15879         to the function.
15880         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
15881         (addsi3): ... here.  Use mn10300_output_add.
15882         (*addsi3_flags): New.
15883         (*am33_subsi3, *mn10300_subsi3): Merge...
15884         (subsi3): ... here.  Use attribute isa.
15885         (*subsi3_flags): New.
15886         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
15887         when possible.
15888         (*am33_andsi3, *mn10300_andsi3): Merge...
15889         (andsi3): ... here.
15890         (*andsi3_flags): New.
15891         (andsi3 splitters): New.
15892         (*am33_iorsi3, *mn10300_iorsi3): Merge...
15893         (iorsi3): ... here.
15894         (*iorsi3_flags): New.
15895         (*am33_xorsi3, *mn10300_xorsi3): Merge...
15896         (xorsi3): ... here.
15897         (*xorsi3_flags): New.
15898         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
15899         (one_cmplsi2): ... here.
15900         (*one_cmplsi2_flags): New.
15901         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
15902         instead of "dax" in constraints.  Use mn10300_split_cbranch.
15903         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
15904         use matching constraints to eliminate a self-comparison.
15905         (*integer_conditional_branch): Rename from integer_conditional_branch.
15906         Use int_mode_flags to match CC_REG.
15907         (*cbranchsi4_btst, *btstsi): New.
15908         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
15909         mn10300_split_cbranch.
15910         (*am33_cmpsf): Rename from am33_cmpsf.
15911         (*float_conditional_branch): Rename from float_conditional_branch.
15912         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
15913         (zero_extendqisi2): ... here.
15914         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
15915         (zero_extendhisi2): ... here.
15916         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
15917         (extendqisi2): ... here.
15918         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
15919         (extendhisi2): ... here.
15920         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
15921         (ashlsi3): ... here.
15922         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
15923         (lshrsi3): ... here.
15924         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
15925         (ashrsi3): ... here.
15926         (consecutive add peephole): Remove.
15927         * config/mn10300/predicates.md (label_ref_operand): New.
15928         (int_mode_flags): New.
15929         (CCZN_comparison_operator): New.
15930
15931         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
15932         (throughput_42_latency_43): New reservation.
15933         (mulsidi3, umulsidi3): New expanders.
15934         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
15935         the MDR register to allocation; separately allocate the low and
15936         high parts of the DImode result.
15937         (umulsidi3_internal): Similarly.
15938         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
15939         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
15940         (udivsi3, umodsi3): Remove.
15941         (udivmodsi4, divmodsi4): New expanders.
15942         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
15943         (*divmodsi4): Simiarly.
15944         (ext_internal): New.
15945
15946         * config/mn10300/constraints.md ("z"): New constraint.
15947         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
15948         (FIXED_REGISTERS): Don't fix MDR.
15949         (CALL_USED_REGSITERS): Reformat nicely.
15950         (REG_ALLOC_ORDER): Add MDR.
15951         (enum regclass): Add MDR_REGS.
15952         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
15953         (IRA_COVER_CLASSES): Add MDR_REGS.
15954         (REGNO_REG_CLASS): Handle MDR_REG.
15955         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
15956         (mn10300_register_move_cost): Likewise.
15957         * config/mn10300/mn10300.md (MDR_REG): New.
15958         (*movsi_internal): Handle moves to/from MDR_REGS.
15959
15960         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
15961         POST_MODIFY.
15962         (mn10300_secondary_reload): Tidy combination reload classes.
15963         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
15964         addresses for AM33.  Allow symbolic offsets for reg+imm.
15965         (mn10300_regno_in_class_p): New.
15966         (mn10300_legitimize_reload_address): New.
15967         * config/mn10300/mn10300.h (enum reg_class): Remove
15968         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
15969         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
15970         SP_OR_GENERAL_REGS.
15971         (REG_CLASS_NAMES): Update to match.
15972         (REG_CLASS_CONTENTS): Likewise.
15973         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
15974         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
15975         (REGNO_IN_RANGE_P): Remove.
15976         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
15977         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
15978         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
15979         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
15980         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
15981         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
15982         (REGNO_GENERAL_P): New.
15983         (HAVE_POST_MODIFY_DISP): New.
15984         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
15985         (LEGITIMIZE_RELOAD_ADDRESS): New.
15986         * config/mn10300/mn10300-protos.h: Update.
15987
15988         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
15989         DATA_REGS for AM33 stack-pointer destination.
15990         (mn10300_preferred_output_reload_class): Likewise.
15991         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
15992         into a form appropriate for ...
15993         (TARGET_SECONDARY_RELOAD): New.
15994         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
15995         * config/mn10300/mn10300-protos.h: Update.
15996         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
15997         reload_insi; use the "A" constraint for the scratch; handle AM33
15998         moves of sp to non-address registers.
15999
16000         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
16001         (*movqi_internal): ... here.
16002         (*am33_movhi, *mn10300_movhi): Merge into...
16003         (*movhi_internal): ... here.
16004         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
16005         as the source/destination of moves from/to SP.
16006         (movsf): Only allow for AM33-2.
16007         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
16008         any integer constant constraint.  Only allow for AM33-2.  Tidy
16009         all of the alternative outputs.
16010         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
16011         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
16012         for MN103.
16013         (udivsi3, umodsi3): New patterns for MN103 only.
16014
16015 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
16016
16017         * doc/tm.texi.in: Spell out that a lack of register class unions
16018         can lead to ICEs.
16019         * doc/tm.texi: Regenerate.
16020
16021 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
16022
16023         PR rtl-optimization/47337
16024         * dce.c (check_argument_store): New function.
16025         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
16026
16027         PR tree-optimization/47290
16028         * tree-eh.c (infinite_empty_loop_p): New function.
16029         (cleanup_empty_eh): Use it.
16030
16031 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
16032
16033         PR target/46997
16034         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
16035         (a64_expand_widen_sum): Ditto.
16036         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
16037         (vec_extract_evenodd_help): Ditto.
16038         (vec_extract_evenv4hi): Ditto.
16039         (vec_extract_oddv4hi): Ditto.
16040         (vec_extract_evenv2si): Ditto.
16041         (vec_extract_oddv2si): Ditto.
16042         (vec_extract_evenv2sf): Ditto.
16043         (vec_extract_oddv2sf): Ditto.
16044         (vec_pack_trunc_v4hi: Ditto.
16045         (vec_pack_trunc_v2si): Ditto.
16046         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
16047         (vec_interleave_highv8qi): Ditto.
16048         (mix1_r): Ditto.
16049         (vec_extract_oddv8qi): Ditto.
16050         (vec_interleave_lowv4hi): Ditto.
16051         (vec_interleave_highv4hi): Ditto.
16052         (vec_interleave_lowv2si): Ditto.
16053         (vec_interleave_highv2si): Ditto.
16054
16055 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
16056
16057         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
16058         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
16059         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
16060         (pa_c_mode_for_suffix): New.
16061         (TARGET_EXPAND_BUILTIN): Define.
16062         (TARGET_C_MODE_FOR_SUFFIX): Define.
16063         (pa_builtins): Define.
16064         (pa_init_builtins): Register __float128 type and init new support
16065         builtins.
16066         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
16067         * config/pa/quadlib.c (_U_Qfcopysign): New.
16068
16069 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
16070
16071         PR middle-end/46894
16072         * explow.c (allocate_dynamic_stack_space): Do not assume more than
16073         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
16074         are defined.
16075
16076 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16077
16078         PR tree-optimization/47179
16079         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
16080         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
16081
16082 2011-01-18  Richard Guenther  <rguenther@suse.de>
16083
16084         PR rtl-optimization/47216
16085         * emit-rtl.c: Include tree-flow.h.
16086         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
16087         of replicating it with different semantics.
16088         * Makefile.in (emit-rtl.o): Adjust.
16089
16090 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16091
16092         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
16093         (cortex_a9_dp): Handle neon types correctly.
16094
16095 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
16096
16097         PR rtl-optimization/47299
16098         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
16099         subtarget.  Use normal multiplication if both operands are constants.
16100         * expmed.c (expand_widening_mult): Don't try to optimize constant
16101         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
16102         before using it.
16103
16104 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16105
16106         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
16107         spacing after 'e.g.', typos, comma, hyphenation.
16108
16109 2011-01-17  Richard Henderson  <rth@redhat.com>
16110
16111         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
16112         (rx_restricted_mem_operand): New.
16113         (rx_shift_operand): Use register_operand.
16114         (rx_source_operand, rx_compare_operand): Likewise.
16115         * config/rx/rx.md (addsi3_flags): New expander.
16116         (adddi3): Rewrite as expander.
16117         (adc_internal, *adc_flags, adddi3_internal): New patterns.
16118         (subsi3_flags): New expander.
16119         (subdi3): Rewrite as expander.
16120         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
16121
16122         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
16123         (rx_init_builtins): Remove sat builtin.
16124         (rx_expand_builtin): Likewise.
16125         * config/rx/rx.md (ssaddsi3): New.
16126         (*sat): Rename from sat.  Represent the CC_REG input.
16127
16128         * config/rx/predicates.md (rshift_operator): New.
16129         * config/rx/rx.c (rx_expand_insv): Remove.
16130         * config/rx/rx-protos.h: Update.
16131         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
16132         operand to the canonical position.
16133         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
16134         (*bitclr, *bitclr_in_memory): Similarly.
16135         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
16136         (insv): Retain the zero_extract in the expansion.
16137
16138         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
16139         (bswaphi2, bitinvert, revw): Likewise.
16140
16141         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
16142         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
16143         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
16144         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
16145         (bitset, bitset_in_memory): Likewise.
16146         (bitinvert, bitinvert_in_memory): Likewise.
16147         (bitclr, bitclr_in_memory): Likewise.
16148         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
16149         (rx_strend, rx_cmpstrn): Likewise.
16150         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
16151         (bitop peep2 patterns): Remove.
16152
16153         * config/rx/rx.c (rx_match_ccmode): New.
16154         * config/rx/rx-protos.h: Update.
16155         * config/rx/rx.md (abssi2): Clobber, don't set flags.
16156         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
16157         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
16158         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
16159         (fix_truncsfsi2, floatsisf2): Likewise.
16160         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
16161         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
16162         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
16163         (*subsi3_flags, *xorsi3_flags): New.
16164
16165         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
16166
16167         * config/rx/rx.c (rx_print_operand): Remove workaround for
16168         unsplit comparison operations.
16169
16170         * config/rx/rx.md (movsicc): Split after reload.
16171         (*movsicc): Merge *movsieq and *movsine via match_operator.
16172         (*stcc): New pattern.
16173
16174         * config/rx/rx.c (rx_float_compare_mode): Remove.
16175         * config/rx/rx.h (rx_float_compare_mode): Remove.
16176         * config/rx/rx.md (cstoresi4): Split after reload.
16177         (*sccc): New pattern.
16178
16179         * config/rx/predicates.md (label_ref_operand): New.
16180         (rx_z_comparison_operator): New.
16181         (rx_zs_comparison_operator): New.
16182         (rx_fp_comparison_operator): New.
16183         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
16184         Validate that the flags are set properly for the comparison.
16185         (rx_gen_cond_branch_template): Remove.
16186         (rx_cc_modes_compatible): Remove.
16187         (mode_from_flags): New.
16188         (flags_from_code): Rename from flags_needed_for_conditional.
16189         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
16190         (rx_select_cc_mode): Likewise.
16191         (rx_split_fp_compare): New.
16192         (rx_split_cbranch): New.
16193         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
16194         (*cbranchsi4): Use match_operator and rx_split_cbranch.
16195         (*cbranchsf4): Similarly.
16196         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
16197         match_operator and rx_split_cbranch.
16198         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
16199         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
16200         (*cmpsi): Rename from cmpsi.
16201         (*tstsi): Rename from tstsi.
16202         (*cmpsf): Rename from cmpsf; use CC_Fmode.
16203         (*conditional_branch): Rename from conditional_branch.
16204         (*reveresed_conditional_branch): Remove.
16205         (b<code>): Remove expander.
16206         * config/rx/rx-protos.h: Update.
16207
16208         * config/rx/rx.c (rx_compare_redundant): Remove.
16209         * config/rx/rx.md (cmpsi): Don't use it.
16210         * config/rx/rx-protos.h: Update.
16211
16212         * config/rx/rx-modes.def (CC_F): New mode.
16213         * config/rx/rx.c (rx_select_cc_mode): New.
16214         * config/rx/rx.h (SELECT_CC_MODE): Use it.
16215         * config/rx/rx-protos.h: Update.
16216
16217 2011-01-17  Richard Henderson  <rth@redhat.com>
16218
16219         * except.c (dump_eh_tree): Fix stray ; after for statement.
16220
16221 2011-01-17  Richard Guenther  <rguenther@suse.de>
16222
16223         PR tree-optimization/47313
16224         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
16225         handling before copying the body.  Properly deal with
16226         by-reference result in SSA form.
16227
16228 2011-01-17  Ian Lance Taylor  <iant@google.com>
16229
16230         PR target/47219
16231         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
16232         (struct_value_alias_set): Don't define.
16233         (sparc_option_override): Don't set sparc_sr_alias_set and
16234         struct_value_alias_set.
16235         (save_or_restore_regs): Use gen_frame_mem rather than calling
16236         set_mem_alias_set.
16237         (sparc_struct_value_rtx): Likewise.
16238
16239 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
16240
16241         PR target/47318
16242         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
16243         (_mm_maskstore_pd): Likewise.
16244         (_mm_maskload_ps): Likewise.
16245         (_mm_maskstore_ps): Likewise.
16246         (_mm256_maskload_pd): Change mask to __m256i.
16247         (_mm256_maskstore_pd): Likewise.
16248         (_mm256_maskload_ps): Likewise.
16249         (_mm256_maskstore_ps): Likewise.
16250
16251         * config/i386/i386-builtin-types.def: Updated.
16252         (ix86_expand_special_args_builtin): Likewise.
16253
16254         * config/i386/i386.c (bdesc_special_args): Update
16255         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
16256         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
16257         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
16258         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
16259
16260         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
16261         Use <avxpermvecmode> on mask register.
16262         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
16263
16264 2011-01-17  Olivier Hainque  <hainque@adacore.com>
16265             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
16266             Eric Botcazou  <ebotcazou@adacore.com>
16267
16268         PR target/46655
16269         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
16270         if <= USHRT_MAX in 32-bit mode.
16271
16272 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16273
16274         * doc/install.texi (Configuration, Specific): Wrap long
16275         lines in examples.  Allow line wrapping in long options
16276         and URLs where beneficial for PDF output.
16277
16278 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
16279
16280         * config/mips/mips.c (mips_classify_symbol): Don't return
16281         SYMBOL_PC_RELATIVE for nonlocal labels.
16282
16283 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
16284
16285         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
16286
16287 2011-01-15  Jan Hubicka  <jh@suse.cz>
16288
16289         PR tree-optimization/47276
16290         * ipa.c (function_and_variable_visibility): Do not try to mark alias
16291         declarations as needed.
16292
16293 2011-01-15  Martin Jambor  <mjambor@suse.cz>
16294
16295         * common.opt (fdevirtualize): New flag.
16296         * doc/invoke.texi (Option Summary): Document it.
16297         * opts.c (default_options_table): Add devirtualize flag.
16298         * ipa-prop.c (detect_type_change): Return immediately if
16299         devirtualize flag is not set.
16300         (detect_type_change_ssa): Likewise.
16301         (compute_known_type_jump_func): Likewise.
16302         (ipa_analyze_virtual_call_uses): Likewise.
16303
16304 2011-01-14  Martin Jambor  <mjambor@suse.cz>
16305
16306         PR tree-optimization/45934
16307         PR tree-optimization/46302
16308         * ipa-prop.c (type_change_info): New type.
16309         (stmt_may_be_vtbl_ptr_store): New function.
16310         (check_stmt_for_type_change): Likewise.
16311         (detect_type_change): Likewise.
16312         (detect_type_change_ssa): Likewise.
16313         (compute_complex_assign_jump_func): Check for dynamic type change.
16314         (compute_complex_ancestor_jump_func): Likewise.
16315         (compute_known_type_jump_func): Likewise.
16316         (compute_scalar_jump_functions): Likewise.
16317         (ipa_analyze_virtual_call_uses): Likewise.
16318         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
16319
16320 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16321
16322         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
16323         * config/i386/i386.opt (msse5): New Alias.
16324
16325 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16326
16327         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
16328         * config/sparc/linux64.h (CC1_SPEC): Likewise.
16329         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16330         * config/sparc/sparc.h (CC1_SPEC): Likewise.
16331
16332 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16333
16334         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
16335         -mcpu options.
16336         * config/sparc/linux64.h (CC1_SPEC): Likewise.
16337         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
16338         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
16339         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
16340         Likewise.
16341         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
16342
16343 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16344
16345         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
16346
16347 2011-01-14  Mike Stump  <mikestump@comcast.net>
16348
16349         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
16350         * config/fr30/fr30.md: Likweise
16351         (movsi_push): Likewise.
16352         (movsi_pop): Likewise.
16353         (enter_func): Likewise.
16354         * config/moxie/moxie.md (movsi_push): Likewise.
16355         (movsi_pop): Likewise.
16356
16357 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16358
16359         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
16360         %{no_archive} %{exact_version}.
16361         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
16362         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
16363         %{no_archive} %{exact_version}.
16364         * config/mips/openbsd.h (LINK_SPEC): Likewise.
16365         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
16366         * config/mips/vxworks.h: Likewise.
16367
16368 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16369
16370         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
16371
16372 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16373
16374         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
16375         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
16376
16377 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16378
16379         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
16380         -nodefaultlib.
16381
16382 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16383
16384         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
16385         for mcpu not cpu.
16386         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
16387         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
16388         not cpu.
16389         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
16390         Don't handle -shlib.
16391
16392 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16393
16394         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
16395         (CC1_SPEC): Don't handle -profile.
16396
16397 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16398
16399         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
16400         * config/mips/mips.h (CC1_SPEC): Likewise.
16401
16402 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16403
16404         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
16405         * config/mips/mips.h (CC1_SPEC): Likewise.
16406
16407 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16408
16409         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
16410         * config/m32r/linux.h (LINK_SPEC): Likewise.
16411         * config/mips/linux.h (LINK_SPEC): Likewise.
16412         * config/mips/linux64.h (LINK_SPEC): Likewise.
16413         * config/sparc/linux.h (LINK_SPEC): Likewise.
16414         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
16415         LINK_SPEC): Likewise.
16416         * config/xtensa/linux.h (LINK_SPEC): Likewise.
16417
16418 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16419
16420         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
16421         %{version:-v}.
16422         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
16423
16424 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16425
16426         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
16427         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
16428
16429 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
16430
16431         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
16432
16433 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16434
16435         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
16436         supports -Bstatic/-Bdynamic.
16437         * configure: Regenerate.
16438
16439 2011-01-14  Jan Hubicka  <jh@suse.cz>
16440             Jack Howarth  <howarth@bromo.med.uc.edu>
16441
16442         PR target/46037
16443         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
16444         when checking debug_info_level. Test write_symbols instead of
16445         debug_hooks->var_location when setting flag_var_tracking_uninit.
16446
16447 2011-01-14  Richard Guenther  <rguenther@suse.de>
16448
16449         PR tree-optimization/47179
16450         * target.def (ref_may_alias_errno): New target hook.
16451         * targhooks.h (default_ref_may_alias_errno): Declare.
16452         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
16453         (default_ref_may_alias_errno): New function.
16454         * target.h (struct ao_ref_s): Declare.
16455         * tree-ssa-alias.c: Include target.h.
16456         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
16457         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
16458         (targhooks.o): Likewise.
16459         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
16460         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
16461
16462 2011-01-14  Richard Guenther  <rguenther@suse.de>
16463
16464         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
16465
16466 2011-01-14  Richard Guenther  <rguenther@suse.de>
16467
16468         PR tree-optimization/47280
16469         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
16470         return CFG changes.
16471         (tree_ssa_forward_propagate_single_use_vars): Deal with
16472         CFG changes from associate_plusminus.
16473
16474 2011-01-14  Richard Guenther  <rguenther@suse.de>
16475
16476         PR middle-end/47281
16477         Revert
16478         2011-01-11  Richard Guenther  <rguenther@suse.de>
16479
16480         PR tree-optimization/46076
16481         * tree-ssa.c (useless_type_conversion_p): Conversions from
16482         unprototyped to empty argument list function types are useless.
16483
16484 2011-01-14  Richard Guenther  <rguenther@suse.de>
16485
16486         PR tree-optimization/47286
16487         * tree-ssa-structalias.c (new_var_info): Register variables are global.
16488
16489 2011-01-14  Martin Jambor  <mjambor@suse.cz>
16490
16491         PR middle-end/46823
16492         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
16493
16494 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
16495
16496         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
16497         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
16498         * config/xtensa/xtensa.c (xtensa_libcall_value,
16499         xtensa_function_value_regno_p): New functions.
16500         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
16501
16502 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
16503
16504         PR c++/47213
16505         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
16506         PE specific hook.
16507         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
16508         New function prototype.
16509         * config/i386/winnt.c (i386_pe_assemble_visibility):
16510         Warn only if attribute was specified by user.
16511
16512 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
16513
16514         PR target/47251
16515         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
16516         floating point.
16517         (floatunsdidf2_fcfidu): Ditto.
16518
16519 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16520
16521         * config/s390/s390.c (print_operand_address): Replace 'error' with
16522         'output_operand_lossage'.
16523         (print_operand): Likewise.
16524
16525 2011-01-13  Jeff Law  <law@redhat.com>
16526
16527         PR rtl-optimization/39077
16528         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
16529         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
16530         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
16531         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
16532         * gcse.c (prune_insertions_deletions): New function.
16533         (compute_pre_data): Use it.
16534
16535 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
16536
16537         PR debug/PR46973
16538         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
16539         static function.
16540         (prune_unused_types_mark): Use it.
16541
16542 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
16543
16544         PR rtl-optimization/45352
16545         * sel-sched.c: Update copyright years.
16546         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
16547         in the advancing loop when we have issued issue_rate insns.
16548
16549 2011-01-12  Richard Henderson  <rth@redhat.com>
16550
16551         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
16552         (TARGET_MD_ASM_CLOBBERS): New.
16553
16554         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
16555         (TARGET_DELEGITIMIZE_ADDRESS): New.
16556
16557         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
16558         (clzsi2, *bsch): New patterns.
16559
16560         * config/mn10300/mn10300.md (INT): New mode iterator.
16561         (*mov<INT>_clr): New pattern, and peep2 to generate it.
16562
16563         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
16564         flag_split_wide_types.
16565
16566         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
16567         (mn10300_trampoline_init): Rewrite without a template, an immediate
16568         load and a direct branch.
16569         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
16570
16571 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
16572
16573         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16574         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
16575         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
16576         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16577
16578 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
16579
16580         PR debug/47209
16581         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
16582         of type.
16583
16584 2011-01-12  Jan Hubicka  <jh@suse.cz>
16585
16586         PR driver/47244
16587         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
16588         (PLUGIN_COND_CLOSE): New macro.
16589         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
16590
16591 2011-01-12  Richard Guenther  <rguenther@suse.de>
16592
16593         PR lto/47259
16594         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
16595         register variables in a MEM_REF.
16596
16597 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
16598
16599         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
16600         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
16601         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
16602         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
16603         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
16604         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
16605         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
16606         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
16607         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
16608         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
16609         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
16610         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
16611         * config/gnu-user.h: New.  Copied from linux.h.
16612         (LINUX_TARGET_STARTFILE_SPEC): Rename to
16613         GNU_USER_TARGET_STARTFILE_SPEC.
16614         (LINUX_TARGET_ENDFILE_SPEC): Rename to
16615         GNU_USER_TARGET_ENDFILE_SPEC.
16616         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
16617         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
16618         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
16619         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
16620         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
16621         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
16622         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
16623         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
16624         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
16625         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
16626         * config/arm/linux-eabi.h (CC1_SPEC): Use
16627         GNU_USER_TARGET_CC1_SPEC.
16628         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
16629         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
16630         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
16631         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
16632         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
16633         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
16634         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
16635         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
16636
16637 2011-01-12  Richard Guenther  <rguenther@suse.de>
16638
16639         PR other/46946
16640         * doc/invoke.texi (ffast-math): Document it is turned on
16641         with -Ofast.
16642
16643 2011-01-12  Jan Hubicka  <jh@suse.cz>
16644
16645         PR tree-optimization/47233
16646         * opts.c (common_handle_option): Disable ipa-reference with profile
16647         feedback.
16648
16649 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
16650
16651         * c-parser.c (c_parser_objc_at_property_declaration): Improved
16652         error message.
16653
16654 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
16655
16656         * c-parser.c (c_lex_one_token): Updated and reindented some
16657         comments.  No changes in code.
16658
16659 2011-01-11  Ian Lance Taylor  <iant@google.com>
16660
16661         * godump.c (go_output_var): Don't output the variable if there is
16662         already a type with the same name.
16663
16664 2011-01-11  Ian Lance Taylor  <iant@google.com>
16665
16666         * godump.c (go_format_type): Don't generate float80.
16667
16668 2011-01-11  Richard Henderson  <rth@redhat.com>
16669
16670         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
16671         declaration.  Rewrite for both speed and size.
16672         (mn10300_address_cost_1): Remove.
16673         (mn10300_register_move_cost): New.
16674         (mn10300_memory_move_cost): New.
16675         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
16676         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
16677         extensions, shifts, BSWAP, CLZ.
16678         (mn10300_wide_const_load_uses_clr): Remove.
16679         (TARGET_REGISTER_MOVE_COST): New.
16680         (TARGET_MEMORY_MOVE_COST): New.
16681         * config/mn10300/mn10300-protos.h: Update.
16682         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
16683
16684         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
16685         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
16686         * config/mn10300/mn10300-protos.h: Update.
16687         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
16688         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
16689         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
16690         (*test_int_bitfield, *test_byte_bitfield): Remove.
16691         (*bit_test, *subreg_bit_test): Remove.
16692         * config/mn10300/predicates.md (const_8bit_operand): Remove.
16693
16694         * config/mn10300/constraints.md ("c"): Rename from "A".
16695         ("A", "D"): New constraint letters.
16696         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
16697         (fmssf4, fnmasf4, fnmssf4): Likewise.
16698
16699         * config/mn10300/mn10300.md (isa): New attribute.
16700         (enabled): New attribute.
16701
16702         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
16703         (abssf2, negsf2): Define only for hardware fp.
16704         (sqrtsf2): Reformat.
16705         (addsf3, subsf3, mulsf3): Merge expander and insn.
16706
16707         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
16708         (DEBUGGER_AUTO_OFFSET): Remove.
16709         (DEBUGGER_ARG_OFFSET): Remove.
16710
16711         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
16712         Emit register stores with the same offsets as the hardware.
16713         (mn10300_store_multiple_operation): Don't check that the register
16714         save offsets are monotonic.
16715         * config/mn10300/mn10300-protos.h: Update.
16716
16717         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
16718
16719         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
16720         in terms of the value on the stack, not the MDR register.
16721
16722 2011-01-11  Jan Hubicka  <jh@suse.cz>
16723
16724         PR lto/45721
16725         PR lto/45375
16726         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
16727         (symbol_alias_set_destroy, symbol_alias_set_contains,
16728         propagate_aliases_backward): Declare.
16729         * lto-streamer-out.c (struct sets): New sturcture.
16730         (trivally_defined_alias): New function.
16731         (output_alias_pair_p): Rewrite.
16732         (output_unreferenced_globals): Fix output of alias pairs.
16733         (produce_symtab): Likewise.
16734         * ipa.c (function_and_variable_visibility): Set weak alias destination
16735         as needed in lto.
16736         * varasm.c (symbol_alias_set_t): Remove.
16737         (symbol_alias_set_destroy): Export.
16738         (propagate_aliases_forward, propagate_aliases_backward): New functions
16739         based on ...
16740         (compute_visible_aliases): ... this one; remove.
16741         (trivially_visible_alias): New
16742         (trivially_defined_alias): New.
16743         (remove_unreachable_alias_pairs): Rewrite.
16744         (finish_aliases_1): Reorganize code checking if alias is defined.
16745         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
16746         in LTO mode.
16747
16748 2011-01-11  Richard Guenther  <rguenther@suse.de>
16749
16750         PR tree-optimization/46076
16751         * tree-ssa.c (useless_type_conversion_p): Conversions from
16752         unprototyped to empty argument list function types are useless.
16753
16754 2011-01-11  Richard Guenther  <rguenther@suse.de>
16755
16756         PR middle-end/45235
16757         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
16758         volatile MEMs as MEM_READONLY_P.
16759
16760 2011-01-11  Richard Guenther  <rguenther@suse.de>
16761
16762         PR tree-optimization/47239
16763         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
16764
16765 2011-01-11  Jeff Law  <law@redhat.com>
16766
16767         PR tree-optimization/47086
16768         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
16769         IVs from statements that might throw.
16770
16771 2011-01-10  Jan Hubicka  <jh@suse.cz>
16772
16773         PR lto/45375
16774         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
16775
16776 2011-01-10  Jan Hubicka  <jh@suse.cz>
16777
16778         PR lto/45375
16779         * profile.c (read_profile_edge_counts): Ignore profile inconistency
16780         when correcting profile.
16781
16782 2011-01-10  Jan Hubicka  <jh@suse.cz>
16783
16784         PR lto/46083
16785         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
16786         DECL_FINI_PRIORITY.
16787         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
16788         Restore DECL_FINI_PRIORITY.
16789
16790 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16791
16792         * doc/gimple.texi: Fix quoting of multi-word return values in
16793         @deftypefn statements.  Ensure presence of return value.  Wrap
16794         overlong @deftypefn lines.
16795         (is_gimple_operand, is_gimple_min_invariant_address): Remove
16796         descriptions of removed functions.
16797         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
16798         of multi-word return value in @deftypefn statement.
16799
16800 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16801
16802         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
16803         (Conditional Expressions, Logical Operators)
16804         (Statement and operand traversals): Do not indent smallexample
16805         code.  Fix duplicate function argument in example.
16806
16807 2011-01-10  Jeff Law  <law@redhat.com>
16808
16809         PR tree-optimization/47141
16810         * ipa-split.c (split_function): Handle case where we are
16811         returning a value and the return block has a virtual operand phi.
16812
16813 2011-01-10  Jan Hubicka  <jh@suse.cz>
16814
16815         PR tree-optimization/47234
16816         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
16817         (pass_feedback_split_functions): Declare.
16818         * passes.c (init_optimization_passes): Add ipa-split as subpass of
16819         tree-profile.
16820         * ipa-split.c (gate_split_functions): Update comments; disable
16821         split-functions for profile_arc_flag and branch_probabilities.
16822         (gate_feedback_split_functions): New function.
16823         (execute_feedback_split_functions): New function.
16824         (pass_feedback_split_functions): New global var.
16825
16826 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
16827
16828         PR lto/46760
16829         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
16830         calling gimple_call_set_cannot_inline.
16831
16832 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
16833
16834         * config/darwin-sections.def: Remove unused section.
16835
16836 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
16837
16838         PR c++/47218
16839         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
16840
16841 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
16842
16843         PR objc/47232
16844         * c-parser.c (c_parser_declaration_or_fndef): Improved
16845         error message.
16846
16847 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
16848
16849         * config/i386/winnt.c (i386_pe_start_function): Make sure
16850         to switch back to function's section.
16851
16852 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
16853
16854         PR gcc/46902
16855         PR testsuite/46912
16856         * plugin.c: Move include of dlfcn.h from here...
16857         * system.h: ... to here.
16858
16859 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16860
16861         * doc/cpp.texi (C++ Named Operators): Fix markup for header
16862         file name.
16863         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
16864         two extra empty pages in PDF output.
16865
16866 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
16867
16868         PR objc/47078
16869         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
16870         for error recovery purposes behave as if it was not specified so
16871         that the default type is usd.
16872
16873 2011-01-07  Jan Hubicka  <jh@suse.cz>
16874
16875         PR tree-optmization/46469
16876         * ipa.c (function_and_variable_visibility): Clear needed flags on
16877         nodes with external decls; handle weakrefs merging correctly.
16878
16879 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
16880
16881         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
16882         not false.
16883
16884 2011-01-07  Jan Hubicka  <jh@suse.cz>
16885
16886         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
16887         and no longer claim that gold is required for linker plugin.
16888         * configure: Regenerate.
16889         * gcc.c (PLUGIN_COND): New macro.
16890         (LINK_COMMAND_SPEC): Use it.
16891         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
16892         * config.in (HAVE_LTO_PLUGIN): New.
16893         * configure.ac (--with-lto-plugin): New parameter; autodetect
16894         HAVE_LTO_PLUGIN.
16895
16896 2011-01-07  Jan Hubicka  <jh@suse.cz>
16897
16898         PR tree-optimization/46367
16899         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
16900         when we can update original.
16901         (cgraph_mark_inline_edge): Sanity check.
16902         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
16903
16904 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16905
16906         * config/spu/spu.h (ASM_COMMENT_START): Define.
16907
16908 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
16909
16910         PR driver/42445
16911         * gcc.c (%>S): New.
16912         (SWITCH_KEEP_FOR_GCC): Likewise.
16913         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
16914         (do_spec_1): Handle "%>".
16915
16916         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
16917
16918 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
16919
16920         PR target/47201
16921         * config/i386/i386.c (ix86_delegitimize_address): If
16922         simplify_gen_subreg fails, return orig_x.
16923
16924         PR bootstrap/47187
16925         * value-prof.c (gimple_stringop_fixed_value): Handle
16926         lhs of the call properly.
16927
16928 2011-01-07  Jan Hubicka  <jh@suse.cz>
16929
16930         PR lto/45375
16931         * lto-opt.c (lto_reissue_options): Set flag_shlib.
16932
16933 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
16934
16935         * target.def (function_switched_text_sections): New hook.
16936         * doc/tm.texi: Regenerated.
16937         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16938         * final.c (default_function_switched_text_sections): New.
16939         (final_scan_insn): Call function_switched_text_sections when a
16940         mid-function section change occurs.
16941         * output.h (default_function_switched_text_sections): Declare.
16942         * config/darwin-protos.h (darwin_function_switched_text_sections):
16943         Likewise.
16944         * config/darwin.c (darwin_function_switched_text_sections): New.
16945         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
16946
16947 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
16948
16949         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
16950         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
16951         the secondary code fragment when outputting for DWARF == 2.
16952
16953 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
16954
16955         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
16956         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
16957         Remove.
16958         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
16959         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
16960
16961 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
16962
16963         PR debug/46704
16964         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
16965         when it is not empty.
16966
16967 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
16968
16969         Bobcat Enablement
16970         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
16971         (case ${target}): Add btver1.
16972         * config/i386/driver-i386.c (host_detect_local_cpu): Let
16973         -march=native recognize btver1 processors.
16974         * config/i386/i386-c.c (ix86_target_macros_internal): Add
16975         btver1 def_and_undef
16976         * config/i386/i386.c (struct processor_costs btver1_cost): New
16977         btver1 cost table.
16978         (m_BTVER1): New definition.
16979         (m_AMD_MULTIPLE): Includes m_BTVER1.
16980         (initial_ix86_tune_features): Add btver1 tune.
16981         (processor_target_table): Add btver1 entry.
16982         (static const char *const cpu_names): Add btver1 entry.
16983         (software_prefetching_beneficial_p): Add btver1.
16984         (ix86_option_override_internal): Add btver1 instruction sets.
16985         (ix86_issue_rate): Add btver1.
16986         (ix86_adjust_cost): Add btver1.
16987         * config/i386/i386.h (TARGET_BTVER1): New definition.
16988         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
16989         (enum processor_type): Add PROCESSOR_BTVER1.
16990         * config/i386/i386.md (define_attr "cpu"): Add btver1.
16991
16992 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16993
16994         PR target/43309
16995         * config/i386/i386.c (legitimize_tls_address)
16996         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
16997         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
16998         (tls_initial_exec_64_sun): New pattern.
16999
17000 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
17001
17002         * doc/invoke.texi (Overall Options): Improve wording and markup
17003         of the description of -wrapper.
17004
17005 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
17006
17007         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
17008         rdynamic, threads): New Driver options.
17009
17010 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17011
17012         PR target/38118
17013         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
17014         if coming from .tdata.
17015         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17016
17017 2011-01-06  Jan Hubicka  <jh@suse.cz>
17018
17019         PR lto/47188
17020         * collect2.c (main): Do not enable LTOmode when plugin is active.
17021
17022 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17023
17024         PR other/45915
17025         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
17026         --version output if supported.
17027         * configure: Regenerate.
17028
17029 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
17030
17031         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
17032         Driver options.
17033
17034 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
17035
17036         PR c/47150
17037         * c-convert.c (convert): When converting a complex expression
17038         other than COMPLEX_EXPR to a different complex type, ensure
17039         c_save_expr is called instead of save_expr, unless in_late_binary_op.
17040         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
17041         when converting COMPLEX_TYPE.
17042
17043 2011-01-06  Ira Rosen  <irar@il.ibm.com>
17044
17045         PR tree-optimization/47139
17046         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
17047         only the last reduction value is used outside the loop.  Update
17048         documentation.
17049
17050 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
17051
17052         * config/rtems.opt: New.
17053         * config.gcc (*-*-rtems*): Use rtems.opt.
17054
17055 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
17056
17057         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
17058         processors do not support 3DNow instructions.
17059
17060 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17061
17062         * config/spu/spu.c (spu_option_override): Set parameter
17063         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
17064
17065 2011-01-05  Jan Hubicka  <jh@suse.cz>
17066
17067         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
17068         at the command line.
17069
17070 2011-01-05  Martin Jambor  <mjambor@suse.cz>
17071
17072         PR lto/47162
17073         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
17074         deltas on streamed outgoing edges.
17075         (output_node_opt_summary): Output info for outgoing edges only when
17076         the node is in new parameter set.
17077         (output_cgraph_opt_summary): New parameter set, passed to the two
17078         aforementioned functions.  Update its forward declaration and its
17079         callee too.
17080
17081 2011-01-05  Tom Tromey  <tromey@redhat.com>
17082
17083         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
17084         operator to c_finish_omp_atomic.
17085         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
17086         (build_unary_op): Update.
17087         (build_modify_expr): Update.
17088         (build_asm_expr): Update.
17089
17090 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17091
17092         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
17093         newly inserted insns.
17094         (pad_bb): Likewise.
17095         (spu_emit_branch_hint): Likewise.
17096         (insert_hbrp_for_ilb_runout): Likewise.
17097         (spu_machine_dependent_reorg): Call df_finish_pass after
17098         schedule_insns returns.
17099
17100 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17101
17102         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
17103
17104 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
17105
17106         PR tree-optimization/47005
17107         * tree-sra.c (struct access): Add 'non_addressable' bit.
17108         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
17109         (decide_one_param_reduction): Return 0 if the parameter is passed by
17110         reference and one of the accesses in the group is non_addressable.
17111
17112 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17113
17114         PR tree-optimization/47056
17115         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
17116         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
17117         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
17118
17119 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
17120
17121         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
17122         initializer.  Skip view conversions from aggregate types.
17123
17124 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
17125
17126         PR bootstrap/47055
17127         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
17128
17129 2011-01-04  Philipp Thomas  <pth@suse.de>
17130
17131         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
17132         obvious typo.
17133
17134 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17135
17136         * function.c (thread_prologue_and_epilogue_insns): Do not crash
17137         on empty epilogue sequences.
17138
17139 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
17140
17141         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
17142         non-static): New Driver options.
17143
17144 2011-01-04  Jie Zhang  <jie@codesourcery.com>
17145
17146         PR driver/47137
17147         * gcc.c (default_compilers[]): Set combinable field to 0
17148         for all assembly languages.
17149
17150 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
17151
17152         * config/mips/loongson3a.md: New file.
17153         * config/mips/mips.md: Include loongson3a.md.
17154         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
17155         TUNE_LOONGSON_3A.
17156
17157 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
17158
17159         PR middle-end/47017
17160         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
17161         instead of convert_memory_address_addr_space on the base expression.
17162
17163 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17164
17165         * config/spu/spu.c (spu_option_override): Update error text
17166         for bad -march= / -mtune= values.
17167
17168 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17169
17170         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
17171         if branch-hint optimization will be performed.
17172
17173 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
17174
17175         PR tree-optimization/47148
17176         * ipa-split.c (split_function): Convert arguments to
17177         DECL_ARG_TYPE if possible.
17178
17179         PR tree-optimization/47155
17180         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
17181         when computing uns.
17182
17183         PR rtl-optimization/47157
17184         * combine.c (try_combine): If undobuf.other_insn becomes
17185         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
17186         and set *new_direct_jump_p too.
17187
17188 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
17189
17190         PR tree-optimization/47021
17191         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
17192
17193 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
17194
17195         * gcc.c (process_command): Update copyright notice dates.
17196         * gcov.c (print_version): Likewise.
17197         * gcov-dump.c (print_version): Likewise.
17198         * mips-tfile.c (main): Likewise.
17199         * mips-tdump.c (main): Likewise.
17200
17201 2011-01-03  Martin Jambor  <mjambor@suse.cz>
17202
17203         PR tree-optimization/46801
17204         * tree-sra.c (type_internals_preclude_sra_p): Check whether
17205         aggregate fields start at byte boundary instead of the bit-field flag.
17206
17207 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
17208
17209         PR driver/47137
17210         * gcc.c (main): Revert revision 168407.
17211
17212 2011-01-03  Martin Jambor  <mjambor@suse.cz>
17213
17214         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
17215
17216 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17217
17218         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
17219         vector optab to expand vector/scalar shift, update gimple to vector.
17220
17221 2011-01-03  Martin Jambor  <mjambor@suse.cz>
17222
17223         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
17224         a thunk.
17225
17226 2011-01-03  Martin Jambor  <mjambor@suse.cz>
17227
17228         PR tree-optimization/46984
17229         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
17230         HOST_WIDE_INT.
17231         (cgraph_create_indirect_edge): Fixed line length.
17232         (cgraph_indirect_call_info): Declare.
17233         (cgraph_make_edge_direct) Update declaration.
17234         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
17235         (cgraph_create_indirect_edge): Use it.
17236         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
17237         callees.
17238         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
17239         the new thunk_delta representation.
17240         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
17241         HOST_WIDE_INT.
17242         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
17243         (ipa_read_indirect_edge_info): Likewise.
17244         * lto-cgraph.c (output_edge_opt_summary): New function.
17245         (output_node_opt_summary): Call it on all outgoing edges.
17246         (input_edge_opt_summary): New function.
17247         (input_node_opt_summary): Call it on all outgoing edges.
17248
17249 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
17250
17251         PR driver/47137
17252         * gcc.c (main): Don't check have_o when settting combine_inputs.
17253
17254 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
17255
17256         * regrename.c: Add general comment describing the pass.
17257         (struct du_head): Remove 'length' field.
17258         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
17259         (regrename_optimize): Do not sort chains.  Rework comments, add others.
17260         Force renaming to the preferred class (if any) in the first pass and do
17261         not consider registers that belong to it in the second pass.
17262         (create_new_chain): Do not set 'length' field.
17263         (scan_rtx_reg): Likewise.
17264
17265 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
17266
17267         PR tree-optimization/47140
17268         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
17269         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
17270         to bit_value_binop.
17271
17272         PR rtl-optimization/47028
17273         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
17274         parm_birth_insn instead of at the beginning of first bb.
17275
17276 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
17277
17278         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
17279         Remove the word "see" before "@pxref".
17280         * doc/rtl.texi: Remove the word "see" before "@pxref".
17281
17282 2011-01-01  Jan Hubicka  <jh@suse.cz>
17283
17284         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
17285         memory.
17286
17287 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
17288
17289         PR target/38662
17290         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
17291
17292 \f
17293 Copyright (C) 2011 Free Software Foundation, Inc.
17294
17295 Copying and distribution of this file, with or without modification,
17296 are permitted in any medium without royalty provided the copyright
17297 notice and this notice are preserved.