OSDN Git Service

PR target/49781
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-08-09  Uros Bizjak  <ubizjak@gmail.com>
2
3         PR target/49781
4         * config/i386/i386.md (reload_noff_load): New.
5         (reload_noff_store): Ditto.
6         * config/i386/i386.c (ix86_secondary_reload): Use
7         CODE_FOR_reload_noff_load and CODE_FOR_reload_noff_store to handle
8         double-word moves from/to non-offsetable addresses instead of
9         generating XMM temporary.
10
11 2011-08-09  Anatoly Sokolov  <aesok@post.ru>
12
13         * config/mmix/mmix.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Remove.
14
15 2011-08-09  Ira Rosen  <ira.rosen@linaro.org>
16
17         PR tree-optimization/50014
18         * tree-vect-loop.c (vectorizable_reduction): Get def type before
19         calling vect_get_vec_def_for_stmt_copy ().
20
21 2011-08-08  Vladimir Makarov  <vmakarov@redhat.com>
22
23         PR rtl-optimization/49990
24         * ira-costs.c (print_allocno_costs, print_pseudo_costs): Don't
25         ignore classes which can not change mode.
26         (find_costs_and_classes): Ditto.
27
28 2011-08-08  Richard Henderson  <rth@redhat.com>
29
30         PR middle-end/49990
31         * config/i386/i386.c (ix86_expand_prologue): Call
32         for SEH target gen_prologue_use instead of gen_blockage
33         at prologue's end.
34
35 2011-08-08  Martin Jambor  <mjambor@suse.cz>
36
37         PR middle-end/49923
38         * tree-sra.c (access_precludes_ipa_sra_p): Also check access
39         memory alignment.
40
41 2011-08-08   Diego Novillo  <dnovillo@google.com>
42
43         * Makefile.in (LTO_STREAMER_H): Add DIAGNOSTIC_H.
44         (DATA_STREAMER_H): New.
45         (GIMPLE_STREAMER_H): New.
46         (TREE_STREAMER_H): New.
47         (STREAMER_HOOKS_H): New.
48         (OBJS): Add data-streamer.o, data-streamer-in.o, data-streamer-out.o,
49         gimple-streamer-in.o, gimple-streamer-out.o, streamer-hooks.o,
50         tree-streamer.o, tree-streamer-in.o and tree-streamer-out.o.
51         (data-streamer.o): New.
52         (data-streamer-in.o): New.
53         (data-streamer-out.o): New.
54         (gimple-streamer-in.o): New.
55         (gimple-streamer-out.o): New.
56         (streamer-hooks.o): New.
57         (tree-streamer.o): New.
58         (tree-streamer-in.o): New.
59         (tree-streamer-out.o): New.
60         (lto-cgraph.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
61         (lto-streamer-in.o): Add dependency on DATA_STREAMER_H,
62         GIMPLE_STREAMER_H and TREE_STREAMER_H.
63         (lto-streamer-out.o): Add dependency on DATA_STREAMER_H,
64         GIMPLE_STREAMER_H and TREE_STREAMER_H.
65         (lto-streamer.o): Add dependency on STREAMER_HOOKS_H.
66         (ipa-prop.o): Add dependency on DATA_STREAMER_H and TREE_STREAMER_H.
67         (ipa-inline-analysis.o): Likewise.
68         (ipa-pure-const.o): Likewise.
69         * data-streamer-in.c: New.
70         * data-streamer-out.c: New.
71         * data-streamer.c: New.
72         * data-streamer.h: New.
73         * gimple-streamer-in.c: New.
74         * gimple-streamer-out.c: New.
75         * gimple-streamer.h: New.
76         * ipa-inline-analysis.c: Include data-streamer.h.
77         * ipa-prop.c: Include data-streamer.h.
78         * ipa-pure-const.c: Include data-streamer.h.
79         * lto-cgraph.c: Include data-streamer.h.
80         * lto-section-in.c (lto_input_uleb128): Move to data-streamer-in.c.
81         (lto_input_widest_uint_uleb128): Likewise.
82         (lto_input_sleb128): Likewise.
83         (bp_unpack_var_len_unsigned): Likewise.
84         (bp_unpack_var_len_int): Likewise.
85         * lto-section-out.c (lto_output_uleb128_stream): Move to
86         data-streamer-out.c.
87         (lto_output_widest_uint_uleb128_stream): Likewise.
88         (lto_output_sleb128_stream): Likewise.
89         (bp_pack_var_len_unsigned): Likewise.
90         (bp_pack_var_len_int): Likewise.
91         * lto-streamer-in.c: Include data-streamer.h and gimple-streamer.h.
92         (struct string_slot): Remove.  Update all users.
93         (lto_tag_check_set): Make extern.
94         (lto_tag_check_range): Move to lto-streamer.h.
95         (lto_tag_check): Likewise.
96         (hash_string_slot_node): Remove.  Update all users.
97         (eq_string_slot_node): Remove.  Update all users.
98         (string_for_index): Move to data-streamer-in.c
99         (input_string_internal): Likewise.
100         (input_string_cst): Move to tree-streamer-in.c.
101         (input_identifier): Likewise.
102         (lto_input_string): Move to data-streamer-in.c
103         (input_record_start): Move to data-streamer.h
104         (canon_file_name): Use new definition of struct string_slot
105         from data-streamer.h.  Set S_SLOT.LEN.
106         (lto_input_location): Make extern.
107         (lto_input_chain): Move to tree-streamer-in.c.
108         (lto_init_eh): Make extern.
109         (input_phi): Move to gimple-streamer-in.c.
110         (input_gimple_stmt): Likewise.
111         (input_bb): Likewise.
112         (unpack_ts_base_value_fields): Move to tree-streamer-in.c.
113         (unpack_ts_real_cst_value_fields): Likewise.
114         (unpack_ts_fixed_cst_value_fields): Likewise.
115         (unpack_ts_decl_common_value_fields): Likewise.
116         (unpack_ts_decl_wrtl_value_fields): Likewise.
117         (unpack_ts_decl_with_vis_value_fields): Likewise.
118         (unpack_ts_function_decl_value_fields): Likewise.
119         (unpack_ts_type_common_value_fields): Likewise.
120         (unpack_ts_block_value_fields): Likewise.
121         (unpack_ts_translation_unit_decl_value_fields): Likewise.
122         (unpack_value_fields): Likewise.
123         (lto_materialize_tree): Likewise.
124         (lto_input_ts_common_tree_pointers): Likewise.
125         (lto_input_ts_vector_tree_pointers): Likewise.
126         (lto_input_ts_complex_tree_pointers): Likewise.
127         (lto_input_ts_decl_minimal_tree_pointers): Likewise.
128         (lto_input_ts_decl_common_tree_pointers): Likewise.
129         (lto_input_ts_decl_non_common_tree_pointers): Likewise.
130         (lto_input_ts_decl_with_vis_tree_pointers): Likewise.
131         (lto_input_ts_field_decl_tree_pointers): Likewise.
132         (lto_input_ts_function_decl_tree_pointers): Likewise.
133         (lto_input_ts_type_common_tree_pointers): Likewise.
134         (lto_input_ts_type_non_common_tree_pointers): Likewise.
135         (lto_input_ts_list_tree_pointers): Likewise.
136         (lto_input_ts_vec_tree_pointers): Likewise.
137         (lto_input_ts_exp_tree_pointers): Likewise.
138         (lto_input_ts_block_tree_pointers): Likewise.
139         (lto_input_ts_binfo_tree_pointers): Likewise.
140         (lto_input_ts_constructor_tree_pointers): Likewise.
141         (lto_input_ts_target_option): Likewise.
142         (lto_input_ts_translation_unit_decl_tree_pointers): Likewise.
143         (lto_input_tree_pointers): Likewise.
144         (lto_get_pickled_tree): Likewise.
145         (lto_get_builtin_tree): Likewise.
146         (lto_read_tree): Likewise.
147         (lto_input_integer_cst): Likewise.
148         (lto_input_tree): Likewise.
149         * lto-streamer-out.c: Include data-streamer.h,
150         gimple-streamer.h and streamer-hooks.h.
151         (struct string_slot): Move to data-streamer.h.
152         (hash_string_slot_node): Likewise.
153         (eq_string_slot_node): Likewise.
154         (lto_string_index): Move to data-streamer-out.c.
155         (lto_output_string_with_length): Likewise.
156         (lto_output_string): Likewise.
157         (output_string_cst): Move to tree-streamer-out.c.
158         (output_identifier): Likewise.
159         (output_zero): Move to data-streamer-out.c
160         (output_uleb128): Likewise.
161         (output_sleb128): Likewise.
162         (output_record_start): Move to data-streamer.h
163         (pack_ts_base_value_fields): Move to tree-streamer-out.c.
164         (pack_ts_real_cst_value_fields): Likewise.
165         (pack_ts_fixed_cst_value_fields): Likewise.
166         (pack_ts_decl_common_value_fields): Likewise.
167         (pack_ts_decl_wrtl_value_fields): Likewise.
168         (pack_ts_decl_with_vis_value_fields): Likewise.
169         (pack_ts_function_decl_value_fields): Likewise.
170         (pack_ts_type_common_value_fields): Likewise.
171         (pack_ts_block_value_fields): Likewise.
172         (pack_ts_translation_unit_decl_value_fields): Likewise.
173         (pack_value_fields): Likewise.
174         (lto_output_chain): Likewise.
175         (lto_output_ts_common_tree_pointers): Likewise.
176         (lto_output_ts_vector_tree_pointers): Likewise.
177         (lto_output_ts_complex_tree_pointers): Likewise.
178         (lto_output_ts_decl_minimal_tree_pointers): Likewise.
179         (lto_output_ts_decl_common_tree_pointers): Likewise.
180         (lto_output_ts_decl_non_common_tree_pointers): Likewise.
181         (lto_output_ts_decl_with_vis_tree_pointers): Likewise.
182         (lto_output_ts_field_decl_tree_pointers): Likewise.
183         (lto_output_ts_function_decl_tree_pointers): Likewise.
184         (lto_output_ts_type_common_tree_pointers): Likewise.
185         (lto_output_ts_type_non_common_tree_pointers): Likewise.
186         (lto_output_ts_list_tree_pointers): Likewise.
187         (lto_output_ts_vec_tree_pointers): Likewise.
188         (lto_output_ts_exp_tree_pointers): Likewise.
189         (lto_output_ts_block_tree_pointers): Likewise.
190         (lto_output_ts_binfo_tree_pointers): Likewise.
191         (lto_output_ts_constructor_tree_pointers): Likewise.
192         (lto_output_ts_target_option): Likewise.
193         (lto_output_ts_translation_unit_decl_tree_pointers): Likewise.
194         (lto_output_tree_pointers): Likewise.
195         (lto_output_tree_header): Likewise.
196         (lto_output_builtin_tree): Likewise.
197         (lto_write_tree): Likewise.
198         (lto_output_integer_cst): Likewise.
199         (lto_output_tree): Likewise.
200         (output_phi): Move to gimple-streamer-out.c.
201         (output_gimple_stmt): Likewise.
202         (output_bb): Likewise.
203         * lto-streamer.c: Include tree-streamer.h and streamer-hooks.h.
204         (streamer_hooks): Move to streamer-hooks.c.
205         (check_handled_ts_structures): Move to tree-streamer.c
206         (lto_streamer_cache_add_to_node_array): Likewise.
207         (lto_streamer_cache_insert_1): Likewise.
208         (lto_streamer_cache_insert): Likewise.
209         (lto_streamer_cache_insert_at): Likewise.
210         (lto_streamer_cache_append): Likewise.
211         (lto_streamer_cache_lookup): Likewise.
212         (lto_streamer_cache_get): Likewise.
213         (lto_record_common_node): Likewise.
214         (lto_preload_common_nodes): Likewise.
215         (lto_streamer_cache_create): Likewise.
216         (lto_streamer_cache_delete): Likewise.
217         (streamer_hooks_init): Move to streamer-hooks.c.
218         * lto-streamer.h: Include diagnostic.h
219         (struct output_block, struct lto_input_block,
220         struct data_in, struct bitpack_d): Remove forward declarations.
221         (struct bitpack_d): Move to data-streamer.h.
222         (struct lto_streamer_cache_d): Move to tree-streamer.h.
223         (struct streamer_hooks): Move to streamer-hooks.h.
224         (bp_pack_var_len_unsigned): Move to data-streamer.h.
225         (bp_pack_var_len_int): Likewise.
226         (bp_unpack_var_len_unsigned): Likewise.
227         (bp_unpack_var_len_int): Likewise.
228         (lto_input_location): Declare.
229         (lto_tag_check_set): Declare.
230         (lto_init_eh): Declare.
231         (lto_output_tree_ref): Declare.
232         (lto_output_location): Declare.
233         (bitpack_create): Move to data-streamer.h.
234         (bp_pack_value): Likewise.
235         (lto_output_bitpack): Likewise.
236         (lto_input_bitpack): Likewise.
237         (bp_unpack_value): Likewise.
238         (lto_output_1_stream): Likewise.
239         (lto_input_1_unsigned): Likewise.
240         (lto_output_int_in_range): Likewise.
241         (lto_input_int_in_range): Likewise.
242         (bp_pack_int_in_range): Likewise.
243         (bp_unpack_int_in_range): Likewise.
244         (lto_output_enum): Likewise.
245         (lto_input_enum): Likewise.
246         (bp_pack_enum): Likewise.
247         (bp_unpack_enum): Likewise.
248         * streamer-hooks.c: New.
249         * streamer-hooks.h: New.
250         * tree-streamer-in.c: New.
251         * tree-streamer-out.c: New.
252         * tree-streamer.c: New.
253         * tree-streamer.h: New.
254
255 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
256
257         * gthr-posix95.h: Remove.
258         * gthr.h [_PTHREADS95]: Remove.
259         * configure.ac (enable_threads): Remove posix95.
260         * configure: Regenerate.
261         * doc/install.texi (Configuration, --enable-threads): Remove posix95.
262
263 2011-08-08  Uros Bizjak  <ubizjak@gmail.com>
264
265         PR target/49781
266         * config/i386/i386.c (ix86_decompose_address): Allow zero-extended
267         SImode addresses.
268         (ix86_print_operand_address): Handle zero-extended addresses.
269         (memory_address_length): Add length of addr32 prefix for
270         zero-extended addresses.
271         (ix86_secondary_reload): Handle moves to/from double-word general
272         registers from/to zero-extended addresses.
273         * config/i386/predicates.md (lea_address_operand): Reject
274         zero-extended operands.
275
276 2011-08-08  H.J. Lu  <hongjiu.lu@intel.com>
277
278         PR other/48007
279         * config.gcc (libgcc_tm_file): Add i386/value-unwind.h for Linux/x86.
280
281         * system.h (REG_VALUE_IN_UNWIND_CONTEXT): Poisoned.
282         (ASSUME_EXTENDED_UNWIND_CONTEXT): Likewise.
283
284         * unwind-dw2.c (ASSUME_EXTENDED_UNWIND_CONTEXT): New.
285         (_Unwind_Context_Reg_Val): Likewise.
286         (_Unwind_Get_Unwind_Word): Likewise.
287         (_Unwind_Get_Unwind_Context_Reg_Val): Likewise.
288         (_Unwind_Context): Use _Unwind_Context_Reg_Val on the reg field.
289         (_Unwind_IsExtendedContext): Check ASSUME_EXTENDED_UNWIND_CONTEXT
290         for EXTENDED_CONTEXT_BIT.
291         (__frame_state_for): Likewise.
292         (uw_init_context_1): Likewise.
293         (_Unwind_GetGR): Updated.
294         (_Unwind_SetGR): Likewise.
295         (_Unwind_GetGRPtr): Likewise.
296         (_Unwind_SetGRPtr): Likewise.
297         (_Unwind_SetGRValue): Likewise.
298         (_Unwind_GRByValue): Likewise.
299         (uw_install_context_1): Likewise.
300
301         * doc/tm.texi.in: Document REG_VALUE_IN_UNWIND_CONTEXT and
302         ASSUME_EXTENDED_UNWIND_CONTEXT.
303         * doc/tm.texi: Regenerated.
304
305 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
306
307         * Makefile.in (gengtype$(exeext)): Add $(LDFLAGS).
308
309 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
310
311         * doc/invoke.texi (DEC Alpha Options, -mcpu): native support isn't
312         Linux/GNU-specific.
313         (DEC Alpha Options, -mtune): Likewise.
314         (MIPS Options, -march): native is supported on IRIX.
315
316 2011-08-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
317
318         * config/sparc/driver-sparc.c: New file.
319         * config/sparc/x-sparc: New file.
320         * config.host: Use driver-sparc.o, sparc/x-sparc on sparc*-*-solaris2*.
321         * config/sparc/sparc.opt (native): New value for enum processor_type.
322         * config/sparc/sparc-opts.h (PROCESSOR_NATIVE): Declare.
323         * config/sparc/sparc.c (sparc_option_override): Abort if
324         PROCESSOR_NATIVE gets here.
325         * config/sparc/sol2.h [__sparc__] (host_detect_local_cpu): Declare.
326         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS,
327         DRIVER_SELF_SPECS): Define.
328         * doc/invoke.texi (SPARC Options, -mcpu): Document native.
329         (SPARC Options, -mtune): Likewise.
330         * configure.ac (EXTRA_GCC_LIBS): Check for libkstat.
331         Substitute result.
332         * configure: Regenerate.
333         * Makefile.in (EXTRA_GCC_LIBS): Set.
334         (xgcc$(exeext)): Add $(EXTRA_GCC_LIBS).
335         (cpp$(exeext)): Likewise.
336
337 2011-08-08  Richard Guenther  <rguenther@suse.de>
338
339         * tree-vrp.c (extract_range_from_unary_expr_1): New function,
340         split out from ...
341         (extract_range_from_unary_expr): ... here.  Handle BIT_NOT_EXPR
342         by composition.
343
344 2011-08-08  Mikael Pettersson  <mikpe@it.uu.se>
345
346         PR tree-optimization/50005
347         * ipa-inline-analysis (remap_predicate): Add cast to
348         silence signed/unsigned comparison warning.
349
350 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
351
352         * modulo-sched.c (get_sched_window): Use a table for the debug output.
353         Print the current ii.
354         (sms_schedule_by_order): Reduce whitespace in dump line.
355
356 2011-08-08  Richard Sandiford  <richard.sandiford@linaro.org>
357
358         * modulo-sched.c (get_sched_window): Use just one loop for predecessors
359         and one loop for successors.  Fix upper bound of memory range.
360
361 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
362
363         PR target/50001
364         * config/alpha/alpha.c (alpha_instantiate_decls): New function.
365         (TARGET_INSTANTIATE_DECLS): New define.
366
367 2011-08-06  Paolo Bonzini  <bonzini@gnu.org>
368             Mikael Morin   <mikael.morin@sfr.fr>
369
370         * Makefile.in (INCLUDES_FOR_TARGET): New.
371         (LIBGCC2_CFLAGS): Use it.
372         (CRTSTUFF_CFLAGS): Use it instead of INCLUDES.
373
374 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
375
376         * config/i386/i386.c (ix86_compute_frame_layout): Simplify
377         frame->save_regs_using_mov calculation.
378
379 2011-08-06  Uros Bizjak  <ubizjak@gmail.com>
380
381         * config/i386/i386.md (ssemodesuffix): Remove V8SI mode.
382         * config/i386/sse.md (castmode): New mode attribute.
383         (avx_<castmode><avxsizesuffix>_<castmode>): Rename from
384         avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>.
385
386 2011-08-05  Jan Hubicka  <jh@suse.cz>
387
388         PR middle-end/49494
389         * ipa-inline-analysis.c (remap_predicate): Add bounds check.
390
391 2011-08-05  Jan Hubicka  <jh@suse.cz>
392
393         PR middle-end/49500
394         * tree-emultls.c (new_emutls_decl):Add alias_of parameter;
395         handle aliases.
396         (create_emultls_var):New function.
397         (ipa_lower_emutls): Handle aliases correctly.
398
399 2011-08-05  Jan Hubicka  <jh@suse.cz>
400
401         PR middle-end/49735
402         * ipa-inline.c (recursive_inlining): Look through aliases.
403
404 2011-08-05  Jason Merrill  <jason@redhat.com>
405
406         * config/i386/i386.c (setup_incoming_varargs_ms_64): Move
407         declarations to beginning of function.
408
409 2011-08-05  Bernd Schmidt  <bernds@codesourcery.com>
410
411         PR rtl-optimization/49900
412         * sched-ebb.c (add_deps_for_risky_insns): Also add dependencies to
413         ensure basic blocks stay in the same order.
414
415 2011-08-05  Aldy Hernandez  <aldyh@redhat.com>
416
417         * config/s390/s390.c (s390_expand_cs_hqi): Add new arguments to
418         store_bit_field.
419         (s390_expand_atomic): Same.
420
421 2011-08-05  Richard Henderson  <rth@redhat.com>
422
423         PR rtl-opt/49977
424         * dwarf2cfi.c (scan_insn_after): Split out of ...
425         (scan_trace): ... here.  Correctly place notes wrt sequences.
426
427 2011-08-05  Kaz Kojima  <kkojima@gcc.gnu.org>
428             Richard Henderson  <rth@redhat.com>
429
430         PR rtl-opt/49982
431         * expr.c (fixup_args_size_notes): Look through no-op moves.
432
433 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
434
435         * config/i386/i386.md (*push<mode>2): Use "o" constraint instead
436         of "m" for operand 0.  Add type and mode attribute.
437         (*pushxf_nointeger"): Use "<" constraint for operand 0.
438         (*pushdf_rex64): New pattern, split out of *pushdf.  Use "m"
439         constraint instead of "o" for opreand 1.
440         (*pushdf): Disable for TARGET_64BIT.  Correct mode attribute.
441         (*movdi_internal_rex64): Use "!o" constraint instead of "!m" for
442         operand 0, alternative 4.
443         (*movdf_internal_rex64): Ditto for operand 0, alernative 6.
444
445 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
446
447         * config/i386/predicates.md (lea_address_operand): Rename from
448         no_seg_address_operand.
449         * config/i386/i386.md (*lea_1): Update operand 1 predicate for rename.
450         (*lea_1_zext): Ditto.
451         (*lea_2): Ditto.
452         (*lea_2_zext): Ditto.
453
454 2011-08-05  Uros Bizjak  <ubizjak@gmail.com>
455
456         * config/i386/i386.c (ix86_print_operand_address): Handle SUBREGs of
457         parts.base and parts.index.
458         * config/i386/predicates.md (aligned_operand): Ditto.
459         (cmpxchg8b_pic_memory_operand): Ditto.
460
461 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
462
463         * config/soft-fp: Move to ../libgcc.
464         * Makefile.in (SFP_MACHINE): Remove.
465         (libgcc-support): Remove $(SFP_MACHINE) dependency.
466         * config/arm/sfp-machine.h: Move to ../libgcc/config/arm.
467         * config/arm/t-arm-softfp: Move to
468         ../libgcc/config/arm/t-softfp.
469         * config/c6x/sfp-machine.h: Move to ../libgcc/config/c6x.
470         * config/c6x/t-c6x-softfp: Remove.
471         * config/i386/sfp-machine.h: Move to ../libgcc/config/i386.
472         * config/i386/t-fprules-softfp: Move to
473         ../libgcc/config/t-softfp-tf.
474         * config/ia64/sfp-machine.h: Move to ../libgcc/config/ia64.
475         * config/ia64/t-fprules-softfp: Remove.
476         * config/lm32/sfp-machine.h: Move to ../libgcc/config/lm32.
477         * config/lm32/t-fprules-softfp: Remove.
478         * config/moxie/sfp-machine.h: Remove.
479         * config/moxie/t-moxie-softfp: Remove.
480         * config/rs6000/darwin-ldouble-format: Move to
481         ../libgcc/config/rs6000/ibm-ldouble-format.
482         * config/rs6000/darwin-ldouble.c: Move to
483         ../libgcc/config/rs6000/ibm-ldouble.c
484         * config/rs6000/libgcc-ppc-glibc.ver: Move to ../libgcc/config/rs6000.
485         * config/rs6000/libgcc-ppc64.ver: Likewise.
486         * config/rs6000/sfp-machine.h: Likewise.
487         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Remove
488         $(srcdir)/config/rs6000/libgcc-ppc64.ver.
489         (LIB2FUNCS_EXTRA): Remove.
490         (TARGET_LIBGCC2_CFLAGS): Remove.
491         * config/rs6000/t-aix52: Likewise
492         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
493         $(srcdir)/config/rs6000/darwin-ldouble.c.
494         (SHLIB_MAPFILES): Remove.
495         * config/rs6000/t-darwin64 (LIB2FUNCS_EXTRA): Remove
496         $(srcdir)/config/rs6000/darwin-ldouble.c.
497         * config/rs6000/t-fprules-softfp: Move to
498         ../libgcc/config/t-softfp-sfdf.
499         * config/rs6000/t-freebsd: Move to ../libgcc/config/rs6000.
500         * config/rs6000/t-linux64 (softfp_wrap_start, softfp_wrap_end): Remove.
501         * config/rs6000/t-ppccomm (LIB2FUNCS_EXTRA): Remove
502         $(srcdir)/config/rs6000/darwin-ldouble.c.
503         * config/score/sfp-machine.h: Move to ../libgcc/config/score.
504         * config/score/t-score-softfp: Remove.
505         * config.gcc (arm*-*-linux*): Remove arm/t-arm-softfp,
506         soft-fp/t-softfp from tmake_file.
507         (arm*-*-uclinux*): Likewise.
508         (arm*-*-ecos-elf): Likewise.
509         (arm*-*-eabi*, arm*-*-symbianelf*): Likewise.
510         (arm*-*-rtems*): Likewise.
511         (arm*-*-elf): Likewise.
512         (moxie-*-elf): Remove moxie/t-moxie-softfp, soft-fp/t-softfp from
513         tmake_file.
514         (moxie-*-uclinux*): Likewise.
515         (moxie-*-rtems*): Likewise.
516         (lm32-*-elf*): Remove lm32/t-fprules-softfp, soft-fp/t-softfp from
517         tmake_file.
518         (lm32-*-rtems*): Likewise.
519         (lm32-*-uclinux*): Likewise.
520         (powerpc-*-freebsd*): Remove rs6000/t-freebsd,
521         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
522         (powerpc-*-linux*, powerpc64-*-linux*): Remove
523         rs6000/t-fprules-softfp, soft-fp/t-softfp from tmake_file.
524         (score-*-elf): Remove score/t-score-softfp, soft-fp/t-softfp from
525         tmake_file.
526         (tic6x-*-elf): Remove c6x/t-c6x-softfp, soft-fp/t-softfp from
527         tmake_file.
528         (tic6x-*-uclinux): Likewise.
529         (i[34567]86-*-darwin*, x86_64-*-darwin*): Remove i386/t-fprules-softfp,
530         soft-fp/t-softfp from tmake_file.
531         (i[34567]86-*-linux*, x86_64-*-linux*, i[34567]86-*-kfreebsd*-gnu)
532         (x86_64-*-kfreebsd*-gnu, i[34567]86-*-gnu*): Likewise.
533         (i[34567]86-*-solaris2*, x86_64-*-solaris2.1[0-9]*): Likewise.
534         (i[34567]86-*-cygwin*, i[34567]86-*-mingw*, x86_64-*-mingw*): Likewise.
535         (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Likewise.
536
537 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
538
539         * Makefile.in (FPBIT_FUNCS, DPBIT_FUNCS, TPBIT_FUNCS): Remove.
540         (libgcc-support): Remove $(FPBIT), $(DPBIT), $(TPBIT) dependencies.
541         (libgcc.mvars): Remove FPBIT, FPBIT_FUNCS, DPBIT, DPBIT_FUNCS,
542         TPBIT, TPBIT_FUNCS.
543         * config/fp-bit.c, config/fp-bit.h: Move to ../libgcc.
544         * config/arm/t-strongarm-elf (FPBIT, DPBIT, dp-bit.c, fp-bit.c):
545         Remove.
546         * config/arm/t-vxworks: Likewise.
547         * config/arm/t-wince-pe: Likewise.
548         * config/avr/t-avr (fp-bit.c, FPBIT): Remove.
549         * config/bfin/t-bfin (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
550         * config/bfin/t-bfin-elf: Likewise.
551         * config/bfin/t-bfin-linux: Likewise.
552         * config/bfin/t-bfin-uclinux: Likewise.
553         * config/cris/t-cris (FPBIT, DPBIT, dp-bit.c, tmplibgcc_fp_bit.c):
554         Remove.
555         * config/fr30/t-fr30: Likewise.
556         * config/frv/t-frv: Likewise.
557         * config/h8300/t-h8300 (FPBIT, fp-bit.c): Remove.
558         * config/iq2000/t-iq2000 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
559         * config/m32c/t-m32c: Likewise.
560         * config/m32r/t-linux: (LIB2FUNCS_EXTRA, fp-bit.c, dp-bit.c): Remove.
561         * config/m32r/t-m32r (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
562         * config/mcore/t-mcore: Likewise.
563         * config/mep/t-mep: Likewise.
564         * config/microblaze/t-microblaze: Likewise.
565         * config/mips/t-linux64 (TPBIT, tp-bit.c): Remove.
566         * config/mips/t-mips (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
567         * config/mips/t-sdemtk (FPBIT, DPBIT): Remove.
568         * config/mips/t-sr71k (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
569         * config/mn10300/t-linux: Remove.
570         * config/mn10300/t-mn10300 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
571         * config/pdp11/t-pdp11: Likewise.
572         * config/picochip/t-picochip (FPBIT, fp-bit.c): Remove.
573         * config/rs6000/ppc64-fp.c: Move to ../libgcc/config/rs6000.
574         * config/rs6000/t-aix43 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
575         (LIB2FUNCS_EXTRA): Remove $(srcdir)/config/rs6000/ppc64-fp.c.
576         * config/rs6000/t-aix52: Likewise.
577         * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Remove
578         $(srcdir)/config/rs6000/ppc64-fp.c.
579         * config/rs6000/t-fprules-fpbit: Remove.
580         * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Remove.
581         * config/rs6000/t-lynx (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
582         * config/sh/t-netbsd (FPBIT, DPBIT): Remove.
583         * config/sh/t-sh (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
584         * config/sparc/t-elf: Likewise.
585         * config/sparc/t-leon: Likewise.
586         * config/sparc/t-leon3: Likewise.
587         * config/spu/t-spu-elf: Likewise.
588         (DPBIT_FUNCS): Remove.
589         * config/stormy16/t-stormy16 (FPBIT, DPBIT, dp-bit.c, fp-bit.c): Remove.
590         * config/v850/t-v850: Likewise.
591         * config.gcc (avr-*-rtems*): Add avr/avr-lib.h to libgcc_tm_file.
592         (avr-*-*): Likewise.
593         (h8300-*-rtems*): Set libgcc_tm_file.
594         (h8300-*-elf*): Likewise.
595         (powerpc-*-eabisimaltivec*): Remove rs6000/t-fprules-fpbit from
596         tmake_file.
597         (powerpc-*-eabisim*): Likewise.
598         (powerpc-*-elf*): Likewise.
599         (powerpc-*-eabialtivec*): Likewise.
600         (powerpc-xilinx-eabi*): Likewise.
601         (powerpc-*-eabi*): Likewise.
602         (powerpc-*-rtems*): Likewise.
603         (powerpc-wrs-vxworks, powerpc-wrs-vxworksae): Likewise.
604         (powerpcle-*-elf*): Likewise.
605         (powerpcle-*-eabisim*): Likewise.
606         (powerpcle-*-eabi*): Likewise.
607         (rx-*-elf*): Add rx/rx-lib.h to libgcc_tm_file.
608         (am33_2.0-*-linux*): Remove mn10300/t-linux from tmake_file.
609         * doc/fragments.texi (Target Fragment, Floating Point Emulation):
610         Remove.
611
612 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
613
614         * Makefile.in (UNWIND_H): Remove.
615         (LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED): Move to
616         ../libgcc/Makefile.in.
617         (LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL): Likewise.
618         (LIBUNWINDDEP): Remove.
619         (libgcc-support): Remove LIB2ADDEH, $(srcdir)/emutls.c dependencies.
620         (libgcc.mvars): Remove LIB2ADDEH, LIB2ADDEHSTATIC, LIB2ADDEHSHARED,
621         LIBUNWIND, SHLIBUNWIND_LINK, SHLIBUNWIND_INSTALL.
622         (stmp-int-hdrs): Remove $(UNWIND_H) dependency.
623         Don't copy $(UNWIND_H).
624         * config.gcc (ia64*-*-linux*): Remove with_system_libunwind handling.
625         * configure.ac (GCC_CHECK_UNWIND_GETIPINFO): Remove.
626         * aclocal.m4: Regenerate.
627         * configure: Regenerate.
628         * emutls.c, unwind-c.c, unwind-compat.c, unwind-compat.h,
629         unwind-dw2-fde-compat.c, unwind-dw2-fde-glibc.c, unwind-dw2-fde.c,
630         unwind-dw2-fde.h, unwind-dw2.c, unwind-dw2.h, unwind-generic.h,
631         unwind-pe.h, unwind-sjlj.c, unwind.inc: Move to ../libgcc.
632         * unwind-dw2-fde-darwin.c: Move to ../libgcc/config.
633         * config/arm/libunwind.S, config/arm/pr-support.c,
634         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Move to
635         ../libgcc/config/arm.
636         * config/arm/t-bpabi (UNWIND_H, LIB2ADDEH): Remove.
637         * config/arm/t-symbian (UNWIND_H, LIB2ADDEH): Remove.
638         * config/frv/t-frv ($(T)frvbegin$(objext)): Use
639         $(srcdir)/../libgcc to refer to unwind-dw2-fde.h.
640         ($(T)frvend$(objext)): Likewise.
641         * config/ia64/t-glibc (LIB2ADDEH): Remove.
642         * config/ia64/t-glibc-libunwind: Move to ../libgcc/config/ia64.
643         * config/ia64/fde-glibc.c, config/ia64/fde-vms.c,
644         config/ia64/unwind-ia64.c, config/ia64/unwind-ia64.h: Move to
645         ../libgcc/config/ia64.
646         * config/ia64/t-hpux (LIB2ADDEH): Remove.
647         * config/ia64/t-ia64 (LIB2ADDEH): Remove.
648         * config/ia64/t-vms (LIB2ADDEH): Remove.
649         * config/ia64/vms.h (UNW_IVMS_MODE,
650         MD_UNW_COMPATIBLE_PERSONALITY_P): Remove.
651         * config/picochip/t-picochip (LIB2ADDEH): Remove.
652         * config/rs6000/aix.h (R_LR, MD_FROB_UPDATE_CONTEXT): Remove.
653         * config/rs6000/t-darwin (LIB2ADDEH): Remove.
654         * config/rs6000/darwin-fallback.c: Move to ../libgcc/config/rs6000.
655         * config/sh/t-sh ($(T)unwind-dw2-Os-4-200.o): Use
656         $(srcdir)/../libgcc to refer to unwinder sources.
657         * config/spu/t-spu-elf (LIB2ADDEH): Remove.
658         * config/t-darwin (LIB2ADDEH): Remove.
659         * config/t-freebsd (LIB2ADDEH): Remove.
660         * config/t-libunwind (LIB2ADDEH, LIB2ADDEHSTATIC): Remove.
661         * config/t-libunwind-elf: Move to ../libgcc/config.
662         * config/t-linux (LIB2ADDEH): Remove.
663         * config/t-sol2 (LIB2ADDEH): Remove.
664         * config/xtensa/t-xtensa (LIB2ADDEH): Remove.
665         * system.h (MD_FROB_UPDATE_CONTEXT): Poison.
666
667 2011-08-05  H.J. Lu  <hongjiu.lu@intel.com>
668
669         * config/i386/i386.c (processor_alias_table): Add core-avx-i.
670
671         * doc/invoke.texi: Document core-avx-i.
672
673 2011-08-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
674
675         * tsystem.h (CONST_CAST2, CONST_CAST): Define.
676
677 2011-08-05  Ira Rosen  <ira.rosen@linaro.org>
678
679         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use the
680         result of multiple results reduction when extracting the final
681         value using scalar code.
682
683 2011-08-05  Richard Guenther  <rguenther@suse.de>
684
685         PR tree-optimization/49984
686         * tree-vrp.c (extract_range_from_binary_expr_1): Handle BIT_XOR_EXPR.
687
688 2011-08-05  Richard Guenther  <rguenther@suse.de>
689
690         * tree-vrp.c (zero_nonzero_bits_from_vr): Make sure to always
691         return true for constant integer ranges.
692         (extract_range_from_binary_expr_1): Simplify BIT_AND_EXPR and
693         BIT_IOR_EXPR handling.
694
695 2011-08-04  Kai Tietz  <ktietz@redhat.com>
696
697         * config/i386/i386.c (setup_incoming_varargs_ms_64): Set
698         ix86_varargs_gpr_size and ix86_varargs_fpr_size to zero.
699
700 2011-08-04  Ira Rosen  <ira.rosen@linaro.org>
701
702         * tree-vectorizer.h (struct _stmt_vec_info): Add new field for
703         pattern def statement, and its access macro.
704         (NUM_PATTERNS): Set to 5.
705         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
706         pattern def statement.
707         (vect_transform_loop): Likewise.
708         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add new
709         function vect_recog_over_widening_pattern ().
710         (vect_operation_fits_smaller_type): New function.
711         (vect_recog_over_widening_pattern, vect_mark_pattern_stmts):
712         Likewise.
713         (vect_pattern_recog_1): Move the code that marks pattern
714         statements to vect_mark_pattern_stmts (), and call it.  Update
715         documentation.
716         * tree-vect-stmts.c (vect_supportable_shift): New function.
717         (vect_analyze_stmt): Handle pattern def statement.
718         (new_stmt_vec_info): Initialize pattern def statement.
719
720 2011-08-04  Richard Henderson  <rth@redhat.com>
721
722         PR target/49964
723         * config/i386/i386.c (ix86_expand_call): Don't create nested
724         PARALLELs for TARGET_VZEROUPPER.
725         (ix86_split_call_vzeroupper): Fix extraction of the original call.
726         * config/i386/i386.md (*call_rex64_ms_sysv_vzeroupper): Don't
727         recognize nested PARALLELs.
728         (*call_pop_vzeroupper, *sibcall_pop_vzeroupper,
729         *call_value_rex64_ms_sysv_vzeroupper, *call_value_pop_vzeroupper,
730         *sibcall_value_pop_vzeroupper): Likewise.
731
732 2011-08-04  Richard Henderson  <rth@redhat.com>
733
734         PR middle-end/49968
735         * calls.c (expand_call): Use fixup_args_size_notes for
736         emit_stack_restore.
737         * expr.c (fixup_args_size_notes): Allow STACK_POINTER_REGNUM sets
738         in non-standard modes.
739
740 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
741
742         * gcc.c (self_spec): New variable.
743         (static_specs): Add self_spec.
744         (main): Call do_self_spec on "self_spec" specs after reading
745         user specs files.  Move compare_debug handling right after that.
746
747 2011-08-04  Richard Guenther  <rguenther@suse.de>
748
749         * tree-vrp.c (vrp_expr_computes_nonnegative): Remove.
750         (value_range_nonnegative_p): New function.
751         (ssa_name_nonnegative_p): Use it.
752         (value_range_constant_singleton): New function.
753         (op_with_constant_singleton_value_range): Use it.
754         (extract_range_from_binary_expr_1): New function, split out from ...
755         (extract_range_from_binary_expr): ... this.  Remove fallback
756         constant folding done here.
757
758 2011-08-04  Richard Guenther  <rguenther@suse.de>
759
760         PR tree-optimization/49806
761         * tree-vrp.c (op_with_boolean_value_range_p): New function.
762         (simplify_truth_ops_using_ranges): Simplify.  Allow inserting
763         a new statement for a final conversion to bool.
764
765 2011-08-04  Romain Geissler  <romain.geissler@gmail.com>
766
767         * gengtype-state.c: Include "bconfig.h" if
768         GENERATOR_FILE is defined, "config.h" otherwise.
769         * gengtype.c: Likewise.
770         * gengtype-lex.l: Likewise.
771         * gengtype-parse.c: Likewise.
772         * Makefile.in (gengtype-lex.o-warn): New variable.
773         (plugin_resourcesdir): Likewise.
774         (plugin_bindir): Likewise.
775         (plugin_includedir): Use $(plugin_resourcesdir) as prefix base.
776         (MOSTLYCLEANFILES): Add gengtype$(exeext).
777         (native): Depend on gengtype$(exeext) is $enable_plugin
778         is set to "yes".
779         (gtype.state): Depend on s-gtype. Use temporary file.
780         (gengtype-lex.o): New rule.
781         (gengtype-parse.o): Likewise.
782         (gengtype-state.o): Likewise.
783         (gengtype$(exeext)): Likewise.
784         (install-gengtype): Likewise.
785         (gengtype.o): Likewise.
786         (build/gengtype.o): Depend on version.h.
787         (build/gengtype-state): Depend on double-int.h, version.h,
788         $(HASHTAB_H), $(OBSTACK_H), $(XREGEX_H) and build/errors.o.
789         (install-plugin): Depend on install-gengtype.
790
791 2011-08-04  Jakub Jelinek  <jakub@redhat.com>
792
793         PR middle-end/49905
794         * tree.h (init_attributes): New prototype.
795         * attribs.c (init_attributes): No longer static.
796
797 2011-08-04  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
798
799         * config/arm/arm.c (arm_set_fixed_optab_libfunc): Constify
800         maybe_suffix.
801
802 2011-08-03   David Li  <davidxl@google.com>
803
804         * tree-optimize.c (execute_fixup_cfg): Fix up entry
805         outgoing edge counts after inlining.
806
807 2011-08-03   David Li  <davidxl@google.com>
808
809         * profile.c (compute_branch_probabilities): Compute
810         function frequency after profile annotation.
811
812 2011-08-04  Alan Modra  <amodra@gmail.com>
813
814         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Simplify
815         use_backchain_to_restore_sp initialisation.
816         (rs6000_legitimate_offset_address_p): Simplify offset test.
817
818 2011-08-03  Richard Henderson  <rth@redhat.com>
819
820         * config/spu/spu.md: Use define_c_enum instead of define_constants.
821         (UNSPECV_BLOCKAGE, UNSPECV_LNOP, UNSPECV_SYNC): Rename from UNSPEC_*.
822         (UNSPECV_NOP): New.
823
824 2011-08-03  Richard Henderson  <rth@redhat.com>
825
826         PR target/34888
827         * config/avr/avr.md: New splitter for REG_ARGS_SIZE 0.
828
829 2011-08-03  Jakub Jelinek  <jakub@redhat.com>
830
831         PR tree-optimization/49948
832         * gimple.c (walk_stmt_load_store_addr_ops): Walk CONSTRUCTOR elements.
833
834 2011-08-03  Anatoly Sokolov  <aesok@post.ru>
835
836         * config/m32c/m32c.c (class_sizes): Remove.
837         (reduce_class): Change arguments and return type to reg_class_t.
838         Change type cc var to HARD_REG_SET. Change type best var to
839         reg_class_t. Change type best_size var to unsigned int. Remove
840         initialization class_sizes var. Use reg_class_size array instead
841         of class_sizes. Use reg_class_contents array instead
842         of class_contents.
843
844 2011-08-03  Richard Guenther  <rguenther@suse.de>
845
846         PR middle-end/49958
847         * fold-const.c (fold_binary_loc): Only associate
848         (+ (+ (* a b) c) (* d e)) as (+ (+ (* a b) (* d e)) c) if
849         overflow wraps.
850
851 2011-08-03  Alan Modra  <amodra@gmail.com>
852
853         PR rtl-optimization/49941
854         * jump.c (mark_jump_label): Comment.
855         (mark_jump_label_1): Set JUMP_LABEL for return jumps.
856         * emit-rtl.c (copy_rtx_if_shared_1, copy_insn_1): Leave RETURN shared.
857         (mark_used_flags): Don't mark RETURN.
858
859 2011-08-03  Richard Guenther  <rguenther@suse.de>
860
861         PR tree-optimization/49938
862         * tree-scalar-evolution.c (interpret_loop_phi): Gracefully
863         deal with a POLYNOMIAL_CHREC.
864
865 2011-08-03  Revital Eres  <revital.eres@linaro.org>
866
867         * modulo-sched.c (calculate_stage_count,
868         calculate_must_precede_follow, get_sched_window,
869         try_scheduling_node_in_cycle, remove_node_from_ps): Add
870         declaration.
871         (update_node_sched_params, set_must_precede_follow, optimize_sc):
872         New functions.
873         (reset_sched_times): Call update_node_sched_params.
874         (sms_schedule): Call optimize_sc.
875         (get_sched_window): Change function arguments.
876         (sms_schedule_by_order): Update call to get_sched_window.
877         Call set_must_precede_follow.
878         (calculate_stage_count): Add function argument.
879
880 2011-08-02  Richard Henderson  <rth@redhat.com>
881
882         PR target/49864
883         PR target/49879
884         * reg-notes.def (REG_ARGS_SIZE): New.
885         * calls.c (emit_call_1): Emit REG_ARGS_SIZE for call_pop.
886         (expand_call): Add REG_ARGS_SIZE to emit_stack_restore.
887         * cfgcleanup.c (old_insns_match_p): Don't allow cross-jumping to
888         different stack levels.
889         * combine-stack-adj.c (adjust_frame_related_expr): Remove.
890         (maybe_move_args_size_note): New.
891         (combine_stack_adjustments_for_block): Use it.
892         * combine.c (distribute_notes): Place REG_ARGS_SIZE.
893         * dwarf2cfi.c (dw_cfi_row_struct): Remove args_size member.
894         (dw_trace_info): Add beg_true_args_size, end_true_args_size,
895         beg_delay_args_size, end_delay_args_size, eh_head, args_size_undefined.
896         (cur_cfa): New.
897         (queued_args_size): Remove.
898         (add_cfi_args_size): Assert size is non-negative.
899         (stack_adjust_offset, dwarf2out_args_size): Remove.
900         (dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust): Remove.
901         (notice_args_size, notice_eh_throw): New.
902         (dwarf2out_frame_debug_def_cfa): Use cur_cfa.
903         (dwarf2out_frame_debug_adjust_cfa): Likewise.
904         (dwarf2out_frame_debug_cfa_offset): Likewise.
905         (dwarf2out_frame_debug_expr): Likewise.  Don't stack_adjust_offset.
906         (dwarf2out_frame_debug): Don't handle non-frame-related-p insns.
907         (change_cfi_row): Don't emit args_size.
908         (maybe_record_trace_start_abnormal): Split out from ...
909         (maybe_record_trace_start): Here.  Set args_size_undefined.
910         (create_trace_edges): Update to match.
911         (scan_trace): Handle REG_ARGS_SIZE.
912         (connect_traces): Connect args_size between EH insns.
913         * emit-rtl.c (try_split): Handle REG_ARGS_SIZE.
914         * explow.c (suppress_reg_args_size): New.
915         (adjust_stack_1): Split out from ...
916         (adjust_stack): ... here.
917         (anti_adjust_stack): Use it.
918         (allocate_dynamic_stack_space): Suppress REG_ARGS_SIZE.
919         * expr.c (mem_autoinc_base): New.
920         (fixup_args_size_notes): New.
921         (emit_single_push_insn_1): Rename from emit_single_push_insn.
922         (emit_single_push_insn): New.  Generate REG_ARGS_SIZE.
923         * recog.c (peep2_attempt): Handle REG_ARGS_SIZE.
924         * reload1.c (reload_as_needed): Likewise.
925         * rtl.h (fixup_args_size_notes): Declare.
926
927 2011-08-02  Paolo Carlini  <paolo.carlini@oracle.com>
928
929         PR bootstrap/49914
930         * fold-const.c (fold_plusminus_mult_expr): Use abs_hwi instead
931         of abs.
932         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
933         * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Likewise.
934
935 2011-08-02  Richard Henderson  <rth@redhat.com>
936
937         * config/h8300/h8300.c (push, pop): Return the insn.
938         (h8300_swap_into_er6): Generate correct unwind info.
939         (h8300_swap_out_of_er6): Likewise.
940         * dwarf2cfi.c (def_cfa_1): Clear cfa_cfi if we no longer have a
941         complex cfa expression.
942         (dwarf2out_frame_debug_def_cfa): Allow (plus (mem) (const_int)) too.
943
944 2011-08-02  H.J. Lu  <hongjiu.lu@intel.com>
945
946         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
947
948 2011-08-02  Richard Henderson  <rth@redhat.com>
949
950         PR target/49878
951         * config/h8300/h8300.c (h8300_move_ok): New.
952         * config/h8300/h8300-protos.h: Declare it.
953         * config/h8300/h8300.md (P): New mode iterator.
954         (*movqi_h8300, *movqi_h8300hs, movqi): Use h8300_move_ok.
955         (*movqi_h8sx, *movhi_h8300, *movhi_h8300hs, movhi): Likewise.
956         (movsi, *movsi_h8300, *movsi_h8300hs): Likewise.
957         (*pushqi1_h8300): Rename from pushqi1_h8300; use PRE_MODIFY.
958         (*pushqi1_h8300hs_<P>): Macroize from pushqi1_h8300hs_advanced
959         and pushqi1_h8300hs_normal; use PRE_MODIFY and
960         register_no_sp_elim_operand.
961         (*pushhi1_h8300hs_<P>): Similarly.
962         (pushqi1, pushhi1, pushhi1_h8300): Remove.
963         * config/h8300/predicates.md (register_no_sp_elim_operand): New.
964
965 2011-08-02  Richard Henderson  <rth@redhat.com>
966
967         PR target/49881
968         * config/avr/avr.md (push<MPUSH>1): Don't constrain the operand.
969
970 2011-08-02  Jakub Jelinek  <jakub@redhat.com>
971
972         * c-parser.c (enum c_parser_prec): New enum, moved from within
973         c_parser_binary_expression.
974         (c_parser_binary_expression): Add PREC argument.  Stop parsing
975         if operator has lower or equal precedence than PREC.
976         (c_parser_conditional_expression, c_parser_omp_for_loop): Adjust
977         callers.
978         (c_parser_omp_atomic): Handle parsing OpenMP 3.1 atomics.
979         Adjust c_finish_omp_atomic caller.
980         (c_parser_omp_taskyield): New function.
981         (c_parser_pragma): Handle PRAGMA_OMP_TASKYIELD.
982         (c_parser_omp_clause_name): Handle final and mergeable clauses.
983         (c_parser_omp_clause_final, c_parser_omp_clause_mergeable): New
984         functions.
985         (c_parser_omp_all_clauses): Handle PRAGMA_OMP_CLAUSE_FINAL
986         and PRAGMA_OMP_CLAUSE_MERGEABLE.
987         (OMP_TASK_CLAUSE_MASK): Allow final and mergeable clauses.
988         (c_parser_omp_clause_reduction): Handle min and max.
989         * c-typeck.c (c_finish_omp_clauses): Don't complain about
990         const qualified predetermined vars in firstprivate clause.
991         andle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
992         Handle MIN_EXPR and MAX_EXPR.
993         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_FINAL
994         and OMP_CLAUSE_MERGEABLE.
995         (dump_generic_node): Handle OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD
996         and OMP_ATOMIC_CAPTURE_NEW.
997         * tree.c (omp_clause_num_ops): Add OMP_CLAUSE_FINAL and
998         OMP_CLAUSE_MERGEABLE.
999         (omp_clause_code_name): Likewise.
1000         (walk_tree_1): Handle OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
1001         * tree.h (enum omp_clause_code): Add OMP_CLAUSE_FINAL
1002         and OMP_CLAUSE_MERGEABLE.
1003         (OMP_CLAUSE_FINAL_EXPR): Define.
1004         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE_FINAL and
1005         OMP_CLAUSE_MERGEABLE.
1006         (expand_task_call): Likewise.
1007         (expand_omp_atomic_load, expand_omp_atomic_store): New functions.
1008         (expand_omp_atomic_fetch_op): Handle cases where old or new
1009         value is needed afterwards.
1010         (expand_omp_atomic): Call expand_omp_atomic_load resp.
1011         expand_omp_atomic_store.
1012         * gimplify.c (gimplify_omp_atomic, gimplify_expr): Handle
1013         OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD and OMP_ATOMIC_CAPTURE_NEW.
1014         (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
1015         OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
1016         * tree-nested.c (convert_nonlocal_omp_clauses,
1017         convert_local_omp_clauses): Likewise.
1018         * tree.def (OMP_ATOMIC_READ, OMP_ATOMIC_CAPTURE_OLD,
1019         OMP_ATOMIC_CAPTURE_NEW): New.
1020         * gimple.h (GF_OMP_ATOMIC_NEED_VALUE): New.
1021         (gimple_omp_atomic_need_value_p, gimple_omp_atomic_set_need_value):
1022         New inlines.
1023         * omp-builtins.def (BUILT_IN_GOMP_TASKYIELD): New builtin.
1024         * doc/generic.texi: Mention OMP_CLAUSE_COLLAPSE,
1025         OMP_CLAUSE_UNTIED, OMP_CLAUSE_FINAL and OMP_CLAUSE_MERGEABLE.
1026
1027 2011-08-02  Kai Tietz  <ktietz@redhat.com>
1028
1029         * gimple.c (canonicalize_cond_expr_cond): Handle cast from
1030         boolean-type.
1031         (ssa_forward_propagate_and_combine): Interprete result of
1032         forward_propagate_comparison.
1033         * gcc/gimple-fold.c (fold_gimple_assign): Add canonicalization for
1034         boolean-typed operands for comparisons.
1035
1036 2011-08-02  Georg-Johann Lay  <avr@gjlay.de>
1037
1038         * config/avr/libgcc.S: Gather related function in the
1039         same input section.
1040         (__mulqihi3, __mulqihi3, __divmodqi4, __divmodhi4, __udivmodsi4,
1041         __divmodsi4): Use XCALL/XJMP instead of rcall/rjmp for external
1042         references.
1043         (__udivmodqi4, __divmodqi4, __udivmodhi4, __divmodhi4,
1044         __udivmodsi4, __divmodsi4, __prologue_saves__,
1045         __epilogue_restores__, _exit, __tablejump2__, __tablejump__,
1046         __do_copy_data, __do_clear_bss, __do_global_ctors,
1047         __do_global_dtors, __tablejump_elpm__): Enclose in DEFUN/ENDF.
1048
1049 2011-08-02  Uros Bizjak  <ubizjak@gmail.com>
1050
1051         PR target/47766
1052         * doc/md.texi (stack_protect_set): The pattern moves ptr_mode value.
1053         (stack_protect_test): The pattern compares ptr_mode value.
1054
1055 2011-08-02  Alan Modra  <amodra@gmail.com>
1056
1057         * config/rs6000/rs6000.c (rs6000_emit_prologue): Add REG_CFA_RESTORE
1058         note for save_LR_around_toc_setup sequence.
1059
1060 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1061
1062         * config/i386/lzcntintrin.h (__lzcnt64): Replace long with long long.
1063
1064 2011-08-01  Sebastian Pop  <sebastian.pop@amd.com>
1065             Joseph Myers  <joseph@codesourcery.com>
1066
1067         * Makefile.in (hwint.o): Depend on DIAGNOSTIC_CORE_H.
1068         * hwint.c: Include diagnostic-core.h.
1069         (abs_hwi): New.
1070         (gcd): Moved here...
1071         (pos_mul_hwi): New.
1072         (mul_hwi): New.
1073         (least_common_multiple): Moved here...
1074         * hwint.h (gcd): ... from here.
1075         (least_common_multiple): ... from here.
1076         (HOST_WIDE_INT_MIN): New.
1077         (HOST_WIDE_INT_MAX): New.
1078         (abs_hwi): Declared.
1079         (gcd): Declared.
1080         (pos_mul_hwi): Declared.
1081         (mul_hwi): Declared.
1082         (least_common_multiple): Declared.
1083         * omega.c (check_pos_mul): Removed.
1084         (check_mul): Removed.
1085         (omega_solve_geq): Use pos_mul_hwi instead of check_pos_mul and
1086         mul_hwi instead of check_mul.
1087
1088 2011-08-01  Richard Henderson  <rth@redhat.com>
1089
1090         PR target/49881
1091         * config/avr/avr.h (PUSH_ROUNDING): New.
1092         * config/avr/avr.md (pushqi1): Rename from *pushqi.
1093         (*pushhi, *pushsi, *pushsf): Remove.
1094         (MPUSH): New mode iterator.
1095         (push<MPUSH>1): New expander.
1096
1097 2011-08-01  Anatoly Sokolov  <aesok@post.ru>
1098
1099         * config/mmix/mmix.h (PREFERRED_RELOAD_CLASS,
1100         PREFERRED_OUTPUT_RELOAD_CLASS): Remove macro.
1101         * config/mmix/mmix-protos.h (mmix_preferred_reload_class,
1102         mmix_preferred_output_reload_class): Remove.
1103         * config/mmix/mmix.c (mmix_preferred_reload_class,
1104         mmix_preferred_output_reload_class): Make static. Change rclass
1105         argument and return type to reg_class_t.
1106         (TARGET_PREFERRED_RELOAD_CLASS,
1107         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1108
1109 2011-08-01  Joern Rennecke  <joern.rennecke@embecosm.com>
1110
1111         * mode-switching.c (optimize_mode_switching): Fix bug in MODE_AFTER
1112         handling.
1113
1114 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1115
1116         PR target/47766
1117         * config/i386/i386.md (PTR): New.
1118         (stack_protect_set: Check TARGET_LP64 instead of TARGET_64BIT.
1119         (stack_protect_test): Likewise.
1120         (stack_protect_set_<mode>): Replace ":P" with ":PTR".
1121         (stack_tls_protect_set_<mode>): Likewise.
1122         (stack_tls_protect_test_<mode>): Likewise.
1123
1124 2011-08-01  Uros Bizjak  <ubizjak@gmail.com>
1125
1126         PR target/49927
1127         * config/i386/i386.c (ix86_address_subreg_operand): New.
1128         (ix86_decompose_address): Use ix86_address_subreg_operand.
1129         (ix86_legitimate_address_p): Do not assert that subregs satisfy
1130         register_no_elim_operand in DImode.
1131
1132 2011-08-01  Ira Rosen  <ira.rosen@linaro.org>
1133
1134         PR tree-optimization/49926
1135         * tree-vect-loop.c (vect_is_slp_reduction): Check that a statement
1136         in a chain doesn't have uses both inside and outside the loop.
1137
1138 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
1139
1140         * config/avr/avr.h (mcu_type_s): Add errata_skip field.
1141         * config/avr/avr-devices.c (avr_mcu_types): Use it.
1142         * config/avr/avr-mcus.def (AVR_MCU): Use it.
1143         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it to builtin
1144         define __AVR_ERRATA_SKIP__ and __AVR_ERRATA_SKIP_JMP_CALL__.
1145         * config/avr/libgcc.S (__mulshisi3, __ffshi2, __fmulsu_exit):
1146         Use __AVR_ERRATA_SKIP_JMP_CALL__ instead of __AVR_HAVE_JMP_CALL__
1147         to detect if XJMP must not be skipped.
1148
1149 2011-08-02  Alan Modra  <amodra@gmail.com>
1150
1151         * config/rs6000/rs6000-protos.h (rs6000_save_toc_in_prologue_p):
1152         Delete.
1153         * config/rs6000/rs6000.c (rs6000_save_toc_in_prologue_p): Make static.
1154         (rs6000_emit_prologue): Don't prematurely return when
1155         TARGET_SINGLE_PIC_BASE.  Don't emit eh_frame info in
1156         save_toc_in_prologue case.
1157         (rs6000_call_indirect_aix): Only disallow save_toc_in_prologue for
1158         calls_alloca.
1159
1160 2011-08-01  Georg-Johann Lay  <avr@gjlay.de>
1161
1162         * config/avr/avr-devices.c: Delete SVN property svn:executable.
1163         * config/avr/predicates.md: Ditto.
1164         * config/avr/driver-avr.c: Ditto.
1165         * config/avr/genopt.sh: Set SVN property svn:executable to *.
1166
1167 2011-08-01  H.J. Lu  <hongjiu.lu@intel.com>
1168
1169         * calls.c (emit_library_call_value_1): Declare size only if
1170         BLOCK_REG_PADDING is defined.
1171
1172 2011-08-01  Kirill Yukhin  <kirill.yukhin@intel.com>
1173
1174         PR target/49547
1175         * config.gcc (i[34567]86-*-*): Replace abmintrin.h with lzcntintrin.h.
1176         (x86_64-*-*): Likewise.
1177         * config/i386/i386.opt (mlzcnt): New.
1178         * config/i386/abmintrin.h: File removed.
1179         (__lzcnt_u16, __lzcnt, __lzcnt_u64): Moved to ...
1180         * config/i386/lzcntintrin.h: ... here.  New file.
1181         (__lzcnt): Rename to ...
1182         (__lzcnt32): ... this.
1183         * config/i386/bmiintrin.h (head): Update copyright year.
1184         (__lzcnt_u16): Removed.
1185         (__lzcnt_u32): Likewise.
1186         (__lzcnt_u64): Likewise.
1187         * config/i386/x86intrin.h: Include lzcntintrin.h when __LZCNT__
1188         is defined, remove abmintrin.h.
1189         * config/i386/cpuid.h (bit_LZCNT): New.
1190         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
1191         LZCNT feature.
1192         * config/i386/i386-c.c (ix86_target_macros_internal): Define
1193         __LZCNT__ if needed.
1194         * config/i386/i386.c (ix86_target_string): New option -mlzcnt.
1195         (ix86_option_override_internal): Handle LZCNT option.
1196         (ix86_valid_target_attribute_inner_p): Likewise.
1197         (struct builtin_description bdesc_args) <IX86_BUILTIN_CLZS>: Update.
1198         * config/i386/i386.h (TARGET_LZCNT): New.
1199         (CLZ_DEFINED_VALUE_AT_ZERO): Update.
1200         * config/i386/i386.md (clz<mode>2): Update insn constraint.
1201         (clz<mode>2_lzcnt): Likewise.
1202         * doc/invoke.texi: Mention -mlzcnt option.
1203         * doc/extend.texi: Likewise.
1204
1205 2011-08-01  Julian Brown  <julian@codesourcery.com>
1206
1207         * configure.ac (fixed-point): Add ARM support.
1208         * configure: Regenerate.
1209         * config/arm/arm.c (arm_fixed_mode_set): New struct.
1210         (arm_set_fixed_optab_libfunc): New.
1211         (arm_set_fixed_conv_libfunc): New.
1212         (arm_init_libfuncs): Initialise fixed-point helper libfuncs with
1213         ARM-specific names.
1214         (aapcs_libcall_value): Return sub-word-size fixed-point libcall
1215         return values in SImode.
1216         (arm_return_in_msb): Return fixed-point types in the msb.
1217         (arm_pad_reg_upwards, arm_pad_arg_upwards): Pad fixed-point types
1218         upwards.
1219         (arm_scalar_mode_supported_p): Support fixed-point modes.
1220         (arm_vector_mode_supported_p): Support vector fixed-point modes.
1221         * config/arm/arm.h (SHORT_FRACT_TYPE_SIZE, FRACT_TYPE_SIZE)
1222         (LONG_FRACT_TYPE_SIZE, LONG_LONG_FRACT_TYPE_SIZE)
1223         (SHORT_ACCUM_TYPE_SIZE, ACCUM_TYPE_SIZE, LONG_ACCUM_TYPE_SIZE)
1224         (LONG_LONG_ACCUM_TYPE_SIZE, MAX_FIXED_MODE_SIZE): Define.
1225         * config/arm/iterators.md (FIXED, ADDSUB, UQADDSUB, QADDSUB, QMUL):
1226         New mode iterators.
1227         (qaddsub_suf): New mode attribute.
1228         * config/arm/arm-modes.def (FRACT, UFRACT, ACCUM, UACCUM): Declare
1229         vector modes.
1230         * config/arm/predicates.md (sat_shift_operator): New predicate.
1231         * config/arm/arm-fixed.md: New.
1232         * config/arm/arm.md: Include arm-fixed.md.
1233         * config/arm/t-arm (MD_INCLUDES): Add arm-fixed.md.
1234
1235 2011-08-01  Julian Brown  <julian@codesourcery.com>
1236
1237         * calls.c (emit_library_call_value_1): Support padding for libcall
1238         arguments and return values.
1239         * config/arm/arm.c (arm_pad_arg_upward): Pad half-float values
1240         downwards in big-endian mode.
1241
1242 2011-08-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1243
1244         PR debug/49887
1245         * config/sol2.c (solaris_code_end): Rename to solaris_file_end.
1246         * config/sol2-protos.h: Likewise.
1247         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Don't call
1248         solaris_code_end.
1249         * config/i386/sol2.h [!USE_GAS] (TARGET_ASM_FILE_END): Redefine.
1250         * config/sparc/sparc.c (sparc_file_end) [TARGET_SOLARIS]: Call
1251         solaris_file_end.
1252         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Remove.
1253
1254 2011-08-01  Julian Brown  <julian@codesourcery.com>
1255
1256         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Support FIXED_CST.
1257
1258 2011-08-01  Julian Brown  <julian@codesourcery.com>
1259
1260         * final.c (output_addr_const): Print fixed-point constants as
1261         decimal not hex.
1262
1263 2011-08-01  Richard Guenther  <rguenther@suse.de>
1264
1265         * stor-layout.c (initialize_sizetypes): Properly sign-extend
1266         bitsiztype TYPE_MAX_VALUE.
1267
1268 2011-08-01  Julian Brown  <julian@codesourcery.com>
1269
1270         * optabs.c (prepare_cmp_insn): Use correct biasing for fixed-point
1271         comparison helpers.
1272
1273 2011-07-31  Richard Henderson  <rth@redhat.com>
1274
1275         * config/h8300/crti.asm: Add flags to .section directive.
1276         * config/h8300/crtn.asm: Likewise.
1277
1278 2011-07-31  Richard Henderson  <rth@redhat.com>
1279
1280         * stor-layout.c (initialize_sizetypes): Handle unsigned short.
1281         * tree.c (build_common_tree_nodes): Likewise.
1282
1283 2011-07-31  Kaz Kojima  <kkojima@gcc.gnu.org>
1284
1285         PR target/49880
1286         * config/sh/sh.md (udivsi3_i1): Enable for TARGET_DIVIDE_CALL_DIV1.
1287         (divsi3_i1): Likewise.
1288
1289 2011-07-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1290
1291         PR tree-optimization/49749
1292         * tree-ssa-reassoc.c (get_rank): New forward declaration.
1293         (PHI_LOOP_BIAS): New macro.
1294         (phi_rank): New function.
1295         (loop_carried_phi): Likewise.
1296         (propagate_rank): Likewise.
1297         (get_rank): Add calls to phi_rank and propagate_rank.
1298
1299 2011-07-31  H.J. Lu  <hongjiu.lu@intel.com>
1300
1301         * config/i386/x86-64.h (SIZE_TYPE): Check TARGET_LP64 instead
1302         of TARGET_64BIT.
1303         (PTRDIFF_TYPE): Likewise.
1304
1305 2011-07-31  Uros Bizjak  <ubizjak@gmail.com>
1306
1307         PR target/49920
1308         * config/i386/i386.md (strset): Do not expand strset_singleop
1309         when %eax or $edi are fixed.
1310         (*strsetdi_rex_1): Disable when %eax or %edi are fixed.
1311         (*strsetsi_1): Ditto.
1312         (*strsethi_1): Ditto.
1313         (*strsetqi_1): Ditto.
1314         (*rep_stosdi_rex64): Disable when %eax, %ecx or %edi are fixed.
1315         (*rep_stossi): Ditto.
1316         (*rep_stosqi): Ditto.
1317         (*strlenqi_1): Ditto.
1318         (cmpstrnsi): Also fail when %ecx is fixed.
1319         (*cmpstrnqi_nz_1): Disable when %ecx, %esi or %edi are fixed.
1320         (*cmpstrnqi_1): Ditto.
1321         (*strmovdi_rex_1): Disable when %esi or %edi are fixed.
1322         (*strmovsi_1): Ditto.
1323         (*strmovhi_1): Ditto.
1324         (*strmovqi_1): Ditto.
1325         (*rep_movdi_rex64): Disable when %ecx, %esi or %edi are fixed.
1326         (*rep_movsi): Ditto.
1327         (*rep_movqi): Ditto.
1328
1329 2011-07-31  Mikael Pettersson  <mikpe@it.uu.se>
1330
1331         PR target/47908
1332         * config/m68k/m68k.c (m68k_override_options_after_change): New function.
1333         Disable instruction scheduling for non-ColdFire targets.
1334         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
1335
1336 2011-07-31  Revital Eres  <revital.eres@linaro.org>
1337
1338         * ddg.c (create_ddg_dep_from_intra_loop_link): Remove the creation
1339         of anti-dep edge from a branch.
1340         (add_cross_iteration_register_deps): Create anti-dep edge from
1341         a branch.
1342
1343 2011-07-31  Revital Eres  <revital.eres@linaro.org>
1344
1345         * modulo-sched.c: Change comment.
1346         (reset_sched_times): Fix print message.
1347         (print_partial_schedule): Add print info.
1348
1349 2011-07-31  Tom de Vries  <tom@codesourcery.com>
1350
1351         PR middle-end/43513
1352         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Use max of
1353         get_object_alignment and TYPE_ALIGN.
1354
1355 2011-07-30  Tom de Vries  <tom@codesourcery.com>
1356
1357         PR middle-end/43513
1358         * tree-ssa-dce.c (ref_may_be_aliased): Add assert.
1359         (propagate_necessity): Handle WITH_SIZE_EXPR call arg.
1360
1361 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1362
1363         * config/mips/driver-native.c [__sgi__]: Include <invent.h>,
1364         <sys/sbd.h>.
1365         (cpu_types): New array.
1366         (cputype): New function.
1367         (host_detect_local_cpu): Only define buf, f if !__sgi__.
1368         Use scaninvent instead of /proc/cpuinfo if __sgi__.
1369         * config.host: Also use driver-native.o, mips/x-native on
1370         mips-sgi-irix*.
1371         * config/mips/iris6.h [__mips__] (host_detect_local_cpu): Declare.
1372         (EXTRA_SPEC_FUNCTIONS, MARCH_MTUNE_NATIVE_SPECS): Define.
1373         (DRIVER_SELF_SPECS): Add MARCH_MTUNE_NATIVE_SPECS.
1374
1375 2011-07-29  Jakub Jelinek  <jakub@redhat.com>
1376
1377         PR middle-end/49897
1378         PR middle-end/49898
1379         * omp-low.c (use_pointer_for_field): If disallowing copy-in/out
1380         in nested parallel and outer is a gimple_reg, mark it as addressable
1381         and set its bit in task_shared_vars bitmap too.
1382
1383 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
1384
1385         * config/i386/predicates.md (tp_or_register_operand): Remove predicate.
1386
1387 2011-07-29  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1388
1389         * config/alpha/driver-alpha.c (IMPLVER_EV4_FAMILY,
1390         IMPLVER_EV5_FAMILY, IMPLVER_EV6_FAMILY, IMPLVER_EV7_FAMILY): Define.
1391         (AMASK_BWX, AMASK_FIX, AMASK_CIX, AMASK_MVI, AMASK_PRECISE,
1392         AMASK_LOCKPFTCHOK): Define.
1393         (host_detect_local_cpu): Remove buf, f, cpu_names.
1394         Define cpu_types, implver, amask.
1395         Use __builtin_alpha_implver, __builtin_alpha_amask to determine
1396         native CPU.
1397         * config.host: Also use driver-alpha.o, alpha/x-alpha on
1398         alpha*-dec-osf*.
1399         * config/alpha/osf5.h [__alpha__ || __alpha]
1400         (host_detect_local_cpu): Declare.
1401         (EXTRA_SPEC_FUNCTIONS, MCPU_MTUNE_NATIVE_SPECS)
1402         (DRIVER_SELF_SPECS): Define.
1403
1404 2011-07-29  Uros Bizjak  <ubizjak@gmail.com>
1405
1406         PR target/47715
1407         * config/i386/i386.md (*load_tp_x32): New.
1408         (*load_tp_x32_zext): Ditto.
1409         (*add_tp_x32): Ditto.
1410         (*add_tp_x32_zext): Ditto.
1411         (*load_tp_<mode>): Disable for TARGET_X32 targets.
1412         (*add_tp_<mode>): Ditto.
1413         * config/i386/i386.c (get_thread_pointer): Load thread pointer in
1414         ptr_mode and convert to Pmode if needed.
1415
1416 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
1417
1418         PR target/49687
1419         * config/avr/avr.md (mulsi3, *mulsi3, mulu<mode>si3,
1420         muls<mode>si3, mulohisi3, mulhisi3, umulhisi3, usmulhisi3,
1421         *<any_extend:extend_prefix><any_extend2:extend_prefix>mul<QIHI:mode><QIHI2:mode>si3):
1422         Add X to register footprint: Clobber r26/r27.
1423
1424 2011-07-29  Richard Guenther  <rguenther@suse.de>
1425
1426         * builtins.c (fold_builtin_signbit): Build the comparison
1427         with a proper type.
1428
1429 2011-07-29  Richard Guenther  <rguenther@suse.de>
1430
1431         PR tree-optimization/49893
1432         * tree-predcom.c (suitable_reference_p): Volatile references
1433         are not suitable.
1434
1435 2011-07-29  Georg-Johann Lay  <avr@gjlay.de>
1436
1437         PR target/49313
1438         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
1439         (__ctzsi2): Result for 0 may be undefined.
1440         (__ctzhi2): Result for 0 may be undefined.
1441         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
1442         (__popcountsi2): Ditto. And don't clobber r26.
1443         (__popcountdi2): Ditto. And don't clobber r27.
1444         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
1445         (parityhi2): New expand.
1446         (paritysi2): New expand.
1447         (popcounthi2): New expand.
1448         (popcountsi2): New expand.
1449         (clzhi2): New expand.
1450         (clzsi2): New expand.
1451         (ctzhi2): New expand.
1452         (ctzsi2): New expand.
1453         (ffshi2): New expand.
1454         (ffssi2): New expand.
1455         (copysignsf3): New insn.
1456         (bswapsi2): New expand.
1457         (*parityhi2.libgcc): New insn.
1458         (*parityqihi2.libgcc): New insn.
1459         (*paritysihi2.libgcc): New insn.
1460         (*popcounthi2.libgcc): New insn.
1461         (*popcountsi2.libgcc): New insn.
1462         (*popcountqi2.libgcc): New insn.
1463         (*popcountqihi2.libgcc): New insn-and-split.
1464         (*clzhi2.libgcc): New insn.
1465         (*clzsihi2.libgcc): New insn.
1466         (*ctzhi2.libgcc): New insn.
1467         (*ctzsihi2.libgcc): New insn.
1468         (*ffshi2.libgcc): New insn.
1469         (*ffssihi2.libgcc): New insn.
1470         (*bswapsi2.libgcc): New insn.
1471
1472 2011-07-29  Richard Guenther  <rguenther@suse.de>
1473
1474         * tree-vrp.c (get_value_range): Only set parameter default
1475         definitions to varying, leave others at undefined.
1476         (extract_range_from_binary_expr): Fix undefined handling.
1477         (vrp_visit_phi_node): Handle merged undefined state.
1478
1479 2011-07-29  Wei Guozhi  <carrot@google.com>
1480
1481         PR rtl-optimization/49799
1482         * combine.c (make_compound_operation): Check if the bit field is valid
1483         before change it to bit field extraction.
1484
1485 2011-07-29  Bernd Schmidt  <bernds@codesourcery.com>
1486
1487         PR rtl-optimization/49891
1488         * cfgrtl.c (force_nonfallthru_and_redirect): Set JUMP_LABEL for
1489         newly created returnjumps.
1490
1491 2011-07-28  DJ Delorie  <dj@redhat.com>
1492
1493         * expr.c (expand_expr_addr_expr_1): Detect a user request for a
1494         local frame in a naked function, and produce a suitable error for
1495         that specific case.
1496
1497         * config/m32c/m32c.c (m32c_secondary_reload_class): Allow PSI
1498         registers to be reloaded in HI classes when the target is HI.
1499
1500 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1501
1502         * graphite-clast-to-gimple.c: Replace v1, v2, lb, ub with
1503         bound_one, bound_two.
1504
1505 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1506
1507         PR middle-end/48648
1508         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Handle
1509         CLAST assignments.
1510         (translate_clast): Same.
1511         (translate_clast_assignment): New.
1512
1513 2011-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1514
1515         PR tree-optimization/49876
1516         * sese.c (rename_uses): Do not return false on gloog_error: set
1517         the new_expr to integer_zero_node and continue code generation.
1518         (graphite_copy_stmts_from_block): Remove early exit on gloog_error.
1519
1520 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
1521
1522         PR debug/49846
1523         * var-tracking.c (prepare_call_arguments): For non-MODE_INT stack
1524         arguments also check if they aren't initialized with a MODE_INT
1525         mode of the same size.
1526
1527 2011-07-28  Aldy Hernandez  <aldyh@redhat.com>
1528
1529         * expr.c (get_bit_range): Handle *MEM_REF's.
1530
1531 2011-07-28  Bernd Schmidt  <bernds@codesourcery.com>
1532
1533         * rtlanal.c (tablejump_p): False for returns.
1534         * reorg.c (first_active_target_insn): New static function.
1535         (find_end_label): Set JUMP_LABEL for a new returnjump.
1536         (optimize_skip, get_jump_flags, rare_destination,
1537         mostly_true_jump, get_branch_condition,
1538         steal_delay_list_from_target, own_thread_p,
1539         fill_simple_delay_slots, follow_jumps, fill_slots_from_thread,
1540         fill_eager_delay_slots, relax_delay_slots, make_return_insns,
1541         dbr_schedule): Adjust to handle ret_rtx in JUMP_LABELs.
1542         * jump.c (delete_related_insns): Likewise.
1543         (jump_to_label_p): New function.
1544         (redirect_target): New static function.
1545         (redirect_exp_1): Use it.  Adjust to handle ret_rtx in JUMP_LABELS.
1546         (redirect_jump_1): Assert that the new label is nonnull.
1547         (redirect_jump): Likewise.
1548         (redirect_jump_2): Check for ANY_RETURN_P rather than NULL labels.
1549         * ifcvt.c (find_if_case_1): Take care when redirecting jumps to the
1550         exit block.
1551         (dead_or_predicable): Change NEW_DEST arg to DEST_EDGE.  All callers
1552         changed.  Ensure that the right label is passed to redirect_jump.
1553         * function.c (emit_return_into_block,
1554         thread_prologue_and_epilogue_insns): Ensure new returnjumps have
1555         ret_rtx in their JUMP_LABEL.
1556         * print-rtl.c (print_rtx): Handle ret_rtx in a JUMP_LABEL.
1557         * emit-rtl.c (skip_consecutive_labels): Allow the caller to
1558         pass ret_rtx as label.
1559         * cfglayout.c (fixup_reorder_chain): Use
1560         force_nonfallthru_and_redirect rather than force_nonfallthru.
1561         (duplicate_insn_chain): Copy JUMP_LABELs for returns.
1562         * rtl.h (ANY_RETURN_P): New macro.
1563         (jump_to_label_p): Declare.
1564         * resource.c (find_dead_or_set_registers): Handle ret_rtx in
1565         JUMP_LABELs.
1566         (mark_target_live_regs): Likewise.
1567         * basic-block.h (force_nonfallthru_and_redirect): Declare.
1568         * cfgrtl.c (force_nonfallthru_and_redirect): No longer static.
1569         * config/alpha/alpha.c (alpha_tablejump_addr_vec,
1570         alpha_tablejump_best_label): Remove functions.
1571         * config/alpha/alpha-protos.c (alpha_tablejump_addr_vec,
1572         alpha_tablejump_best_label): Remove declarations.
1573         * config/sh/sh.c (barrier_align, split_branches): Adjust for
1574         ret_rtx in JUMP_LABELs.
1575         * config/arm/arm.c (is_jump_table): Likewise.
1576
1577 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
1578
1579         * config/i386/predicates.md (pic_32bit_opreand): Do not define as
1580         special predicate.  Remove explicit mode checks.
1581
1582 2011-07-28  Jakub Jelinek  <jakub@redhat.com>
1583
1584         * dwarf2out.c (resolve_addr): For -gdwarf-2 don't optimize
1585         DW_AT_data_member_location containing just DW_OP_plus_uconst.
1586
1587         PR debug/49871
1588         * dwarf2out.c (size_of_die, value_format, output_die): Use
1589         DW_FORM_udata instead of DW_FORM_data[48] for
1590         dw_val_class_unsigned_const DW_AT_data_member_location for DWARF 3.
1591
1592 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1593
1594         * config/i386/i386.md (*tls_global_dynamic_64): Update
1595         length attribute.
1596
1597 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
1598
1599         PR target/47715
1600         * config/i386/i386.md (*tls_global_dynamic_64): Remove mode from
1601         tls_symbolic_operand check.  Update code sequence for TARGET_X32.
1602         (tls_global_dynamic_64): Remove mode from tls_symbolic_operand check.
1603         (tls_dynamic_gnu2_64): Ditto.
1604         (*tls_dynamic_gnu2_lea_64): Ditto.
1605         (*tls_dynamic_gnu2_call_64): Ditto.
1606         (*tls_dynamic_gnu2_combine_64): Ditto.
1607
1608 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1609
1610         * config.gcc: Set need_64bit_hwint to yes for x86 targets.
1611
1612 2011-07-28  H.J. Lu  <hongjiu.lu@intel.com>
1613
1614         PR target/47364
1615         * config/i386/i386.md (strlen<mode>): Replace SWI48x with P.
1616
1617 2011-07-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
1618
1619         * config/arm/vfp.md ("*movdf_vfp"): Handle the VFP constraints
1620         before the core constraints. Adjust attributes.
1621         ("*thumb2_movdf_vfp"): Likewise.
1622
1623 2011-07-28  Kai Tietz  <ktietz@redhat.com>
1624
1625         * tree-vrp.c (simplify_stmt_using_ranges): Remove TRUTH_NOT_EXPR case.
1626         (simplify_truth_ops_using_ranges): Likewise.
1627         (build_assert_expr_for): Likewise.
1628         (build_assert_expr_for_1): Remove TRUTH_NOT_EXPR case
1629         and handle BIT_NOT_EXPR for truth-operation.
1630
1631 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
1632
1633         PR target/49313
1634         Undo r176835 from trunk
1635         2011-07-27  Georg-Johann Lay
1636
1637 2011-07-28  Georg-Johann Lay  <avr@gjlay.de>
1638
1639         PR target/49687
1640         * config/avr/t-avr (LIB1ASMFUNCS): Remove _xmulhisi3_exit.
1641         Add _muluhisi3, _mulshisi3, _usmulhisi3.
1642         * config/avr/libgcc.S (__mulsi3): Rewrite.
1643         (__mulhisi3): Rewrite.
1644         (__umulhisi3): Rewrite.
1645         (__usmulhisi3): New.
1646         (__muluhisi3): New.
1647         (__mulshisi3): New.
1648         (__mulohisi3): New.
1649         (__mulqi3, __mulqihi3, __umulqihi3, __mulhi3): Use DEFUN/ENDF to
1650         declare.
1651         * config/avr/predicates.md (pseudo_register_operand): Rewrite.
1652         (pseudo_register_or_const_int_operand): New.
1653         (combine_pseudo_register_operand): New.
1654         (u16_operand): New.
1655         (s16_operand): New.
1656         (o16_operand): New.
1657         * config/avr/avr.c (avr_rtx_costs): Handle costs for mult:SI.
1658         * config/avr/avr.md (QIHI, QIHI2): New mode iterators.
1659         (any_extend, any_extend2): New code iterators.
1660         (extend_prefix): New code attribute.
1661         (mulsi3): Rewrite. Turn insn to expander.
1662         (mulhisi3): Ditto.
1663         (umulhisi3): Ditto.
1664         (usmulhisi3): New expander.
1665         (*mulsi3): New insn-and-split.
1666         (mulu<mode>si3): New insn-and-split.
1667         (muls<mode>si3): New insn-and-split.
1668         (mulohisi3): New insn-and-split.
1669         (*uumulqihisi3, *uumulhiqisi3, *uumulhihisi3, *uumulqiqisi3,
1670         *usmulqihisi3, *usmulhiqisi3, *usmulhihisi3, *usmulqiqisi3,
1671         *sumulqihisi3, *sumulhiqisi3, *sumulhihisi3, *sumulqiqisi3,
1672         *ssmulqihisi3, *ssmulhiqisi3, *ssmulhihisi3, *ssmulqiqisi3): New
1673         insn-and-split.
1674         (*mulsi3_call): Rewrite.
1675         (*mulhisi3_call): Rewrite.
1676         (*umulhisi3_call): Rewrite.
1677         (*usmulhisi3_call): New insn.
1678         (*muluhisi3_call): New insn.
1679         (*mulshisi3_call): New insn.
1680         (*mulohisi3_call): New insn.
1681         (extendqihi2): Use combine_pseudo_register_operand as predicate
1682         for operand 1.
1683         (extendqisi2): Ditto.
1684         (zero_extendqihi2): Ditto.
1685         (zero_extendqisi2): Ditto.
1686         (zero_extendhisi2): Ditto.
1687         (extendhisi2): Ditto. Don't early-clobber operand 0.
1688
1689 2011-07-28  Uros Bizjak  <ubizjak@gmail.com>
1690
1691         * config/i386/i386.c (add->lea splitter): Add SWI mode to PLUS RTX.
1692
1693 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
1694
1695         PR tree-optimization/49471
1696         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Build an unsigned
1697         iv only when the largest type is unsigned.  Do not call
1698         lang_hooks.types.type_for_size.
1699
1700 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
1701
1702         PR middle-end/45450
1703         * graphite-poly.c (apply_poly_transforms): Disable legality check
1704         after an openscop read.
1705
1706 2011-07-27  Sebastian Pop  <sebastian.pop@amd.com>
1707
1708         PR middle-end/47691
1709         * graphite-clast-to-gimple.c (translate_clast_user): Update use of
1710         copy_bb_and_scalar_dependences.
1711         * sese.c (rename_uses): Do not call gcc_assert.  Set gloog_error.
1712         (graphite_copy_stmts_from_block): Update call to rename_uses.
1713         (copy_bb_and_scalar_dependences): Update call to
1714         graphite_copy_stmts_from_block.
1715         * sese.h (copy_bb_and_scalar_dependences): Update declaration.
1716
1717 2011-07-27  Georg-Johann Lay  <avr@gjlay.de>
1718
1719         PR target/49313
1720         * config/avr/libgcc.S (__ffshi2): Don't skip 2-word instruction.
1721         (__ctzsi2): Result for 0 may be undefined.
1722         (__ctzhi2): Result for 0 may be undefined.
1723         (__popcounthi2): Don't clobber r30. Use __popcounthi2_tail.
1724         (__popcountsi2): Ditto. And don't clobber r26.
1725         (__popcountdi2): Ditto. And don't clobber r27.
1726         * config/avr/avr.md (UNSPEC_COPYSIGN): New c_enum.
1727         (parityhi2): New expand.
1728         (paritysi2): New expand.
1729         (popcounthi2): New expand.
1730         (popcountsi2): New expand.
1731         (clzhi2): New expand.
1732         (clzsi2): New expand.
1733         (ctzhi2): New expand.
1734         (ctzsi2): New expand.
1735         (ffshi2): New expand.
1736         (ffssi2): New expand.
1737         (copysignsf3): New insn.
1738         (bswapsi2): New expand.
1739         (*parityhi2.libgcc): New insn.
1740         (*parityqihi2.libgcc): New insn.
1741         (*paritysihi2.libgcc): New insn.
1742         (*popcounthi2.libgcc): New insn.
1743         (*popcountsi2.libgcc): New insn.
1744         (*popcountqi2.libgcc): New insn.
1745         (*popcountqihi2.libgcc): New insn-and-split.
1746         (*clzhi2.libgcc): New insn.
1747         (*clzsihi2.libgcc): New insn.
1748         (*ctzhi2.libgcc): New insn.
1749         (*ctzsihi2.libgcc): New insn.
1750         (*ffshi2.libgcc): New insn.
1751         (*ffssihi2.libgcc): New insn.
1752         (*bswapsi2.libgcc): New insn.
1753
1754 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
1755
1756         * config/i386/i386.c (ix86_expand_move): Do not explicitly check
1757         the mode of symbolic_opreand RTXes.
1758
1759 2011-07-27  Uros Bizjak  <ubizjak@gmail.com>
1760
1761         * config/i386/predicates.md (x86_64_movabs_operand): Return false
1762         for pic_32bit_operand RTXes.
1763         * config/i386/i386.c (ix86_expand_move): Check x86_64_movabs_operand
1764         in DImode.
1765
1766 2011-07-27  Kai Tietz  <ktietz@redhat.com>
1767
1768         * config/i386/i386.c (ix86_option_override_internal): Allow -mabi
1769         for 32-bit, too.
1770         (ix86_handle_abi_attribute): Allow function attributes
1771         ms_abi/sysv_abi in 32-bit mode, too.
1772         * doc/extend.texi: Adjust attribute documentation.
1773
1774         * gimple-fold.c (or_comparisons_1): Remove TRUTH_AND/OR
1775         expression handling.
1776         (and_var_with_comparison_1): Likewise.
1777
1778 2011-07-27  Aldy Hernandez  <aldyh@redhat.com>
1779
1780         * params.h (ALLOW_STORE_DATA_RACES): New.
1781         * params.def (PARAM_ALLOW_STORE_DATA_RACES): New.
1782         * Makefile.in (expr.o): Depend on PARAMS_H.
1783         * machmode.h (get_best_mode): Add argument.
1784         * fold-const.c (optimize_bit_field_compare): Add argument to
1785         get_best_mode.
1786         (fold_truthop): Same.
1787         * ifcvt.c (noce_emit_move_insn): Add argument to store_bit_field.
1788         * expr.c (emit_group_store): Same.
1789         (copy_blkmode_from_reg): Same.
1790         (write_complex_part): Same.
1791         (optimize_bitfield_assignment_op): Add argument.
1792         Add argument to get_best_mode.
1793         (get_bit_range): New.
1794         (expand_assignment): Calculate maxbits and pass it down accordingly.
1795         (store_field): New argument.
1796         (expand_expr_real_2): New argument to store_field.  Include params.h.
1797         * expr.h (store_bit_field): New argument.
1798         * stor-layout.c (get_best_mode): Restrict mode expansion by taking
1799         into account maxbits.
1800         * calls.c (store_unaligned_arguments_into_pseudos): New argument
1801         to store_bit_field.
1802         * expmed.c (store_bit_field_1): New argument.  Use it.
1803         (store_bit_field): Same.
1804         (store_fixed_bit_field): Same.
1805         (store_split_bit_field): Same.
1806         (extract_bit_field_1): Pass new argument to get_best_mode.
1807         (extract_bit_field): Same.
1808         * stmt.c (store_bit_field): Pass new argument to store_bit_field.
1809         * doc/invoke.texi: Document parameter allow-store-data-races.
1810
1811 2011-07-27  Jakub Jelinek  <jakub@redhat.com>
1812
1813         * dwarf2out.c (gen_producer_string): Ignore also -fverbose-asm option.
1814
1815 2011-07-27  Kai Tietz  <ktietz@redhat.com>
1816
1817         * tree-vrp.c (extract_range_from_binary_expr): Remove
1818         TRUTH-binary cases and add new bitwise-cases.
1819         (extract_range_from_assignment): Likewise.
1820         (register_edge_assert_for_1): Likeiwise.
1821         (register_edge_assert_for): Likewise.
1822         (simplify_truth_ops_using_ranges): Likewise.
1823         (simplify_stmt_using_ranges): Likewise.
1824
1825 2011-07-26  H.J. Lu  <hongjiu.lu@intel.com>
1826
1827         PR target/47372
1828         * config/i386/i386.c (ix86_delegitimize_address): Call
1829         simplify_gen_subreg for PIC with mode of x only if modes of
1830         x and orig_x are different.
1831
1832 2011-07-26  Jakub Jelinek  <jakub@redhat.com>
1833
1834         * dwarf2out.c (output_macinfo_op): Ensure fd->filename points
1835         to GC allocated copy of the string.
1836         (dwarf2out_finish): Emit .debug_macinfo or .debug_macro sections
1837         before .debug_line, not after it.
1838
1839 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
1840
1841         PR middle-end/47046
1842         * tree-chrec.h (evolution_function_is_affine_p): Recursively call
1843         evolution_function_is_affine_p on CHREC_RIGHT.
1844
1845 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
1846
1847         * tree-data-ref.c (max_stmt_executions_tree): Do not call
1848         lang_hooks.types.type_for_size.
1849
1850 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
1851
1852         PR middle-end/47653
1853         * graphite-scop-detection.c (graphite_can_represent_loop): Discard
1854         loops using wrapping semantics.
1855
1856 2011-07-26  Sebastian Pop  <sebastian.pop@amd.com>
1857
1858         PR middle-end/48805
1859         * tree-scalar-evolution.c (instantiate_scev_r): Return
1860         chrec_dont_know for ADDR_EXPR.
1861
1862 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
1863             H.J. Lu  <hongjiu.lu@intel.com>
1864
1865         PR target/47369
1866         PR target/49853
1867         * config/i386/i386.c (ix86_expand_move): Call convert_to_mode
1868         if legitimize_tls_address returned operand in wrong mode. Allow
1869         SImode and DImode symbolic operand for PIC.  Call convert_to_mode
1870         if legitimize_pic_address returned operand in wrong mode.
1871
1872 2011-07-26  Martin Jambor  <mjambor@suse.cz>
1873
1874         * tree-sra.c (tree_non_mode_aligned_mem_p): Strip conversions and
1875         return false for invariants.
1876
1877 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
1878
1879         * config/i386/i386.md (add->lea splitter): Implement using SWI
1880         mode iterator.  Change operand 2 predicate to <nonmemory_operand>.
1881         (add->lea zext splitter): Change operand 2 predicate to
1882         x86_64_nonmemory_operand.
1883
1884 2011-07-26  Richard Guenther  <rguenther@suse.de>
1885
1886         * predict.c (maybe_hot_frequency_p): Make sure a zero entry-block
1887         frequency makes everything hot.
1888
1889 2011-07-26  Richard Guenther  <rguenther@suse.de>
1890
1891         PR tree-optimization/49840
1892         * tree-vrp.c (range_fits_type_p): Properly handle full
1893         double-int precision.
1894
1895 2011-07-26  Martin Jambor  <mjambor@suse.cz>
1896
1897         PR bootstrap/49786
1898         * ipa-cp.c (update_profiling_info): Avoid overflow when updating
1899         counts.
1900         (update_specialized_profile): Likewise.
1901
1902 2011-07-26  Uros Bizjak  <ubizjak@gmail.com>
1903             H.J. Lu  <hongjiu.lu@intel.com>
1904
1905         PR target/47381
1906         PR target/49832
1907         PR target/49833
1908         * config/i386/i386.md (i): Change SImode attribute to "e".
1909         (g): Change SImode attribute to "rme".
1910         (di): Change SImode attribute to "nF".
1911         (general_operand): Change SImode attribute to x86_64_general_operand.
1912         (general_szext_operand): Change SImode attribute to
1913         x86_64_szext_general_operand.
1914         (immediate_operand): Change SImode attribute to
1915         x86_64_immediate_operand.
1916         (nonmemory_operand): Change SImode attribute to
1917         x86_64_nonmemory_operand.
1918         (*movdi_internal_rex64): Remove mode from pic_32bit_operand check.
1919         (*movsi_internal): Ditto.  Use "e" constraint in alternative 2.
1920         (*lea_1): Use SWI48 mode iterator.
1921         (*lea_1_zext): New insn pattern.
1922         (testsi_ccno_1): Use x86_64_nonmemory_operand predicate for operand 2.
1923         (*bt<mode>): Ditto.
1924         (*add<mode>1): Use x86_64_general_operand predicate for operand 2.
1925         Update operand constraints.
1926         (addsi_1_zext): Ditto.
1927         (*add<mode>2): Ditto.
1928         (*addsi_3_zext): Ditto.
1929         (*subsi_1_zext): Ditto.
1930         (*subsi_2_zext): Ditto.
1931         (*subsi_3_zext): Ditto.
1932         (*addsi3_carry_zext): Ditto.
1933         (*<plusminus_insn>si3_zext_cc_overflow): Ditto.
1934         (*mulsi3_1_zext): Ditto.
1935         (*andsi_1): Ditto.
1936         (*andsi_1_zext): Ditto.
1937         (*andsi_2_zext): Ditto.
1938         (*<any_or:code>si_1_zext): Ditto.
1939         (*<any_or:code>si_2_zext): Ditto.
1940         (*test<mode>_1): Use <general_operand> predicate for operand 1.
1941         (*and<mode>_2): Ditto.
1942         (mov<mode>cc): Use  <general_operand> predicate for operands 1 and 2.
1943         (add->lea splitter): Check operand modes in insn constraint.  Extend
1944         operands less than SImode wide to SImode.
1945         (add->lea zext splitter): Do not extend input operands to DImode.
1946         (*lea_general_1): Handle only QImode and HImode operands.
1947         (*lea_general_2): Ditto.
1948         (*lea_general_3): Ditto.
1949         (*lea_general_1_zext): Remove.
1950         (*lea_general_2_zext): Ditto.
1951         (*lea_general_3_zext): Ditto.
1952         (*lea_general_4): Check operand modes in insn constraint.  Extend
1953         operands less than SImode wide to SImode.
1954         (ashift->lea splitter): Ditto.
1955         * config/i386/i386.c (ix86_print_operand_address): Print address
1956         registers with 'q' modifier on 64bit targets.
1957         * config/i386/predicates.md (pic_32bit_opreand): Define as special
1958         predicate.  Reject non-SI and non-DI modes.
1959
1960 2011-07-25  Andrew Pinski  <apinski@cavium.com>
1961
1962         PR tree-opt/49671
1963         * tree-inline.c (remap_gimple_op_r): Copy TREE_THIS_VOLATILE and
1964         TREE_THIS_NOTRAP into the inner most MEM_REF.
1965         Always copy TREE_THIS_VOLATILE.
1966         * tree-sra.c (ptr_parm_has_direct_uses): Check that the lhs, rhs and
1967         arguments are not volatile references.
1968
1969 2011-07-25  Richard Henderson  <rth@redhat.com>
1970
1971         * insn-notes.def (NOTE_INSN_CFA_RESTORE_STATE): Remove.
1972         * final.c (final_scan_insn): Don't test for it.
1973         (rest_of_clean_state): Likewise.
1974
1975 2011-07-25  Richard Henderson  <rth@redhat.com>
1976
1977         PR debug/49841
1978         * config/rs6000/rs6000.c (rs6000_frame_related): Return the insn.
1979         (emit_frame_save): Likewise.
1980         (rs6000_emit_prologue): Move the FRAME_RELATED_EXPR from the save
1981         insn onto a dummy blockage insn after the join label.
1982
1983 2011-07-25  Richard Henderson  <rth@redhat.com>
1984
1985         * dwarf2cfi.c (dw_trace_info): Add ID member.
1986         (get_trace_index): Remove.  Change users to use ID member.
1987         (before_next_cfi_note): New.
1988         (connect_traces): Remove unreachable traces before the main loop.
1989         Look across one trace and generate remember/restore_state if needed.
1990
1991 2011-07-25  Richard Henderson  <rth@redhat.com>
1992
1993         * dwarf2cfi.c (dump_cfi_row, debug_cfi_row): New.
1994
1995 2011-07-25  Joern Rennecke  <joern.rennecke@embecosm.com>
1996
1997         * genattr.c (write_upcase, gen_attr <enum definition writing>):
1998         Move to ...
1999         * genattr-common.c ... here.
2000         (main): Call gen_attr.
2001         * optc-gen.awk: Make generated program include insn-attr-common.h .
2002         * Makefile.in (oprions.o): Depend on insn-attr-common.h
2003
2004 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
2005
2006         * config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2007         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
2008         * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p,
2009         m32c_print_operand, m32c_print_operand_address): Remove.
2010         * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static.
2011         Change return type to bool. Change argument type to bool.
2012         (m32c_print_operand, m32c_print_operand_address): Make static.
2013         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
2014         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2015
2016 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2017
2018         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
2019         attributes): Document mmap.
2020
2021 2011-07-25  Anatoly Sokolov  <aesok@post.ru>
2022
2023         * config/mmix/mmix.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2024         PRINT_OPERAND_PUNCT_VALID_P): Remove macro.
2025         * config/mmix/mmix-protos.h (mmix_print_operand_punct_valid_p,
2026         mmix_print_operand, mmix_print_operand_address): Remove.
2027         * config/mmix/mmix.c (mmix_print_operand_punct_valid_p): Make static.
2028         Change return type to bool. Change argument type to bool.
2029         (mmix_print_operand, mmix_print_operand_address): Make static.
2030         (mmix_intval, mmix_output_condition): Change 'x' argument type
2031         to const_rtx.
2032         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS,
2033         TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
2034
2035 2011-07-25  Georg-Johann Lay  <avr@gjlay.de>
2036
2037         PR target/39386
2038         * config/avr/avr.c (out_shift_with_cnt): Use tmp_reg as
2039         shift counter for x << x and x >> x shifts.
2040
2041 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2042
2043         PR target/47124
2044         * config.gcc: Reject *-*-solaris2 configuration.
2045
2046 2011-07-25  Richard Sandiford  <richard.sandiford@linaro.org>
2047
2048         PR tree-optimization/49809
2049         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Use
2050         gimple_get_lhs instead of gimple_assign_lhs.
2051
2052 2011-07-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2053
2054         * system.h [__cplusplus]: Wrap C function declarations in extern "C".
2055
2056 2011-07-25  Richard Guenther  <rguenther@suse.de>
2057
2058         PR tree-optimization/49822
2059         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
2060         more.  Make sure to preserve stmts with side-effects.  Properly
2061         handle virtual defs, follow a longer def chain.
2062
2063 2011-07-22  Romain Geissler  <romain.geissler@gmail.com>
2064
2065         PR plugins/45348
2066         PR plugins/48425
2067         PR plugins/46577
2068         * Makefile.in: Do not flatten c-family directory when installing
2069         plugin headers.
2070
2071 2011-07-25  Eric Botcazou  <ebotcazou@adacore.com>
2072
2073         * ipa-inline.c (can_inline_edge_p): Look into DECL_STRUCT_FUNCTION of
2074         original nodes if we are dealing with virtual clones.
2075
2076 2011-07-25  Bernd Schmidt  <bernds@codesourcery.com>
2077
2078         * common/config/c6x/c6x-common.c: New file.
2079
2080 2011-07-25  Roman Zhuykov  <zhroma@ispras.ru>
2081
2082         * tree-flow.h (tree_ssa_loop_version): Remove unused declaration.
2083
2084 2011-07-25  Richard Guenther  <rguenther@suse.de>
2085
2086         PR tree-optimization/49715
2087         * tree-vrp.c: Include expr.h and optabs.h.
2088         (range_fits_type_): New function.
2089         (simplify_float_conversion_using_ranges): Likewise.
2090         (simplify_stmt_using_ranges): Call it.
2091         * Makefile.in (tree-vrp.o): Add $(EXPR_H) and $(OPTABS_H) dependencies.
2092         * optabs.c (can_float_p): Export.
2093         * optabs.h (can_float_p): Declare.
2094
2095 2011-07-25  Richard Guenther  <rguenther@suse.de>
2096
2097         * tree-vrp.c (num_vr_values, values_propagated): New global vars.
2098         (get_value_range): For out-of-range SSA names or names created
2099         after propagation return a read-only varying range.
2100         (dump_all_value_ranges): Adjust.
2101         (vrp_initialize): Likewise.
2102         (vrp_finalize): Likewise.
2103
2104 2011-07-24  Richard Henderson  <rth@redhat.com>
2105
2106         PR debug/49831
2107         * dwarf2cfi.c (connect_traces): Allow unvisited traces.  Skip
2108         them entirely.
2109
2110 2011-07-24  Richard Henderson  <rth@redhat.com>
2111
2112         PR debug/49825
2113         * dwarf2cfi.c (dwarf2out_stack_adjust): Move A_O_A test earlier.
2114         (dwarf2out_notice_stack_adjust): Use args_size from call_insn.
2115
2116 2011-07-24  Richard Henderson  <rth@redhat.com>
2117
2118         PR debug/49827
2119         * dwarf2cfi.c (create_trace_edges): Handle sequences properly.
2120
2121 2011-07-24  Richard Henderson  <rth@redhat.com>
2122
2123         * dwarf2cfi.c (maybe_record_trace_start): Add abnormal parameter.
2124         Zero args_size for abnormal edges.  Adjust all callers.
2125
2126 2011-07-24  Richard Henderson  <rth@redhat.com>
2127
2128         PR debug/49825
2129         * dwarf2cfi.c (cfi_row_equal_p): Don't compare args_size.
2130
2131 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
2132
2133         PR bootstrap/49835
2134         * collect2.c (demangle_flag): Removed.
2135
2136 2011-07-24  Sandra Loosemore  <sandra@codesourcery.com>
2137
2138         * configure.ac (demangler_in_ld): Default to yes.
2139         * configure: Regenerated.
2140         * collect2.c (main): When HAVE_LD_DEMANGLE is defined, don't
2141         mess with COLLECT_NO_DEMANGLE, and just pass --demangle and
2142         --no-demangle options straight through to ld.  When
2143         HAVE_LD_DEMANGLE is not defined, set COLLECT_NO_DEMANGLE in a
2144         way that has the intended effect on Windows.
2145
2146 2011-07-23  Richard Henderson  <rth@redhat.com>
2147
2148         * dwarf2cfi.c: Include basic-block.h.
2149         (dw_label_info): Remove.
2150         (trace_work_list, trace_index): New.
2151         (remember_row, emit_cfa_remember): Remove.
2152         (dw_trace_info_hash, dw_trace_info_eq): New.
2153         (get_trace_index, get_trace_info): New.
2154         (save_point_p): New.
2155         (free_cfi_row): Remove.
2156         (add_cfi): Do not emit DW_CFA_remember_state.
2157         (cfa_row_equal_p): New.
2158         (barrier_args_size): Remove.
2159         (compute_barrier_args_size_1, compute_barrier_args_size): Remove.
2160         (dwarf2out_notice_stack_adjust): Don't compute_barrier_args_size.
2161         (maybe_record_trace_start, create_trace_edges, scan_trace): New.
2162         (dwarf2out_cfi_begin_epilogue): Remove.
2163         (dwarf2out_frame_debug_restore_state): Remove.
2164         (connect_traces, create_pseudo_cfg): New.
2165         (create_cfi_notes, execute_dwarf2_frame): Rewrite using traces.
2166         * Makefile.in (dwarf2cfi.o): Update.
2167
2168 2011-07-23  Richard Henderson  <rth@redhat.com>
2169
2170         * dwarf2cfi.c (dw_trace_info): New.
2171         (dw_label_info): New.
2172         (cie_return_save): New.
2173         (cur_trace): New.
2174         (queued_args_size): Rename from args_size.  Update all users.
2175         (cfa_store, cfa_temp, regs_saved_in_regs): Remove.
2176         (def_cfa_1): Use cur_trace instead of cfa_*.
2177         (dwarf2out_stack_adjust, record_reg_saved_in_reg): Likewise.
2178         (clobbers_queued_reg_save, reg_saved_in): Likewise.
2179         (dwarf2out_frame_debug_expr): Likewise.
2180         (create_cie_data): Split out from ...
2181         (execute_dwarf2_frame): ... here.  Initialize cur_trace.
2182
2183 2011-07-23  Richard Henderson  <rth@redhat.com>
2184
2185         * dwarf2cfi.c (regs_saved_in_regs): Allocate from heap, not gc.
2186         Update all users to match.
2187         (execute_dwarf2_frame): Free reg_saved_in_data.
2188
2189 2011-07-23  Richard Henderson  <rth@redhat.com>
2190
2191         * dwarf2cfi.c (queued_reg_save): Reorder for packing.  Don't GTY.
2192         (queued_reg_saves): Don't GTY.  Change to a VEC.
2193         (queue_reg_save): Update to match.
2194         (dwarf2out_flush_queued_reg_saves): Likewise.
2195         (clobbers_queued_reg_save): Likewise.
2196         (reg_saved_in): Likewise.
2197         (execute_dwarf2_frame): Free queued_reg_saves.
2198
2199 2011-07-23  Richard Henderson  <rth@redhat.com>
2200
2201         * dwarf2cfi.c (dw_cfi_row_ref): Remove.  Update all users.
2202
2203 2011-07-23  Richard Henderson  <rth@redhat.com>
2204
2205         * dwarf2cfi.c (add_cfi_args_size): Split out from...
2206         (dwarf2out_args_size): ... here.
2207         (add_cfi_restore): Split out from ...
2208         (dwarf2out_frame_debug_cfa_restore): ... here.
2209         (def_cfa_0): Split out from ...
2210         (def_cfa_1): ... here.
2211         (cfi_oprnd_equal_p, cfi_equal_p): New.
2212         (change_cfi_row): New.
2213         (add_cfis_to_fde): Set fde->dw_fde_switch_cfi_index.
2214         (create_cfi_notes): Use change_cfi_row at SWITCH_TEXT note.
2215         (output_cfis): Remove.
2216         * dwarf2out.c (output_fde): Simplify output_cfi loop.
2217         (dwarf2out_switch_text_section): Don't call output_cfis.
2218         (dw_val_equal_p, loc_descr_equal_p_1, loc_descr_equal_p): New.
2219         * dwarf2out.h: Update decls.
2220         (enum dw_val_class): Add dw_val_class_none.
2221
2222 2011-07-23  Richard Henderson  <rth@redhat.com>
2223
2224         * dwarf2cfi.c (update_row_reg_save): New.
2225         (dwarf2out_frame_debug_cfa_expression): Use it.
2226         (dwarf2out_frame_debug_cfa_restore): Likewise.
2227         (reg_save): Likewise.  Do not emit DW_CFA_same_value.
2228
2229 2011-07-23  Richard Henderson  <rth@redhat.com>
2230
2231         * dwarf2cfi.c (add_cfi_insn): Rename from cfi_insn.  Update all users.
2232
2233 2011-07-23  Richard Henderson  <rth@redhat.com>
2234
2235         * dwarf2cfi.c (dw_cfi_row, dw_cfi_row_ref): New.
2236         (cie_cfi_row): New.
2237         (new_cfi_row, copy_cfi_row, free_cfi_row): New.
2238         (cfa, old_cfa, cfa_remember, old_cfa_remember, old_args_size): Remove.
2239         (cur_row, remember_row): New.
2240         (def_cfa_1): Use cur_row instead of the old_* variables.
2241         (dwarf2out_frame_debug_restore_state): Similarly.
2242         (dwarf2out_args_size, dwarf2out_notice_stack_adjust): Likewise.
2243         (dwarf2out_frame_debug_def_cfa): Use a local variable instead of cfa.
2244         (dwarf2out_frame_debug_adjust_cfa): Likewise.
2245         (dwarf2out_frame_debug_cfa_offset): Likewise.
2246         (dwarf2out_frame_debug_expr): Likewise.
2247         (execute_dwarf2_frame): Set up cur_row.
2248         * dwarf2out.h (struct cfa_loc): Mark for GTY.
2249
2250 2011-07-23  Richard Henderson  <rth@redhat.com>
2251
2252         * basic-block.h (EDGE_PRESERVE): New.
2253         (EDGE_ALL_FLAGS, EDGE_COMPLEX): Include it.
2254         * bb-reorder.c: Include except.h.
2255         (fix_up_crossing_landing_pad): New.
2256         (find_rarely_executed_basic_blocks_and_crossing_edges): Place
2257         landing pads in the right partition.  Duplicate as necessary.
2258         (partition_hot_cold_basic_blocks): Fix up DF info after
2259         duplicating landing pads.
2260         * cfg.c (dump_edge_info): Add crossing and preserve to bitnames.
2261         * cfgrtl.c (rtl_verify_flow_info_1): Validate that EDGE_CROSSING
2262         is set properly.  Validate that EH edges are not CROSSING.
2263         * except.c (expand_dw2_landing_pad_for_region): Split out from ...
2264         (dw2_build_landing_pads): ... here.
2265         (convert_to_eh_region_ranges): Remove code to fixup crossing
2266         landing pads.
2267         * except.h (expand_dw2_landing_pad_for_region): Declare.
2268         * tree-cfg.c (gimple_can_merge_blocks_p): Don't merge PRESERVE edges.
2269
2270 2011-07-23  Richard Earnshaw  <rearnsha@arm.com>
2271
2272         PR target/49816
2273         * arm.c (aapcs_vfp_allocate_return_reg): Return NULL on failure.
2274
2275 2011-07-22  Jason Merrill  <jason@redhat.com>
2276
2277         * doc/invoke.texi (C++ Dialect Options): Document -Wno-narrowing.
2278
2279 2011-07-22  Richard Henderson  <rth@redhat.com>
2280
2281         * bb-reorder.c (gate_handle_partition_blocks): Honor optimize.
2282
2283 2011-07-22  Richard Henderson  <rth@redhat.com>
2284
2285         * jump.c (maybe_propagate_label_ref): Split out of...
2286         (mark_all_labels): ... here.  Do not attempt label_ref
2287         propagation while in cfglayout mode.
2288
2289 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
2290
2291         * dwarf2out.c (struct macinfo_struct): Change code to unsigned char.
2292         (DEBUG_MACRO_SECTION, DEBUG_MACRO_SECTION_LABEL): Define.
2293         (dwarf_attr_name): Handle DW_AT_GNU_macros.
2294         (dwarf2out_define): If the vector is empty and
2295         lineno is 0, emit a dummy entry first.
2296         (dwarf2out_undef): Likewise.  Remove redundant semicolon.
2297         (htab_macinfo_hash, htab_macinfo_eq, output_macinfo_op,
2298         optimize_macinfo_range): New functions.
2299         (output_macinfo): Use them.  If !dwarf_strict and .debug_str is
2300         mergeable, optimize longer strings using
2301         DW_MACRO_GNU_{define,undef}_indirect and if HAVE_COMDAT_GROUP,
2302         optimize longer sequences of define/undef ops from headers
2303         using DW_MACRO_GNU_transparent_include.  For !dwarf_strict
2304         emit a section headers.
2305         (dwarf2out_init): For !dwarf_strict set debug_macinfo_section
2306         and macinfo_section_label to DEBUG_MACRO_SECTION
2307         resp. DEBUG_MACRO_SECTION_LABEL.
2308         (dwarf2out_finish): For !dwarf_strict emit DW_AT_GNU_macros
2309         instead of DW_AT_macro_info.
2310
2311         PR other/32998
2312         * common.opt (grecord-gcc-switches, gno-record-gcc-switches): New
2313         options.
2314         * dwarf2out.c: Include opts.h.
2315         (dchar_p): New typedef.  Define heap VEC for it.
2316         (producer_string): New variable.
2317         (gen_producer_string): New function.
2318         (gen_compile_unit_die): Use it.
2319         (dwarf2out_finish): Fix up comp_unit_die () DW_AT_producer if needed.
2320         * Makefile.in (dwarf2out.o): Depend on $(OPTS_H).
2321         * doc/invoke.texi: Document -grecord-gcc-switches and
2322         -gno-record-gcc-switches, add a -grecord-gcc-switches reference
2323         to -frecord-gcc-switches description.
2324
2325 2011-07-22  Jason Merrill  <jason@redhat.com>
2326
2327         PR c++/30112
2328         * c-decl.c (c_linkage_bindings): Define.
2329
2330 2011-07-22  Eric Botcazou  <ebotcazou@adacore.com>
2331
2332         PR debug/49815
2333         * var-tracking.c (vt_finalize): Always free windowed_parm_regs.
2334
2335 2011-07-22  H.J. Lu  <hongjiu.lu@intel.com>
2336
2337         * config/i386/i386.c (ix86_option_override_internal): Disallow
2338         MS ABI in x32 mode.
2339         (ix86_init_builtins): Call ix86_init_builtins_va_builtins_abi
2340         only for TARGET_LP64.
2341         (ix86_handle_abi_attribute): Check TARGET_LP64 instead of TARGET_64BIT.
2342
2343 2011-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
2344
2345         * config/rs6000/rs6000.c (rs6000_xcoff_strip_dollar): Rewrite to
2346         avoid warnings when GCC is built with a C++ compiler.
2347
2348 2011-07-22  Martin Jambor  <mjambor@suse.cz>
2349
2350         PR lto/49796
2351         * cgraphunit.c (verify_edge_corresponds_to_fndecl): Return false
2352         if decl node is in another partition, call cgraph_get_node only once.
2353
2354 2011-07-22  Uros Bizjak  <ubizjak@gmail.com>
2355
2356         * config.gcc (x86_64-*-linux*): Set
2357         default_gnu_indirect_function to yes.
2358
2359 2011-07-22  Richard Guenther  <rguenther@suse.de>
2360
2361         PR tree-optimization/45819
2362         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
2363         preserve volatile and notrap flags.
2364
2365 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2366             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2367
2368         PR bootstrap/49794
2369         * configure.ac: Test AM_ICONV with CXX.
2370         * configure: Regenerate.
2371         * config/sol2-c.c (solaris_format_types): Use EXPORTED_CONST.
2372
2373 2011-07-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2374
2375         PR bootstrap/49797
2376         * graphite-clast-to-gimple.c (CLOOG_LANGUAGE_C): Provide if missing.
2377         (set_cloog_options): Use it.
2378
2379 2011-07-22  Jakub Jelinek  <jakub@redhat.com>
2380
2381         PR c++/49756
2382         * gcc.c (main): Call stack_limit_increase (64MB).
2383         * toplev.c (toplev_main): Likewise.
2384
2385 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
2386
2387         * config/i386/i386.c (ix86_expand_call): Call copy_to_mode_reg
2388         instead of force_reg.
2389
2390 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
2391
2392         * config/i386/i386.c (ix86_expand_move): Convert to Pmode if
2393         needed and use force_reg after convert.
2394         (ix86_expand_call): Likewise.
2395         (ix86_expand_special_args_builtin): Likewise.
2396         (ix86_expand_builtin): Likewise.
2397
2398 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2399
2400         PR middle-end/47654
2401         PR middle-end/49649
2402         * graphite-clast-to-gimple.c (type_for_clast_term): Pass v1 and v2
2403         in parameter.  Initialize v1 and v2 based on the values returned
2404         by clast_name_to_lb_ub.
2405         (type_for_clast_red): Pass v1 and v2 in parameter, and set their
2406         values.
2407         (type_for_clast_bin): Same.
2408         (type_for_clast_expr): Same.
2409         (type_for_clast_eq): Update calls to type_for_clast_expr.
2410         (type_for_clast_for): Same.
2411         (build_iv_mapping): Same.
2412         * graphite-ppl.h (value_min): New.
2413
2414 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2415
2416         * graphite-clast-to-gimple.c (type_for_interval): Generate signed
2417         types whenever possible.
2418
2419 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2420
2421         * graphite-clast-to-gimple.c (struct clast_name_index): Add lb
2422         and ub fields.
2423         (new_clast_name_index): Add lb and ub parameters.
2424         (free_clast_name_index): New.
2425         (clast_name_to_lb_ub): New.
2426         (save_clast_name_index): Add lb and ub parameters.
2427         (compute_bounds_for_param): New.
2428         (type_for_level): Removed.
2429         (type_for_clast_for): Removed level parameter.  Do not call
2430         type_for_level.
2431         (graphite_create_new_loop): Store the lb and ub for the clast_name
2432         of the iterator of the loop that has been generated.
2433         (graphite_create_new_loop_guard): Remove parameter level.
2434         (create_params_index): Store the lb and ub of each parameter.
2435         (gloog): Use free_clast_name_index.  Pass to create_params_index
2436         the current scop.
2437
2438 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2439
2440         * graphite-clast-to-gimple.c (max_signed_precision_type): Removed.
2441         (max_precision_type): Inline max_signed_precision_type.
2442         (type_for_clast_red): Use max_precision_type.
2443         (type_for_clast_bin): Same.
2444         (type_for_clast_for): Same.
2445
2446 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2447
2448         * graphite-clast-to-gimple.c (gcc_type_for_interval): Renamed
2449         type_for_interval.
2450         (gcc_type_for_value): Renamed type_for_value.
2451         (gcc_type_for_clast_term): Renamed type_for_clast_term.
2452         (gcc_type_for_clast_expr): Renamed type_for_clast_expr.
2453         (gcc_type_for_clast_red): Renamed type_for_clast_red.
2454         (gcc_type_for_clast_bin): Renamed type_for_clast_bin.
2455         (gcc_type_for_clast_eq): Renamed type_for_clast_eq.
2456         (graphite_translate_clast_equation): Update calls.
2457         (compute_type_for_level): Renamed type_for_level.
2458         (gcc_type_for_iv_of_clast_loop): Renamed type_for_clast_for.
2459         (build_iv_mapping): Update calls.
2460         (graphite_create_new_loop_guard): Same.
2461
2462 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2463
2464         * graphite-clast-to-gimple.c (clast_get_body_of_loop): Add fixme
2465         comment.
2466
2467 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2468
2469         * graphite-clast-to-gimple.c (struct ivs_params): New.
2470         (clast_name_to_gcc): Use ivs_params to pass around parameters.
2471         (clast_to_gcc_expression): Same.
2472         (clast_to_gcc_expression_red): Same.
2473         (gcc_type_for_clast_term): Same.
2474         (gcc_type_for_clast_expr): Same.
2475         (gcc_type_for_clast_red): Same.
2476         (gcc_type_for_clast_bin): Same.
2477         (gcc_type_for_clast_eq): Same.
2478         (graphite_translate_clast_equation): Same.
2479         (graphite_create_guard_cond_expr): Same.
2480         (graphite_create_new_guard): Same.
2481         (graphite_create_new_loop): Same.
2482         (build_iv_mapping): Same.
2483         (translate_clast_user): Same.
2484         (graphite_create_new_loop_guard): Same.
2485         (translate_clast): Same.
2486         (translate_clast_for_loop): Same.
2487         (translate_clast_for): Same.
2488         (translate_clast_guard): Same.
2489         (initialize_cloog_names): Fix typo.
2490         (gloog): Initialize an ivs_params struct, pass it to translate_clast.
2491
2492 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2493
2494         * graphite-clast-to-gimple.c (struct clast_name_index): Add level.
2495         (new_clast_name_index): Add level parameter.
2496         (clast_name_to_level): New.
2497         (save_clast_name_index): Add level parameter.
2498         (newivs_to_depth_to_newiv): Removed.
2499         (clast_name_to_gcc): Inlined newivs_to_depth_to_newiv.
2500         (graphite_create_new_loop): Add level parameter.  Pass level to
2501         save_clast_name_index.
2502         (translate_clast_for_loop): Pass level to graphite_create_new_loop.
2503         (create_params_index): Pass level to save_clast_name_index.
2504
2505 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2506
2507         * graphite-clast-to-gimple.c (graphite_create_new_loop): Do not
2508         recompute type, lb, and ub.  Get them from...
2509         (graphite_create_new_loop_guard): ...here.  Pass in parameter
2510         pointers to type, lb, and ub.
2511         (translate_clast_for_loop): Update function calls.
2512         (translate_clast_for): Same.
2513
2514 2011-07-21  Sebastian Pop  <sebastian.pop@amd.com>
2515
2516         * graphite-clast-to-gimple.c (compute_bounds_for_level): Call
2517         psct_dynamic_dim.
2518         (translate_clast_for_loop): Pass loop level to dependency_in_loop_p.
2519         (gcc_type_for_iv_of_clast_loop): Update use of level.
2520         (gloog): Start counting nesting level from 0.
2521         * graphite-clast-to-gimple.h (get_scattering_level): Removed.
2522         * graphite-dependences.c (graphite_carried_dependence_level_k): Call
2523         psct_dynamic_dim on level.
2524
2525 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
2526
2527         * config/i386/i386.c (ix86_legitimize_address): Convert to
2528         Pmode if needed.
2529
2530 2011-07-21  H.J. Lu  <hongjiu.lu@intel.com>
2531
2532         * config/i386/i386.c (function_value_64): Always return pointers
2533         in Pmode.
2534         (ix86_promote_function_mode): New.
2535         (TARGET_PROMOTE_FUNCTION_MODE): Likewise.
2536
2537 2011-07-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2538
2539         PR tree-optimization/49749
2540         * tree-ssa-reassoc.c (get_rank): Fix operand scan conditions and
2541         remove no-longer-used maxrank variable.
2542
2543 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
2544
2545         * config/avr/avr.c (final_prescan_insn): Fix printing of rtx_costs.
2546
2547 2011-07-21  Jason Merrill  <jason@redhat.com>
2548
2549         * system.h (HAVE_DESIGNATED_UNION_INITIALIZERS): New.
2550         * recog.h (struct insn_data_d): Check it instead of
2551         HAVE_DESIGNATED_INITIALIZERS.
2552         * genoutput.c (output_insn_data): Likewise.
2553
2554 2011-07-21  Richard Guenther  <rguenther@suse.de>
2555
2556         PR tree-optimization/49770
2557         * tree-ssa-sccvn.c (valueize_refs_1): Return whether we
2558         valueized any operand.  Renamed from ...
2559         (valueize_refs): ... this.  New wrapper around valueize_refs_1.
2560         (valueize_shared_reference_ops_from_ref): Return whether we
2561         valueized any operand.
2562         (vn_reference_lookup): Only when we valueized any operand
2563         use the valueized reference for alias analysis.  Do not preserve
2564         the original reference tree in this case.
2565
2566 2011-07-21  Uros Bizjak  <ubizjak@gmail.com>
2567
2568         * config/i386/i386.c (ix86_decompose_address): Reject all but
2569         register operands and subregs of DImode hard registers in index.
2570
2571 2011-07-21  Kai Tietz  <ktietz@redhat.com>
2572
2573         * fold-const.c (fold_unary_loc): Preserve indirect
2574         comparison cast to none-boolean type.
2575         * tree-ssa.c (useless_type_conversion_p): Preserve cast
2576         from/to boolean-type.
2577         * gimplify.c (gimple_boolify): Handle boolification of comparisons.
2578         (gimplify_expr): Boolifiy non aggregate-typed comparisons.
2579         * tree-cfg.c (verify_gimple_comparison): Check result
2580         type of comparison expression.
2581         * tree-ssa-forwprop.c (forward_propagate_comparison): Adjust test
2582         of condition result and disallow type-cast sinking into comparison.
2583
2584 2011-07-21  Richard Guenther  <rguenther@suse.de>
2585
2586         * tree-ssa-forwprop.c (combine_conversions): Return whether
2587         we have to run cfg-cleanup.  Properly remove dead stmts.
2588         (ssa_forward_propagate_and_combine): Adjust.
2589
2590 2011-07-21  Richard Sandiford  <richard.sandiford@linaro.org>
2591
2592         * regcprop.c (maybe_mode_change): Check HARD_REGNO_MODE_OK.
2593
2594 2011-07-21  Kai Tietz  <ktietz@redhat.com>
2595
2596         * tree-ssa-propagate.c (substitute_and_fold): Use
2597         do_dce flag to deside, if BB's statements are scanned
2598         in last to first, or first to last order.
2599
2600 2011-07-21  Georg-Johann Lay  <avr@gjlay.de>
2601
2602         * config/avr/avr.c (avr_rtx_costs): Set cost of CONST, LABEL_REF to 0.
2603
2604 2011-07-20  H.J. Lu  <hongjiu.lu@intel.com>
2605             Uros Bizjak  <ubizjak@gmail.com>
2606             Richard Henderson  <rth@redhat.com>
2607
2608         * config/i386/constraints.md (w): New.
2609
2610         * config/i386/i386.c (ix86_output_addr_vec_elt): Check
2611         TARGET_LP64 instead of TARGET_64BIT for ASM_QUAD.
2612
2613         * config/i386/i386.h (CASE_VECTOR_MODE): Check TARGET_LP64
2614         instead of TARGET_64BIT.
2615
2616         * config/i386/i386.md (indirect_jump): Replace
2617         nonimmediate_operand with indirect_branch_operand.
2618         (*indirect_jump): Likewise.  Replace constraint "m" with "w".
2619         (tablejump): Replace nonimmediate_operand with indirect_branch_operand.
2620         Convert operand 0 to Pmode for x32 if not PIC.
2621         (*tablejump_1): Replace nonimmediate_operand with
2622         indirect_branch_operand.  Replace constraint "m" with "w".
2623         (*call_vzeroupper): Replace constraint "m" with "w".
2624         (*call): Likewise.
2625         (*call_rex64_ms_sysv_vzeroupper): Likewise.
2626         (*call_rex64_ms_sysv): Likewise.
2627         (*call_value_vzeroupper): Likewise.
2628         (*call_value): Likewise.
2629         (*call_value_rex64_ms_sysv_vzeroupper): Likewise.
2630         (*call_value_rex64_ms_sysv): Likewise.
2631         (set_got_offset_rex64): Check TARGET_LP64 instead of TARGET_64BIT.
2632
2633         * config/i386/predicates.md (indirect_branch_operand): New.
2634         (call_insn_operand): Support x32.
2635
2636 2011-07-20  Michael Eager  <eager@eagercon.com>
2637
2638         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Default to 12.
2639
2640 2011-07-20  Richard Henderson  <rth@redhat.com>
2641
2642         * cfg.c (dump_bb_info): Dump basic_block->flags.
2643         * cfgrtl.c (print_rtl_with_bb): Use dump_bb_info.
2644
2645 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
2646
2647         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
2648         of DImode hard registers in index.
2649         (ix86_legitimate_address_p): Allow subregs of base and index to span
2650         more than a word.  Assert that subregs of base and index satisfy
2651         register_no_elim_operand predicates.  Reject addresses where
2652         base and index have different modes.
2653
2654 2011-07-20  Robert Millan  <rmh@gnu.org>
2655
2656         * config.gcc (mips*-*-linux*): Remove redundant tm_file entry.
2657
2658 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2659
2660         * bb-reorder.c (fix_crossing_conditional_branches): Fix crash by
2661         removing now-unnecessary assignment.
2662
2663 2011-07-20  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2664
2665         * emit-rtl.c (set_mem_attributes_minus_bitpos): Restore setting
2666         memory address space to the type's address space.
2667
2668 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
2669
2670         PR target/36467
2671         PR target/49687
2672         * config/avr/avr.md (mulhi3): Use register_or_s9_operand for operand2
2673         and expand appropriately if there is a CONST_INT in operand2.
2674         (usmulqihi3): New insn.
2675         (*sumulqihi3): New insn.
2676         (*osmulqihi3): New insn.
2677         (*oumulqihi3): New insn.
2678         (*muluqihi3.uconst): New insn_and_split.
2679         (*muluqihi3.sconst): New insn_and_split.
2680         (*mulsqihi3.sconst): New insn_and_split.
2681         (*mulsqihi3.uconst): New insn_and_split.
2682         (*mulsqihi3.oconst): New insn_and_split.
2683         (*ashifthi3.signx.const): New insn_and_split.
2684         (*ashifthi3.signx.const7): New insn_and_split.
2685         (*ashifthi3.zerox.const): New insn_and_split.
2686         (mulsqihi3): New insn.
2687         (muluqihi3): New insn.
2688         (muloqihi3): New insn.
2689         * config/avr/predicates.md (const_2_to_7_operand): New.
2690         (const_2_to_6_operand): New.
2691         (u8_operand): New.
2692         (s8_operand): New.
2693         (o8_operand): New.
2694         (s9_operand): New.
2695         (register_or_s9_operand): New.
2696
2697 2011-07-20  Kai Tietz  <ktietz@redhat.com>
2698
2699         * builtins.c (fold_builtin_expect): See through the cast
2700         from truthvalue_type_node to long.
2701
2702 2011-07-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
2703
2704         * config/rs6000/vsx.md (vsx_fma*): Use 4 argument fma instructions
2705         where we can use them from the standard and altivec instruction
2706         sets, instead of always using the 3 operand VSX forms that require
2707         the destination to overlap one of the inputs.
2708         (vsx_fms*): Ditto.
2709         (vsx_fnma*): Ditto.
2710         (vsx_fnms*): Ditto.
2711
2712         * config/rs6000/rs6000.md (fmadf4_fpr): Set fp_type fp_maddsub_d
2713         for DF types.
2714         (fmsdf4_fpr): Ditto.
2715         (nfmadf4_fpr): Ditto.
2716         (nfmsdf4_fpr): Ditto.
2717
2718 2011-07-20  Sandra Loosemore  <sandra@codesourcery.com>
2719
2720         * genrecog.c (make_insn_sequence): Correct position numbering
2721         when filtering out match_scratch and match_dup.
2722
2723 2011-07-20  Richard Guenther  <rguenther@suse.de>
2724
2725         * tree-ssa-forwprop.c (remove_prop_source_from_use): Robustify
2726         against already removed statements.
2727         (forward_propagate_into_comparison): Remove dead defining stmts.
2728         (forward_propagate_into_gimple_cond): Likewise.
2729         (forward_propagate_into_cond): Simplify.
2730         (ssa_forward_propagate_and_combine): Handle changed cfg from
2731         forward_propagate_into_comparison.
2732         * tree-ssa-phiopt.c (conditional_replacement): Use proper
2733         locations for newly built statements.
2734
2735 2011-07-20  Georg-Johann Lay  <avr@gjlay.de>
2736
2737         * config/avr/avr.c (avr_rtx_costs): Set cost of SYMBOL_REF to 0.
2738
2739 2011-07-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2740
2741         * config/s390/s390.c (s390_class_max_nregs): Fix return type.
2742         * config/s390/s390-protos.h (s390_class_max_nregs): Likewise.
2743
2744 2011-07-20  Richard Guenther  <rguenther@suse.de>
2745
2746         PR middle-end/18908
2747         * tree.c (integer_all_onesp): Use TYPE_PRECISION, not mode precision.
2748         * tree-ssa-forwprop.c (simplify_bitwise_binary): Remove bogus
2749         ADDR_EXPR folding.  Canonicalize X ^ ~0 as ~X.
2750
2751 2011-07-20  Vladimir Makarov  <vmakarov@redhat.com>
2752
2753         * config/frv/frv.c (frv_register_move_cost): Define explicitly
2754         costs for subclasses of GR_REGS.
2755
2756 2011-07-20  Uros Bizjak  <ubizjak@gmail.com>
2757
2758         PR target/49780
2759         * config/i386/predicates.md (no_seg_addres_operand): No more special.
2760         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
2761         of DImode hard registers in base.
2762         (ix86_legitimate_address_p): Allow SImode and DImode base and index
2763         registers.
2764
2765 2011-07-20  Richard Guenther  <rguenther@suse.de>
2766
2767         * tree-ssa-structalias.c (new_var_info): Allocate oldsolution lazily.
2768         (unify_nodes): Deal with that.
2769         (solve_graph): Likewise.
2770
2771 2011-07-20  Chung-Lin Tang  <cltang@codesourcery.com>
2772
2773         * config/arm/arm.c (arm_canonicalize_comparison): Add case to
2774         canonicalize left operand from ZERO_EXTEND to AND.
2775
2776 2011-07-20  Anatoly Sokolov  <aesok@post.ru>
2777
2778         * target.def (class_max_nregs): New hook.
2779         * doc/tm.texi.in (TARGET_CLASS_MAX_NREGS): Document.
2780         * doc/tm.texi: Regenerate.
2781         * targhooks.c (default_class_max_nregs): New function.
2782         * targhooks.h (default_class_max_nregs): Declare.
2783         * ira.h (target_ira): Change type x_ira_reg_class_max_nregs and
2784         x_ira_reg_class_min_nregs arrays to unsigned char.
2785         * ira.c (setup_reg_class_nregs): Use TARGET_CLASS_MAX_NREGS target
2786         hook instead of CLASS_MAX_NREGS macro.
2787         * reginfo.c (restore_register_info): Ditto.
2788         * ira-conflicts.c (process_regs_for_copy): Use
2789         ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
2790         Change type rclass and aclass vars to reg_class_t.
2791         * ira-costs.c (record_reg_classes): Use ira_reg_class_max_nregs
2792         array instead of CLASS_MAX_NREGS macro. Change type rclass var to
2793         reg_class_t.
2794         * reload.c (combine_reloads, find_reloads, find_reloads_address_1):
2795         Use ira_reg_class_max_nregs array instead of CLASS_MAX_NREGS macro.
2796
2797         * config/i386/i386.h (CLASS_MAX_NREGS): Remove.
2798         * config/i386/i386.c (ix86_class_max_nregs): New function.
2799         (ix86_register_move_cost): Use TARGET_CLASS_MAX_NREGS target hook
2800         instead of CLASS_MAX_NREGS macro.
2801         (TARGET_CLASS_MAX_NREGS): Define.
2802         * config/avr/avr.h (CLASS_MAX_NREGS): Remove.
2803         * config/avr/avr-protos.h (class_max_nregs): Remove declaration.
2804         * config/avr/avr.c (class_max_nregs): Remove function.
2805         * config/alpha/alpha.h (CLASS_MAX_NREGS): Remove.
2806         * config/spu/spu.h (CLASS_MAX_NREGS): Remove.
2807         * config/mep/mep.h (CLASS_MAX_NREGS): Remove.
2808         * config/m32r/m32r.h (CLASS_MAX_NREGS): Remove.
2809         * config/microblaze/microblaze.h (CLASS_MAX_NREGS): Remove.
2810         * config/xtensa/xtensa.h (CLASS_MAX_NREGS): Remove.
2811         * config/stormy16/stormy16.h (CLASS_MAX_NREGS): Remove.
2812         * config/lm32/lm32.h (CLASS_MAX_NREGS): Remove.
2813         * config/moxie/moxie.h (CLASS_MAX_NREGS): Remove.
2814         * config/iq2000/iq2000.h (CLASS_MAX_NREGS): Remove.
2815         * config/mn10300/mn10300.h (CLASS_MAX_NREGS): Remove.
2816         * config/score/score.h (CLASS_MAX_NREGS): Remove.
2817         * config/vax/vax.h (CLASS_MAX_NREGS): Remove.
2818         * config/h8300/h8300.h (CLASS_MAX_NREGS): Remove.
2819         * config/v850/v850.h (CLASS_MAX_NREGS): Remove.
2820
2821 2011-07-19  Eric Botcazou  <ebotcazou@adacore.com>
2822
2823         * cif-code.def (OVERWRITABLE): Fix typo and move around.
2824         (TARGET_OPTIMIZATION_MISMATCH): Delete.
2825         (EH_PERSONALITY): Fix typo.
2826         (NON_CALL_EXCEPTIONS): Fix message.
2827         (OPTIMIZATION_MISMATCH): Adjust message.
2828         * ipa-inline.c (can_inline_edge_p): Use CIF_OPTIMIZATION_MISMATCH.
2829
2830 2011-07-19  Ian Lance Taylor  <iant@google.com>
2831
2832         * doc/install.texi (Configuration): Document
2833         --enable-build-poststage1-with-cxx.
2834
2835 2011-07-19  Robert Millan  <rmh@gnu.org>
2836
2837         * config/mips/gnu-user.h: Copy from linux.h.  Update comments.
2838         (GLIBC_DYNAMIC_LINKER): Remove.
2839
2840         * config/mips/gnu-user64.h: Copy from linux64.h.  Update comments.
2841         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
2842         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
2843         (BIONIC_DYNAMIC_LINKERN32, GNU_USER_DYNAMIC_LINKERN32): Remove.
2844         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32,
2845         GNU_USER_DYNAMIC_LINKER64 and GNU_USER_LINK_EMULATIONN32.
2846
2847         * config/mips/linux.h: Remove everything except for ...
2848         (GLIBC_DYNAMIC_LINKER): ... this macro.
2849
2850         * config/mips/linux64.h: Remove everything except for ...
2851         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64)
2852         (GLIBC_DYNAMIC_LINKERN32, UCLIBC_DYNAMIC_LINKERN32)
2853         (BIONIC_DYNAMIC_LINKERN32): ... these macros.
2854         (GNU_USER_LINK_EMULATION32, GNU_USER_LINK_EMULATION64)
2855         (GNU_USER_LINK_EMULATIONN32): New macros.
2856
2857         * config.gcc (mips64*-*-linux* | mipsisa64*-*-linux* | mips-*-linux*):
2858         Use the new headers.
2859
2860 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
2861
2862         * rtl.h (mem_attrs): Turn offset and size fields into HOST_WIDE_INTs.
2863         Add offset_known_p and size_known_p fields.
2864         (MEM_OFFSET_KNOWN_P): Update accordingly.
2865         (MEM_OFFSET, MEM_SIZE_KNOWN_P, MEM_SIZE): Likewise.
2866         * emit-rtl.c (mem_attrs_htab_hash): Update after mem_attrs changes.
2867         (mem_attrs_eq_p, set_mem_attributes_minus_bitpos, set_mem_offset)
2868         (clear_mem_offset, set_mem_size, clear_mem_size, change_address)
2869         (adjust_address_1, widen_memory_access, set_mem_attrs_for_spill)
2870         (init_emit_regs): Likewise.
2871
2872 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
2873
2874         * doc/rtl.texi (MEM_OFFSET_KNOWN_P): Document.
2875         (MEM_OFFSET): Change from returning an rtx to returning a
2876         HOST_WIDE_INT.
2877         * rtl.h (MEM_OFFSET_KNOWN_P): New macro.
2878         (MEM_OFFSET): Return a HOST_WIDE_INT rather than an rtx.
2879         * emit-rtl.h (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
2880         (clear_mem_offset): Declare.
2881         * alias.c (ao_ref_from_mem): Adjust uses of MEM_OFFSET, using
2882         MEM_OFFSET_KNOWN_P to test whether the offset is known, and
2883         MEM_OFFSET to get a HOST_WIDE_INT offset.
2884         (nonoverlapping_memrefs_p): Likewise.  Adjust calls to...
2885         (adjust_offset_for_component_ref): Take a bool "known_p"
2886         parameter and a HOST_WIDE_INT "offset" parameter.
2887         * builtins.c (get_memory_rtx): As for ao_ref_from_mem.
2888         Adjust calls to set_mem_offset, passing a HOST_WIDE_INT rather
2889         than an rtx.  Use clear_mem_offset to clear the offset.
2890         * cfgcleanup.c (merge_memattrs): Likewise.
2891         * dwarf2out.c (tls_mem_loc_descriptor): Likewise.
2892         * function.c (assign_parm_find_stack_rtl): Likewise.
2893         (assign_parm_setup_stack): Likewise.
2894         * print-rtl.c (print_rtx): Likewise.
2895         * reload.c (find_reloads_subreg_address): Likewise.
2896         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
2897         * var-tracking.c (INT_MEM_OFFSET): Likewise.
2898         * emit-rtl.c (set_reg_attrs_from_value): Likewise.
2899         (get_mem_align_offset): Likewise.
2900         (set_mem_offset): Take a HOST_WIDE_INT rather than an rtx.
2901         (clear_mem_offset): New function.
2902         * config/mips/mips.c (r10k_safe_mem_expr_p): Take a HOST_WIDE_INT
2903         offset rather than an rtx.  Assume both the expressio and offset
2904         are available.
2905         (r10k_needs_protection_p_1): Update accordingly, checking the
2906         expression and offset availability here instead.
2907
2908 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
2909
2910         * doc/rtl.texi (MEM_SIZE_KNOWN_P): Document.
2911         (MEM_SIZE): Change from returning an rtx to returning a HOST_WIDE_INT.
2912         * rtl.h (MEM_SIZE_KNOWN_P): New macro.
2913         (MEM_SIZE): Return a HOST_WIDE_INT rather than an rtx.
2914         * emit-rtl.h (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
2915         (clear_mem_size): Declare.
2916         * emit-rtl.c (set_mem_size): Take a HOST_WIDE_INT rather than an rtx.
2917         (clear_mem_size): New function.
2918         * alias.c (ao_ref_from_mem): Adjust uses of MEM_SIZE, using
2919         MEM_SIZE_KNOWN_P to test whether the size is known, and MEM_SIZE
2920         to get a HOST_WIDE_INT size.  Adjust calls to set_mem_size,
2921         passing a HOST_WIDE_INT rather than an rtx.  Use clear_mem_size
2922         to clear the size.
2923         (nonoverlapping_memrefs_p): Likewise.
2924         * builtins.c (get_memory_rtx, expand_builtin_memcmp): Likewise.
2925         (expand_builtin_init_trampoline): Likewise.
2926         * calls.c (compute_argument_addresses): Likewise.
2927         * cfgcleanup.c (merge_memattrs): Likewise.
2928         * dce.c (find_call_stack_args): Likewise.
2929         * dse.c (record_store, scan_insn): Likewise.
2930         * dwarf2out.c (dw_sra_loc_expr): Likewise.
2931         * expr.c (emit_block_move_hints): Likewise.
2932         * function.c (assign_parm_find_stack_rtl): Likewise.
2933         * print-rtl.c (print_rtx): Likewise.
2934         * reload.c (find_reloads_subreg_address): Likewise.
2935         * rtlanal.c (may_trap_p_1): Likewise.
2936         * var-tracking.c (track_expr_p): Likewise.
2937         * varasm.c (assemble_trampoline_template): Likewise.
2938         * config/arm/arm.c (arm_print_operand): Likewise.
2939         * config/h8300/h8300.c (h8sx_emit_movmd): Likewise.
2940         * config/i386/i386.c (expand_movmem_via_rep_mov): Likewise.
2941         (expand_setmem_via_rep_stos, expand_constant_movmem_prologue)
2942         (expand_constant_setmem_prologue): Likewise.
2943         * config/mips/mips.c (mips_get_unaligned_mem): Likewise.
2944         * config/rs6000/rs6000.c (expand_block_move): Likewise.
2945         (adjacent_mem_locations): Likewise.
2946         * config/s390/s390.c (s390_expand_setmem): Likewise.
2947         (s390_expand_insv): Likewise.
2948         * config/s390/s390.md (*extzv<mode>, *extv<mode>): Likewise.
2949         (*extendqi<mode>2_short_displ): Likewise.
2950         * config/sh/sh.c (expand_block_move): Likewise.
2951         * config/sh/sh.md (extv, extzv): Likewise.
2952
2953 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
2954
2955         * emit-rtl.c (mem_attrs_eq_p): New function, split out from...
2956         (mem_attrs_htab_eq): ...here.
2957         (find_mem_attrs): Replace with...
2958         (set_mem_attrs): ...this function.  Take a mem_attrs structure
2959         rather than individual fields.
2960         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
2961         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
2962         (set_mem_size, change_address, adjust_address_1, offset_address)
2963         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
2964         Update accordingly.
2965
2966 2011-07-19  Richard Sandiford  <rdsandiford@googlemail.com>
2967
2968         * rtl.h (MEM_ALIAS_SET, MEM_EXPR, MEM_OFFSET, MEM_ADDR_SPACE)
2969         (MEM_SIZE, MEM_ALIGN): Redefine in terms of get_mem_attrs.
2970         Provide a dummy definition of MEM_ADDR_SPACE for generators.
2971         (target_rtl): Add x_mode_mem_attrs.
2972         (mode_mem_attrs): New macro.
2973         (get_mem_attrs): New function.
2974         * emit-rtl.c (get_mem_attrs): Rename to...
2975         (find_mem_attrs): ...this.
2976         (set_mem_attributes_minus_bitpos, set_mem_alias_set)
2977         (set_mem_addr_space, set_mem_align, set_mem_expr, set_mem_offset)
2978         (set_mem_size, change_address, adjust_address_1, offset_address)
2979         (widen_memory_access, get_spill_slot_decl, set_mem_attrs_for_spill):
2980         Update accordingly.
2981         (init_emit_regs): Initialize mode_mem_attrs.
2982
2983 2011-07-19  Richard Guenther  <rguenther@suse.de>
2984
2985         * tree-ssa-forwprop.c (lookup_logical_inverted_value): Remove
2986         TRUTH_*_EXPR handling.
2987         * tree-ssa-operands.c (get_expr_operands): Likewise.
2988         * tree-ssa-pre.c (fully_constant_expression): Likewise.
2989         * tree-ssa-uninit.c (use_pred_not_overlap_with_undef_path_pre):
2990         Likewise.
2991         (is_and_or_or): Likewise.
2992         (is_norm_cond_subset_of): Likewise.
2993
2994 2011-07-19  Richard Guenther  <rguenther@suse.de>
2995
2996         * tree.h (fold_build_pointer_plus_loc): New helper function.
2997         (fold_build_pointer_plus_hwi_loc): Likewise.
2998         (fold_build_pointer_plus): Define.
2999         (fold_build_pointer_plus_hwi): Likewise.
3000         * builtins.c (std_gimplify_va_arg_expr): Use fold_build_pointer_plus.
3001         (fold_builtin_memory_op): Likewise.
3002         (fold_builtin_stpcpy): Likewise.
3003         (fold_builtin_memchr): Likewise.
3004         (fold_builtin_strstr): Likewise.
3005         (fold_builtin_strchr): Likewise.
3006         (fold_builtin_strrchr): Likewise.
3007         (fold_builtin_strpbrk): Likewise.
3008         (fold_builtin_strcat): Likewise.
3009         (expand_builtin_memory_chk): Likewise.
3010         (fold_builtin_memory_chk): Likewise.
3011         * c-typeck.c (build_unary_op): Likewise.
3012         * cgraphunit.c (thunk_adjust): Likewise.
3013         * fold-const.c (build_range_check): Likewise.
3014         (fold_binary_loc): Likewise.
3015         * omp-low.c (extract_omp_for_data): Likewise.
3016         (expand_omp_for_generic): Likewise.
3017         (expand_omp_for_static_nochunk): Likewise.
3018         (expand_omp_for_static_chunk): Likewise.
3019         * tree-affine.c (add_elt_to_tree): Likewise.
3020         * tree-data-ref.c (split_constant_offset_1): Likewise.
3021         * tree-loop-distribution.c (generate_memset_zero): Likewise.
3022         * tree-mudflap.c (mf_xform_derefs_1): Likewise.
3023         * tree-predcom.c (ref_at_iteration): Likewise.
3024         * tree-ssa-address.c (tree_mem_ref_addr): Likewise.
3025         (add_to_parts): Likewise.
3026         (create_mem_ref): Likewise.
3027         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
3028         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Likewise.
3029         (number_of_iterations_le): Likewise.
3030         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Likewise.
3031         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
3032         (vect_create_addr_base_for_vector_ref): Likewise.
3033         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Likewise.
3034         (vect_create_cond_for_alias_checks): Likewise.
3035         * tree-vrp.c (extract_range_from_assert): Likewise.
3036         * config/alpha/alpha.c (alpha_va_start): Likewise.
3037         (alpha_gimplify_va_arg_1): Likewise.
3038         * config/i386/i386.c (ix86_va_start): Likewise.
3039         (ix86_gimplify_va_arg): Likewise.
3040         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
3041         * config/mep/mep.c (mep_expand_va_start): Likewise.
3042         (mep_gimplify_va_arg_expr): Likewise.
3043         * config/mips/mips.c (mips_va_start): Likewise.
3044         (mips_gimplify_va_arg_expr): Likewise.
3045         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
3046         * config/rs6000/rs6000.c (rs6000_va_start): Likewise.
3047         (rs6000_gimplify_va_arg): Likewise.
3048         * config/s390/s390.c (s390_va_start): Likewise.
3049         (s390_gimplify_va_arg): Likewise.
3050         * config/sh/sh.c (sh_va_start): Likewise.
3051         (sh_gimplify_va_arg_expr): Likewise.
3052         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
3053         * config/spu/spu.c (spu_va_start): Likewise.
3054         (spu_gimplify_va_arg_expr): Likewise.
3055         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
3056         Likewise.
3057         (xstormy16_gimplify_va_arg_expr): Likewise.
3058         * config/xtensa/xtensa.c (xtensa_va_start): Likewise.
3059         (xtensa_gimplify_va_arg_expr): Likewise.
3060
3061 2011-07-19  Richard Guenther  <rguenther@suse.de>
3062
3063         * expr.c (expand_expr_real_2): Remove TRUTH_*_EXPR handling.
3064         (expand_expr_real_1): Remove TRUTH_*IF_EXPR and STATEMENT_LIST
3065         handling.
3066
3067         PR middle-end/18908
3068         * expr.c (expand_expr_real_2): Do not unnecessarily truncate the
3069         result of BIT_*_EXPR to bitfield precision.
3070
3071 2011-07-19  Richard Sandiford  <richard.sandiford@linaro.org>
3072
3073         PR tree-optimization/49742
3074         * tree-data-ref.c (get_references_in_stmt): Treat the lhs of a call
3075         as a potential write.
3076
3077 2011-07-19  Richard Guenther  <rguenther@suse.de>
3078
3079         * Makefile.in (tree-ssa-forwprop.o): Depend on gimple-pretty-print.h.
3080         * tree-ssa-forwprop.c: Include gimple-pretty-print.h.
3081         (forward_propagate_comparison): Simplify, remove obsolete code.
3082
3083 2011-07-19  Richard Guenther  <rguenther@suse.de>
3084
3085         * gimplify.c (gimplify_expr): Gimplify TRUTH_NOT_EXPR as
3086         BIT_XOR_EXPR, same as the RTL expander does.
3087         * tree-cfg.c (verify_expr): Disallow TRUTH_NOT_EXPR in the gimple IL.
3088         (verify_gimple_assign_unary): Likewise.
3089         * tree-ssa-propagate.c (valid_gimple_rhs_p): Disallow TRUTH_*_EXPR.
3090         * tree-ssa-forwprop.c (forward_propagate_comparison): Handle
3091         BIT_NOT_EXPR and BIT_XOR_EXPR instead of TRUTH_NOT_EXPR.
3092
3093 2011-07-19  Jakub Jelinek  <jakub@redhat.com>
3094
3095         PR tree-optimization/49768
3096         * gimple-fold.c (fold_nonarray_ctor_reference): Return NULL
3097         if offset is smaller than bitoffset, but offset+size is bigger
3098         than bitoffset.
3099
3100 2011-07-19  Ira Rosen  <ira.rosen@linaro.org>
3101
3102         PR tree-optimization/49771
3103         * tree-vect-loop-manip.c (vect_vfa_segment_size): In case of
3104         zero step, set segment length to the size of the data-ref's type.
3105
3106 2011-07-18  Martin Jambor  <mjambor@suse.cz>
3107
3108         * ipa-prop.h: Include alloc-pool.h, all sorts of updates to general
3109         comments.
3110         (ipcp_values_pool): Declare.
3111         (ipcp_sources_pool): Likewise.
3112         (ipcp_lattice): Changed to forward declaration.
3113         (ipa_param_descriptor): Removed fields ipcp_lattice, types and
3114         cannot_devirtualize.
3115         (ipa_node_params): New fields descriptors, lattices, known_vals,
3116         clone_for_all_contexts and node dead, removed fields params and
3117         count_scale.
3118         (ipa_set_param_count): Removed.
3119         (ipa_get_param_count): Made to work with descriptors vector.
3120         (ipa_get_param): Updated.
3121         (ipa_param_cannot_devirtualize_p): Removed.
3122         (ipa_param_types_vec_empty): Likewise.
3123         (ipa_set_param_used): New function.
3124         (ipa_get_param_used): Updated to use descriptors vector.
3125         (ipa_func_list): Removed.
3126         (ipa_init_func_list): Removed declaration.
3127         (ipa_push_func_to_list_1): Likewise.
3128         (ipa_pop_func_from_list): Likewise.
3129         (ipa_push_func_to_list): Removed.
3130         (ipa_lattice_from_jfunc): Remove declaration.
3131         (ipa_get_jf_pass_through_result): Declare.
3132         (ipa_get_jf_ancestor_result): Likewise.
3133         (ipa_value_from_jfunc): Likewise.
3134         (ipa_get_lattice): Update.
3135         (ipa_lat_is_single_const): New function.
3136         * ipa-prop.c (ipa_push_func_to_list_1): Removed.
3137         (ipa_init_func_list): Likewise.
3138         (ipa_pop_func_from_list): Likewise.
3139         (ipa_get_param_decl_index): Fix coding style.
3140         (count_formal_params): Removed.
3141         (count_formal_params_1): Renamed to count_formal_params.
3142         (ipa_populate_param_decls): Update to use descriptors vector.
3143         (ipa_initialize_node_params): Likewise.
3144         (visit_ref_for_mod_analysis): Use ipa_set_param_used.
3145         (ipa_analyze_params_uses): Likewise.
3146         (ipa_free_node_params_substructures): Likewise and free also lattices
3147         and known values.
3148         (duplicate_array): Removed.
3149         (ipa_edge_duplication_hook): Add the new edge to the list of edge
3150         clones.
3151         (ipa_node_duplication_hook): Update to use new lattices.
3152         (ipa_free_all_structures_after_ipa_cp): Free alloc pools.
3153         (ipa_free_all_structures_after_iinln): Likewise.
3154         (ipa_write_node_info): Update to use new lattices.
3155         (ipa_read_node_info): Likewise.
3156         (ipa_get_jf_pass_through_result): New function.
3157         (ipa_get_jf_ancestor_result): Likewise.
3158         (ipa_value_from_jfunc): Likewise.
3159         (ipa_cst_from_jfunc): Reimplemented using ipa_value_from_jfunc.
3160         * ipa-cp.c: Reimplemented.
3161         * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): Removed.
3162         (PARAM_IPA_CP_VALUE_LIST_SIZE): New parameter.
3163         (PARAM_IPA_CP_EVAL_THRESHOLD): Likewise.
3164         * Makefile.in (IPA_PROP_H): Added alloc-pool.h to dependencies.
3165         * doc/invoke.texi (devirt-type-list-size): Removed description.
3166         (ipa-cp-value-list-size): Added description.
3167
3168 2011-07-18  Richard Henderson  <rth@redhat.com>
3169
3170         * bb-reorder.c (fix_crossing_conditional_branches): Emit all insns
3171         before calling create_basic_block.
3172
3173 2011-07-18  Jakub Jelinek  <jakub@redhat.com>
3174
3175         PR middle-end/49675
3176         * tree.c (build_common_builtin_nodes): Register
3177         __builtin_return_address, __cyg_profile_func_enter
3178         and __cyg_profile_func_exit.
3179
3180 2011-07-18  Richard Henderson  <rth@redhat.com>
3181
3182         * bb-reorder.c (emit_barrier_after_bb): Split out of ...
3183         (add_labels_and_missing_jumps): ... here.
3184         (fix_up_fall_thru_edges, fix_crossing_conditional_branches): Use it.
3185
3186 2011-07-18  Uros Bizjak  <ubizjak@gmail.com>
3187
3188         PR target/47744
3189         * config/i386/i386.c (ix86_decompose_address): Allow only subregs
3190         of DImode hard registers in PLUS address chains.
3191
3192 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3193
3194         PR bootstrap/49769
3195         * config.gcc (alpha*-*-linux*): Add crtfastmath.o to extra_parts.
3196         (alpha*-*-freebsd*): Likewise.
3197         (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
3198         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
3199         i[34567]86-*-kopensolaris*-gnu): Add crtprec32.o, crtprec64.o,
3200         crtprec80.o, crtfastmath.o to extra_parts for all targets.
3201         (ia64*-*-elf*): Remove extra_parts.
3202         (sparc-*-linux*): Add crtfastmath.o to extra_parts.
3203         (sparc64-*-linux*): Likewise.
3204         (sparc64-*-freebsd*): Likewise.
3205
3206         Revert:
3207         * config.gcc (ia64*-*-freebsd*): Remove crtfastmath.o from extra_parts.
3208         (ia64*-*-linux*): Likewise.
3209         (mips64*-*-linux*): Likewise.
3210         (mips*-*-linux*): Likewise.
3211
3212 2011-07-18  David Edelsohn  <dje.gcc@gmail.com>
3213
3214         * doc/install.texi (Specific, *-ibm-aix*): AIX assembler bug.
3215
3216 2011-07-18  Richard Guenther  <rguenther@suse.de>
3217
3218         * gimplify.c (gimplify_expr): Use input_location, not saved_location
3219         when building new trees.
3220
3221 2011-07-18  Richard Guenther  <rguenther@suse.de>
3222
3223         * expr.c (expand_expr_real_2): Properly truncate the BIT_NOT_EXPR
3224         expansion result to bitfield precision if required.
3225
3226 2011-07-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3227
3228         * config.gcc (i[3456x]86-*-netware*): Remove.
3229
3230         * gthr-nks.h: Remove.
3231         * configure.ac (enable_threads): Remove nks.
3232         * configure: Regenerate.
3233
3234         * config/i386/i386.c (ix86_encode_section_info): Remove netware
3235         reference.
3236         * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): Remove
3237         <netware.h> reference.
3238
3239         * config/i386/netware-libgcc.c,
3240         gcc/config/i386/netware-libgcc.def,
3241         gcc/config/i386/netware-libgcc.exp, gcc/config/i386/netware.c,
3242         gcc/config/i386/netware.h, gcc/config/i386/netware.opt,
3243         gcc/config/i386/nwld.c, gcc/config/i386/nwld.h,
3244         gcc/config/i386/t-netware, gcc/config/i386/t-nwld: Remove
3245
3246         * doc/extend.texi (Function Attributes,
3247         callee_pop_aggregate_return): Remove i?86-netware reference.
3248         * doc/install.texi (Configuration, --enable-threads): Remove nks.
3249
3250 2011-07-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3251
3252         PR target/49746
3253         Revert:
3254         2010-12-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3255
3256         * config/pa/pa.md: Add ",*" condition to 64-bit add/subtract boolean
3257         patterns.
3258
3259 2011-07-17  Eric Botcazou  <ebotcazou@adacore.com>
3260
3261         PR middle-end/49732
3262         * tree.c (walk_tree_1) <DECL_EXPR>: Do not walk a pointed-to type.
3263
3264 2011-07-16  Matthias Klose  <doko@ubuntu.com>
3265
3266         * doc/install.texi: Document --enable-static-libjava.
3267
3268 2011-07-15  Richard Henderson  <rth@redhat.com>
3269
3270         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
3271         Replace all three arguments by returning a VEC of edges.
3272         (add_labels_and_missing_jumps): Accept a VEC of edges, not bare
3273         pointers and counts.
3274         (fix_edges_for_rarely_executed_code): Merge ...
3275         (rest_of_handle_partition_blocks): ... into...
3276         (partition_hot_cold_basic_blocks): ... here.  Return todo items if
3277         any work was performed.
3278         (pass_partition_blocks): Clear todo_flags_finish.
3279
3280 2011-07-15  Paolo Carlini  <paolo.carlini@oracle.com>
3281             Jakub Jelinek  <jakub@redhat.com>
3282             Jonathan Wakely  <jwakely.gcc@gmail.com>
3283
3284         PR libstdc++/49745
3285         * gthr-posix.h: Do not include <unistd.h> unconditionally; use
3286         _GTHREADS_USE_MUTEX_TIMEDLOCK instead of _POSIX_TIMEOUTS.
3287
3288 2011-07-15  Jason Merrill  <jason@redhat.com>
3289
3290         PR testsuite/49741
3291         * Makefile.in ($(lang_checks_parallelized)): Allow --extra_opts
3292         rather than --tool_opts.
3293
3294 2011-07-15  Basile Starynkevitch  <basile@starynkevitch.net>
3295
3296         * doc/plugins.texi (Building GCC plugins): gengtype needs its
3297         corresponding gtype.state.
3298
3299 2011-07-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3300
3301         PR target/49723
3302         * config/pa/pa.md (casesi): Use gen_int_mode instead of GEN_INT.
3303
3304 2011-07-15  Eric Botcazou  <ebotcazou@adacore.com>
3305
3306         PR target/48220
3307         * doc/md.texi (Standard Names): Document window_save.
3308         * cfgexpand.c (expand_debug_parm_decl): New function extracted from
3309         expand_debug_expr and expand_debug_source_expr.  If the target has
3310         a window_save instruction, adjust the ENTRY_VALUE_EXP.
3311         (expand_debug_expr) <SSA_NAME>: Call expand_debug_parm_decl if the
3312         SSA_NAME_VAR is a parameter.
3313         (expand_debug_source_expr) <PARM_DECL>: Call expand_debug_parm_decl.
3314         * var-tracking.c (parm_reg_t): New type and associated vector type.
3315         (windowed_parm_regs): New variable.
3316         (adjust_insn): If the target has a window_save instruction and this
3317         is the instruction, make its effect on parameter registers explicit.
3318         (next_non_note_insn_var_location): New function.
3319         (emit_notes_in_bb): Use it instead of NEXT_INSN throughout.
3320         (vt_add_function_parameter): If the target has a window_save insn,
3321         adjust the incoming RTL and record that in windowed_parm_regs.
3322         (vt_finalize): Free windowed_parm_regs.
3323
3324 2011-07-15  Bernd Schmidt  <bernds@codesourcery.com>
3325
3326         * doc/invoke.texi (C6X Options): New section.
3327         * doc/md.texi (TI C6X family): New section.
3328         * config.gcc: Handle tic6x, in particular tic6x-*-elf and
3329         tic6x-*-uclinux.
3330         * longlong.h (add_ssaaaa, __umulsidi3, umul_ppmm,
3331         count_leading_zeros, count_trailing_zeros, UMUL_TIME, UDIV_TIME):
3332         Provide C6X definitions.
3333         * config/c6x/c6x.md: New file.
3334         * config/c6x/constraints.md: New file.
3335         * config/c6x/predicates.md: New file.
3336         * config/c6x/c6x-sched.md.in: New file.
3337         * config/c6x/c6x-sched.md: New file.
3338         * config/c6x/gensched.sh: New file.
3339         * config/c6x/c6x-mult.md.in: New file.
3340         * config/c6x/genmult.sh: New file.
3341         * config/c6x/c6x-mult.md: New file.
3342         * config/c6x/sync.md: New file.
3343         * config/c6x/c6x-protos.h: New file.
3344         * config/c6x/sfp-machine.h: New file.
3345         * config/c6x/c6x.c: New file.
3346         * config/c6x/c6x.h: New file.
3347         * config/c6x/crti.s: New file.
3348         * config/c6x/crtn.s: New file.
3349         * config/c6x/lib1funcs.asm: New file.
3350         * config/c6x/c6x-modes.def: New file.
3351         * config/c6x/genopt.sh: New file.
3352         * config/c6x/c6x.opt: New file.
3353         * config/c6x/c6x-tables.opt: New file.
3354         * config/c6x/c6x-opts.h: New file.
3355         * config/c6x/c6x-isas.def: New file.
3356         * config/c6x/elf.h: New file.
3357         * config/c6x/elf-common.h: New file.
3358         * config/c6x/uclinux-elf.h: New file.
3359         * config/c6x/t-c6x: New file.
3360         * config/c6x/t-c6x-elf: New file.
3361         * config/c6x/t-c6x-uclinux: New file.
3362         * config/c6x/t-c6x-softfp: New file.
3363         * config/c6x/gtd.c: New file.
3364         * config/c6x/gtf.c: New file.
3365         * config/c6x/ltd.c: New file.
3366         * config/c6x/ltf.c: New file.
3367         * config/c6x/ged.c: New file.
3368         * config/c6x/gef.c: New file.
3369         * config/c6x/led.c: New file.
3370         * config/c6x/lef.c: New file.
3371         * config/c6x/eqd.c: New file.
3372         * config/c6x/eqf.c: New file.
3373         * config/c6x/libgcc-c6xeabi.ver: New file.
3374
3375         Revert
3376         2003-07-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
3377         PR rtl-optimization/11320
3378         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
3379         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
3380         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
3381         current_sched_info->compute_jump_reg_dependencies. Record which
3382         registers are used and which registers are set by the jump.
3383         Clear deps->reg_conditional_sets after a barrier.
3384         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
3385         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
3386         (init_deps): Initialize reg_conditional_sets.
3387         (free_deps): Clear reg_conditional_sets.
3388         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
3389         Mark registers live on entry of the fallthrough block and conditionally
3390         set as set by the jump. Mark registers live on entry of non-fallthrough
3391         blocks as used by the jump.
3392         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
3393         Mark new parameters as unused.
3394
3395 2011-07-14  Andrew Pinski  <pinskia@gmail.com>
3396
3397         PR tree-opt/49309
3398         * tree-mudflap.c (mf_xform_derefs_1 <case MEM_REF>):
3399         Use fold_build2_loc instead of build2.
3400         Use the correct type for the new tree.
3401
3402 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
3403
3404         PR rtl-optimization/11320
3405         * config/ia64/ia64.md (load_symptr_low): Show a MEM.
3406         * config/ia64/ia64.c (ia64_expand_load_address): Generate it.
3407
3408 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
3409
3410         PR target/49487
3411         * config/avr/avr.md (rotl<mode>3): Generate SCRATCH instead
3412         of REG.
3413         (*rotw<mode>): Use const_int_operand for operand2.
3414         Use match_scatch for operand3.
3415         (*rotb<mode>): Ditto
3416         * config/avr/avr.c (avr_rotate_bytes): Treat SCRATCH.
3417
3418 2011-07-14  Richard Guenther  <rguenther@suse.de>
3419
3420         PR tree-optimization/49651
3421         * tree-ssa-structalias.c (get_constraint_for_1): Properly
3422         handle dereferences with subvariables.
3423
3424 2011-07-14  Richard Guenther  <rguenther@suse.de>
3425
3426         * gimple-fold.c (fold_gimple_assign): Remove operand swapping.
3427         (fold_stmt_1): Do it here directly on gimple and as a first thing.
3428
3429 2011-07-14  Richard Guenther  <rguenther@suse.de>
3430
3431         * fold-const.c (fold_binary_loc): Convert the !bool_var result,
3432         not bool_var when folding bool_var != 1 or bool_var == 0.
3433
3434 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
3435
3436         * haifa-sched.c (schedule_insns): Remove outdated comment.
3437         (schedule_block): When computing a known value for TODO_SPEC,
3438         just set it rather than using logical operations.
3439         (try_ready): Likewise.  Use a local variable rather than a
3440         pointer to TODO_SPEC.  Reorder an if statement to move the
3441         easy case to the then block.
3442         * sched-deps.c (dep_spec_p): New static function.
3443         (update_dep): Use it to decide whether to call
3444         change_spec_dep_to_hard.
3445         (get_back_and_forw_lists): Use it.
3446         (sd_resolve_dep): Likewise.
3447         (init_dep): If !USE_DEPS_LIST, use zero to initialize status.
3448         (haifa_note_mem_dep): Likewise.
3449         (check_dep): Likewise.
3450         (sd_add_dep): Also clear SPECULATIVE bits if not DO_SPECULATION.
3451         (sched_free_deps): Free in two passes.
3452
3453 2011-07-14  Richard Sandiford  <richard.sandiford@linaro.org>
3454
3455         PR middle-end/49736
3456         * expr.c (all_zeros_p): Undo bogus part of last change.
3457
3458 2011-07-14  Matthias Klose <doko@ubuntu.com>
3459
3460         * doc/extend.texi (optimize attribute): Fix typo.
3461
3462 2011-07-14  Richard Guenther  <rguenther@suse.de>
3463
3464         * gimplify.c (gimplify_expr): Only do required conversions.
3465
3466 2011-07-14  Georg-Johann Lay  <avr@gjlay.de>
3467
3468         PR target/43746
3469         * config/avr/elf.h (TARGET_ASM_SELECT_SECTION): Remove,
3470         i.e. use default_elf_select_section.
3471         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Remove.
3472         (READONLY_DATA_SECTION_ASM_OP): Remove.
3473         (TARGET_ASM_NAMED_SECTION): Move from here...
3474         * config/avr/avr.c: ...to here.
3475         (avr_asm_init_sections): Set unnamed callback of readonly_data_section.
3476         (avr_asm_named_section): Make static.
3477
3478 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3479
3480         PR bootstrap/49739
3481         * config.gcc (extra_parts): Add crtprec32.o crtprec64.o crtprec80.o
3482         and crtfastmath.o for Linux/x86.
3483
3484 2011-07-14  Bernd Schmidt  <bernds@codesourcery.com>
3485
3486         * haifa-sched.c: Include "hashtab.h"
3487         (sched_no_dce): New global variable.
3488         (INSN_EXACT_TICK, INSN_TICK_ESTIMATE, FEEDS_BACKTRACK_INSN,
3489         SHADOW_P): New macros.
3490         (last_clock_var, cycle_issued_insns): Move declarations.
3491         (must_backtrack): New static variable.
3492         (struct delay_pair): New structure.
3493         (delay_htab, delay_htab_i2): New static variables.
3494         (delay_hash_i1, delay_hash_i2, delay_i1_eq, delay_i2_eq,
3495         record_delay_slot_pair, pair_delay, add_delay_dependencies): New
3496         functions.
3497         (dep_cost_1): If delay pairs exist, try to look up the insns and
3498         use the correct pair delay if we find them.
3499         (rank-for_schedule): Tweak priority for insns that must be scheduled
3500         soon to avoid backtracking.
3501         (queue_insn): Detect conditions which force backtracking.
3502         (ready_add): Likewise.
3503         (struct sched_block_state): Add member shadows_only_p.
3504         (struct haifa_save_data): New structure.
3505         (backtrack_queue): New static variable.
3506         (mark_backtrack_feeds, copy_insn_list, save_backtrack_point,
3507         unschedule_insns_until, restore_last_backtrack_point,
3508         free_topmost_backtrack_point, free_backtrack_queue,
3509         estimate_insn_tick, estimate_shadow_tick): New functions.
3510         (prune_ready_list): New arg shadows_only_p.  All callers changed.
3511         If true, remove everything that isn't SHADOW_P.  Look up delay
3512         pairs and estimate ticks to avoid scheduling the first insn too early.
3513         (verify_shadows): New function.
3514         (schedule_block): Add machinery to enable backtracking.
3515         (sched_init): Take sched_no_dce into account when setting
3516         DF_LR_RUN_DCE.
3517         (free_delay_pairs): New function.
3518         (init_h_i_d): Initialize INSN_EXACT_TICK.
3519         * Makefile.in (haifa-sched.o): Add $(HASHTAB_H).
3520         * sched-deps.c (sd_unresolve_dep): New function.
3521         * sched-int. (struct haifa_sched_info): New fields save_state
3522         and restore_state.
3523         (struct _haifa_insn_data): New fields exact_tick, tick_estimate,
3524         feeds_backtrack_insn and shadow_p.
3525         (DO_BACKTRACKING): New value in enum SCHED_FLAGS.
3526         (sched_no_dce): Declare variable.
3527         (record_delay_slot_pair, free_delay_pairs, add_delay_dependencies,
3528         sd_unresolve_dep): Declare functions.
3529         * modulo-sched.c (sms_sched_info): Clear the two new fields.
3530         * sched-rgn.c (rgn_const_sched_info): Likewise.
3531         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
3532         * sched-ebb.c (save_ebb_state, restore_ebb_state): New functions.
3533         (ebb_sched_info): Add them for the two new fields.
3534         (add_deps_for_risky_insns): Call add_delay_dependencies.
3535
3536 2011-07-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
3537
3538         * config/rs6000/rs6000.opt (-mpointers-to-nested-functions):
3539         Rename -mr11.
3540         * config/rs6000/rs6000.c (rs6000_trampoline_init): Ditto.
3541         (rs6000_call_indirect_aix): Ditto.
3542         * config/rs6000/rs6000.md (call_indirect_aix<ptrsize>): Ditto.
3543         (call_indirect_aix<ptrsize>_internal): Ditto.
3544         (call_indirect_aix<ptrsize>_nor11): Ditto.
3545         (call_indirect_aix<ptrsize>_internal2): Ditto.
3546         (call_value_indirect_aix<ptrsize>): Ditto.
3547         (call_value_indirect_aix<ptrsize>_internal): Ditto.
3548         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
3549         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
3550         * doc/invoke.texi (RS/6000 and PowerPC Options): Ditto.
3551
3552 2011-07-13  Jason Merrill  <jason@redhat.com>
3553
3554         * Makefile.in ($(lang_checks_parallelized)): Allow --tool_opts.
3555
3556 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3557
3558         * config/spu/spu.c (spu_init_libfuncs): Install __clrsbdi2.
3559         * config/spu/spu.md ("clrsb<mode>2"): New expander.
3560
3561 2011-07-13  Thomas Schwinge  <thomas@schwinge.name>
3562
3563         * acinclude.m4 (gcc_GAS_CHECK_FEATURE): Use AS_ECHO instead of echo.
3564         * configure: Regenerate.
3565
3566 2011-07-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3567
3568         * config/spu/spu.c (TARGET_ASM_FILE_START): Do not define.
3569         (asm_file_start): Remove.
3570         (spu_machine_dependent_reorg): Call compute_bb_for_insn and
3571         free_bb_for_insn around code that modifies insns before
3572         restarting df analysis.
3573
3574 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3575
3576         PR target/49541
3577         * config/sol2.h (LIB_SPEC): Simplify.  Move LIB_THREAD_LDFLAGS_SPEC ...
3578         (LINK_SPEC): ... here.
3579
3580 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
3581
3582         * haifa-sched.c (struct sched_block_state): New.
3583         (schedule_block): Move some local variables into such a structure.
3584
3585 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3586
3587         * config/i386/crtprec.c: Move to ../libgcc/config/i386.
3588         * config/i386/t-crtpc: Remove.
3589         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
3590         * config.gcc (i[34567]86-*-darwin*): Remove i386/t-crtpc from
3591         tmake_file.
3592         (x86_64-*-darwin*): Likewise.
3593         (i[34567]86-*-linux*): Likewise.
3594         (x86_64-*-linux*): Likewise.
3595
3596         * config/i386/sol2.h (ENDFILE_SPEC): Redefine.
3597         Handle -mpc32, -mpc64, -mpc80.
3598
3599 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3600
3601         * config/alpha/crtfastmath.c: Move to ../libgcc/config/alpha.
3602         * config/alpha/t-crtfm: Remove.
3603         * config/i386/crtfastmath.c: Move to ../libgcc/config/i386.
3604         * config/i386/t-crtfm: Remove.
3605         * config/ia64/crtfastmath.c: Move to ../libgcc/config/ia64.
3606         * config/mips/crtfastmath.c: Move to ../libgcc/config/mips.
3607         * config/sparc/crtfastmath.c: Move to ../libgcc/config/sparc.
3608         * config/sparc/t-crtfm: Remove.
3609
3610         * config.gcc (alpha*-*-linux*): Remove alpha/t-crtfm from tmake_file.
3611         (alpha*-*-freebsd*): Likewise.
3612         (i[34567]86-*-darwin*): Remove i386/t-crtfm from tmake_file.
3613         (x86_64-*-darwin*): Likewise.
3614         (i[34567]86-*-linux*): Likewise.
3615         (x86_64-*-linux*): Likewise.
3616         (x86_64-*-mingw*): Likewise.
3617         (ia64*-*-elf*): Remove crtfastmath.o from extra_parts.
3618         (ia64*-*-freebsd*): Likewise.
3619         (ia64*-*-linux*): Likewise.
3620         (mips64*-*-linux*): Likewise.
3621         (mips*-*-linux*): Likewise.
3622         (sparc-*-linux*): Remove sparc/t-crtfm from tmake_file.
3623         (sparc64-*-linux*): Likewise.
3624         (sparc64-*-freebsd*): Likewise.
3625
3626 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3627
3628         * config/darwin-crt2.c: Move to ../libgcc/config/rs6000.
3629         * config/darwin-crt3.c: Move to ../libgcc/config.
3630         * config/t-darwin (EXTRA_MULTILIB_PARTS): Remove.
3631         ($(T)crt3$(objext)): Remove.
3632         * config/rs6000/t-darwin (DARWIN_EXTRA_CRT_BUILD_CFLAGS): Remove.
3633         ($(T)crt2$(objext)): Remove.
3634         * config.gcc (powerpc-*-darwin*): Remove extra_parts.
3635         (powerpc64-*-darwin*): Likewise.
3636
3637 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
3638
3639         * config/i386/i386.c (x86_output_mi_thunk): Support ptr_mode != Pmode.
3640
3641         * config/i386/i386.md (*addsi_1_zext): Renamed to ...
3642         (addsi_1_zext): This.
3643
3644 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
3645
3646         * doc/tm.texi.in (TARGET_ASM_MERGEABLE_RODATA_PREFIX): Add hook.
3647         * doc/tm.texi: Regenerate.
3648         * target.def (mergeable_rodata_prefix): New defhookpod.
3649         * varasm.c (mergeable_string_section, mergeable_constant_section):
3650         Use it. Allocate name with alloca.
3651
3652 2011-07-13  H.J. Lu  <hongjiu.lu@intel.com>
3653
3654         * doc/invoke.texi (x86): Remove -mfused-madd and add -mfma.
3655
3656 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
3657
3658         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Tighten
3659         overlap check.
3660
3661 2011-07-13  Richard Sandiford  <richard.sandiford@linaro.org>
3662
3663         * tree.h (categorize_ctor_elements): Remove comment.  Fix long line.
3664         (count_type_elements): Delete.
3665         (complete_ctor_at_level_p): Declare.
3666         * expr.c (flexible_array_member_p): New function, split out from...
3667         (count_type_elements): ...here.  Make static.  Replace allow_flexarr
3668         parameter with for_ctor_p.  When for_ctor_p is true, return the
3669         number of elements that should appear in the top-level constructor,
3670         otherwise return an estimate of the number of scalars.
3671         (categorize_ctor_elements): Replace p_must_clear with p_complete.
3672         (categorize_ctor_elements_1): Likewise.  Use complete_ctor_at_level_p.
3673         (complete_ctor_at_level_p): New function, borrowing union logic
3674         from old categorize_ctor_elements_1.
3675         (mostly_zeros_p): Return true if the constructor is not complete.
3676         (all_zeros_p): Update call to categorize_ctor_elements.
3677         * gimplify.c (gimplify_init_constructor): Update call to
3678         categorize_ctor_elements.  Don't call count_type_elements.
3679         Unconditionally prevent clearing for variable-sized types,
3680         otherwise rely on categorize_ctor_elements to detect
3681         incomplete initializers.
3682
3683 2011-07-13  Richard Guenther  <rguenther@suse.de>
3684
3685         * tree-vrp.c (simplify_conversion_using_ranges): Make sure
3686         the final type is integral.
3687
3688 2011-07-13  Bernd Schmidt  <bernds@codesourcery.com>
3689
3690         * sched-int.h (struct _dep): Add member cost.
3691         (DEP_COST, UNKNOWN_DEP_COST): New macros.
3692         * sched-deps.c (init_dep_1): Initialize DEP_COST.
3693         * haifa-sched.c (dep_cost_1): Use and set DEP_COST.
3694         (sched_change_pattern): Reset it for dependent insns.
3695
3696 2011-07-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3697
3698         * Makefile.in (CRT0STUFF_T_CFLAGS): Remove.
3699         ($(T)crt0.o, $(T)mcrt0.o, s-crt0): Remove.
3700         * config/i386/netware-crt0.c: Move to ../libgcc/config/i386.
3701         * config/i386/t-nwld (CRTSTUFF_T_CFLAGS, CRT0STUFF_T_CFLAGS): Remove.
3702         (CRT0_S, MCRT0_S): Remove.
3703         ($(T)libgcc.def, $(T)libc.def, $(T)libcpre.def, $(T)posixpre.def):
3704         Remove.
3705         (s-crt0): Remove.
3706         * config.gcc (i[3456x]86-*-netware*): Remove extra_parts.
3707
3708 2011-07-12  Eric Botcazou  <ebotcazou@adacore.com>
3709
3710         * cse.c (insert_with_costs): Put semi-colon after empty loop body
3711         on the next line.
3712         * emit-rtl.c (push_to_sequence): Likewise.
3713         * haifa-sched.c (max_issue): Likewise.
3714         * matrix-reorg.c (add_allocation_site): Likewise.
3715         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
3716         * reload.c (alternative_allows_const_pool_ref): Likewise.
3717         * sched-rgn.c (rgn_add_block): Likewise.
3718         (rgn_fix_recovery_cfg): Likewise.
3719         * tree.c (attribute_list_contained): Likewise.
3720
3721 2011-07-12  Uros Bizjak  <ubizjak@gmail.com>
3722
3723         * config/i386/i386.c: Tidy processor feature bitmasks.
3724         (m_P4_NOCONA): New.
3725
3726 2011-07-12  Andrew Pinski  <pinskia@gmail.com>
3727
3728         PR rtl-opt/49474
3729         * cprop.c (find_implicit_sets): Correct the condition.
3730
3731 2011-07-12  Richard Henderson  <rth@redhat.com>
3732
3733         PR target/49713
3734         * dwarf2out.h (dwarf_frame_regnum): Remove.
3735         * dwarf2out.c (based_loc_descr): Revert last change.  Initialize regno
3736         earlier from DWARF_FRAME_REGNUM.  Never use dbx_reg_number.
3737         * dwarf2cfi.c (dw_stack_pointer_regnum, dw_frame_pointer_regnum): New.
3738         (execute_dwarf2_frame): Initialize them.
3739         (DW_STACK_POINTER_REGNUM, DW_FRAME_POINTER_REGNUM): Remove; replace
3740         users of the macros with the variables.
3741         (expand_builtin_dwarf_sp_column): Revert last change.
3742         (expand_builtin_init_dwarf_reg_sizes): Likewise.  Compute the
3743         result of DWARF_FRAME_REGNUM into a local variable.
3744
3745 2011-07-12  Richard Henderson  <rth@redhat.com>
3746
3747         PR target/49714
3748         * config/i386/i386.c (x86_output_mi_thunk): Use
3749         machopic_indirect_call_target instead of machopic_indirection_name
3750         directly.
3751
3752 2011-07-12  Laurent GUERBY  <laurent@guerby.net>
3753             Eric Botcazou  <ebotcazou@adacore.com>
3754
3755         * prefix.h: Wrap up in extern "C" block.
3756
3757 2011-07-12  Harsha Jagasia  <harsha.jagasia@amd.com>
3758
3759         AMD bdver2 Enablement
3760         * config.gcc (i[34567]86-*-linux* | ...): Add bdver2.
3761         (case ${target}): Add bdver2.
3762         * config/i386/driver-i386.c (host_detect_local_cpu): Let
3763         -march=native recognize bdver2 processors.
3764         * config/i386/i386-c.c (ix86_target_macros_internal): Add
3765         bdver2 def_and_undef
3766         * config/i386/i386.c (struct processor_costs bdver2_cost): New
3767         bdver2 cost table.
3768         (m_BDVER2): New definition.
3769         (m_AMD_MULTIPLE): Includes m_BDVER2.
3770         (initial_ix86_tune_features): Add bdver2 tuning.
3771         (processor_target_table): Add bdver2 entry.
3772         (static const char *const cpu_names): Add bdver2 entry.
3773         (ix86_option_override_internal): Add bdver2 instruction sets.
3774         (ix86_issue_rate): Add bdver2.
3775         (ix86_adjust_cost): Add bdver2.
3776         (has_dispatch): Add bdver2.
3777         * config/i386/i386.h (TARGET_BDVER2): New definition.
3778         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_bdver2.
3779         (enum processor_type): Add PROCESSOR_BDVER2.
3780         * config/i386/i386.md (define_attr "cpu"): Add bdver2.
3781         * config/i386/i386.opt ( mdispatch-scheduler): Add bdver2 to
3782         description.
3783
3784 2011-07-12  Richard Henderson  <rth@redhat.com>
3785
3786         PR target/49714
3787         * config/i386/i386.c (x86_output_mi_thunk): Fix mode for
3788         destination address in memory on some paths.
3789
3790 2011-07-12  Bernd Schmidt  <bernds@codesourcery.com>
3791
3792         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Mention
3793         TARGET_FUNCTION_ARG_ROUND_BOUNDARY.
3794         (TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Add hook.
3795         * function.c (locate_and_pad_parm): Take it into account.
3796         * target.def (function_arg_round_boundary): New hook.
3797         * targhooks.c (default_function_arg_round_boundary): New function.
3798         * targhooks.h (default_function_arg_round_boundary): Declare.
3799         * doc/tm.texi: Regenerate.
3800
3801 2011-07-12  Richard Guenther  <rguenther@suse.de>
3802
3803         * tree-ssa-copyrename.c (rename_ssa_copies): Zero statistics.
3804         Do not perform no-op changes.
3805
3806 2011-07-12  Richard Sandiford  <richard.sandiford@linaro.org>
3807
3808         * config/arm/predicates.md (neon_struct_operand): Make a normal
3809         predicate.
3810         (neon_struct_or_register_operand): New predicate.
3811         * config/arm/neon.md (movmisalign<mode>): Replace predicates
3812         with neon_struct_or_register_operand.
3813         (*movmisalign<mode>_neon_store, *movmisalign<mode>_neon_load): Use
3814         neon_struct_operand instead of memory_operand.
3815
3816 2011-07-12  Martin Jambor  <mjambor@suse.cz>
3817
3818         * cgraph.h (cgraph_get_node_or_alias): Removed declaration.
3819         * cgraph.c (cgraph_get_node_or_alias): Removed.
3820         (change_decl_assembler_name): Changed all calls to
3821         cgraph_get_node_or_alias to a call to cgraph_get_node.
3822         (cgraph_make_decl_local): Likewise.
3823         * lto-symtab.c (lto_symtab_resolve_symbols): Likewise.
3824         * varasm.c (default_binds_local_p_1): Likewise.
3825         (decl_binds_to_current_def_p): Likewise.
3826
3827 2011-07-12  Jakub Jelinek  <jakub@redhat.com>
3828
3829         PR tree-optimization/49712
3830         * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle TARGET_MEM_REF.
3831
3832 2011-07-11  Bernd Schmidt  <bernds@codesourcery.com>
3833
3834         * genautomata.c (add_arc): Return void.  All callers changed.
3835         (make_automaton): Remove dead code.
3836
3837 2011-07-11  Richard Henderson  <rth@redhat.com>
3838
3839         * dwarf2cfi.c (DW_STACK_POINTER_REGNUM): New.
3840         (DW_FRAME_POINTER_REGNUM): New.
3841         (expand_builtin_init_dwarf_reg_sizes): Use unsigned for rnum.
3842         (def_cfa_1): Do not convert reg to DWARF_FRAME_REGNUM here.
3843         (dwf_regno): New.
3844         (dwarf2out_flush_queued_reg_saves, dwarf2out_frame_debug_def_cfa,
3845         dwarf2out_frame_debug_adjust_cfa, dwarf2out_frame_debug_cfa_register,
3846         dwarf2out_frame_debug_cfa_expression, dwarf2out_frame_debug_expr):
3847         Use it.
3848         * dwarf2out.c (based_loc_descr): Use dwarf_frame_regnum.
3849         * dwarf2out.h (dwarf_frame_regnum): New.
3850         (struct cfa_loc): Document the domain of the reg member.
3851
3852 2011-07-11  Uros Bizjak  <ubizjak@gmail.com>
3853
3854         * config/i386/i386.c (ix86_trampoline_init): Switch arms of if expr.
3855         Use offset everywhere.  Always assert that offset <= TRAMPOLINE_SIZE.
3856
3857 2011-07-11  Jakub Jelinek  <jakub@redhat.com>
3858
3859         PR debug/49676
3860         * dwarf2out.c (int_shift_loc_descriptor): New function.
3861         (int_loc_descriptor): If shorter, emit i as
3862         (i >> shift), shift, DW_OP_shl for suitable shift value.
3863         Similarly, try to optimize large negative values using
3864         DW_OP_neg of a positive value if shorter.
3865         (size_of_int_shift_loc_descriptor): New function.
3866         (size_of_int_loc_descriptor): Adjust to match int_loc_descriptor
3867         changes.
3868         (mem_loc_descriptor) <case CONST_INT>: Emit zero-extended constants
3869         that fit into DWARF2_ADDR_SIZE bytes as int_loc_descriptor +
3870         DW_OP_GNU_convert instead of DW_OP_GNU_const_type if the former
3871         is shorter.
3872         (resolve_addr_in_expr): Optimize DW_OP_plus_uconst with a large
3873         addend as added DW_OP_plus if it is shorter.
3874
3875 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3876
3877         * config/i386/sol2.h [!USE_GLD] (CTORS_SECTION_ASM_OP): Define.
3878         (DTORS_SECTION_ASM_OP): Define.
3879
3880 2011-07-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3881
3882         * config/dfp-bit.c, config/dfp-bit.h: Move to ../libgcc.
3883         * config/t-dfprules: Move to ../libgcc/config.
3884         * config.gcc (i[34567]86-*-linux*, i[34567]86-*-kfreebsd*-gnu,
3885         i[34567]86-*-knetbsd*-gnu, i[34567]86-*-gnu*,
3886         i[34567]86-*-kopensolaris*-gnu): Remove t-dfprules from tmake_file.
3887         (x86_64-*-linux*, x86_64-*-kfreebsd*-gnu, x86_64-*-knetbsd*-gnu):
3888         Likewise.
3889         (i[34567]86-*-cygwin*): Likewise.
3890         (i[34567]86-*-mingw*,  x86_64-*-mingw*): Likewise.
3891         (powerpc-*-linux*, powerpc64-*-linux*): Likewise.
3892         * Makefile.in (D32PBIT_FUNCS, D64PBIT_FUNCS, D128PBIT_FUNCS): Remove.
3893         (libgcc.mvars): Remove DFP_ENABLE, DFP_CFLAGS, D32PBIT_FUNCS,
3894         D64PBIT_FUNCS, D128PBIT_FUNCS.
3895
3896 2011-07-11  Richard Guenther  <rguenther@suse.de>
3897
3898         * tree-vrp.c (simplify_conversion_using_ranges): Manually
3899         translate the source value-range through the conversion chain.
3900
3901 2011-07-11  Richard Sandiford  <richard.sandiford@linaro.org>
3902
3903         * expr.c (expand_expr_real_1): Use expand_insn for movmisalign.
3904
3905 2011-07-11  Arthur Loiret  <aloiret@debian.org>
3906
3907         * config.gcc (s390-*-linux*): If 'enabled_targets' is 'all', build
3908         a bi-arch compiler defaulting to 31-bit. In this case:
3909         (tmake_file): Add s390/t-linux64.
3910         * doc/install.texi: Add s390-linux to the list of targets supporting
3911         --enable-targets=all.
3912
3913 2011-07-11  Arthur Loiret  <aloiret@debian.org>
3914             Matthias Klose <doko@debian.org>
3915
3916         * config.gcc (mips*-*-linux*): If 'enabled_targets' is 'all', build
3917         a tri-arch compiler defaulting to 32-bit (ABI o32). In this case:
3918         (tm_file): Add mips/linux64.h.
3919         (tmake_file): Add mips/t-linux64.
3920         (tm_defines): Add MIPS_ABI_DEFAULT=ABI_32.
3921         * config/mips/linux64.h (DRIVER_SELF_SPECS): Use MULTILIB_ABI_DEFAULT
3922         instead of hardcoded mabi=n32.
3923         * config/mips/t-linux64 (MULTILIB_DIRNAMES): Set to 'n32 . 64' if
3924         tm_defines contains MIPS_ABI_DEFAULT ABI_32, to follow the glibc
3925         convention.
3926
3927 2011-07-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3928
3929         * passes.c (init_optimization_passes): Add invariant motion pass
3930         after induction variable optimization.
3931
3932 2011-07-11  Georg-Johann Lay  <avr@gjlay.de>
3933
3934         PR target/39633
3935         * config/avr/avr.c (notice_update_cc): For ashiftrt:QI, only
3936         offsets 1..5 set cc0 in a usable way.
3937
3938 2011-07-11  Romain Geissler  <romain.geissler@gmail.com>
3939
3940         * tree.h (call_expr_arg): Remove.
3941         (call_expr_argp): Likewise.
3942
3943 2011-07-11  Eric Botcazou  <ebotcazou@adacore.com>
3944
3945         * config/sparc/sparc.md (save_register_window_1): Rename to...
3946         (window_save): ...this.
3947         * config/sparc/sparc.c (emit_save_register_window): Rename to...
3948         (emit_window_save): ...this.
3949         (sparc_expand_prologue): Adjust to above renaming.
3950
3951 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
3952
3953         * config/i386/i386.c (ix86_trampoline_init): Use movl instead
3954         of movabs for x32.
3955
3956 2011-07-10  Richard Henderson  <rth@redhat.com>
3957
3958         * config/i386/i386.c (x86_output_mi_thunk): Generate rtl and
3959         run final, instead of emitting text directly.
3960
3961 2011-07-10  H.J. Lu  <hongjiu.lu@intel.com>
3962
3963         * config/i386/i386.c (ix86_option_override_internal): Turn on
3964         OPTION_MASK_ISA_64BIT for TARGET_X32.  Only allow small and
3965         small PIC models for TARGET_X32.
3966
3967 2011-07-10  Hans-Peter Nilsson  <hp@axis.com>
3968
3969         PR target/49684
3970         * config/cris/t-elfmulti (CRTSTUFF_T_CFLAGS): Don't include
3971         $(LIBGCC2_CFLAGS).
3972
3973         PR bootstrap/49680
3974         * config/cris/cris.c (cris_asm_output_case_end): Robustify against
3975         stray notes and debug insns by using prev_nonnote_nondebug_insn
3976         instead of PREV_INSN.
3977
3978 2011-07-09  Richard Henderson  <rth@redhat.com>
3979
3980         * defaults.h (DWARF2_ADDR_SIZE, DWARF_OFFSET_SIZE,
3981         DWARF_TYPE_SIGNATURE_SIZE): Move from ...
3982         * dwarf2out.c: ... here.
3983         (output_all_cfis): Remove.
3984         (dwarf2out_switch_text_section): Use output_cfis directly.
3985         (size_of_locs): Export.
3986         (output_loc_sequence, output_loc_sequence_raw): Export.
3987         (div_data_align, need_data_align_sf_opcode, dwarf_cfi_name, output_cfi,
3988         output_cfi_directive, dwarf2out_emit_cfi, output_cfis, output_cfa_loc,
3989         output_cfa_loc_raw): Move to ...
3990         * dwarfcfi.c: ... here.
3991         * dwarf2out.h: Update decls.
3992
3993 2011-07-09  Richard Henderson  <rth@redhat.com>
3994
3995         * defaults.h (DWARF_CIE_DATA_ALIGNMENT, DWARF_FRAME_RETURN_COLUMN,
3996         DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Move from ...
3997         * dwarf2cfi.c: ... here.
3998         (PTR_SIZE, DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE): Remove.
3999         (DWARF_ROUND, DWARF_CIE_ID): Remove.
4000         * dwarf2out.c (INCOMING_RETURN_ADDR_RTX): Remove.
4001         (DWARF2_FRAME_REG_OUT, DWARF_CIE_DATA_ALIGNMENT): Remove.
4002         (DWARF_FRAME_RETURN_COLUMN, DWARF_FRAME_REGNUM): Remove.
4003
4004 2011-07-09  Richard Henderson  <rth@redhat.com>
4005
4006         * dwarf2cfi.c (cie_return_save): New.
4007         (queue_reg_save): Use compare_reg_or_pc.
4008         (dwarf2out_flush_queued_reg_saves): Handle pc_rtx as return column.
4009         (dwarf2out_frame_debug_expr): Likewise.
4010         (dwarf2out_frame_debug_cfa_register): Record saved reg for pc too.
4011         (initial_return_save): Likewise.
4012         (execute_dwarf2_frame): Save and restore initial return save from
4013         the cie to the fde.
4014         * config/mips/mips.c (mips_frame_set): Remove special case for
4015         DWARF_FRAME_RETURN_COLUMN.
4016
4017 2011-07-09  Richard Henderson  <rth@redhat.com>
4018
4019         * dwarf2cfi.c (lookup_cfa): Remove.
4020         (execute_dwarf2_frame): Assert queues are empty on entry.
4021         Setup initial cfa directly, not via lookup_cfa.
4022         Don't clear args_size state here.
4023
4024 2011-07-09  Richard Henderson  <rth@redhat.com>
4025
4026         * dwarf2cfi.c (add_cfi_vec): New.
4027         (add_cfi): Rename from add_fde_cfi.  Add the element to add_cfi_vec.
4028         (def_cfa_1, reg_save): Remove for_cie argument.  Update all callers.
4029         (execute_dwarf2_frame): Set add_cfi_vec.
4030
4031 2011-07-09  Richard Henderson  <rth@redhat.com>
4032
4033         * defaults.h (ASM_COMMENT_START): Move here...
4034         * dwarf2asm.c: ... from here.
4035         * dwarf2out.c, final.c, vmsdbgout.c: Remove duplicates.
4036         * toplev.c: Remove ifndef tests of ASM_COMMENT_START.
4037         * varasm.c: Likewise.
4038
4039 2011-07-09  Richard Henderson  <rth@redhat.com>
4040
4041         PR debug/49686
4042         * dwarf2cfi.c (dwarf2out_frame_debug): Don't set cfi_insn here...
4043         (create_cfi_notes): ... do it here instead.
4044
4045 2011-07-09  Jakub Jelinek  <jakub@redhat.com>
4046
4047         PR debug/49676
4048         * dwarf2out.c (size_of_int_loc_descriptor): New function.
4049         (address_of_int_loc_descriptor): Use it.
4050         (scompare_loc_descriptor): Optimize EQ/NE comparison with constant.
4051
4052 2011-07-09  Richard Henderson  <rth@redhat.com>
4053
4054         * config/pdp11/pdp11.md (define_c_enum "unspecv"): New.
4055         (prologue, epilogue): New.
4056         (return, *rts): New.
4057         (blockage, setd, seti): New.
4058         * config/pdp11/pdp11.c (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
4059         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
4060         (pdp11_saved_regno): New.
4061         (pdp11_expand_prologue): Rename from pdp11_output_function_prologue;
4062         generate rtl instead of text.
4063         (pdp11_expand_epilogue): Similarly from pdp11_output_function_epilogue.
4064         (pdp11_sp_frame_offset): Export.  Use pdp11_saved_regno.
4065         * config/pdp11/pdp11-protos.h: Update.
4066
4067 2011-07-09  Richard Henderson  <rth@redhat.com>
4068
4069         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Don't
4070         try to insert an rtl prologue here.
4071         (rs6000_output_function_epilogue): Similarly.
4072         * config/rs6000/rs6000.md (prologue): Emit a barrier to
4073         satisfy !TARGET_SCHED_PROLOG.
4074         (epilogue, sibcall_epilogue): Likewise.
4075
4076 2011-07-09  Eric Botcazou  <ebotcazou@adacore.com>
4077
4078         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Move around.
4079         (FP_REG_P): Delete.
4080         (IN_OR_GLOBAL_P): Likewise.
4081
4082 2011-07-08  Jason Merrill  <jason@redhat.com>
4083
4084         PR c++/45437
4085         * gimplify.c (goa_stabilize_expr): Handle RHS preevaluation in
4086         compound assignment.
4087
4088         * cgraph.c (cgraph_add_to_same_comdat_group): New.
4089         * cgraph.h: Declare it.
4090         * ipa.c (function_and_variable_visibility): Make sure thunks
4091         have the right visibility.
4092
4093 2011-07-08  Richard Henderson  <rth@redhat.com>
4094
4095         PR bootstrap/49680
4096         * dwarf2cfi.c (dwarf2out_frame_debug): Insert cfi notes after
4097         any tablejump vector.
4098
4099         PR bootstrap/49680
4100         * dwarf2cfi.c (create_cfi_notes): Flush queued saves at the
4101         end of the prologue.
4102
4103 2011-07-08  Jakub Jelinek  <jakub@redhat.com>
4104
4105         PR target/49621
4106         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Use
4107         CONST0_RTX (dest_mode) instead of const0_rtx as second operand of NE.
4108         * config/rs6000/vector.md (vector_select_<mode>,
4109         vector_select_<mode>_uns): Change second operand of NE to
4110         CONST0_RTX (<MODE>mode) instead of const0_rtx.
4111         * config/rs6000/altivec.md (*altivec_vsel<mode>,
4112         *altivec_vsel<mode>_uns): Expect second operand of NE to be
4113         zero_constant of the corresponding vector mode.
4114         * config/rs6000/vsx.md (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns):
4115         Likewise.
4116
4117 2011-07-08  Sebastian Pop  <sebastian.pop@amd.com>
4118
4119         * graphite-dependences.c (build_alias_set_powerset): Remove
4120         continue from loop, add one more assert.
4121
4122 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
4123
4124         PR target/46779
4125         * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
4126         In particular, allow 8-bit values in r28 and r29.
4127         (avr_hard_regno_scratch_ok): Disallow any register that might be
4128         part of the frame pointer.
4129         (avr_hard_regno_rename_ok): Same.
4130         (avr_legitimate_address_p): Don't allow SUBREGs.
4131
4132 2011-07-08  Julian Brown  <julian@codesourcery.com>
4133
4134         * config/arm/neon.md (vec_shr_<mode>, vec_shl_<mode>): Disable in
4135         big-endian mode.
4136         (reduc_splus_<mode>, reduc_uplus_<mode>, reduc_smin_<mode>)
4137         (reduc_smax_<mode>, reduc_umin_<mode>, reduc_umax_<mode>)
4138         (neon_vec_unpack<US>_lo_<mode>, neon_vec_unpack<US>_hi_<mode>)
4139         (vec_unpack<US>_hi_<mode>, vec_unpack<US>_lo_<mode>)
4140         (neon_vec_<US>mult_lo_<mode>, vec_widen_<US>mult_lo_<mode>)
4141         (neon_vec_<US>mult_hi_<mode>, vec_widen_<US>mult_hi_<mode>)
4142         (vec_pack_trunc_<mode>, neon_vec_pack_trunc_<mode>): Disable for Q
4143         registers in big-endian mode.
4144
4145 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
4146
4147         * genattrtab.c (evaluate_eq_attr): Allow an attribute to be defined
4148         in terms of another.
4149         (write_attr_value): Write a cast if necessary.
4150
4151         * defaults.h (REG_WORDS_BIG_ENDIAN): Provide a default.
4152         * doc/tm.texi.in (WORDS_BIG_ENDIAN): Mention REG_WORDS_BIG_ENDIAN.
4153         (REG_WORDS_BIG_ENDIAN): Document.
4154         * doc/tm.texi: Regenerate.
4155         * reload.c (operands_match_p): Take it into account.
4156         (reload_adjust_reg_for_mode): Likewise.
4157         * rtlanal.c (subreg_get_info): Likewise.
4158
4159 2011-07-08  Richard Guenther  <rguenther@suse.de>
4160
4161         * fold-const.c (fold_binary_loc): Remove index +p PTR -> PTR +p index
4162         folding.
4163
4164 2011-07-08  Kai Tietz  <ktietz@redhat.com>
4165
4166         * fold-const.c (fold_truth_andor): Factored out truth_andor
4167         label from fold_binary as function.
4168         (fold_binary_loc): Replace truth_andor lable
4169         by function fold_truth_andor.
4170
4171 2011-07-08  Kirill Yukhin  <kirill.yukhin@intel.com>
4172
4173         PR middle-end/49519
4174         * calls.c (mem_overlaps_already_clobbered_arg_p): Additional
4175         check if address is stored in register. If so - give up.
4176         (check_sibcall_argument_overlap_1): Do not perform check of
4177         overlapping when it is call to address.
4178
4179 2011-07-08  Georg-Johann Lay  <avr@gjlay.de>
4180
4181         * config/avr/avr.c (output_reload_insisf): Use 'REG_Z+1' instead
4182         of magic '31'.
4183
4184 2011-07-08  Bernd Schmidt  <bernds@codesourcery.com>
4185
4186         * optabs.c (expand_binop): Use GET_MODE_PRECISION instead of
4187         GET_MODE_BITSIZE where appropriate.
4188         (widen_leading, expand_parity, expand_ctz, expand_ffs,
4189         expand_unop, expand_abs_nojump, expand_one_cmpl_abs_nojump,
4190         expand_float, expand_fix): Likewise.
4191         * expr.c (convert_move, convert_modes, expand_expr_real_2,
4192         expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
4193         * stor-layout.c (get_mode_bounds): Likewise.
4194         * cfgexpand.c (convert_debug_memory_address, expand_debug_expr):
4195         Likewise.
4196         * convert.c (convert_to_integer): Likewise.
4197         * expmed.c (expand_shift_1): Likewise.
4198
4199         * rtlanal.c (nonzero_bits1): Don't compare GET_MODE_SIZE against
4200         a bitsize.
4201
4202         * optabs.c (expand_binop): Tighten conditions for doubleword
4203         expansions.
4204         (widen_bswap): Assert that mode bitsize and precision are the same.
4205         * stor-layout.c (get_best_mode): Skip modes that have lower
4206         precision than bitsize.
4207         * recog.c (simplify_while_replacing): Assert that bitsize and
4208         precision are the same.
4209
4210 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4211
4212         * Makefile.in (LIBGCOV): Remove.
4213         (libgcc.mvars): Remove LIBGCOV.
4214         * libgov.c: Move to ../libgcc.
4215
4216 2011-07-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4217
4218         * config/fixed-bit.c, config/fixed-bit.h: Move to ../libgcc.
4219
4220 2011-07-08  Martin Jambor  <mjambor@suse.cz>
4221
4222         * tree-sra.c (analyze_all_variable_accesses): Dump that a struture
4223         is too big for total scalarization.
4224
4225 2011-07-07  Richard Henderson  <rth@redhat.com>
4226
4227         * config/alpha/elf.h (MIPS_DEBUGGING_INFO): Undef.
4228         (DBX_DEBUGGING_INFO): Undef.
4229
4230 2011-07-07  Richard Henderson  <rth@redhat.com>
4231
4232         * dwarf2out.c (output_cfi_directive): Export.  Add FILE parameter.
4233         Handle some opcodes specially for debugging.
4234         * print-rtl.c: Include dwarf2out.h
4235         (print_rtx): Handle NOTE_INSN_CFI.
4236         * Makefile.in (print-rtl.o): Update.
4237
4238 2011-07-07  Richard Henderson  <rth@redhat.com>
4239
4240         * tree-pass.h (pass_dwarf2_frame): Declare.
4241         * passes.c (init_optimization_passes): Add it.
4242         * dwarf2cfi.c (dwarf2out_frame_debug): Make static.
4243         (create_cfi_notes): Rename from dwarf2out_frame_debug_after_prologue;
4244         make static, do not call add_cfis_to_fde.
4245         (dwarf2out_frame_debug_init, dwarf2cfi_function_init,
4246         dwarf2out_frame_init): Merge into...
4247         (execute_dwarf2_frame): ... here.  New function.
4248         (dwarf2out_do_frame, dwarf2out_do_cfi_asm): Make boolean.  Change
4249         saved_do_cfi_asm to a tri-state variable.
4250         (gate_dwarf2_frame, pass_dwarf2_frame): New.
4251         * dwarf2out.c (dwarf2out_begin_prologue): Only allocate the fde
4252         if it has yet to be done.  Don't call dwarf2cfi_function_init.
4253         * dwarf2out.h, debug.h: Update decls.
4254         * final.c (final_start_function): Don't call
4255         dwarf2out_frame_debug_init or dwarf2out_frame_debug_after_prologue.
4256         * lto-streamer-in.c (lto_init_eh): Don't call dwarf2out_frame_init.
4257         * toplev.c (lang_dependent_init): Likewise.
4258
4259 2011-07-07  Richard Henderson  <rth@redhat.com>
4260
4261         * dwarf2out.c (fde_table, fde_table_allocated, fde_table_in_use,
4262         FDE_TABLE_INCREMENT): Replace with...
4263         (fde_vec): ... this, a new vector.
4264         (current_fde): Remove.  Replace all users with cfun->fde.
4265         (output_call_frame_info): Use FOR_EACH_VEC_ELT over fde_vec.
4266         (size_of_aranges, dwarf2out_finish): Likewise.
4267         (dwarf2out_alloc_current_fde): Break out from ...
4268         (dwarf2out_begin_prologue): ... here.
4269         (dwarf2out_frame_init): Remove.
4270         * dwarf2cfi.c: Update all users of current_fde.
4271         (dwarf2out_frame_init): Rename from dwarf2cfi_frame_init.
4272         * dwarf2out.h: Update decls.
4273         (dw_fde_node): Add fde_index member.
4274         * function.h (struct function): Add fde member.
4275
4276 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
4277             Richard Henderson  <rth@redhat.com>
4278
4279         * dwarf2cfi.c (add_cfi): Remove.
4280         (dwarf2out_cfi_label): Remove force argument.  Only generate the
4281         label name.
4282         (add_fde_cfi): Simplify the different code paths.
4283         (add_cie_cfi): New.
4284         (old_cfa, old_cfa_remember): New.
4285         (def_cfa_1, reg_save): Remove label, add for_cie parameter.
4286         (last_reg_save_label): Remove.
4287         (dwarf2out_args_size, dwarf2out_stack_adjust, queue_reg_save,
4288         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
4289         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
4290         dwarf2out_frame_debug_cfa_expression,
4291         dwarf2out_frame_debug_cfa_restore,
4292         dwarf2out_frame_debug_cfa_window_save,
4293         dwarf2out_frame_debug_expr): Remove label parameter.
4294         (cfi_label_required_p, add_cfis_to_fde): New.
4295         (dwarf2out_frame_debug_after_prologue): New.
4296         (dwarf2cfi_frame_init): Initialize old_cfa.
4297         (dwarf2out_frame_debug_restore_state): Likewise.
4298         * dwarf2out.c (dwarf2out_emit_cfi): Only do output for cfi_asm.
4299         (dwarf2out_switch_text_section): Don't clear dw_fde_current_label here.
4300         * final.c (final_start_function): Call
4301         dwarf2out_frame_debug_after_prologue.
4302
4303 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
4304             Richard Henderson  <rth@redhat.com>
4305
4306         * dwarf2cfi.c (cfi_insn): New.
4307         (dwarf2out_cfi_label): Don't emit cfi label here.
4308         (add_fde_cfi): Create a NOTE_INSN_CFI.
4309         (dwarf2out_frame_debug): Setup cfi_insn.
4310         (dwarf2out_frame_debug_init): Loop over insns creating CFI notes.
4311         (dwarf2out_cfi_begin_epilogue): Make static.
4312         (dwarf2out_frame_debug_restore_state): Make static.
4313         * dwarf2out.c (output_cfi_directive): Make static.
4314         (dwarf2out_emit_cfi): New.
4315         * dwarf2out.h: Update.
4316         * final.c (final): Remove CFI notes.
4317         (final_scan_insn): Don't call dwarf2out_cfi_begin_epilogue,
4318         dwarf2out_frame_debug_restore_state, dwarf2out_frame_debug.
4319         Handle NOTE_INSN_CFI and NOTE_INSN_CFI_LABEL.
4320         * insn-notes.def (NOTE_INSN_CFI): New.
4321         (NOTE_INSN_CFI_LABEL): New.
4322         * rtl.h (union rtunion_def): Add rt_cfi member.
4323         (XCFI, XCCFI, NOTE_CFI, NOTE_LABEL_NUMBER): New.
4324
4325 2011-07-07  Richard Henderson  <rth@redhat.com>
4326
4327         * dwarf2cfi.c: New file.
4328         * Makefile.in (OBJS): Add it.
4329         (GTFILES): Add dwarf2cfi.c and dwarf2out.h.
4330         * gengtype.c (open_base_files): Include dwarf2out.h.
4331         * coretypes.h (enum var_init_status): Move from ...
4332         * rtl.h: ... here.
4333         * dwarf2out.c (saved_do_cfi_asm, dwarf2out_do_frame,
4334         dwarf2out_do_cfi_asm, cie_cfi_vec, dwarf2out_cfi_label_num,
4335         expand_builtin_dwarf_sp_column, init_return_column_size,
4336         expand_builtin_init_dwarf_reg_sizes, new_cfi, add_cfi,
4337         dwarf2out_cfi_label, emit_cfa_remember, any_cfis_emitted, add_fde_cfi,
4338         lookup_cfa_1, lookup_cfa, cfa, cfa_store, cfa_remember, args_size,
4339         old_args_size, cfa_equal_p, def_cfa_1, reg_save, initial_return_save,
4340         stack_adjust_offset, barrier_args_size, compute_barrier_args_size_1,
4341         compute_barrier_args_size, dwarf2out_args_size,
4342         dwarf2out_stack_adjust, dwarf2out_notice_stack_adjust,
4343         queued_reg_saves, reg_saved_in_data, regs_saved_in_regs,
4344         compare_reg_or_pc, record_reg_saved_in_reg, last_reg_save_label,
4345         queue_reg_save, dwarf2out_flush_queued_reg_saves,
4346         clobbers_queued_reg_save, reg_saved_in, cfa_temp,
4347         dwarf2out_frame_debug_def_cfa, dwarf2out_frame_debug_adjust_cfa,
4348         dwarf2out_frame_debug_cfa_offset, dwarf2out_frame_debug_cfa_register,
4349         dwarf2out_frame_debug_cfa_expression,
4350         dwarf2out_frame_debug_cfa_restore,
4351         dwarf2out_frame_debug_cfa_window_save, dwarf2out_frame_debug_expr,
4352         dwarf2out_frame_debug, dwarf2out_frame_debug_init,
4353         dwarf2out_cfi_begin_epilogue, dwarf2out_frame_debug_restore_state,
4354         get_cfa_from_loc_descr): Move to dwarf2cfi.c.
4355         (dw_cfi_ref, dw_fde_ref, dw_cfi_oprnd_ref, enum dw_cfi_oprnd_type,
4356         dw_cfi_oprnd, dw_cfi_node, cfi_vec, dw_cfa_location, dw_fde_node,
4357         dw_val_ref, dw_die_ref, const_dw_die_ref, dw_loc_descr_ref,
4358         dw_loc_list_ref, enum dw_val_class, dw_vec_const, dw_val_node,
4359         dw_loc_descr_node): Move to dwarf2out.h.
4360         (current_fde, output_cfi_directive, build_cfa_loc, get_address_mode,
4361         mem_loc_descriptor): Export.
4362         (build_cfa_aligned_loc): Export.  Take CFA as a parameter.
4363         (dwarf2out_frame_init): Extract CIE generation code to
4364         dwarf2cfi_frame_init.
4365
4366 2011-07-07  Eric Botcazou  <ebotcazou@adacore.com>
4367
4368         PR target/49660
4369         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Add
4370         MASK_V8PLUS, remove commented out flag and reorder.
4371
4372 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
4373
4374         PR c/49644
4375         * c-typeck.c (build_binary_op): For MULT_EXPR and TRUNC_DIV_EXPR with
4376         one non-complex and one complex argument, call c_save_expr on both
4377         operands.
4378
4379 2011-07-07  Martin Jambor  <mjambor@suse.cz>
4380
4381         PR middle-end/49495
4382         * cgraphunit.c (verify_edge_corresponds_to_fndecl): New function.
4383         (verify_cgraph_node): Some functinality moved to
4384         verify_edge_corresponds_to_fndecl, call it.
4385
4386 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
4387
4388         * config.gcc (*local*): Remove.
4389         * doc/install-old.texi: Don't mention local configurations.
4390
4391 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
4392
4393         PR debug/49522
4394         * df-problems.c (dead_debug_reset): Remove dead_debug_uses
4395         referencing debug insns that have been reset.
4396         (dead_debug_insert_before): Don't assert reg is non-NULL,
4397         instead return immediately if it is NULL.
4398
4399 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
4400
4401         * config/i386/t-crtpic, config/i386/t-svr3dbx, config/pa/t-pa: Remove.
4402
4403 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
4404
4405         * hw-doloop.c: New file.
4406         * hw-doloop.h: New file.
4407         * Makefile.in (OBJS): Add hw-doloop.o.
4408         (hw-doloop.o): New rule.
4409         ($(obj_out_file)): Add hw-doloop.h dependency.
4410         * config/bfin/bfin.c: Include "hw-doloop.h".
4411         (loop_info, DEF_VEC_P for loop_info, loop_info_d): Remove.
4412         (bfin_dump_loops, bfin_bb_in_loop, bfin_scan_loop): Remove.
4413         (hwloop_optimize): Renamed from bfin_optimize_loop.  Argument
4414         type changed to hwloop_info.  Return bool, true if the loop was
4415         successfully optimized.  Remove code that was moved to
4416         hw-doloop.c, and adjust other parts.
4417         (hwloop_fail): New static function, containing parts that used
4418         to be in bfin_optimize_loop.
4419         (bfin_discover_loop, bfin_discover_loops, free_loops,
4420         bfin_reorder_loops): Remove.
4421         (hwloop_pattern_reg): New static function.
4422         (bfin_doloop_hooks): New variable.
4423         (bfin_reorg_loops): Remove most code, call reorg_loops.
4424         * config/bfin/bfin.md (doloop_end splitter): Also enable if
4425         loop counter is a memory_operand.
4426
4427 2011-07-07  H.J. Lu  <hongjiu.lu@intel.com>
4428
4429         * config.gcc: Support --with-multilib-list for x86 Linux targets.
4430
4431         * configure.ac: Mention x86-64 for --with-multilib-list.
4432         * configure: Regenerated.
4433
4434         * config/i386/gnu-user64.h (SPEC_64): Support x32.
4435         (SPEC_32): Likewise.
4436         (ASM_SPEC): Likewise.
4437         (LINK_SPEC): Likewise.
4438         (TARGET_THREAD_SSP_OFFSET): Likewise.
4439         (TARGET_THREAD_SPLIT_STACK_OFFSET): Likewise.
4440         (SPEC_X32): New.
4441
4442         * config/i386/i386.h (TARGET_X32): New.
4443         (TARGET_LP64): New.
4444         (LONG_TYPE_SIZE): Likewise.
4445         (POINTER_SIZE): Likewise.
4446         (POINTERS_EXTEND_UNSIGNED): Likewise.
4447         (OPT_ARCH64): Support x32.
4448         (OPT_ARCH32): Likewise.
4449
4450         * config/i386/i386.opt (mx32): New.
4451
4452         * config/i386/kfreebsd-gnu64.h (GNU_USER_LINK_EMULATIONX32): New.
4453         (GLIBC_DYNAMIC_LINKERX32): Likewise.
4454         * config/i386/linux64.h (GNU_USER_LINK_EMULATIONX32): Likewise.
4455         (GLIBC_DYNAMIC_LINKERX32): Likewise.
4456
4457         * config/linux.h (UCLIBC_DYNAMIC_LINKERX32): New.
4458         (BIONIC_DYNAMIC_LINKERX32): Likewise.
4459         (GNU_USER_DYNAMIC_LINKERX32): Likewise.
4460
4461         * config/i386/t-linux64: Support TM_MULTILIB_CONFIG.
4462
4463         * doc/install.texi: Document --with-multilib-list for Linux/x86-64.
4464
4465         * doc/invoke.texi: Document -mx32.
4466
4467 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
4468
4469         * doc/invoke.texi (mwords-little-endian): Deprecate.
4470         * config/arm/arm.opt (mwords-little-endian): Likewise.
4471         * config/arm/arm.c (arm_option_override): Warn about the deprecation
4472         of -mwords-little-endian.
4473
4474 2011-07-07  Richard Sandiford  <richard.sandiford@linaro.org>
4475
4476         * reload1.c (choose_reload_regs): Use mode sizes to check whether
4477         an old reload register completely defines the required value.
4478
4479 2011-07-07  Richard Guenther  <rguenther@suse.de>
4480
4481         * fold-const.c (fold_unary_loc): Do not strip sign-changes
4482         for NEGATE_EXPR.
4483
4484 2011-07-07  Richard Guenther  <rguenther@suse.de>
4485
4486         * tree-vrp.c (simplify_conversion_using_ranges): New function.
4487         (simplify_stmt_using_ranges): Call it.
4488
4489 2011-07-07  Kai Tietz  <ktietz@redhat.com>
4490
4491         * tree-ssa-forwprop.c (truth_valued_ssa_name): New function.
4492         (lookup_logical_inverted_value): Likewise.
4493         (simplify_bitwise_binary_1): Likewise.
4494         (simplify_bitwise_binary): Use simplify_bitwise_binary_1.
4495
4496 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
4497
4498         * gcc.c (%[Spec]): Don't document.
4499         (struct spec_list): Update comment.
4500         (do_spec_1): Don't handle %[Spec].
4501         * doc/invoke.texi (%[@var{name}]): Remove documentation of spec.
4502
4503 2011-07-07  Joseph Myers  <joseph@codesourcery.com>
4504
4505         * common/common-target-def.h (TARGET_HAVE_NAMED_SECTIONS): Don't
4506         default based on TARGET_ASM_NAMED_SECTION.
4507         * common/common-target.def (have_named_sections): Default to true.
4508         * common/config/default-common.c: Don't include tm.h.
4509         * common/config/picochip/picochip-common.c
4510         (TARGET_HAVE_NAMED_SECTIONS): Don't define.
4511         * common/config/m32c/m32c-common.c: Remove.
4512         * config.gcc (m32c*-*-*): Set target_has_targetm_common=no.
4513         * config/alpha/osf5.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
4514         * config/i386/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
4515         * config/m68k/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
4516         * config/pa/som.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
4517         * config/pdp11/pdp11.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
4518         * config/vax/openbsd.h (TARGET_HAVE_NAMED_SECTIONS): Define to false.
4519
4520 2011-07-07  Jakub Jelinek  <jakub@redhat.com>
4521
4522         PR middle-end/49640
4523         * gimplify.c (gimplify_compound_lval): For last 2 ARRAY_*REF operands
4524         and last COMPONENT_REF operand call gimplify_expr on it if non-NULL.
4525
4526 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4527
4528         PR libmudflap/49550
4529         * gcc.c (MFWRAP_SPEC): Also wrap mmap64.
4530
4531 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4532
4533         PR target/39150
4534         * configure.ac (gcc_cv_as_hidden): Also accept
4535         x86_64-*-solaris2.1[0-9]*.
4536         (gcc_cv_as_cfi_directive): Likewise.
4537         (gcc_cv_as_comdat_group_group): Likewise.
4538         (set_have_as_tls): Likewise.
4539         * configure: Regenerate.
4540         * config.gcc (i[34567]86-*-solaris2*): Also handle
4541         x86_64-*-solaris2.1[0-9]*.
4542         * config.host (i[34567]86-*-solaris2*): Likewise.
4543         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
4544         * config/sol2-bi.h (ASM_CPU_DEFAULT_SPEC): Redefine.
4545         [USE_GLD] (ARCH_DEFAULT_EMULATION): Define.
4546         (TARGET_LD_EMULATION): Use it.
4547         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC): Define.
4548         (SUBTARGET_CPU_EXTRA_SPECS): Add asm_cpu_default.
4549         * config/i386/sol2-bi.h (ASM_CPU32_DEFAULT_SPEC): Define.
4550         (ASM_CPU64_DEFAULT_SPEC): Define.
4551         (ASM_CPU_SPEC): Use %(asm_cpu_default).
4552         (ASM_SPEC): Redefine.
4553         (DEFAULT_ARCH32_P): Define using TARGET_64BIT_DEFAULT.
4554         * config/host-solaris.c [__x86_64__] (TRY_EMPTY_VM_SPACE): Reduce.
4555         * doc/install.texi (Specific, amd64-*-solaris2.1[0-9]*): Document.
4556         (Specific, i?86-*-solaris2.10): Mention x86_64-*-solaris2.1[0-9]*
4557         configuration.
4558         (Specific, x86_64-*-solaris2.1[0-9]*): Document.
4559
4560 2011-07-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4561
4562         * config/sol2.h (ASM_SPEC): Split into ...
4563         (ASM_SPEC_BASE, ASM_PIC_SPEC): ... this.
4564         * config/i386/sol2.h (ASM_SPEC): Define using ASM_SPEC_BASE.
4565         * config/i386/sol2-bi.h (ASM_CPU_SPEC): Redefine.
4566         (ASM_SPEC): Use ASM_SPEC_BASE.
4567         * config/sparc/sol2.h (ASM_SPEC): Redefine.
4568
4569 2011-07-07  Georg-Johann Lay  <avr@gjlay.de>
4570
4571         * config/avr/avr.md (*reload_insi): Change predicate #1 to
4572         const_int_operand.  Ditto for peep2 producing this insn.
4573         Add argument to output_reload_insisf call.
4574         (*movsi,*movsf): Add argument to output_movsisf call.
4575         (*reload_insf): New insn and new peep2 to produce it.
4576         * config/avr/avr-protos.h (output_movsisf): Change prototype.
4577         (output_reload_insisf): Change prototype.
4578         * config/avr/avr.c (avr_asm_len): New function.
4579         (output_reload_insisf): Rewrite.
4580         (output_movsisf): Change prototype.  output_reload_insisf for
4581         all CONST_INT and CONST_DOUBLE.  ALlow moving 0.0f to memory.
4582         (adjust_insn_length): Add argument to output_movsisf and
4583         output_reload_insisf call.
4584
4585 2011-07-07  Bernd Schmidt  <bernds@codesourcery.com>
4586
4587         * emit-rtl.c (paradoxical_subreg_p): New function.
4588         * rtl.h (paradoxical_subreg_p): Declare.
4589         * combine.c (set_nonzero_bits_and_sign_copies, get_last_value,
4590         apply_distributive_law, simplify_comparison, simplify_set): Use it.
4591         * cse.c (record_jump_cond, cse_insn): Likewise.
4592         * expr.c (force_operand): Likewise.
4593         * rtlanal.c (num_sign_bit_copies1): Likewise.
4594         * reload1.c (eliminate_regs_1, strip_paradoxical_subreg): Likewise.
4595         * reload.c (push_secondary_reload, find_reloads_toplev): Likewise.
4596         (push_reload): Use precision to check for paradoxical subregs.
4597         * expmed.c (extract_bit_field_1): Likewise.
4598
4599         * machmode.h (HWI_COMPUTABLE_MODE_P): New macro.
4600         * combine.c (set_nonzero_bits_and_sign_copies): Use it.
4601         (find_split-point, combine_simplify_rtx, simplify_if_then_else,
4602         simplify_set, simplify_logical, expand_compound_operation,
4603         make_extraction, force_to_mode, if_then_else_cond, extended_count,
4604         try_widen_shift_mode, simplify_shift_const_1, simplify_comparison,
4605         record_value_for_reg): Likewise.
4606         * expmed.c (expand_widening_mult, expand_mult_highpart): Likewise.
4607         * simplify-rtx. c (simplify_unary_operation_1,
4608         simplify_binary_operation_1, simplify_const_relational_operation):
4609         Likewise.
4610
4611         * explow.c (trunc_int_for_mode): Use GET_MODE_PRECISION
4612         instead of GET_MODE_BITSIZE where appropriate.
4613         * rtlanal.c (subreg_lsb_1, subreg_get_info, nonzero_bits1,
4614         num_sign_bit_copies1, canonicalize_condition, low_bitmask_len,
4615         init_num_sign_bit_copies_in_rep): Likewise.
4616         * cse.c (fold_rtx, cse_insn): Likewise.
4617         * loop-doloop.c (doloop_modify, doloop_optimize): Likewise.
4618         * simplify-rtx.c (simplify_unary_operation_1,
4619         simplify_const_unary_operation, simplify_binary_operation_1,
4620         simplify_const_binary_operation, simplify_ternary_operation,
4621         simplify_const_relational_operation, simplify_subreg): Likewise.
4622         * combine.c (try_combine, find_split_point, combine_simplify_rtx,
4623         simplify_if_then_else, simplify_set, expand_compound_operation,
4624         expand_field_assignment, make_extraction, if_then_else_cond,
4625         make_compound_operation, force_to_mode, make_field_assignment,
4626         reg_nonzero_bits_for_combine, reg_num_sign_bit_copies_for_combine,
4627         extended_count, try_widen_shift_mode, simplify_shift_const_1,
4628         simplify_comparison, record_promoted_value, simplify_compare_const,
4629         record_dead_and_set_regs_1): Likewise.
4630
4631         Revert:
4632         * simplify-rtx.c (simplify_const_binary_operation): Use the
4633         shift_truncation_mask hook instead of performing modulo by width.
4634         Compare against mode precision, not bitsize.
4635         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
4636         Use shift_truncation_mask instead of constructing the value manually.
4637
4638 2011-07-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
4639
4640         * config/rs6000/rs6000-protos.h (rs6000_call_indirect_aix): New
4641         declaration.
4642         (rs6000_save_toc_in_prologue_p): Ditto.
4643
4644         * config/rs6000/rs6000.opt (-mr11): New switch to disable loading
4645         up the static chain (r11) during indirect function calls.
4646         (-msave-toc-indirect): New undocumented debug switch.
4647
4648         * config/rs6000/rs6000.c (struct machine_function): Add
4649         save_toc_in_prologue field to note whether the prologue needs to
4650         save the TOC value in the reserved stack location.
4651         (rs6000_emit_prologue): Use TOC_REGNUM instead of 2.  If we need
4652         to save the TOC in the prologue, do so.
4653         (rs6000_trampoline_init): Don't allow creating AIX style
4654         trampolines if -mno-r11 is in effect.
4655         (rs6000_call_indirect_aix): New function to create AIX style
4656         indirect calls, adding support for -mno-r11 to suppress loading
4657         the static chain, and saving the TOC in the prologue instead of
4658         the call body.
4659         (rs6000_save_toc_in_prologue_p): Return true if we are saving the
4660         TOC in the prologue.
4661
4662         * config/rs6000/rs6000.md (STACK_POINTER_REGNUM): Add more fixed
4663         register numbers.
4664         (TOC_REGNUM): Ditto.
4665         (STATIC_CHAIN_REGNUM): Ditto.
4666         (ARG_POINTER_REGNUM): Ditto.
4667         (SFP_REGNO): Delete, unused.
4668         (TOC_SAVE_OFFSET_32BIT): Add constants for AIX TOC save and
4669         function descriptor offsets.
4670         (TOC_SAVE_OFFSET_64BIT): Ditto.
4671         (AIX_FUNC_DESC_TOC_32BIT): Ditto.
4672         (AIX_FUNC_DESC_TOC_64BIT): Ditto.
4673         (AIX_FUNC_DESC_SC_32BIT): Ditto.
4674         (AIX_FUNC_DESC_SC_64BIT): Ditto.
4675         (ptrload): New mode attribute for the appropriate load of a pointer.
4676         (call_indirect_aix32): Delete, rewrite AIX indirect function calls.
4677         (call_indirect_aix64): Ditto.
4678         (call_value_indirect_aix32): Ditto.
4679         (call_value_indirect_aix64): Ditto.
4680         (call_indirect_nonlocal_aix32_internal): Ditto.
4681         (call_indirect_nonlocal_aix32): Ditto.
4682         (call_indirect_nonlocal_aix64_internal): Ditto.
4683         (call_indirect_nonlocal_aix64): Ditto.
4684         (call): Rewrite AIX indirect function calls.  Add support for
4685         eliminating the static chain, and for moving the save of the TOC
4686         to the function prologue.
4687         (call_value): Ditto.
4688         (call_indirect_aix<ptrsize>): Ditto.
4689         (call_indirect_aix<ptrsize>_internal): Ditto.
4690         (call_indirect_aix<ptrsize>_internal2): Ditto.
4691         (call_indirect_aix<ptrsize>_nor11): Ditto.
4692         (call_value_indirect_aix<ptrsize>): Ditto.
4693         (call_value_indirect_aix<ptrsize>_internal): Ditto.
4694         (call_value_indirect_aix<ptrsize>_internal2): Ditto.
4695         (call_value_indirect_aix<ptrsize>_nor11): Ditto.
4696         (call_nonlocal_aix32): Relocate in the rs6000.md file.
4697         (call_nonlocal_aix64): Ditto.
4698
4699         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mr11 and
4700         -mno-r11 documentation.
4701
4702 2011-07-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
4703
4704         PR other/49658
4705         * doc/extend.texi (Compound Literals): Fix typo.
4706
4707 2011-07-06  James Greenhalgh  <james.greenhalgh@arm.com>
4708
4709         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add __ARM_FEATURE_DSP.
4710
4711 2011-07-06  Basile Starynkevitch  <basile@starynkevitch.net>
4712
4713         * configure.ac (plugin-version.h): Generate
4714         GCCPLUGIN_VERSION_MAJOR, GCCPLUGIN_VERSION_MINOR,
4715         GCCPLUGIN_VERSION_PATCHLEVEL, GCCPLUGIN_VERSION constant integer
4716         macros.
4717
4718         * configure: Regenerate.
4719
4720         * doc/plugins.texi (Building GCC plugins): Mention
4721         GCCPLUGIN_VERSION ... constant macros in plugin-version.h.
4722
4723 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
4724
4725         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): New macro.
4726         * combine.c (make_extraction, gen_lowpart_or_truncate,
4727         apply_distributive_law, simplify_comparison,
4728         reg_truncated_to_mode, record_truncated_value): Use it.
4729         * cse.c (notreg_cost): Likewise.
4730         * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
4731         * expr.c (convert_move, convert_modes): Likewise.
4732         * optabs.c (expand_binop, expand_unop): Likewise.
4733         * postreload.c (move2add_last_label): Likewise.
4734         * regmove.c (optimize_reg_copy_3): Likewise.
4735         * rtlhooks.c (gen_lowpart_general): Likewise.
4736         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
4737
4738 2011-07-06  Joseph Myers  <joseph@codesourcery.com>
4739
4740         * config/rs6000/vxworks.h (WORDS_BIG_ENDIAN): Define.
4741
4742 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
4743
4744         * cse.c (find_comparison_args): Use val_mode_signbit_set_p.
4745         * simplify-rtx.c (mode_signbit_p): Use GET_MODE_PRECISION.
4746         (val_mode_signbit_p, val_mode_signbit_set_p): New functions.
4747         (simplify_const_unary_operation, simplify_binary_operation_1,
4748         simplify_const_binary_operation, simplify_const_relational_operation):
4749         Use them.  Use GET_MODE_MASK for masking and sign-extensions.
4750         * combine.c (set_nonzero_bits_and_sign_copies, simplify_set,
4751         combine_simplify_rtx, force_to_mode, reg_nonzero_bits_for_combine,
4752         simplify_shift_const_1, simplify_comparison): Likewise.
4753         * expr.c (convert_modes): Likewise.
4754         * rtlanal.c (nonzero_bits1, canonicalize_condition): Likewise.
4755         * expmed.c (emit_cstore, emit_store_flag_1, emit_store_flag): Likewise.
4756         * rtl.h (val_mode_signbit_p, val_mode_signbit_set_p): Declare.
4757
4758         * simplify-rtx.c (simplify_ternary_operation): Remove dead code.
4759
4760 2011-07-06  Richard Guenther  <rguenther@suse.de>
4761
4762         PR tree-optimization/49645
4763         * c-decl.c (finish_decl): Also set DECL_HARD_REGISTER for global
4764         register variables.
4765         * tree-ssa-sccvn.c (vn_reference_op_eq): Disregard differences
4766         in type qualification here ...
4767         (copy_reference_ops_from_ref): ... not here.
4768         (vn_reference_lookup_3): ... or here.
4769         (copy_reference_ops_from_ref): Record decl bases as MEM[&decl].
4770         (vn_reference_lookup): Do the lookup with a valueized ao-ref.
4771
4772 2011-07-06  Ian Lance Taylor  <iant@google.com>
4773
4774         * doc/install.texi (Configuration): It's
4775         --enable-gnu-indirect-function, not --enable-indirect-function.
4776
4777 2011-07-06  Bernd Schmidt  <bernds@codesourcery.com>
4778
4779         * simplify-rtx.c (simplify_const_binary_operation): Use the
4780         shift_truncation_mask hook instead of performing modulo by width.
4781         Compare against mode precision, not bitsize.
4782         * combine.c (combine_simplify_rtx, simplify_shift_const_1):
4783         Use shift_truncation_mask instead of constructing the value manually.
4784
4785 2011-07-06  H.J. Lu  <hongjiu.lu@intel.com>
4786
4787         PR middle-end/47383
4788         * tree-ssa-address.c (addr_for_mem_ref): Use pointer_mode for
4789         address computation and convert to address_mode if needed.
4790
4791 2011-07-06  Richard Guenther  <rguenther@suse.de>
4792
4793         * tree.c (build_common_tree_nodes_2): Merge with
4794         build_common_tree_nodes.
4795         * tree.h (build_common_tree_nodes): Adjust prototype.
4796         (build_common_tree_nodes_2): Remove.
4797         * doc/tm.texi.in (lang_hooks.builtin_function): Adjust.
4798         * doc/tm.texi (lang_hooks.builtin_function): Regenerate.
4799
4800 2011-07-05  Jakub Jelinek  <jakub@redhat.com>
4801
4802         PR tree-optimization/49618
4803         * tree-eh.c (tree_could_trap_p) <case CALL_EXPR>: For DECL_WEAK
4804         t recurse on the decl.
4805         <case FUNCTION_DECL, case VAR_DECL>: For DECL_WEAK decls
4806         return true if expr isn't known to be defined in current
4807         TU or some other LTO partition.
4808
4809 2011-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
4810
4811         * params.def (PARAM_CASE_VALUES_THRESHOLD): New parameter to
4812         override CASE_VALUES_THRESHOLD.
4813
4814         * stmt.c (toplevel): Include params.h.
4815         (case_values_threshold): Use the --param case-values-threshold
4816         value if non-zero, otherwise use machine dependent value.
4817         (expand_case): Use case_values_threshold.
4818
4819         * Makefile.in (stmt.o): Add $(PARAMS_H) dependency.
4820
4821         * doc/invoke.texi (--param case-values-threshold): Document.
4822
4823 2011-07-05  Richard Henderson  <rth@redhat.com>
4824
4825         * dwarf2out.c (dwarf2out_cfi_label): Make static.
4826         (dwarf2out_flush_queued_reg_saves): Make static.
4827         (dwarf2out_reg_save): Remove.
4828         (dwarf2out_return_save): Remove.
4829         (dwarf2out_return_reg): Remove.
4830         (dwarf2out_reg_save_reg): Remove.
4831         (dwarf2out_def_cfa): Merge into ...
4832         (dwarf2out_frame_init): ... here.
4833         * dwarf2out.h, tree.h: Remove declarations as necessary.
4834
4835 2011-07-05  Richard Henderson  <rth@redhat.com>
4836
4837         * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): Remove.
4838         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
4839         (ia64_expand_epilogue): Emit an empty FRAME_RELATED_EXPR for
4840         the alloc insn.
4841
4842         * config/ia64/ia64.c (ia64_emit_deleted_label_after_insn): Remove.
4843         (IA64_CHANGE_CFA_IN_EPILOGUE): Remove.
4844         (process_epilogue): Don't call dwarf2out_def_cfa.
4845
4846         * config/ia64/ia64.c (ia64_expand_prologue): Use pc_rtx to
4847         indicate the return address save.
4848         (process_cfa_register): Likewise.
4849
4850         * config/ia64/ia64.c (ia64_dwarf2out_def_steady_cfa): Remove.
4851         (process_cfa_adjust_cfa, ia64_asm_unwind_emit): Don't call it.
4852
4853         * config/ia64/ia64.c (ia64_expand_prologue): Emit REG_CFA_REGISTER
4854         for ar.pfs save at alloc insn.
4855
4856 2011-07-05  Richard Henderson  <rth@redhat.com>
4857
4858         * config/arm/arm.c (arm_dwarf_handle_frame_unspec): Remove.
4859         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
4860         (arm_expand_prologue): Use REG_CFA_REGISTER to mark the
4861         stack pointer save.
4862         (arm_unwind_emit_set): Don't recognize UNSPEC_STACK_ALIGN.
4863         (arm_unwind_emit): Walk REG_NOTES for unwinding notes.  Emit
4864         proper unwind info for a REG_CFA_REGISTER save of stack pointer.
4865         * config/arm/arm.md (UNSPEC_STACK_ALIGN): Remove.
4866
4867 2011-07-05  Richard Henderson  <rth@redhat.com>
4868
4869         * config/vax/vax.md (define_c_enum unspecv): New.  Define the
4870         VUNSPEC_* constants here instead of via define_constants.
4871         (VUNSPEC_PEM): New constant.
4872         (procedure_entry_mask): New insn.
4873         (prologue): New expander.
4874         * config/vax/vax.c (vax_add_reg_cfa_offset): New.
4875         (vax_expand_prologue): Rename from vax_output_function_prologue;
4876         emit rtl instead of text.
4877         (TARGET_ASM_FUNCTION_PROLOGUE): Remove.
4878         (print_operand): Add 'x' prefix.
4879
4880 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
4881
4882         PR middle-end/47715
4883         * calls.c (precompute_register_parameters): Promote the function
4884         argument before checking non-legitimate constant.
4885
4886 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
4887
4888         PR tree-optimization/47654
4889         * graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
4890         (lst_do_strip_mine_loop): Return an int.
4891         (lst_do_strip_mine): Same.
4892         (scop_do_strip_mine): Same.
4893         (scop_do_block): Loop blocking should strip-mine at least two loops.
4894         * graphite-interchange.c (lst_interchange_select_outer): Return an int.
4895         (scop_do_interchange): Same.
4896         * graphite-poly.h (scop_do_interchange): Update declaration.
4897         (scop_do_strip_mine): Same.
4898
4899 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
4900
4901         * graphite-clast-to-gimple.c (precision_for_value): Removed.
4902         (precision_for_interval): Removed.
4903         (gcc_type_for_interval): Use mpz_sizeinbase.
4904
4905 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
4906
4907         * graphite-ppl.h (value_max): Correct computation of max.
4908
4909 2011-07-05  Sebastian Pop  <sebastian.pop@amd.com>
4910
4911         * graphite-clast-to-gimple.c (clast_name_to_index): Add missing space.
4912
4913 2011-07-05  Richard Guenther  <rguenther@suse.de>
4914
4915         * c-decl.c (c_init_decl_processing): Defer building common
4916         tree nodes to c_common_nodes_and_builtins.
4917
4918 2011-07-05  Razya Ladelsky  <razya@il.ibm.com>
4919
4920         PR tree-optimization/49580
4921         * tree-cfg.c (gimple_duplicate_sese_tail): Remove handling of
4922         the loop's number of iterations.
4923         * tree-parloops.c (transform_to_exit_first_loop): Add the
4924         handling of the loop's number of iterations before the call
4925         to gimple_duplicate_sese_tail.
4926         Insert the stmt caclculating the new rhs of the loop's
4927         condition stmt to the preheader instead of iters_bb.
4928
4929 2011-07-05  H.J. Lu  <hongjiu.lu@intel.com>
4930
4931         PR rtl-optimization/47449
4932         * fwprop.c (forward_propagate_subreg): Don't propagate hard
4933         register nor zero/sign extended hard register.
4934
4935 2011-07-05  Richard Guenther  <rguenther@suse.de>
4936
4937         PR tree-optimization/49518
4938         PR tree-optimization/49628
4939         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Skip
4940         irrelevant and invariant data-references.
4941         (vect_analyze_data_ref_access): For invariant loads clear the
4942         group association.
4943
4944 2011-07-04  Jakub Jelinek  <jakub@redhat.com>
4945
4946         PR rtl-optimization/49619
4947         * combine.c (combine_simplify_rtx): In PLUS -> IOR simplification
4948         pass VOIDmode as op0_mode to recursive call, and return temp even
4949         when different from tor, just if it is not IOR of the original
4950         PLUS arguments.
4951
4952         PR rtl-optimization/49472
4953         * simplify-rtx.c (simplify_unary_operation_1) <case NEG>: When
4954         negating MULT, negate the second operand instead of first.
4955         (simplify_binary_operation_1) <case MULT>: If one operand is
4956         a NEG and the other is MULT, don't attempt to optimize by negation
4957         of the MULT operand if it only moves the NEG operation around.
4958
4959         PR debug/49602
4960         * tree-into-ssa.c (rewrite_debug_stmt_uses): Disregard
4961         get_current_def return value if it can't be trusted to be
4962         the current value of the variable in the current bb.
4963
4964 2011-07-04  Uros Bizjak  <ubizjak@gmail.com>
4965
4966         PR target/49600
4967         * config/i386/i386.md (SSE2 int->float split): Push operand 1 in
4968         general register to memory for !TARGET_INTER_UNIT_MOVES.
4969
4970 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
4971
4972         PR target/44643
4973         * config/avr/avr.c (avr_insert_attributes): Use TYPE_READONLY
4974         instead of TREE_READONLY.
4975
4976 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
4977
4978         * doc/extend.texi (AVR Built-in Functions): Update documentation
4979         of __builtin_avr_fmul*.
4980         * config/avr/avr.c (avr_init_builtins): Don't depend on AVR_HAVE_MUL.
4981         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Ditto.
4982         * config/avr/avr.md (fmul): Rename to fmul_insn.
4983         (fmuls): Rename to fmuls_insn.
4984         (fmulsu): Rename to fmulsu_insn.
4985         (fmul,fmuls,fmulsu): New expander.
4986         (*fmul.call,*fmuls.call,*fmulsu.call): New Insn.
4987         * config/avr/t-avr (LIB1ASMFUNCS): Add _fmul, _fmuls, _fmulsu.
4988         * config/avr/libgcc.S (__fmul): New function.
4989         (__fmuls): New function.
4990         (__fmulsu,__fmulsu_exit): New function.
4991
4992 2011-07-04  Richard Guenther  <rguenther@suse.de>
4993
4994         PR tree-optimization/49615
4995         * tree-cfgcleanup.c (split_bbs_on_noreturn_calls): Fix
4996         basic-block index check.
4997
4998 2011-07-04  Georg-Johann Lay  <avr@gjlay.de>
4999
5000         * longlong.h (count_leading_zeros, count_trailing_zeros,
5001         COUNT_LEADING_ZEROS_0): Define for target avr if W_TYPE_SIZE is 16
5002         resp. 64.
5003
5004 2011-07-03  Ira Rosen  <ira.rosen@linaro.org>
5005
5006         PR tree-optimization/49610
5007         * tree-vect-loop.c (vect_is_slp_reduction): Check that DEF_STMT has
5008         a basic block.
5009
5010 2011-07-02  Eric Botcazou  <ebotcazou@adacore.com>
5011             Olivier Hainque  <hainque@adacore.com>
5012             Nicolas Setton  <setton@adacore.com>
5013
5014         * tree.h (TYPE_ARTIFICIAL): New flag.
5015         * dwarf2out.c (modified_type_die): Add a DW_AT_artificial attribute to
5016         the DIE of the type if it is artificial.
5017         (gen_array_type_die): Likewise.
5018         (gen_enumeration_type_die): Likewise.
5019         (gen_struct_or_union_type_die): Likewise.
5020         * lto-streamer-in.c (unpack_ts_base_value_fields): Use TYPE_ARTIFICIAL.
5021         * lto-streamer-out.c (pack_ts_base_value_fields): Likewise.
5022
5023 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
5024
5025         * tree-object-size.c (pass_through_call): Handle
5026         BUILT_IN_ASSUME_ALIGNED.
5027
5028 2011-07-01  Martin Jambor  <mjambor@suse.cz>
5029
5030         * tree-sra.c (tree_non_mode_aligned_mem_p): Also ignore MEM_REFs.
5031
5032 2011-07-01  H.J. Lu  <hongjiu.lu@intel.com>
5033
5034         PR middle-end/48016
5035         * explow.c (update_nonlocal_goto_save_area): Use proper mode
5036         for stack save area.
5037         * function.c (expand_function_start): Likewise.
5038
5039 2011-07-01  Richard Guenther  <rguenther@suse.de>
5040
5041         PR middle-end/49596
5042         * cgraph.h (varpool_all_refs_explicit_p): Not analyzed nodes
5043         may have unknown refs.
5044
5045 2011-07-01  Kai Tietz  <ktietz@redhat.com>
5046
5047         * tree-ssa-forwprop.c (simplify_bitwise_binary): Fix typo.
5048
5049 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5050
5051         * config.gcc: Obsolete alpha*-dec-osf5.1, mips-sgi-irix6.5.
5052         * doc/install.texi (Specific, alpha*-dec-osf5.1): Document it.
5053         (Specific, mips-sgi-irix6): Likewise.
5054
5055 2011-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5056
5057         PR libmudflap/49549
5058         * doc/sourcebuild.texi (Effective-Target Keywords): Document gld.
5059
5060 2011-07-01  Jakub Jelinek  <jakub@redhat.com>
5061
5062         * tree-pretty-print.c (dump_generic_code) <case CONSTRUCTOR>: Print
5063         [idx]= and [idx1 ... idx2]= before initializers if needed for
5064         array initializers.
5065
5066 2011-07-01  Chen Liqin  <liqin.gcc@gmail.com>
5067
5068         * config.gcc (score-*-elf): Remove score7.o.
5069         * config/score/t-score-elf: Likewise.
5070         * config/score/score.c: Merge score7 to score.c and
5071         remove forwarding functions.
5072         * config/score/score7.c: Deleted.
5073         * config/score/score7.h: Deleted.
5074
5075 2011-07-01  Richard Guenther  <rguenther@suse.de>
5076
5077         PR tree-optimization/49603
5078         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary assert.
5079
5080 2011-06-30  Martin Jambor  <mjambor@suse.cz>
5081
5082         * tree-sra.c (struct access): Rename total_scalarization to
5083         grp_total_scalarization
5084         (completely_scalarize_var): New function.
5085         (sort_and_splice_var_accesses): Set total_scalarization in the
5086         representative access.
5087         (analyze_access_subtree): Propagate total scalarization accross the
5088         tree, no holes in totally scalarized trees, simplify coverage
5089         computation.
5090         (analyze_all_variable_accesses): Call completely_scalarize_var instead
5091         of completely_scalarize_record.
5092
5093 2011-06-30  Richard Henderson  <rth@redhat.com>
5094
5095         * config/i386/i386.h (X86_TUNE_DEEP_BRANCH_PREDICTION): Remove.
5096         (TARGET_DEEP_BRANCH_PREDICTION): Remove.
5097         * config/i386/i386.c: Don't include dwarf2out.h.
5098         (initial_ix86_tune_features): Remove X86_TUNE_DEEP_BRANCH_PREDICTION.
5099         (output_set_got): Don't test TARGET_DEEP_BRANCH_PREDICTION, delete
5100         all code dead thereafter.  Don't do dwarf2out_flush_queued_reg_saves.
5101         (ix86_expand_prologue): Set REG_CFA_FLUSH_QUEUE on set_got insn.
5102         (machopic_output_stub): Don't test TARGET_DEEP_BRANCH_PREDICTION.
5103
5104 2011-06-30  Richard Henderson  <rth@redhat.com>
5105
5106         * reg-notes.def (REG_CFA_FLUSH_QUEUE): New.
5107         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
5108         * final.c (final_scan_insn): Look for it, and invoke
5109         dwarf2out_frame_debug before the insn if found.
5110
5111 2011-06-30  Richard Henderson  <rth@redhat.com>
5112
5113         * dwarf2out.c (dwarf2out_frame_debug_cfa_offset): Allow PC_RTX
5114         as a source, and interpret that as DWARF_FRAME_RETURN_COLUMN.
5115
5116 2011-06-30  Richard Henderson  <rth@redhat.com>
5117
5118         * dwarf2out.c (struct reg_saved_in_data): Provide a typedef.
5119         Define a vector of this type.
5120         (regs_saved_in_regs): Use a VEC.
5121         (num_regs_saved_in_regs): Remove.
5122         (compare_reg_or_pc): New.
5123         (record_reg_saved_in_reg): Split out from...
5124         (dwarf2out_flush_queued_reg_saves): ... here.
5125         (clobbers_queued_reg_save): Update for VEC.
5126         (reg_saved_in): Likewise.
5127         (dwarf2out_frame_debug_init): Likewise.
5128         (dwarf2out_reg_save_reg): Use record_reg_saved_in_reg.
5129         (dwarf2out_frame_debug_cfa_register): Likewise.
5130
5131 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
5132
5133         PR tree-optimization/49572
5134         * tree-ssa-dom.c (initialize_hash_element) <GIMPLE_SINGLE_RHS>: Use the
5135         type of the RHS instead of that of the LHS for the expression type.
5136
5137 2011-06-30  Eric Botcazou  <ebotcazou@adacore.com>
5138
5139         * df-scan.c (df_get_entry_block_def_set): Use INCOMING_REGNO macro
5140         unconditionally.
5141
5142 2011-06-30  Richard Guenther  <rguenther@suse.de>
5143
5144         * opts.c (finish_options): Do not disable IPA-PTA during ltrans.
5145         * tree-ssa-structalias.c (create_variable_info_for): Do not
5146         add initial constraints for non-var-decls.  Properly handle
5147         globals in other ltrans partitions.
5148         (intra_create_variable_infos): Manually create constraints for
5149         the fake no-alias parameter.
5150         (ipa_pta_execute): Dump the cgraph, handle ltrans partitions properly
5151         and assert there are no clones.
5152
5153 2011-06-30  Richard Guenther  <rguenther@suse.de>
5154
5155         PR tree-optimization/46787
5156         * tree-data-ref.c (dr_address_invariant_p): Remove.
5157         (find_data_references_in_stmt): Invariant accesses are ok now.
5158         * tree-vect-stmts.c (vectorizable_load): Handle invariant loads.
5159         * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
5160         invariant loads.
5161
5162 2011-06-30  Martin Jambor  <mjambor@suse.cz>
5163
5164         PR tree-optimization/49094
5165         * tree-sra.c (tree_non_mode_aligned_mem_p): New function.
5166         (build_accesses_from_assign): Use it.
5167
5168 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
5169
5170         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
5171         handling of BUILT_IN_ASSUME_ALIGNED.
5172
5173         PR debug/49364
5174         * dwarf2out.c (output_abbrev_section): Don't return early
5175         if abbrev_die_table_in_use is 1.
5176         (dwarf2out_finish): Instead don't call output_abbrev_section
5177         nor emit abbrev_section_label in that case.
5178
5179 2011-06-30  Nick Clifton  <nickc@redhat.com>
5180
5181         * config/v850/v850.h (CPP_SPEC): Define __v850e__ when compiling
5182         for the V850E.
5183
5184 2011-06-30  Jakub Jelinek  <jakub@redhat.com>
5185
5186         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Fix
5187         handling of BUILT_IN_MEMPCPY_CHK and BUILT_IN_STPCPY_CHK.
5188
5189 2011-06-30  Ira Rosen  <ira.rosen@linaro.org>
5190
5191         * tree-vect-loop.c (vect_determine_vectorization_factor): Handle
5192         both pattern and original statements if necessary.
5193         (vect_transform_loop): Likewise.
5194         * tree-vect-patterns.c (vect_pattern_recog): Update documentation.
5195         * tree-vect-stmts.c (vect_mark_relevant): Add new argument.
5196         Mark the pattern statement only if the original statement doesn't
5197         have its own uses.
5198         (process_use): Call vect_mark_relevant with additional parameter.
5199         (vect_mark_stmts_to_be_vectorized): Likewise.
5200         (vect_get_vec_def_for_operand): Use vectorized pattern statement.
5201         (vect_analyze_stmt): Handle both pattern and original statements
5202         if necessary.
5203         (vect_transform_stmt): Don't store vectorized pattern statement
5204         in the original statement.
5205         (vect_is_simple_use_1): Use related pattern statement only if the
5206         original statement is irrelevant.
5207         * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
5208
5209 2011-06-29  Changpeng Fang  <changpeng.fang@amd.com>
5210
5211         * config/i386/i386.opt (mprefer-avx128): Redefine the flag as a Mask
5212         option.
5213         * config/i386/i386.h (ix86_tune_indices): Add X86_TUNE_AVX128_OPTIMAL
5214         entry.
5215         (TARGET_AVX128_OPTIMAL): New definition.
5216         * config/i386/i386.c (initial_ix86_tune_features): Initialize
5217         X86_TUNE_AVX128_OPTIMAL entry.
5218         (ix86_option_override_internal): Enable the generation
5219         of the 128-bit instructions when TARGET_AVX128_OPTIMAL is set.
5220         (ix86_preferred_simd_mode): Use TARGET_PREFER_AVX128.
5221         (ix86_autovectorize_vector_sizes): Use TARGET_PREFER_AVX128.
5222
5223 2011-06-29  Eric Botcazou  <ebotcazou@adacore.com>
5224
5225         PR tree-optimization/49539
5226         * tree-ssa-forwprop.c (can_propagate_from): Check for abnormal SSA
5227         names by means of stmt_references_abnormal_ssa_name.
5228         (associate_plusminus): Call can_propagate_from before propagating
5229         from definition statements.
5230         (ssa_forward_propagate_and_combine): Remove superfluous newline.
5231
5232 2011-06-29  Richard Guenther  <rguenther@suse.de>
5233
5234         * doc/invoke.texi: Document -scev dump modifier.
5235         * tree-pass.h (TDF_SCEV): New dump flag.
5236         * tree-dump.c (dump_option_value_in): Add scev.
5237         * tree-chrec.c: Replace all TDF_DETAILS checks with TDF_SCEV.
5238         * tree-scalar-evolution.c: Likewise.
5239
5240 2011-06-29  Nathan Sidwell  <nathan@codesourcery.com>
5241
5242         * config/arm/unwind-arm.c (enum __cxa_type_match_result): New.
5243         (cxa_type_match): Correct declaration.
5244         (__gnu_unwind_pr_common): Reconstruct additional indirection
5245         when __cxa_type_match returns succeeded_with_ptr_to_base.
5246
5247 2011-06-29  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5248
5249         PR rtl-optimization/49114
5250         * reload.c (struct replacement): Remove SUBREG_LOC member.
5251         (push_reload): Do not set it.
5252         (push_replacement): Likewise.
5253         (subst_reload): Remove dead code.
5254         (copy_replacements): Remove assertion.
5255         (copy_replacements_1): Do not handle SUBREG_LOC.
5256         (move_replacements): Likewise.
5257         (find_replacement): Remove dead code.  Use reload_adjust_reg_for_mode.
5258         Detect subregs via recursive descent instead of via SUBREG_LOC.
5259
5260 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
5261
5262         * config/avr/avr.c (avr_encode_section_info): Dispatch to
5263         default_encode_section_info.
5264
5265 2011-06-29  Richard Sandiford  <richard.sandiford@linaro.org>
5266
5267         PR tree-optimization/49545
5268         * builtins.c (get_object_alignment_1): Update function comment.
5269         Do not use DECL_ALIGN for functions, but test
5270         TARGET_PTRMEMFUNC_VBIT_LOCATION instead.
5271         * fold-const.c (get_pointer_modulus_and_residue): Don't check
5272         for functions here.
5273         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
5274
5275 2011-06-29  Jakub Jelinek  <jakub@redhat.com>
5276
5277         PR debug/49567
5278         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTEND>: Give up for
5279         non-MODE_INT modes instead of asserting the mode has MODE_INT class.
5280
5281 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
5282
5283         PR target/34734
5284         * config/avr/avr.c (avr_handle_progmem_attribute): Move warning
5285         about uninitialized data attributed 'progmem' from here...
5286         (avr_encode_section_info): ...to this new function.
5287         (TARGET_ENCODE_SECTION_INFO): New define.
5288         (avr_section_type_flags): For data in ".progmem.data", remove
5289         section flag SECTION_WRITE.
5290
5291 2011-06-29  Georg-Johann Lay  <avr@gjlay.de>
5292
5293         * config/avr/t-avr (LIB1ASMFUNCS): Add _mulhisi3, _umulhisi3,
5294         _xmulhisi3_exit.
5295         * config/avr/libgcc.S (_xmulhisi3_exit): New Function.
5296         (__mulhisi3): Optimize if have MUL*.  Use XJMP instead of rjmp.
5297         (__umulhisi3): Ditto.
5298         * config/avr/avr.md (mulhisi3): New insn expender.
5299         (umulhisi3): New insn expender.
5300         (*mulhisi3_call): New insn.
5301         (*umulhisi3_call): New insn.
5302
5303 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
5304
5305         * Makefile.in (LIBGCC2_CFLAGS): Remove -D__GCC_FLOAT_NOT_NEEDED.
5306
5307 2011-06-28  Richard Henderson  <rth@redhat.com>
5308
5309         * config/arm/arm.c (thumb_pop): Rename from thumb_pushpop.  Delete
5310         all code and arguments that handled pushes.  Update all callers.
5311
5312 2011-06-28  Richard Henderson  <rth@redhat.com>
5313
5314         * config/arm/arm.c (arm_output_function_prologue): Don't call
5315         thumb1_output_function_prologue.
5316         (arm_expand_prologue): Avoid dead store.
5317         (number_of_first_bit_set): Use ctz_hwi.
5318         (thumb1_emit_multi_reg_push): New.
5319         (thumb1_expand_prologue): Merge thumb1_output_function_prologue
5320         to emit the entire prologue as rtl.
5321         (thumb1_output_interwork): Split out from
5322         thumb1_output_function_prologue.
5323         (thumb1_output_function_prologue): Remove.
5324         (arm_attr_length_push_multi): Handle thumb1.
5325         * config/arm/arm.md (VUNSPEC_THUMB1_INTERWORK): New.
5326         (prologue_thumb1_interwork): New.
5327         (*push_multi): Allow thumb1; use push_mult_memory_operand.
5328         * config/arm/predicates.md (push_mult_memory_operand): New.
5329
5330 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
5331
5332         * config/sparc/sync.md (*stbar): Delete.
5333         (*membar_v8): New insn to implement UNSPEC_MEMBAR in SPARC-V8.
5334
5335 2011-06-28  Eric Botcazou  <ebotcazou@adacore.com>
5336
5337         * tree-ssa-dom.c (initialize_hash_element): Fix oversight.
5338
5339 2011-06-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5340
5341         * config/sparc/sol2-64.h (TARGET_DEFAULT): Remove.
5342         (TARGET_64BIT_DEFAULT): Define.
5343         * config.gcc (sparc*-*-solaris2*): Move sparc/sol2-64.h to front
5344         of tm_file.
5345         * config/sparc/sol2.h [TARGET_64BIT_DEFAULT] (TARGET_DEFAULT): Define.
5346
5347 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
5348
5349         * common.opt (in_lto_p): New Variable entry.
5350         * flags.h (in_lto_p): Move to common.opt.
5351         * gcc.c: Include params.h.
5352         (set_option_handlers): Also use common_handle_option and
5353         target_handle_option.
5354         (main): Call global_init_params, finish_params and init_options_struct.
5355         * opts.c (debug_type_names): Move from toplev.c.
5356         (print_filtered_help): Access quiet_flag through opts pointer.
5357         (common_handle_option): Return early in the driver for some options.
5358         Access in_lto_p, dwarf_version and warn_maybe_uninitialized through
5359         opts pointer.
5360         * toplev.c (in_lto_p): Move to common.opt.
5361         (debug_type_names): Move to opts.c.
5362         * Makefile.in (OBJS): Remove opts.o.
5363         (OBJS-libcommon-target): Add opts.o.
5364         (gcc.o): Update dependencies.
5365
5366 2011-06-28  Kai Tietz  <ktietz@redhat.com>
5367
5368         * tree-ssa-forwprop.c (simplify_bitwise_binary): Improve type sinking.
5369
5370 2011-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5371
5372         * config/arm/vfp.md ("*divsf3_vfp"): Replace '+' constraint modifier
5373         with '=' constraint modifier.
5374         (*divdf3_vfp): Likewise.
5375         ("*mulsf3_vfp"): Likewise.
5376         ("*muldf3_vfp"): Likewise.
5377         ("*mulsf3negsf_vfp"): Likewise.
5378         ("*muldf3negdf_vfp"): Likewise.
5379
5380 2011-06-28  Nick Clifton  <nickc@redhat.com>
5381
5382         * config/mn10300/mn10300.h (LINK_SPEC): Do not use linker
5383         relaxation when performing an incremental link.
5384
5385 2011-06-28  Kai Tietz  <ktietz@redhat.com>
5386
5387         * tree-ssa-math-opts.c (execute_optimize_bswap): Search
5388         within BB from last to first.
5389
5390 2011-06-28  Joseph Myers  <joseph@codesourcery.com>
5391
5392         * genattr-common.c: New.  Based on genattr.c.
5393         * Makefile.in (INSN_ATTR_H): Include insn-attr-common.h.
5394         (MOSTLYCLEANFILES): Add insn-attr-common.h.
5395         (opts.o): Update dependencies.
5396         (.PRECIOUS): Add insn-attr-common.h.
5397         (simple_rtl_generated_h): Add insn-attr-common.h.
5398         (build/genattr-common.o): New.
5399         (genprogrtl): Add attr-common.
5400         * genattr.c (main): Include insn-attr-common.h.  Don't generate
5401         definitions of DELAY_SLOTS or INSN_SCHEDULING.
5402         * opts.c: Include insn-attr-common.h instead of rtl.h and insn-attr.h.
5403
5404 2011-06-28  Georg-Johann Lay  <avr@gjlay.de>
5405
5406         * config.gcc (tm_file): Add elfos.h and avr/elf.h for
5407         avr-*-* and avr-*-rtems* targets.
5408
5409         * config/avr/elf.h: New file.
5410         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define.
5411         (TARGET_ASM_SELECT_SECTION): Define.
5412         (INIT_SECTION_ASM_OP): Undefine.
5413         (FINI_SECTION_ASM_OP): Undefine.
5414         (READONLY_DATA_SECTION_ASM_OP): Undefine.
5415         (PCC_BITFIELD_TYPE_MATTERS): Undefine.
5416         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Undefine.
5417         * config/avr/avr.h:
5418         (PREFERRED_DEBUGGING_TYPE): Move to elf.h.
5419         (TARGET_ASM_NAMED_SECTION): Move to elf.h.
5420         (MAX_OFILE_ALIGNMENT): Move to elf.h.
5421         (STRING_LIMIT): Move to elf.h.
5422         (ASM_DECLARE_FUNCTION_NAME): Move to elf.h.
5423         (ASM_DECLARE_OBJECT_NAME): Remove.
5424         (ESCAPES): Remove.
5425         (ASM_OUTPUT_SKIP): Remove.
5426         (DWARF2_DEBUGGING_INFO): Remove.
5427         (OBJECT_FORMAT_ELF): Remove.
5428         (USER_LABEL_PREFIX): Remove.
5429         (ASM_OUTPUT_EXTERNAL): Remove.
5430         (ASM_OUTPUT_ASCII): Remove.
5431         (TYPE_ASM_OP): Remove.
5432         (SIZE_ASM_OP): Remove.
5433         (WEAK_ASM_OP): Remove.
5434         (STRING_ASM_OP): Remove.
5435         (SET_ASM_OP): Remove.
5436         (ASM_WEAKEN_LABEL): Remove.
5437         (TYPE_OPERAND_FMT): Remove.
5438         (ASM_DECLARE_FUNCTION_SIZE): Remove.
5439         (ASM_FINISH_DECLARE_OBJECT): Remove.
5440         (NO_DOLLAR_IN_LABEL): Remove.
5441         (ASM_GENERATE_INTERNAL_LABEL): Remove.
5442         (ASM_OUTPUT_CASE_LABEL): Remove.
5443         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Use
5444         ASM_OUTPUT_ALIGNED_LOCAL, ASM_OUTPUT_ALIGNED_COMMON.
5445         (gas_output_ascii): Remove.
5446         (gas_output_limited_string): Remove.
5447         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Remove.
5448         * config/avr/avr-protos.h
5449         (gas_output_ascii): Remove prototye.
5450         (gas_output_limited_string): Remove prototype.
5451
5452 2011-06-27  Richard Earnshaw  <rearnsha@arm.com>
5453
5454         PR target/48637
5455         * arm.c (arm_print_operand): Allow sym+offset.  Don't abort on invalid
5456         asm operands.
5457
5458 2011-06-27  Jan Hubicka  <jh@suse.cz>
5459
5460         * ipa.c (cgraph_address_taken_from_non_vtable_p): Walk references of
5461         node instead of references in node.
5462
5463 2011-06-27  Richard Henderson  <rth@redhat.com>
5464
5465         * config/alpha/alpha.c (vms_patch_builtins): Provide dummy definition.
5466         * config/ia64/ia64.c (ia64_init_builtins): Call vms_patch_builtins
5467         inside ifdef.
5468
5469 2011-06-27  Jakub Jelinek  <jakub@redhat.com>
5470
5471         * c-decl.c (union lang_tree_node): Use it in chain_next expression.
5472
5473         * builtin-types.def (BT_FN_PTR_CONST_PTR_SIZE_VAR): New.
5474         * builtins.def (BUILT_IN_ASSUME_ALIGNED): New builtin.
5475         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call,
5476         find_func_clobbers): Handle BUILT_IN_ASSUME_ALIGNED.
5477         * tree-ssa-ccp.c (bit_value_assume_aligned): New function.
5478         (evaluate_stmt, execute_fold_all_builtins): Handle
5479         BUILT_IN_ASSUME_ALIGNED.
5480         * tree-ssa-dce.c (propagate_necessity): Likewise.
5481         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
5482         call_may_clobber_ref_p_1): Likewise.
5483         * builtins.c (is_simple_builtin, expand_builtin): Likewise.
5484         (expand_builtin_assume_aligned): New function.
5485         * doc/extend.texi (__builtin_assume_aligned): Document.
5486
5487         PR debug/49544
5488         * cselib.c (promote_debug_loc): If cselib_preserve_constants
5489         and l has two DEBUG_INSN owned locs instead of just one, adjust
5490         the second location's setting_insn too.
5491
5492 2011-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5493
5494         PR libmudflap/38738
5495         * config/sol2.h [!USE_GLD] (MFLIB_SPEC): Define.
5496
5497 2011-06-27  Nick Clifton  <nickc@redhat.com>
5498
5499         * config/mn10300/mn10300.md (clzsi2): Use XOR after BSCH to convert
5500         bit position of highest bit set into a count of the high zero bits.
5501
5502 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5503
5504         * dwarf2out.c (TYPE_DECL_IS_STUB): Extend mechanism to all types.
5505
5506 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5507
5508         PR lto/48492
5509         * dwarf2out.c (dwarf2out_finish): Do not attach a DIE on the limbo list
5510         to a NULL parent.
5511
5512 2011-06-27  Richard Guenther  <rguenther@suse.de>
5513
5514         PR tree-optimization/49394
5515         * passes.c (execute_one_pass): Restore current_pass after
5516         applying IPA transforms.
5517
5518 2011-06-27  Kai Tietz  <ktietz@redhat.com>
5519
5520         * tree-ssa-math-opts.c (do_shift_rotate): Zero bits
5521         out of type precision after operation.
5522         (find_bswap): Take for limit value the integer auto-promotion
5523         into account.
5524
5525 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5526
5527         * reorg.c (fill_simple_delay_slots): Use stop_search_p to stop the
5528         forward scan as well.
5529
5530 2011-06-27  Tristan Gingold  <gingold@adacore.com>
5531
5532         PR target/44241
5533         * config/vms/vms-protos.h: New file.
5534         * config/vms/vms-crtlmap.map: New file.
5535         * config/vms/vms.c: New file.
5536         * config/vms/make-crtlmap.awk: New file.
5537         * config/vms/vms-crtl.h: File removed.
5538         * config/vms/vms-crtl-64.h: File removed.
5539         * config/vms/t-vms (vms-crtlmap.h, vms.o): New targets.
5540         * config/alpha/vms64.h: Do not include vms-crtl-64.h
5541         * config/alpha/alpha.c (alpha_init_builtins): Remove code to
5542         clear some builtins on VMS.  Calls vms_patch_builtins.
5543         (avms_asm_output_external): Remove.
5544         * config/alpha/vms.h (ASM_OUTPUT_EXTERNAL): Remove.
5545         (struct crtl_name_spec): Remove
5546         (DO_CTRL_NAMES): Remove.
5547         * config/ia64/vms.h (struct crtl_name_spec): Remove
5548         (DO_CTRL_NAMES): Remove.
5549         * config/ia64/ia64.c (alpha_init_builtins): Remove code to
5550         clear some builtins on VMS.  Calls vms_patch_builtins.
5551         (ia64_asm_output_external): Remove DO_CRTL_NAME.
5552         * config/ia64/vms64.h: Do not include vms-crtl-64.h
5553         * config.gcc (*-*-*vms*): Define extra_objs, target_gtfiles, tm_p_file.
5554
5555 2011-06-27  Tristan Gingold  <gingold@adacore.com>
5556
5557         * config/alpha/alpha.c (alpha_end_function): Always generate .end
5558         directive on VMS.
5559
5560 2011-06-27  Eric Botcazou  <ebotcazou@adacore.com>
5561
5562         * config/sparc/sparc.c (sparc_frame_pointer_required): Return true if
5563         the function receives nonlocal gotos.
5564
5565 2011-06-27  Richard Guenther  <rguenther@suse.de>
5566
5567         PR tree-optimization/49536
5568         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size):
5569         For non-scalar inner types use a scalar type according to
5570         the scalar inner mode.
5571
5572 2011-06-27  Richard Guenther  <rguenther@suse.de>
5573
5574         PR tree-optimization/49365
5575         * params.def (min-insn-to-prefetch-ratio): Reduce from 10 to 9.
5576
5577 2011-06-27  Richard Guenther  <rguenther@suse.de>
5578
5579         PR tree-optimization/49169
5580         * fold-const.c (get_pointer_modulus_and_residue): Don't rely on
5581         the alignment of function decls.
5582
5583 2011-06-26  Iain Sandoe  <iains@gcc.gnu.org>
5584
5585         PR target/47997
5586         * config/darwin.c (darwin_mergeable_string_section): Place string
5587         constants in '.cstring' rather than '.const' when CF/NSStrings are
5588         active.
5589
5590 2011-06-26  Eric Botcazou  <ebotcazou@adacore.com>
5591
5592         * config/sparc/sparc.c (save_local_or_in_reg_p): Adjust comment.
5593         (emit_save_register_window): Likewise.
5594         (sparc_expand_prologue): Use SIZE_INT_RTX and SIZE_RTX variables.
5595         (sparc_flat_expand_prologue): Add comment.  Always emit blockage.
5596         Swap back %o7/%i7 in register naming.
5597
5598 2011-06-25  Iain Sandoe  <iains@gcc.gnu.org>
5599
5600         PR driver/49371
5601         * config/darwin.c (darwin_override_options): Improve warning when
5602         mdynamic-no-pic is given together with fPIC/fpic, also warn when it
5603         is given with fpie/fPIE.
5604         * config/darwin.h (PIE_SPEC): New, (LINK_SPEC): Use PIE_SPEC.
5605         * config/darwin9.h (PIE_SPEC): New.
5606
5607 2011-06-25  Basile Starynkevitch  <basile@starynkevitch.net>
5608
5609         * timevar.c (timevar_print): Increase width for display of timevar
5610         name.
5611
5612 2011-06-24  Jakub Jelinek  <jakub@redhat.com>
5613
5614         PR c++/46400
5615         * c-decl.c (union lang_tree_node): Use TYPE_NEXT_VARIANT
5616         instead of TYPE_CHAIN for chain_next for types.
5617
5618 2011-06-24  Richard Henderson  <rth@redhat.com>
5619
5620         * config/sparc/sparc.md (create_flat_frame_1<P:mode>): Remove.
5621         (create_flat_frame_2<P:mode>, create_flat_frame_3<P:mode>): Remove.
5622         * config/sparc/sparc.c (gen_create_flat_frame_1): Remove.
5623         (gen_create_flat_frame_2, gen_create_flat_frame_3): Remove.
5624         (sparc_flat_expand_prologue): Emit individual instructions
5625         instead of one of the above.
5626
5627 2011-06-24  Easwaran Raman  <eraman@google.com>
5628
5629         PR rtl-optimization/49429
5630         PR target/49454
5631         * expr.c (emit_block_move_hints):  Mark MEM_EXPR(x) and
5632         MEM_EXPR(y) addressable if emit_block_move_via_libcall is
5633         used to copy y into x.
5634         * calls.c (initialize_argument_information): Mark
5635         an argument addressable if it is passed by invisible reference.
5636         (emit_library_call_value_1): Mark  MEM_EXPR (val) addressable
5637         if it is passed by reference.
5638
5639 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
5640
5641         PR rtl-optimization/49504
5642         * rtlanal.c (nonzero_bits1): Properly handle addition or
5643         subtraction of a pointer in Pmode if pointers extend unsigned.
5644         (num_sign_bit_copies1): Likewise.
5645
5646 2011-06-24  Martin Jambor  <mjambor@suse.cz>
5647
5648         PR tree-optimizations/49516
5649         * tree-sra.c (sra_modify_assign): Choose the safe path for
5650         aggregate copies if we also did scalar replacements.
5651
5652 2011-06-24  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5653
5654         PR target/49335
5655         * config/arm/predicates.md (add_operator): New.
5656         * config/arm/arm.md ("*arith_shiftsi"): Fix for SP reg usage in Thumb2.
5657
5658 2011-06-24  Andi Kleen  <ak@linux.intel.com>
5659
5660         * tree-sra.c (type_internals_preclude_sra_p): Add msg
5661         parameter. Split up ifs and report reason in *msg.
5662         (reject): Add.
5663         (find_var_candiate): Add msg variable.
5664         Split up ifs and report reason to reject.
5665         (find_param_candidates): Add msg variable.
5666         Pass msg to type_internals_preclude_sra_p.
5667
5668 2011-06-23  Jeff Law  <law@redhat.com>
5669
5670         PR middle-end/48770
5671         * reload.h (reload): Change to return a bool.
5672         * ira.c (ira): If requested by reload, run a fast DCE pass after
5673         reload has completed.  Fix comment typo.
5674         * reload1.c (need_dce): New file scoped static.
5675         (reload): Set reload_completed here.  Return whether or not a DCE
5676         pass after reload is needed.
5677         (delete_dead_insn): Set need_dce as needed.
5678
5679         PR middle-end/49465
5680         * tree-ssa-threadupate.c (fix_duplicate_block_edges): Fix condition
5681         to detect threading through joiner block.  If there was already
5682         an edge to the new target, then do not change the PHI nodes.
5683
5684 2011-06-23  Jakub Jelinek  <jakub@redhat.com>
5685
5686         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
5687         get_pointer_alignment to see if base isn't sufficiently aligned.
5688
5689 2011-06-23  Jan Hubicka  <jh@suse.cz>
5690
5691         PR tree-optimize/49373
5692         * tree-pass.h (all_late_ipa_passes): Declare.
5693         * cgraphunit.c (init_lowered_empty_function): Fix properties.
5694         (cgraph_optimize): Execute late passes; remove unreachable funcions
5695         after materialization.
5696         * ipa-inline.c (gate_ipa_inline): Enable only when optimizing or
5697         LTOing.
5698         * passes.c (all_late_ipa_passes): Declare.
5699         (dump_passes, register_pass): Handle late ipa passes.
5700         (init_optimization_passes): Move ipa_pta to late passes; schedule
5701         fixup_cfg at beggining of all_passes.
5702         (apply_ipa_transforms): New function.
5703         (execute_one_pass): When doing simple ipa pass, apply all transforms.
5704
5705 2011-06-23  Joseph Myers  <joseph@codesourcery.com>
5706
5707         * params.c: Include common/common-target.h.  Don't include tm.h.
5708         (lang_independent_params): Move from toplev.c.
5709         (global_init_params): New.
5710         * params.h (global_init_params): Declare.
5711         * target.def (default_params): Move to common-target.def.
5712         * toplev.c (lang_independent_options): Remove.
5713         (lang_independent_params): Move to params.c.
5714         (general_init): Use global_init_params.
5715         * common/common-target.def (option_default_params): Move from
5716         target.def.
5717         * common/config/ia64/ia64-common.c: Include params.h.
5718         (ia64_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5719         from ia64.c.
5720         * common/config/rs6000/rs6000-common.c: Include params.h.
5721         (rs6000_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5722         from rs6000.c.
5723         * common/config/sh/sh-common.c: Include params.h.
5724         (sh_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5725         from sh.c.
5726         * common/config/spu/spu-common.c: Include params.h.
5727         (spu_option_default_params, TARGET_OPTION_DEFAULT_PARAMS): Move
5728         from spu.c.
5729         * config/ia64/ia64.c (ia64_option_default_params,
5730         TARGET_OPTION_DEFAULT_PARAMS): Move to ia64-common.c.
5731         * config/rs6000/rs6000.c (rs6000_option_default_params,
5732         TARGET_OPTION_DEFAULT_PARAMS): Move to rs6000-common.c.
5733         * config/sh/sh.c (sh_option_default_params,
5734         TARGET_OPTION_DEFAULT_PARAMS): Move to sh-common.c.
5735         * config/spu/spu.c (spu_option_default_params,
5736         TARGET_OPTION_DEFAULT_PARAMS): Move to spu-common.c.
5737         * Makefile.in (OBJS): Remove params.o.
5738         (OBJS-libcommon-target): Add params.o.
5739         (params.o, $(common_out_object_file)): Update dependencies.
5740         * doc/tm.texi: Regenerate.
5741
5742 2011-06-23  Alan Modra  <amodra@gmail.com>
5743
5744         PR bootstrap/49383
5745         * config/rs6000/rs6000.c (call_ABI_of_interest): Adjust cgraph
5746         invocation for 2011-06-09 changes.
5747
5748 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
5749
5750         PR libgomp/49490
5751         * omp-low.c (expand_omp_for_static_nochunk): Only
5752         use n ceil/ nthreads size for the first n % nthreads threads in the
5753         team instead of all threads except for the last few ones which
5754         get less work or none at all.
5755
5756         PR debug/49496
5757         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Ignore debug
5758         uses.
5759
5760 2011-06-22  Richard Guenther  <rguenther@suse.de>
5761
5762         PR tree-optimization/49493
5763         * tree-ssa-structalias.c (get_constraint_for_ssa_var):
5764         Refer to the alias target of variables.
5765         (associate_varinfo_to_alias_1): Remove.
5766         (ipa_pta_execute): Do not associate aliases with anything.
5767         * cgraph.h (varpool_alias_aliased_node): Fix cut&paste errors.
5768         (cgraph_function_node): Likewise.
5769         (cgraph_function_or_thunk_node): Likewise.
5770         (varpool_variable_node): Likewise.
5771
5772 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
5773
5774         * config/arm/arm.h (OPTION_DEFAULT_SPECS): Fix -mtls-dialect typo.
5775         * config.gcc (arm*-*-linux*): Default to gnu tls.
5776         (arm*-*-*): Add --with-tls option.
5777         (all_defaults): Add 'tls'.
5778
5779 2011-06-22  Richard Henderson  <rth@redhat.com>
5780
5781         * reg-notes.def (REG_CFA_WINDOW_SAVE): New.
5782         * dwarf2out.c (dwarf2out_frame_debug): Handle it.
5783         (dwarf2out_frame_debug_cfa_window_save): Rename from
5784         dwarf2out_window_save; make static.
5785         * tree.h (dwarf2out_window_save): Don't declare.
5786
5787         * config/sparc/sparc.c (sparc_dwarf_handle_frame_unspec): Remove.
5788         (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Remove.
5789         (emit_save_register_window): Rename from gen_save_register_window;
5790         emit the insn and add REG_CFA_* notes.
5791         (sparc_expand_prologue): Update to match.
5792         * config/sparc/sparc.md (save_register_window_1): Simplify from
5793         save_register_window<P:mode>.
5794
5795 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
5796
5797         PR target/49497
5798         * config/i386/i386.md (*lea_general_2): Always allow SImode.
5799         (*lea_general_2_zext): Likewise.
5800         (imul to lea peepholes): Use const359_operand and check
5801         TARGET_PARTIAL_REG_STALL.
5802
5803         * config/i386/predicates.md (const359_operand): New.
5804
5805 2011-06-22  Michael Matz  <matz@suse.de>
5806
5807         * cgraphunit.c (assemble_thunk): Use correct return type.
5808
5809 2011-06-22  Dmitry Plotnikov  <dplotnikov@ispras.ru>
5810             Dmitry Melnik  <dm@ispras.ru>
5811
5812         * config/arm/arm.c (neon_immediate_valid_for_shift): New function.
5813         (neon_output_shift_immediate): Ditto.
5814         * config/arm/arm-protos.h (neon_immediate_valid_for_shift): New
5815         prototype.
5816         (neon_output_shift_immediate): Ditto.
5817         * config/arm/neon.md (vashl<mode>3): Modified constraint.
5818         (vashr<mode>3_imm): New insn pattern.
5819         (vlshr<mode>3_imm): Ditto.
5820         (vashr<mode>3): Modified constraint.
5821         (vlshr<mode>3): Ditto.
5822         * config/arm/predicates.md (imm_for_neon_lshift_operand): New
5823         predicate.
5824         (imm_for_neon_rshift_operand): Ditto.
5825         (imm_lshift_or_reg_neon): Ditto.
5826         (imm_rshift_or_reg_neon): Ditto.
5827
5828         * optabs.c (init_optabs): Init optab codes for vashl, vashr, vlshr.
5829
5830 2011-06-22  Jakub Jelinek  <jakub@redhat.com>
5831
5832         * tree-ssa-ccp.c (evaluate_stmt): Try bitwise tracking for
5833         builtin calls even if likelyvalue is not CONSTANT.
5834         Handle BUILT_IN_STRDUP and BUILT_IN_STRNDUP like BUILT_IN_MALLOC.
5835         Return get_value_for_expr of first operand
5836         for BUILT_IN_{MEM{CPY,MOVE,SET},STR{,N}CPY}{,_CHK}.
5837         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5838         BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK like
5839         their non-checking counterparts.
5840         (call_may_clobber_ref_p_1): Likewise.
5841         (stmt_kills_ref_p_1): Handle BUILT_IN_MEM{{,P}CPY,MOVE,SET}_CHK
5842         like their non-checking counterparts.
5843         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
5844         Handle BUILT_IN_{MEM{{,P}CPY,MOVE,SET},STR{,N}C{PY,AT},STPCPY}_CHK
5845         like their non-checking counterparts.
5846         (find_func_clobbers): Likewise.
5847         * tree-ssa-dce.c (propagate_necessity): Handle BUILT_IN_MEMSET_CHK
5848         like BUILT_IN_MEMSET and BUILT_IN_CALLOC like BUILT_IN_MALLOC.
5849
5850         * dwarf2out.c (size_of_loc_descr, output_loc_operands,
5851         mark_base_types, hash_loc_operands, compare_loc_operands): Allow
5852         DW_OP_GNU_convert and DW_OP_GNU_reinterpret to use constant instead
5853         of base type reference as argument.
5854         (resolve_addr_in_expr): Likewise.  Fix keep computation.
5855         (convert_descriptor_to_signed): Renamed to...
5856         (convert_descriptor_to_mode): ... this.  For wider types convert to
5857         unsigned instead of signed, for <= DWARF2_ADDR_SIZE convert to untyped.
5858         (typed_binop): New function.
5859         (scompare_loc_descriptor, ucompare_loc_descriptor,
5860         minmax_loc_descriptor, mem_loc_descriptor): For wider integer modes
5861         default to unsigned type instead of signed.
5862
5863         PR debug/47858
5864         * gimple.h (enum gimple_debug_subcode): Add GIMPLE_DEBUG_SOURCE_BIND.
5865         (gimple_build_debug_source_bind_stat): New prototype.
5866         (gimple_build_debug_source_bind): Define.
5867         (gimple_debug_source_bind_p, gimple_debug_source_bind_get_var,
5868         gimple_debug_source_bind_get_value,
5869         gimple_debug_source_bind_get_value_ptr,
5870         gimple_debug_source_bind_set_var,
5871         gimple_debug_source_bind_set_value): New inlines.
5872         * gimple.c (gimple_build_debug_source_bind_stat): New function.
5873         * gimple-pretty-print.c (dump_gimple_debug): Handle
5874         GIMPLE_DEBUG_SOURCE_BIND.
5875         * sese.c (rename_uses): Handle gimple_debug_source_bind_p.
5876         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5877         * tree-parloops.c (eliminate_local_variables,
5878         separate_decls_in_region): Likewise.
5879         (separate_decls_in_region_debug): Renamed from
5880         separate_decls_in_region_debug_bind.  Handle
5881         gimple_debug_source_bind_p.
5882         * tree.h (decl_debug_args_lookup, decl_debug_args_insert): New
5883         prototypes.
5884         (DECL_HAS_DEBUG_ARGS_P): Define.
5885         (struct tree_function_decl): Add has_debug_args_flag field.
5886         * tree.c (debug_args_for_decl): New variable.
5887         (decl_debug_args_lookup, decl_debug_args_insert): New functions.
5888         * tree-into-ssa.c (mark_def_sites): Handle uses in debug stmts.
5889         (rewrite_debug_stmt_uses): New function.
5890         (rewrite_stmt): Use it to rewrite debug stmt uses.
5891         * rtl.def (DEBUG_PARAMETER_REF): New.
5892         * rtl.h (DEBUG_PARAMETER_REF_DECL): Define.
5893         * cselib.c (rtx_equal_for_cselib_1, cselib_hash_rtx): Handle
5894         DEBUG_PARAMETER_REF.
5895         * rtl.c (rtx_equal_p_cb, rtx_equal_p, iterative_hash_rtx): Likewise.
5896         * print-rtl.c (print_rtx): Likewise.
5897         * tree-sra.c (sra_ipa_reset_debug_stmts): Prefer replacing of
5898         SSA_NAMEs with DEBUG_EXPR_DECLs initialized in source bind
5899         debug stmts in the first bb.
5900         * tree-inline.c (remap_ssa_name): If remapping default def
5901         of a PARM_DECL fails, map to a DEBUG_EXPR_DECL set in
5902         a source bind debug stmt.
5903         (remap_gimple_stmt): Handle gimple_debug_source_bind_p.
5904         (maybe_move_debug_stmts_to_successors): Likewise.
5905         (copy_debug_stmt): Likewise.  Avoid shadowing a variable.
5906         (tree_function_versioning): If DECL_HAS_DEBUG_ARGS_P, copy
5907         debug args vector from old_decl to new_decl.
5908         * ipa-prop.c (ipa_modify_call_arguments): For optimized away
5909         or modified parameters, add debug bind stmts before call
5910         setting DEBUG_EXPR_DECL which is remembered in debug args vector.
5911         * cfgexpand.c (expand_call_stmt): Call expand_debug_expr
5912         on DECL_DEBUG_EXPRs from debug args vector.
5913         (expand_debug_source_expr): New function.
5914         (expand_debug_locations): Use it for source bind insns.
5915         (expand_gimple_basic_block): Handle gimple_debug_source_bind_p.
5916         * var-tracking.c (prepare_call_arguments): Add debug args
5917         to call_arguments if any.
5918         * dwarf2out.c (dwarf_stack_op_name, size_of_loc_descr,
5919         output_loc_operands, output_loc_operands_raw, resolve_addr_in_expr,
5920         compare_loc_operands): Handle DW_OP_GNU_parameter_ref.
5921         (get_ref_die_offset, parameter_ref_descriptor): New functions.
5922         (mem_loc_descriptor): Handle DEBUG_PARAMETER_REF.
5923         (gen_subprogram_die): Handle parameters identified by
5924         DEBUG_PARAMETER_REF.
5925
5926 2011-06-22  Nathan Sidwell  <nathan@codesourcery.com>
5927
5928         * doc/invoke.texi (ARM Options): Document -mtls-dialect option.
5929         * doc/install.texi (Configuration): Document --with-tls.
5930         * config/arm/arm.c (enum tls_reloc): Add TLS_DESCSEQ.
5931         (arm_call_tls_get_addr): Clean up. Assert not tls descriptor.
5932         (arm_tls_descseq_addr): New.
5933         (legitimize_tls_address): Add tlsdesc support.
5934         (arm_cannot_copy_insn_p): Check for tlscall.
5935         (arm_emit_tls_decoration): Likewise.
5936         * config/arm/arm.h (TARGET_GNU2_TLS): New.
5937         (OPTION_DEFAULT_SPECS): Add with-tls support.
5938         * config/arm/arm.md (R1_REGNUM): Define.
5939         (tlscall): New.
5940         * config/arm/arm.opt (tls_type): New enumeration type and values.
5941         (mtls-dialect): New switch.
5942         * config/arm/arm-opts.h (enum tls_type): New.
5943
5944 2011-06-21  Nicola Pero  <nicola.pero@meta-innovation.com>
5945
5946         * attribs.c (register_attribute): Added assert to check that all
5947         attribute specs are registered with a name that is not empty and
5948         does not start with '_'.
5949         (decl_attributes): Avoid the lookup of the "naked" attribute spec
5950         if the function has no attributes.
5951         * tree.c (is_attribute_with_length_p): Removed.
5952         (is_attribute_p): Removed.
5953         (private_is_attribute_p): New.
5954         (private_lookup_attribute): New.
5955         (lookup_attribute): Removed.
5956         (lookup_ident_attribute): New.
5957         (remove_attribute): Require the first argument to be in the form
5958         'text', not '__text__'.  Updated asserts.
5959         (merge_attributes): Use lookup_ident_attributes instead of
5960         lookup_attribute.
5961         (merge_dllimport_decl_attributes): Use remove_attribute.
5962         (attribute_list_contained): Likewise.
5963         (attribute_list_equal): Immediately return 1 if the arguments are
5964         identical pointers.
5965         * tree.h (is_attribute_p): Made inline.  Return a 'bool', not an
5966         'int'.  Require the first argument to be in the form 'text', not
5967         '__text__'.  Require the second argument to be an identifier.
5968         (lookup_attribute): Made inline.  Require the first argument to be
5969         in the form 'text', not '__text__'.
5970         (private_is_attribute_p, private_lookup_attribute): New.
5971         Updated comments.
5972
5973 2011-06-21  Andrew MacLeod  <amacleod@redhat.com>
5974
5975         * builtins.c: Add sync_ or SYNC__ to builtin names.
5976         * sync-builtins.def: Add sync_ or SYNC__ to builtin names.
5977         * omp-low.c: Add sync_ or SYNC__ to builtin names.
5978
5979 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
5980
5981         PR target/33049
5982         * config/avr/avr.md (extzv): New expander.
5983         (*extzv): New insn.
5984         (*extzv.qihi1, *extzv.qihi2): New insn-and-split.
5985         * config/avr/constraints.md (C04): New constraint.
5986         * doc/md.texi (Machine Constraints): Document it.
5987
5988 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
5989
5990         PR middle-end/49489
5991         * builtins.c (expand_builtin_unop): Call expand_unop with 0 as
5992         unsignedp argument instead of 1 for clrsb_optab.
5993         (fold_builtin_bitop): Fix masking for width > HOST_BITS_PER_WIDE_INT
5994         and < 2 * HOST_BITS_PER_WIDE_INT.  Optimize BUILT_IN_CLRSB*.
5995         (fold_builtin_1): Call fold_builtin_binop for BUILT_IN_CLRSB*.
5996         * optabs.c (widen_leading): Call widen_operand and expand_unop
5997         with 0 as unsignedp argument instead of 1 for clrsb_optab.
5998         (expand_unop): Subtract difference of mode sizes also for clrsb_optab.
5999
6000 2011-06-21  Georg-Johann Lay  <avr@gjlay.de>
6001
6002         * config/avr/avr.md (*jcindirect_jump): Fix build warning.
6003
6004 2011-06-21  Bernd Schmidt  <bernds@codesourcery.com>
6005
6006         * gensupport.c (add_define_attr): New static function.
6007         (is_predicable): Allow multi-alternative lists for the "predicable"
6008         attribute.
6009         (modify_attr_enabled_ce, alter_attrs_for_insn): New static functions.
6010         (process_one_cond_exec): Call alter_attrs_for_insn.
6011         * doc/md.texi (Defining Attributes): Mention some standard names.
6012         (Conditional Execution): Update documentation for "predicable".
6013
6014         * doc/extend.texi (__builtin_clrsb, __builtin_clrsbl,
6015         __builtin_clrsbll): Document.
6016         * doc/rtl.texi (clrsb): New entry.
6017         * optabs.c (widen_leading): Renamed from widen_clz.  New argument
6018         UNOPTAB.  All callers changed.  Use UNOPTAB instead of clz_optab.
6019         (expand_unop): Handle clrsb_optab.
6020         (init_optabs): Initialize it.
6021         * optabs.h (enum optab_index): New entry OTI_clrsb.
6022         (clrsb_optab): Define.
6023         * genopinit.c (optabs): Add an entry for it.
6024         * builtins.c (expand_builtin): Handle clrsb builtin functions.
6025         * builtins.def (BUILT_IN_CLRSB, BUILT_IN_CLRSBIMAX, BUILT_IN_CLRSBL,
6026         BUILT_IN_CLRSBLL): New.
6027         * rtl.def (CLRSB): New code.
6028         * dwarf2out.c (mem_loc_descriptor): Handle it.
6029         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6030         Use op_mode rather than mode when optimizing ffs, clz, ctz, parity
6031         and popcount.
6032         * libgcc2.c (__clrsbSI2, __clrsbDI2): New functions.
6033         * libgcc2.h (__clrsbSI2, __clrsbDI2): Define and declare.
6034         (__ctzDI2): Move declaration.
6035         * config/bfin/bfin.md (clrsbsi2): New expander.
6036         (signbitssi2): Use the CLRSB rtx.
6037         (clrsbhi2): Renamed from signbitshi2.  Use the CLRSB rtx.
6038         * config/bfin/bfin.c (bdesc_1arg): Changed accordingly.
6039
6040 2011-06-21  Richard Guenther  <rguenther@suse.de>
6041
6042         * ipa-inline-transform.c (inline_transform): Fix previous change.
6043
6044 2011-06-21  Ira Rosen  <ira.rosen@linaro.org>
6045
6046         PR tree-optimization/49478
6047         * tree-vect-loop.c (vectorizable_reduction): Handle DOT_PROD_EXPR
6048         with constant operand.
6049
6050 2011-06-21  Richard Guenther  <rguenther@suse.de>
6051
6052         * ipa-inline-transform.c (inline_transform): Fix typo.
6053
6054 2011-06-21  Richard Guenther  <rguenther@suse.de>
6055
6056         PR tree-optimization/49483
6057         * tree-vect-stmts.c (vectorizable_assignment): Also handle
6058         VIEW_CONVERT_EXPR conversions.
6059
6060 2011-06-21  Joseph Myers  <joseph@codesourcery.com>
6061
6062         * config/avr/avr-mcus.def, config/avr/genopt.sh: New files.
6063         * config/avr/avr-tables.opt: New file (generated).
6064         * config.gcc (avr-*-*): Use avr/avr-tables.opt.
6065         * config/avr/avr-devices.c (avr_mcu_types): Move contents to
6066         avr-mcus.def.
6067         * config/avr/avr.c (avr_help, TARGET_HELP): Remove.
6068         (avr_option_override): Don't process -mmcu= argument here.  Set
6069         avr_current_device using avr_mcu_index.
6070         (avr_file_start): Use avr_current_device->name instead of avr_mcu_name.
6071         * config/avr/avr.opt (mmcu=): Use Enum.
6072         * config/avr/t-avr (avr-devices.o): Update dependencies.
6073         ($(srcdir)/config/avr/avr-tables.opt): New.
6074         * target.def (help): Remove.
6075         * doc/tm.texi.in (TARGET_HELP): Remove.
6076         * doc/tm.texi: Regenerate.
6077         * opts.c: Don't include target.h.
6078         (common_handle_option): Don't call targetm.help.
6079         * system.h (TARGET_HELP): Poison.
6080         * Makefile.in (opts.o): Update dependencies.
6081
6082 2011-06-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6083
6084         * config/usegld.h: New file.
6085         * config/sol2.h (PREFERRED_DEBUGGING_TYPE): Remove.
6086         (CPP_SUBTARGET_SPEC): Remove -compat-bsd support.
6087         (LIB_SPEC): Likewise.  Search /lib.
6088         (LINK_ARCH32_SPEC_BASE): Remove -compat-bsd support.
6089         (RDYNAMIC_SPEC): Handle GNU ld.
6090         [HAVE_LD_EH_FRAME_HDR && TARGET_DL_ITERATE_PHDR] (LINK_EH_SPEC):
6091         Define.
6092         (SUPPORTS_INIT_PRIORITY): Only disable for Sun ld.
6093         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Define.
6094         [!USE_GAS] (NO_DBX_BNSYM_ENSYM): Redefine.
6095         (STACK_CHECK_STATIC_BUILTIN): Define.
6096         * config/sol2.opt (compat-bsd): Remove.
6097         * config/sol2-10.h (TARGET_C99_FUNCTIONS): Remove undef.
6098         * config/sol2-bi.h: New file.
6099         * config/sol2-gld.h: Remove.
6100         * config/i386/sol2.h (TLS_COMMON_ASM_OP): Only define if !USE_GAS.
6101         (NO_DBX_BNSYM_ENSYM): Remove.
6102         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
6103         (STACK_CHECK_STATIC_BUILTIN): Remove.
6104         Test USE_GLD instead of TARGET_GNU_LD.
6105         * config/i386/sol2-10.h: Rename to ...
6106         * config/i386/sol2-bi.h .. this.
6107         (SUBTARGET_EXTRA_SPECS): Redefine.
6108         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Remove.
6109         (MULTILIB_DEFAULTS): Remove.
6110         (DEFAULT_ARCH32_P): Define.
6111         (LINK_ARCH64_SPEC_BASE, LINK_ARCH64_SPEC): Remove.
6112         (ARCH64_SUBDIR): Define.
6113         Test USE_GLD instead of TARGET_GNU_LD.
6114         (I386_EMULATION): Rename to ...
6115         (ARCH32_EMULATION): ... this.
6116         (X86_64_EMULATION): Rename to ...
6117         (ARCH64_EMULATION): ... this.
6118         (TARGET_LD_EMULATION): Remove.
6119         (LINK_ARCH_SPEC): Remove.
6120         * config/i386/sol2-gas.h: Remove.
6121         * config/i386/t-sol2-10: Rename to ...
6122         * config/i386/t-sol2-64: ... this.
6123         * config/sparc/sol2.h (SPARC_DEFAULT_CMODEL): Redefine.
6124         (AS_SPARC64_FLAG): Define.
6125         (ASM_CPU32_DEFAULT_SPEC, ASM_CPU64_DEFAULT_SPEC): Redefine.
6126         (CPP_CPU64_DEFAULT_SPEC, ASM_CPU32_DEFAULT_SPEC): Redefine
6127         depending on TARGET_CPU_DEFAULT.
6128         (CPP_CPU_SPEC): Redefine.
6129         (ASM_CPU_SPEC): Handle DEFAULT_ARCH32_P.
6130         (CPP_CPU_DEFAULT_SPEC, ASM_CPU_DEFAULT_SPEC): Redefine.
6131         (CPP_ARCH32_SPEC, CPP_ARCH64_SPEC, CPP_ARCH_SPEC): Redefine.
6132         (ASM_ARCH_SPEC, ASM_ARCH32_SPEC, ASM_ARCH64_SPEC,
6133         ASM_ARCH_DEFAULT_SPEC): Redefine.
6134         (SUBTARGET_EXTRA_SPECS): Add LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
6135         LINK_ARCH_DEFAULT_SPEC.
6136         [USE_GLD] (ARCH32_EMULATION, ARCH64_EMULATION): Define.
6137         [USE_GLD] (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC): Redefine.
6138         (ARCH64_SUBDIR): Define.
6139         (LINK_ARCH64_SPEC): Redefine.
6140         (CC1_SPEC): Redefine.
6141         (OPTION_DEFAULT_SPECS): Redefine.
6142         (MULTILIB_DEFAULTS): Define.
6143         (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE): Redefine.
6144         [USE_GAS && HAVE_AS_TLS] (TARGET_SUN_TLS, TARGET_GNU_TLS): Redefine.
6145         [USE_GLD] (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undef.
6146         (NO_DBX_BNSYM_ENSYM): Remove.
6147         (SUBTARGET_INSERT_ATTRIBUTES, SUBTARGET_ATTRIBUTE_TABLE): Remove.
6148         (ASM_OUTPUT_ALIGN_WITH_NOP): Only define if !USE_GAS.
6149         (TARGET_ASM_NAMED_SECTION): Likewise.
6150         (STACK_CHECK_STATIC_BUILTIN): Remove.
6151         * config/sparc/sol2-bi.h: Remove.
6152         * config/sparc/sol2-gas-bi.h: Remove.
6153         * config/sparc/sol2-gas.h: Remove.
6154         * config/sparc/sol2-gld-bi.h: Remove.
6155         * config.gcc (i[34567]86-*-solaris2*, sparc*-*-solaris2*): Move
6156         common parts ...
6157         (*-*-solaris2*): ... here.
6158
6159 2011-06-21  Christian Bruel  <christian.bruel@st.com>
6160
6161         PR other/43564
6162         * ipa-inline.c (can_inline_edge_p): Check
6163         !DECL_DISREGARD_INLINE_LIMITS.
6164
6165 2011-06-21  Christian Bruel  <christian.bruel@st.com>
6166
6167         PR middle-end/49139
6168         * cgraphunit.c (process_function_and_variable_attributes): warn when
6169         always_inline functions that are not inline.
6170         * ipa-inline-transform.c (inline_transform): Always call
6171         optimize_inline.
6172         * tree-inline.c (tree_inlinable_function_p): Use error instead
6173         of sorry.
6174         (expand_call_inline): Likewise.
6175
6176 2011-06-21  Jakub Jelinek  <jakub@redhat.com>
6177
6178         * Makefile.in (dg_target_exps): Set.
6179         (check_gcc_parallelize): Parallelize gcc testing into 10 jobs
6180         instead of 7, try to divide it more evenly.
6181
6182 2011-06-20  Changpeng Fang  <changpeng.fang@amd.com>
6183
6184         PR target/49089
6185         * config/i386/i386.c (avx256_split_unaligned_load): New definition.
6186         (avx256_split_unaligned_store): New definition.
6187         (ix86_option_override_internal): Enable avx256 unaligned load/store
6188         splitting only when avx256_split_unaligned_load/store is set.
6189
6190 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
6191
6192         * regrename.c (scan_rtx_reg): Handle the case where we write to an
6193         open chain in a smaller mode without failing the entire block.
6194
6195 2011-06-21  Alan Modra  <amodra@gmail.com>
6196
6197         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): Match
6198         CONST high part large-toc address.
6199         (rs6000_tls_referenced_p): Make static.
6200         * config/rs6000/rs6000-protos.h (rs6000_tls_referenced_p): Delete.
6201
6202 2011-06-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6203
6204         PR target/49385
6205         * config/arm/thumb2.md (*thumb2_movhi_insn): Make sure atleast
6206         one of the operands is a register.
6207
6208 2011-06-20  Kai Tietz  <ktietz@redhat.com>
6209
6210         * fold-const.c (fold_binary_loc): Add missing folding for truth-not
6211         operations in combination with binary and.
6212
6213 2011-06-20  Bernd Schmidt  <bernds@codesourcery.com>
6214
6215         * regrename.c (do_replace): Don't update notes.
6216
6217 2011-06-20  Alan Modra  <amodra@gmail.com>
6218
6219         * config/rs6000/rs6000.c (create_TOC_reference): Wrap high part
6220         of toc-relative address in CONST.
6221         (rs6000_delegitimize_address): Recognize changed address.
6222         (rs6000_legitimize_reload_address): Likewise.
6223         (rs6000_emit_move): Don't force these constants to memory.
6224         * config/rs6000/rs6000.md (tls_gd, tls_gd_high): Wrap high part of
6225         toc-relative address in CONST.
6226         (tls_ld, tls_ld_high, tls_got_dtprel, tls_got_dtprel_high): Likewise.
6227         (tls_got_tprel, tls_got_tprel_high, largetoc_high): Likewise.
6228
6229 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
6230
6231         * longlong.h (count_leading_zeros): Use long long builtin for x86-64.
6232         (count_trailing_zeros): Likewise.
6233
6234 2011-06-18  H.J. Lu  <hongjiu.lu@intel.com>
6235
6236         PR other/49325
6237         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Properly check if
6238         .init_array can be used with .ctors on targets.
6239         * configure: Regenerated.
6240
6241 2011-06-18  Eric Botcazou  <ebotcazou@adacore.com>
6242
6243         * tree-sra.c (type_internals_preclude_sra_p) <ARRAY_TYPE>: Return true
6244         if the element type is volatile.
6245
6246 2011-06-18  Jan Hubicka  <jh@suse.cz>
6247
6248         * lto-symtab.c (lto_varpool_replace_node): Remove code handling
6249         extra name aliases.
6250         (lto_symtab_resolve_can_prevail_p): Likewise.
6251         (lto_symtab_merge_cgraph_nodes): Update alias_of pointers.
6252         * cgraphbuild.c (record_reference): Remove extra body alias code.
6253         (mark_load): Likewise.
6254         (mark_store): Likewise.
6255         * cgraph.h (varpool_node): Remove extra_name filed;
6256         add alias_of and extraname_alias.
6257         (varpool_create_variable_alias, varpool_for_node_and_aliases): Declare.
6258         (varpool_alias_aliased_node): New inline function.
6259         (varpool_variable_node): New function.
6260         * cgraphunit.c (handle_alias_pairs): Handle also variable aliases.
6261         * ipa-ref.c (ipa_record_reference): Allow aliases on variables.
6262         * lto-cgraph.c (lto_output_varpool_node): Update streaming.
6263         (input_varpool_node): Likewise.
6264         * lto-streamer-out.c (produce_symtab): Remove extra name aliases.
6265         (varpool_externally_visible_p): Remove extra body alias code.
6266         (function_and_variable_visibility): Likewise.
6267         * tree-ssa-structalias.c (associate_varinfo_to_alias_1): New function.
6268         (ipa_pta_execute): Use it.
6269         * varpool.c (varpool_remove_node): Remove extra name alias code.
6270         (varpool_mark_needed_node): Likewise.
6271         (varpool_analyze_pending_decls): Analyze aliases.
6272         (assemble_aliases): New functoin.
6273         (varpool_assemble_decl): Use it.
6274         (varpool_create_variable_alias): New function.
6275         (varpool_extra_name_alias): Rewrite.
6276         (varpool_for_node_and_aliases): New function.
6277
6278 2011-06-18  Jakub Jelinek  <jakub@redhat.com>
6279
6280         PR target/49411
6281         * config/i386/i386.c (ix86_expand_multi_arg_builtins): If
6282         last_arg_constant and last argument doesn't match its predicate,
6283         for xop_vpermil2<mode>3 error out and for xop_rotl<mode>3
6284         if it is CONST_INT, mask it, otherwise expand using rotl<mode>3.
6285         (ix86_expand_sse_pcmpestr, ix86_expand_sse_pcmpistr): Fix
6286         spelling of error message.
6287         * config/i386/sse.md (sse4a_extrqi, sse4a_insertqi,
6288         vcvtps2ph, *vcvtps2ph, *vcvtps2ph_store, vcvtps2ph256): Use
6289         const_0_to_255_operand instead of const_int_operand.
6290
6291         Revert:
6292         2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
6293
6294         * config/i386/sse.md (blendbits): Remove mode attribute.
6295         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
6296         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
6297         Check integer value of operand 3 in insn constraint.
6298
6299 2011-06-17  Hans-Peter Nilsson  <hp@axis.com>
6300
6301         PR rtl-optimization/48542
6302         * reload.c (find_equiv_reg): Stop looking when finding a
6303         setjmp-type call.
6304         * reload1.c (reload_as_needed): Invalidate all reload
6305         registers when crossing a setjmp-type call.
6306
6307 2011-06-16  Jeff Law  <law@redhat.com>
6308
6309         * tree-ssa-threadupdate.c (struct redirection_data): New field
6310         intermediate_edge.
6311         (THREAD_TARGET2): Define.
6312         (redirection_data_eq): Also check that the intermediate edge is equal.
6313         (lookup_redirection_data): Drop useless argument.  Extract the
6314         outgoing_edge and intermediate edge from E.  Callers updated.
6315         (copy_phi_args, update_destination_phis): New functions.
6316         (fix_duplicate_block_edges): Likewise.
6317         (create_edge_and_update_destination_phis): Duplicate all the edges
6318         hung off e->aux.  Use copy_phi_args.
6319         (create_duplicates): Use fix_duplicate_block_edges.
6320         (fixup_template_block): Likewise.
6321         (redirect_edges): If necessary, redirect the joiner block's incoming
6322         edge to the duplicate of the joiner block.
6323         (thread_block): Don't muck up loops when threading through a joiner
6324         block.
6325         (thread_through_loop_header): Handle threading through a joiner block.
6326         (mark_threaded_blocks, register_jump_thread): Likewise.
6327         * tree-flow.h (register_jump_thread): Add new argument.  Callers
6328         updated.
6329         * tree-ssa-threadedge.c (phi_args_equal_on_edges): New function.
6330         (thread_across_edge): Handle threading through a joiner block.
6331
6332 2011-06-16  Martin Jambor  <mjambor@suse.cz>
6333
6334         PR tree-optimization/49343
6335         * tree-sra.c (build_ref_for_model): Use component_ref_field_offset to
6336         calculate offset, provide 2nd operand for the new COMPONENT_REF.
6337
6338 2011-06-16  Iain Sandoe  <iains@gcc.gnu.org>
6339
6340         * config/darwin-protos.h (machopic_select_rtx_section): Move to
6341         inside RTX_CODE ifdef.
6342
6343 2011-06-16  Tom de Vries  <tom@codesourcery.com>
6344
6345         PR target/45098
6346         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
6347         Disallow NULL pointer for pointer arithmetic.
6348
6349 2011-06-16  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6350
6351         PR target/49398
6352         Revert.
6353         2011-06-10  Wei Guozhi  <carrot@google.com>
6354
6355         PR target/45335
6356         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
6357         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
6358         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
6359         related peephole2.
6360         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
6361         related peephole2.
6362         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
6363         (arm_legitimate_ldrd_p): New prototype.
6364         (arm_output_ldrd): New prototype.
6365         * config/arm/arm.c (arm_check_ldrd_operands): New function.
6366         (arm_legitimate_ldrd_p): New function.
6367         (arm_output_ldrd): New function.
6368
6369 2011-06-16  Joern Rennecke  <joern.rennecke@embecosm.com>
6370
6371         PR middle-end/46500
6372         * doc/tm.texi.in: Update Copyright date.
6373         * doc/tm.texi: Regenerate.
6374         * targhooks.c (default_setup_incoming_varargs): Replace
6375         CUMULATIVE_ARGS* argument type with cumulative_args_t.
6376         (default_pretend_outgoing_varargs_named): Likewise.
6377         (hook_pass_by_reference_must_pass_in_stack): Likewise.
6378         (hook_callee_copies_named): Likewise.
6379         (default_function_arg_advance): Likewise.
6380         (default_function_arg): Likewise.
6381         (default_function_incoming_arg): Likewise.
6382         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
6383         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
6384         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
6385         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6386         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
6387         * targhooks.h (default_setup_incoming_varargs): Likewise.
6388         (default_pretend_outgoing_varargs_named): Likewise.
6389         (hook_pass_by_reference_must_pass_in_stack): Likewise.
6390         (hook_callee_copies_named): Likewise.
6391         (default_function_arg_advance): Likewise.
6392         (default_function_arg): Likewise.
6393         (default_function_incoming_arg): Likewise.
6394         (hook_bool_CUMULATIVE_ARGS_false): Likewise.
6395         (hook_bool_CUMULATIVE_ARGS_true): Likewise.
6396         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Likewise.
6397         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6398         (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Likewise.
6399         * target.def (pass_by_reference): Likewise.
6400         (setup_incoming_varargs, strict_argument_naming): Likewise.
6401         (pretend_outgoing_varargs_named, callee_copies): Likewise.
6402         (arg_partial_bytes, function_arg_advance, function_arg): Likewise.
6403         (function_incoming_arg): Likewise.
6404         * target.h: Don't include "tm.h" .
6405         (cumulative_args_t): New typedef.
6406         [GCC_TM_H] (get_cumulative_args): New static inline function.
6407         [GCC_TM_H] (pack_cumulative_args): Likewise.
6408         * config/alpha/alpha.c (alpha_function_arg): Replace CUMULATIVE_ARGS*
6409         argument type with cumulative_args_t.
6410         (alpha_function_arg_advance, alpha_arg_partial_bytes): Likewise.
6411         (alpha_pass_by_reference, alpha_setup_incoming_varargs): Likewise.
6412         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6413         (frv_arg_partial_bytes, frv_function_arg): Likewise.
6414         (frv_function_incoming_arg, frv_function_arg_advance): Likewise.
6415         (frv_function_arg_1): Likewise.
6416         * config/s390/s390.c (s390_pass_by_reference): Likewise.
6417         (s390_function_arg_advance, s390_function_arg): Likewise.
6418         * config/m32c/m32c.c (m32c_function_arg): Likewise.
6419         (m32c_pass_by_reference, m32c_function_arg_advance): Likewise.
6420         (m32c_strict_argument_naming): Likewise.
6421         * config/spu/spu.c (spu_pass_by_reference, spu_function_arg): Likewise.
6422         (spu_function_arg_advance): Likewise.
6423         (spu_setup_incoming_varargs): Likewise.  Make static.
6424         * config/spu/spu-protos.h (spu_setup_incoming_varargs):
6425         Remove prototype.
6426         * config/sparc/sparc.c (sparc_strict_argument_naming): Replace
6427         CUMULATIVE_ARGS* argument type with cumulative_args_t.
6428         (sparc_pass_by_reference, sparc_function_arg_advance): Likewise.
6429         (sparc_function_arg, sparc_function_incoming_arg): Likewise.
6430         (sparc_arg_partial_bytes, sparc_function_arg_1): Likewise.
6431         * config/mep/mep.c (mep_setup_incoming_varargs): Likewise.
6432         (mep_pass_by_reference, mep_function_arg): Likewise.
6433         (mep_function_arg_advance): Likewise.
6434         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6435         (m32r_pass_by_reference, m32r_arg_partial_bytes): Likewise.
6436         (m32r_function_arg, m32r_function_arg_advance): Likewise.
6437         * config/rx/rx.c (rx_function_arg, rx_function_arg_advance): Likewise.
6438         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6439         (ix86_function_arg, ix86_pass_by_reference): Likewise.
6440         (ix86_setup_incoming_varargs): Likewise.
6441         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6442         (sh_strict_argument_naming): Likewise.
6443         (sh_pretend_outgoing_varargs_named, sh_pass_by_reference): Likewise.
6444         (sh_callee_copies, sh_arg_partial_bytes): Likewise.
6445         (sh_function_arg_advance, sh_function_arg): Likewise.
6446         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6447         (pdp11_function_arg_advance): Likewise.
6448         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6449         Likewise.
6450         (microblaze_function_arg, function_arg_partial_bytes): Likewise.
6451         * config/avr/avr.c (avr_function_arg): Likewise.
6452         (avr_function_arg_advance): Likewise.
6453         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6454         (xtensa_function_arg, xtensa_function_incoming_arg): Likewise.
6455         (xtensa_function_arg_1): Likewise.
6456         * config/stormy16/stormy16.c (xstormy16_function_arg_advance):
6457         Likewise.
6458         (xstormy16_function_arg): Likewise.
6459         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6460         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6461         (fr30_function_arg_advance): Likewise.
6462         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6463         (lm32_function_arg, lm32_function_arg_advance): Likewise.
6464         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6465         (moxie_function_arg, moxie_function_arg_advance): Likewise.
6466         (moxie_pass_by_reference, moxie_arg_partial_bytes): Likewise.
6467         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6468         (cris_pass_by_reference, cris_arg_partial_bytes): Likewise.
6469         (cris_function_arg, cris_function_incoming_arg): Likewise.
6470         (cris_function_arg_advance, cris_function_arg_1): Likewise.
6471         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6472         (iq2000_pass_by_reference, iq2000_arg_partial_bytes): Likewise.
6473         (iq2000_function_arg, iq2000_function_arg_advance): Likewise.
6474         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6475         (mn10300_function_arg, mn10300_function_arg_advance): Likewise.
6476         (mn10300_arg_partial_bytes): Likewise.
6477         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6478         (ia64_arg_partial_bytes, ia64_function_arg): Likewise.
6479         (ia64_function_incoming_arg, ia64_function_arg_advance): Likewise.
6480         (ia64_function_arg_1): Likewise.
6481         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6482         (m68k_function_arg): Likewise.
6483         * config/rs6000/rs6000.c (rs6000_function_arg_advance): Likewise.
6484         (rs6000_function_arg, setup_incoming_varargs): Likewise.
6485         (rs6000_pass_by_reference, rs6000_arg_partial_bytes): Likewise.
6486         * config/picochip/picochip.c (picochip_arg_partial_bytes): Likewise.
6487         (picochip_function_arg, picochip_incoming_function_arg): Likewise.
6488         (picochip_arg_advance): Likewise.
6489         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6490         (mcore_arg_partial_bytes, mcore_function_arg): Likewise.
6491         (mcore_function_arg_advance): Likewise.
6492         * config/score/score.c (score_pass_by_reference): Likewise.
6493         (score_function_arg_advance): Likewise.
6494         (score_arg_partial_bytes): Likewise.  Make static.
6495         * config/score/score-protos.h (score_arg_partial_bytes): Don't declare.
6496         * config/arm/arm.c (arm_arg_partial_bytes): Replace
6497         CUMULATIVE_ARGS* argument type with cumulative_args_t.
6498         (arm_function_arg, arm_function_arg_advance): Likewise.
6499         (arm_setup_incoming_varargs, arm_pass_by_reference): Likewise.
6500         * config/pa/pa.c (pa_pass_by_reference): Likewise.
6501         (pa_arg_partial_bytes, pa_function_arg_advance): Likewise.
6502         (pa_function_arg): Likewise.
6503         * config/mips/mips.c (mips_strict_argument_naming): Likewise.
6504         (mips_function_arg, mips_function_arg_advance): Likewise.
6505         (mips_arg_partial_bytes, mips_pass_by_reference): Likewise.
6506         (mips_callee_copies, mips_setup_incoming_varargs): Likewise.
6507         * config/vax/vax.c (vax_function_arg): Likewise.
6508         (vax_function_arg_advance): Likewise.
6509         * config/h8300/h8300.c (h8300_function_arg): Likewise.
6510         (h8300_function_arg_advance): Likewise.
6511         * config/v850/v850.c (v850_pass_by_reference): Likewise.
6512         (v850_strict_argument_naming, v850_function_arg): Likewise.
6513         (v850_arg_partial_bytes, v850_function_arg_advance): Likewise.
6514         (v850_setup_incoming_varargs): Likewise.
6515         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6516         (mmix_function_arg_advance, mmix_function_incoming_arg): Likewise.
6517         (mmix_function_arg, mmix_pass_by_reference): Likewise.
6518         (mmix_function_arg_1): Replace const CUMULATIVE_ARGS* argument type
6519         with const void *.
6520         * config/bfin/bfin.c (setup_incoming_varargs): Replace
6521         CUMULATIVE_ARGS* argument type with cumulative_args_t.
6522         (bfin_function_arg_advance, bfin_function_arg): Likewise.
6523         (bfin_arg_partial_bytes, bfin_pass_by_reference): Likewise.
6524         * calls.c (emit_call_1): Change type of args_so_far to
6525         cumulative_args_t.  Changed all callers.
6526         (initialize_argument_information): Likewise.
6527         (expand_call, emit_library_call_value_1): Use pack_cumulative_args.
6528         * dse.c (get_call_args): Likewise.
6529         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6530         * function.c (pass_by_reference, reference_callee_copied): Likewise.
6531         (struct assign_parm_data_all): Rename args_so_far to args_so_far_v.
6532         New member args_so_far_v.  Changed all users.
6533         * var-tracking.c (prepare_call_arguments): Use pack_cumulative_args.
6534         * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
6535         * config/mips/mips.c (mips_output_args_xfer): Likewise.
6536         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6537         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
6538         * config/microblaze/microblaze.c (microblaze_expand_prologue):
6539         Likewise.
6540         * config/m32r/m32r.c (m32r_return_in_memory): Adjust for changed
6541         m32r_pass_by_reference.
6542
6543 2011-06-16  Ira Rosen  <ira.rosen@linaro.org>
6544
6545         * tree-vectorizer.h (vect_recog_func_ptr): Change the first
6546         argument to be a VEC of statements.
6547         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove the
6548         assert that pattern statements have to have their vector type set.
6549         * tree-vect-patterns.c (vect_recog_widen_sum_pattern):
6550         Change the first argument to be a VEC of statements.  Update
6551         documentation.
6552         (vect_recog_dot_prod_pattern, vect_recog_pow_pattern): Likewise.
6553         (vect_handle_widen_mult_by_const): New function.
6554         (vect_recog_widen_mult_pattern):  Change the first argument to be a
6555         VEC of statements.  Update documentation.  Check that the constant is
6556         INTEGER_CST.  Support multiplication by a constant that fits an
6557         intermediate type - call vect_handle_widen_mult_by_const.
6558         (vect_pattern_recog_1): Update vect_recog_func_ptr and its
6559         call.  Handle additional pattern statements if necessary.
6560
6561 2011-06-16  Nick Clifton  <nickc@redhat.com>
6562
6563         PR target/49427
6564         * config.gcc: Set cpu_type to v850 for any V850 architecture.
6565         (v850*-*-*): Delete explicit setting of tm_p_file, tmake_file,
6566         md_file, extra_modes, out_file and extra_options are these are all
6567         deduced from cpu_type.
6568
6569 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
6570
6571         * config/avr/libgcc.S (__ashldi3, __ashrdi3, __lshrdi3): Set shift
6572         truncation mask to 63.
6573
6574 2011-06-16  Georg-Johann Lay  <avr@gjlay.de>
6575
6576         PR target/49313
6577         PR target/29524
6578         * longlong.h: Add AVR support:
6579         (count_leading_zeros): New macro.
6580         (count_trailing_zeros): New macro.
6581         (COUNT_LEADING_ZEROS_0): New macro.
6582         * config/avr/t-avr (LIB1ASMFUNCS): Add _ffssi2, _ffshi2, _loop_ffsqi2,
6583         _ctzsi2, _ctzhi2, _clzdi2, _clzsi2, _clzhi2, _paritydi2, _paritysi2,
6584         _parityhi2, _popcounthi2,_popcountsi2, _popcountdi2, _popcountqi2,
6585         _bswapsi2, _bswapdi2, _ashldi3, _ashrdi3, _lshrdi3.
6586         (LIB2FUNCS_EXCLUDE): Add _clz.
6587         * config/avr/libgcc.S (XCALL): Move up in file.
6588         (XJMP): New C Macro.
6589         (DEFUN): New asm macro.
6590         (ENDF): New asm macro.
6591         (__ffssi2): New function.
6592         (__ffshi2): New function.
6593         (__loop_ffsqi2): New function.
6594         (__ctzsi2): New function.
6595         (__ctzhi2): New function.
6596         (__clzdi2): New function.
6597         (__clzsi2): New function.
6598         (__clzhi2): New function.
6599         (__paritydi2): New function.
6600         (__paritysi2): New function.
6601         (__parityhi2): New function.
6602         (__parityqi2): New function.
6603         (__popcounthi2): New function.
6604         (__popcountsi2): New function.
6605         (__popcountdi2): New function.
6606         (__popcountqi2): New function.
6607         (__bswapsi2): New function.
6608         (__bswapdi2): New function.
6609         (__ashldi3): New function.
6610         (__ashrdi3): New function.
6611         (__lshrdi3): New function.
6612         Fix suspicous lines.
6613
6614 2011-06-16  Richard Guenther  <rguenther@suse.de>
6615
6616         * gimple.c (canonicalize_cond_expr_cond): (bool)x is not
6617         the same as x != 0.
6618         * fold-const.c (fold_binary_loc): Do not fold X & 1 != 0
6619         to (bool) X & 1.
6620         * ipa-prop.c (ipa_analyze_indirect_call_uses): Also allow
6621         equality compares against zero for the lower bit.
6622
6623 2011-06-16  Jakub Jelinek  <jakub@redhat.com>
6624
6625         PR tree-optimization/49419
6626         * tree-vrp.c (execute_vrp): Call init_range_assertions
6627         before estimate_numbers_of_iterations, call
6628         free_number_of_iterations_estimates before calling
6629         remove_range_assertions.
6630
6631 2011-06-16  Revital Eres  <revital.eres@linaro.org>
6632
6633         * modulo-sched.c (struct ps_insn): Remove row_rest_count field.
6634         (struct partial_schedule): Add rows_length field.
6635         (verify_partial_schedule): Check rows_length.
6636         (ps_insert_empty_row): Handle rows_length.
6637         (create_partial_schedule): Likewise.
6638         (free_partial_schedule): Likewise.
6639         (reset_partial_schedule): Likewise.
6640         (create_ps_insn): Remove rest_count argument.
6641         (remove_node_from_ps): Update rows_length.
6642         (add_node_to_ps): Update rows_length and call create_ps_insn
6643         without passing row_rest_count.
6644         (rotate_partial_schedule): Update rows_length.
6645
6646 2011-06-16  Revital Eres  <revital.eres@linaro.org>
6647
6648         * ddg.c (add_intra_loop_mem_dep): New function.
6649         (build_intra_loop_deps): Call it.
6650
6651 2011-06-13  Jeff Law  <law@redhat.com>
6652
6653         * df-problems.c (df_lr_local_compute): Manually CSE
6654         PIC_OFFSET_TABLE_REGNUM.
6655         * df-scan.c (df_get_regular_block_artificial_uses): Likewise.
6656         (df_get_entry_block_def_set, df_get_exit_block_use_set): Likewise.
6657
6658 2011-06-13  Jan Hubicka  <jh@suse.cz>
6659
6660         * cgraphunit.c (handle_alias_pairs): New function.
6661         (cgraph_finalize_compilation_unit): Use it.
6662         * ipa.c (cgraph_externally_visible_p): Remove hack marking asm names
6663         as externally visible.
6664
6665 2011-06-15  Richard Guenther  <rguenther@suse.de>
6666
6667         * expr.c (expand_expr_real_2): Reduce all integral types to
6668         bitfield precision.
6669         (expand_expr_real_1): Likewise.
6670
6671 2011-06-15  Martin Jambor  <mjambor@suse.cz>
6672
6673         PR tree-optimization/48613
6674         * ipa-prop.c (ipa_prop_write_jump_functions): Return immediately if
6675         ipa_node_params_vector is NULL.
6676
6677 2011-06-15  Jakub Jelinek  <jakub@redhat.com>
6678
6679         PR debug/49382
6680         * dwarf2out.c (dw_loc_list_node): Add force field.
6681         (add_var_loc_to_decl): For PARM_DECL, attempt to keep the incoming
6682         location in the list, even if it is modified before first real insn.
6683         (output_loc_list): Emit empty ranges with force flag set.
6684         (dw_loc_list): If first range of a PARM_DECL is empty, set force flag.
6685
6686 2011-06-15  Alexander Monakov  <amonakov@ispras.ru>
6687
6688         PR target/49349
6689         * sel-sched.c (find_place_for_bookkeeping): Add new parameter
6690         (fence_to_rewind).  Use it to notice when bookkeeping will be placed
6691         above a fence.  Update comments.
6692         (generate_bookkeeping_insn): Rewind fence when bookkeeping code is
6693         placed just above it.  Do not allow NULL place_to_insert.
6694
6695 2011-06-15  Ira Rosen  <ira.rosen@linaro.org>
6696
6697         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): Remove.
6698         (slpeel_tree_peel_loop_to_edge): Don't call
6699         remove_dead_stmts_from_loop.
6700         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
6701         remove irrelevant pattern statements.  For irrelevant statements
6702         check if it is the last statement of a detected pattern, use
6703         corresponding pattern statement instead.
6704         (destroy_loop_vec_info): No need to remove pattern statements,
6705         only free stmt_vec_info.
6706         (vect_transform_loop): For irrelevant statements check if it is
6707         the last statement of a detected pattern, use corresponding
6708         pattern statement instead.
6709         * tree-vect-patterns.c (vect_pattern_recog_1): Don't insert
6710         pattern statements.  Set basic block for the new statement.
6711         (vect_pattern_recog): Update documentation.
6712         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Scan
6713         operands of pattern statements.
6714         (vectorizable_call): Fix printing.  In case of a pattern statement
6715         use the lhs of the original statement when creating a dummy
6716         statement to replace the original call.
6717         (vect_analyze_stmt): For irrelevant statements check if it is
6718         the last statement of a detected pattern, use corresponding
6719         pattern statement instead.
6720         * tree-vect-slp.c (vect_schedule_slp_instance): For pattern
6721         statements use gsi of the original statement.
6722
6723 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
6724
6725         * target-def.h (TARGET_HAVE_NAMED_SECTIONS): Move to
6726         common/common-target-def.h.
6727         * target.def (default_target_flags, handle_option,
6728         supports_split_stack, optimization_table, init_struct,
6729         except_unwind_info, unwind_tables_default, have_named_sections):
6730         Move to common/common-target.def.
6731         * target.h (enum opt_levels, struct default_options): Move to
6732         common/common-target.h.
6733         * targhooks.c (default_except_unwind_info,
6734         dwarf2_except_unwind_info, sjlj_except_unwind_info,
6735         default_target_handle_option, empty_optimization_table): Move to
6736         common/common-targhooks.c.
6737         * targhooks.h (default_except_unwind_info,
6738         dwarf2_except_unwind_info, sjlj_except_unwind_info,
6739         default_target_handle_option, empty_optimization_table): Move to
6740         common/common-targhooks.h.
6741         * common/common-target-def.h: Include common/common-targhooks.h.
6742         (TARGET_HAVE_NAMED_SECTIONS): Define if TARGET_ASM_NAMED_SECTION
6743         defined.
6744         * common/common-target.def (handle_option, option_init_struct,
6745         option_optimization_table, default_target_flags,
6746         except_unwind_info, supports_split_stack, unwind_tables_default,
6747         have_named_sections): Move from target.def.
6748         (HOOK_PREFIX): Undefine at end of file.
6749         * common/common-target.h: Include input.h.
6750         (enum opt_levels, struct default_options): Move from target.h.
6751         * common/common-targhooks.c, common/common-targhooks.h: New.
6752         * config.gcc (target_has_targetm_common): Default to yes.
6753         (moxie*): Set target_has_targetm_common=no.
6754         (hppa*-*-*): Don't set target_has_targetm_common=yes.
6755         * doc/tm.texi: Regenerate.
6756         * Makefile.in (COMMON_TARGET_H): Add $(INPUT_H).
6757         (C_TARGET_DEF_H): Add common/common-targhooks.h.
6758         (GCC_OBJS): Remove vec.o.
6759         (OBJS): Remove hooks.o and vec.o.
6760         (OBJS-libcommon-target): Add vec.o, hooks.o and
6761         common/common-targhooks.o.
6762         (c-family/c-common.o, c-family/c-cppbuiltin.o, lto-opts.o, tree.o,
6763         tree-tailcall.o, opts.o, toplev.o, varasm.o, function.o, except.o,
6764         expr.o, explow.o, dbxout.o, dwarf2out.o, cfgrtl.o, haifa-sched.o,
6765         cfglayout.o, $(out_object_file), $(common_out_object_file)):
6766         Update dependencies.
6767         (common/common-targhooks.o): New.
6768         * common/config/default-common.c: Include tm.h.  Add FIXME comment.
6769         * common/config/pa/pa-common.c: Include more headers.  Take
6770         copyright dates from pa.c.
6771         (pa_option_optimization_table, pa_handle_option,
6772         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS,
6773         TARGET_HANDLE_OPTION): Move from pa.c.
6774         * common/config/alpha/alpha-common.c,
6775         common/config/arm/arm-common.c, common/config/avr/avr-common.c,
6776         common/config/bfin/bfin-common.c,
6777         common/config/cris/cris-common.c,
6778         common/config/fr30/fr30-common.c, common/config/frv/frv-common.c,
6779         common/config/h8300/h8300-common.c,
6780         common/config/i386/i386-common.c,
6781         common/config/ia64/ia64-common.c,
6782         common/config/iq2000/iq2000-common.c,
6783         common/config/lm32/lm32-common.c,
6784         common/config/m32c/m32c-common.c,
6785         common/config/m32r/m32r-common.c,
6786         common/config/m68k/m68k-common.c,
6787         common/config/mcore/mcore-common.c,
6788         common/config/mep/mep-common.c,
6789         common/config/microblaze/microblaze-common.c,
6790         common/config/mips/mips-common.c,
6791         common/config/mmix/mmix-common.c,
6792         common/config/mn10300/mn10300-common.c,
6793         common/config/pdp11/pdp11-common.c,
6794         common/config/picochip/picochip-common.c,
6795         common/config/rs6000/rs6000-common.c,
6796         common/config/rx/rx-common.c, common/config/s390/s390-common.c,
6797         common/config/score/score-common.c, common/config/sh/sh-common.c,
6798         common/config/sparc/sparc-common.c,
6799         common/config/spu/spu-common.c, common/config/v850/v850-common.c,
6800         common/config/vax/vax-common.c,
6801         common/config/xstormy16/xstormy16-common.c,
6802         common/config/xtensa/xtensa-common.c: New.
6803         * config/alpha/alpha.c: Include common/common-target.h.
6804         (alpha_option_optimization_table, alpha_handle_option,
6805         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6806         TARGET_OPTION_OPTIMIZATION_TABLE): Move to alpha-common.c.
6807         * config/arm/arm-protos.h (arm_except_unwind_info): Declare.
6808         * config/arm/arm.c (arm_option_optimization_table,
6809         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6810         TARGET_EXCEPT_UNWIND_INFO, arm_except_unwind_info): Move to
6811         arm-common.c.
6812         * config/avr/avr.c (avr_option_optimization_table,
6813         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
6814         to avr-common.c.
6815         * config/bfin/bfin.c (struct bfin_cpu): Move to bfin.h.
6816         (bfin_cpus, bfin_handle_option, TARGET_HANDLE_OPTION,
6817         TARGET_DEFAULT_TARGET_FLAGS): Move to bfin-common.c.
6818         * config/bfin/bfin.h struct bfin_cpu): Move from bfin.c.
6819         * config/cris/cris.c (cris_option_optimization_table,
6820         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6821         TARGET_OPTION_OPTIMIZATION_TABLE, cris_handle_option): Move to
6822         cris-common.c.
6823         * config/fr30/fr30.c (fr30_option_optimization_table,
6824         TARGET_EXCEPT_UNWIND_INFO, TARGET_OPTION_OPTIMIZATION_TABLE): Move
6825         to fr30-common.c.
6826         * config/frv/frv.c (frv_option_optimization_table,
6827         MASK_DEFAULT_ALLOC_CC, TARGET_DEFAULT_TARGET_FLAGS,
6828         TARGET_OPTION_OPTIMIZATION_TABLE): Move to frv-common.c.
6829         * config/h8300/h8300.c (h8300_option_optimization_table,
6830         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6831         TARGET_EXCEPT_UNWIND_INFO): Move to h8300-common.c.
6832         * config/i386/i386-protos.h (ix86_handle_option): Declare.
6833         * config/i386/i386.c: Include common/common-target.h.
6834         (OPTION_MASK_ISA_MMX_SET, OPTION_MASK_ISA_3DNOW_SET,
6835         OPTION_MASK_ISA_SSE_SET, OPTION_MASK_ISA_SSE2_SET,
6836         OPTION_MASK_ISA_SSE3_SET, OPTION_MASK_ISA_SSSE3_SET,
6837         OPTION_MASK_ISA_SSE4_1_SET, OPTION_MASK_ISA_SSE4_2_SET,
6838         OPTION_MASK_ISA_AVX_SET, OPTION_MASK_ISA_FMA_SET,
6839         OPTION_MASK_ISA_SSE4_SET, OPTION_MASK_ISA_SSE4A_SET,
6840         OPTION_MASK_ISA_FMA4_SET, OPTION_MASK_ISA_XOP_SET,
6841         OPTION_MASK_ISA_LWP_SET, OPTION_MASK_ISA_AES_SET,
6842         OPTION_MASK_ISA_PCLMUL_SET, OPTION_MASK_ISA_ABM_SET,
6843         OPTION_MASK_ISA_BMI_SET, OPTION_MASK_ISA_TBM_SET,
6844         OPTION_MASK_ISA_POPCNT_SET, OPTION_MASK_ISA_CX16_SET,
6845         OPTION_MASK_ISA_SAHF_SET, OPTION_MASK_ISA_MOVBE_SET,
6846         OPTION_MASK_ISA_CRC32_SET, OPTION_MASK_ISA_FSGSBASE_SET,
6847         OPTION_MASK_ISA_RDRND_SET, OPTION_MASK_ISA_F16C_SET,
6848         OPTION_MASK_ISA_MMX_UNSET, OPTION_MASK_ISA_3DNOW_UNSET,
6849         OPTION_MASK_ISA_3DNOW_A_UNSET, OPTION_MASK_ISA_SSE_UNSET,
6850         OPTION_MASK_ISA_SSE2_UNSET, OPTION_MASK_ISA_SSE3_UNSET,
6851         OPTION_MASK_ISA_SSSE3_UNSET, OPTION_MASK_ISA_SSE4_1_UNSET,
6852         OPTION_MASK_ISA_SSE4_2_UNSET, OPTION_MASK_ISA_AVX_UNSET,
6853         OPTION_MASK_ISA_FMA_UNSET, OPTION_MASK_ISA_SSE4_UNSET,
6854         OPTION_MASK_ISA_SSE4A_UNSET, OPTION_MASK_ISA_FMA4_UNSET,
6855         OPTION_MASK_ISA_XOP_UNSET, OPTION_MASK_ISA_LWP_UNSET,
6856         OPTION_MASK_ISA_AES_UNSET, OPTION_MASK_ISA_PCLMUL_UNSET,
6857         OPTION_MASK_ISA_ABM_UNSET, OPTION_MASK_ISA_BMI_UNSET,
6858         OPTION_MASK_ISA_TBM_UNSET, OPTION_MASK_ISA_POPCNT_UNSET,
6859         OPTION_MASK_ISA_CX16_UNSET, OPTION_MASK_ISA_SAHF_UNSET,
6860         OPTION_MASK_ISA_MOVBE_UNSET, OPTION_MASK_ISA_CRC32_UNSET,
6861         OPTION_MASK_ISA_FSGSBASE_UNSET, OPTION_MASK_ISA_RDRND_UNSET,
6862         OPTION_MASK_ISA_F16C_UNSET, ix86_handle_option,
6863         ix86_option_optimization_table, ix86_option_init_struct,
6864         ix86_supports_split_stack, TARGET_DEFAULT_TARGET_FLAGS,
6865         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
6866         TARGET_OPTION_INIT_STRUCT, TARGET_SUPPORTS_SPLIT_STACK): Move to
6867         i386-common.c.
6868         * config/i386/t-i386 (i386.o): Update dependencies.
6869         * config/ia64/ia64-protos.h (ia64_except_unwind_info): Declare.
6870         * config/ia64/ia64.c (ia64_option_optimization_table,
6871         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
6872         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6873         ia64_handle_option): Move to ia64-common.c.
6874         * config/iq2000/iq2000.c (iq2000_option_optimization_table,
6875         TARGET_OPTION_OPTIMIZATION_TABLE): Move to iq2000-common.c.
6876         * config/lm32/lm32.c (lm32_option_optimization_table,
6877         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO): Move
6878         to lm32-common.c.
6879         * config/m32c/m32c.c (TARGET_HAVE_NAMED_SECTIONS): Move to
6880         m32c-common.c.
6881         * config/m32r/m32r.c (m32r_option_optimization_table,
6882         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6883         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_EXCEPT_UNWIND_INFO,
6884         m32r_handle_option): Move to m32r-common.c.
6885         (m32r_memory_move_cost): Remove comment referring to
6886         TARGET_HANDLE_OPTION.
6887         * config/m68k/m68k.c (TARGET_HANDLE_OPTION, m68k_handle_option):
6888         Move to m68k-common.c.
6889         * config/mcore/mcore.c (mcore_option_optimization_table,
6890         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6891         TARGET_EXCEPT_UNWIND_INFO): Move to mcore-common.c.
6892         * config/mep/mep.c (mep_option_optimization_table,
6893         mep_handle_option, TARGET_HANDLE_OPTION,
6894         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_DEFAULT_TARGET_FLAGS):
6895         Move to mep-common.c.
6896         * config/microblaze/microblaze.c
6897         (microblaze_option_optimization_table,
6898         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE,
6899         TARGET_EXCEPT_UNWIND_INFO): Move to microblaze-common.c.
6900         * config/mips/mips.c (mips_handle_option,
6901         mips_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
6902         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Move to
6903         mips-common.c.
6904         * config/mmix/mmix.c (mmix_option_optimization_table,
6905         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
6906         Move to mmix-common.c.
6907         * config/mn10300/mn10300.c (mn10300_option_optimization_table,
6908         mn10300_handle_option, TARGET_EXCEPT_UNWIND_INFO,
6909         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6910         TARGET_OPTION_OPTIMIZATION_TABLE): Move to mn10300-common.c.
6911         * config/pa/pa.c: Include common/common-target.h.
6912         (pa_option_optimization_table, TARGET_OPTION_OPTIMIZATION_TABLE,
6913         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6914         pa_handle_option): Move to pa-common.c.
6915         (pa_option_override): Use targetm_common.except_unwind_info.
6916         (pa_asm_output_mi_thunk, pa_function_section): Use
6917         targetm_common.have_named_sections.
6918         * config/pdp11/pdp11.c (pdp11_option_optimization_table,
6919         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6920         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
6921         pdp11_handle_option, pdp11_option_init_struct): Move to
6922         pdp11-common.c.
6923         * config/picochip/picochip.c (picochip_option_optimization_table,
6924         TARGET_HAVE_NAMED_SECTIONS, TARGET_OPTION_OPTIMIZATION_TABLE,
6925         TARGET_EXCEPT_UNWIND_INFO): Move to picochip-common.c.
6926         * config/rs6000/rs6000.c: Include common/common-target.h.
6927         (rs6000_option_optimization_table, TARGET_HANDLE_OPTION,
6928         TARGET_OPTION_INIT_STRUCT, TARGET_OPTION_OPTIMIZATION_TABLE,
6929         TARGET_DEFAULT_TARGET_FLAGS, rs6000_option_init_struct,
6930         rs6000_handle_option): Move to rs6000-common.c.
6931         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
6932         * config/rx/rx.c (rx_handle_option, rx_option_optimization_table,
6933         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
6934         TARGET_EXCEPT_UNWIND_INFO): Move to rx-common.c.
6935         * config/s390/s390.c (processor_flags_table,
6936         s390_option_optimization_table, s390_option_init_struct,
6937         s390_handle_option, TARGET_DEFAULT_TARGET_FLAGS,
6938         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE,
6939         TARGET_OPTION_INIT_STRUCT): Move to s390-common.c.
6940         * config/s390/s390.h (processor_flags_table): Declare.
6941         * config/score/score.c (score_option_optimization_table,
6942         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6943         TARGET_OPTION_OPTIMIZATION_TABLE, MASK_ALL_CPU_BITS,
6944         score_handle_option): Move to score-common.c.
6945         * config/sh/sh.c (sh_option_optimization_table,
6946         TARGET_OPTION_OPTIMIZATION_TABLE, TARGET_OPTION_INIT_STRUCT,
6947         TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION,
6948         sh_handle_option, sh_option_init_struct): Move to sh-common.c.
6949         * config/sparc/sparc.c: Include common/common-target.h.
6950         (sparc_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
6951         TARGET_OPTION_OPTIMIZATION_TABLE): Move to sparc-common.c.
6952         * config/spu/spu.c (TARGET_DEFAULT_TARGET_FLAGS,
6953         TARGET_OPTION_INIT_STRUCT, TARGET_EXCEPT_UNWIND_INFO,
6954         spu_option_init_struct): Move to spu-common.c.
6955         * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
6956         TARGET_OPTION_OPTIMIZATION_TABLE): Move to xstormy16-common.c.
6957         * config/v850/v850.c (small_memory_physical_max,
6958         v850_handle_memory_optionn v850_handle_option,
6959         v850_option_optimization_table, TARGET_DEFAULT_TARGET_FLAGS,
6960         TARGET_HANDLE_OPTION, TARGET_OPTION_OPTIMIZATION_TABLE): Move to
6961         v850-common.c.
6962         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Move to vax-common.c.
6963         * config/xtensa/xtensa.c (xtensa_option_optimization_table,
6964         TARGET_DEFAULT_TARGET_FLAGS, TARGET_OPTION_OPTIMIZATION_TABLE):
6965         Move to xtensa-common.c.
6966         * cfglayout.c: Include common/common-target.h.
6967         (fixup_reorder_chain): Use targetm_common.have_named_sections.
6968         * cfgrtl.c: Include common/common-target.h.
6969         (force_nonfallthru_and_redirect, commit_one_edge_insertion): Use
6970         targetm_common.have_named_sections.
6971         * dbxout.c: Include common/common-target.h.
6972         (dbxout_function_end): Use targetm_common.have_named_sections.
6973         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Use
6974         targetm_common.except_unwind_info.
6975         * dwarf2out.c: Include common/common-target.h.
6976         (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
6977         dwarf2out_begin_prologue, dwarf2out_frame_init,
6978         dwarf2out_frame_finish, dwarf2out_assembly_start): Use
6979         targetm_common.except_unwind_info.
6980         * except.c: Include common/common-target.h.
6981         (init_eh, finish_eh_generation,
6982         output_one_function_exception_table): Use
6983         targetm_common.except_unwind_info.
6984         (switch_to_exception_section): Use targetm_common.have_named_sections.
6985         * explow.c: Include common/common-target.h.
6986         * expr.c: Include common/common-target.h.
6987         (build_personality_function): Use targetm_common.except_unwind_info.
6988         * function.c: Include common/common-target.h.
6989         (expand_function_end): Use targetm_common.except_unwind_info.
6990         * haifa-sched.c: Include common/common-target.h.
6991         (sched_create_recovery_edges): Use targetm_common.have_named_sections.
6992         * lto-opts.c: Include common/common-target.h instead of target.h.
6993         (lto_reissue_options): Use targetm_common.handle_option.
6994         * opts.c: Include common/common-target.h.
6995         (target_handle_option): Use targetm_common.handle_option.
6996         (init_options_struct): Update comment referring to
6997         targetm.target_option.optimization.  Use
6998         targetm_common.default_target_flags,
6999         targetm_common.unwind_tables_default and
7000         targetm_common.option_init_struct.
7001         (default_options_optimization): Use
7002         targetm_common.option_optimization_table.
7003         (finish_options): Use targetm_common.except_unwind_info,
7004         targetm_common.unwind_tables_default,
7005         targetm_common.have_named_sections and
7006         targetm_common.supports_split_stack.
7007         * toplev.c: Include common/common-target.h.
7008         (process_options): Use targetm_common.have_named_sections.
7009         * tree-tailcall.c: Include common/common-target.h.
7010         (suitable_for_tail_call_opt_p): Use targetm_common.except_unwind_info.
7011         * tree.c: Include common/common-target.h.
7012         (build_common_builtin_nodes): Use targetm_common.except_unwind_info.
7013         * varasm.c: Include common/common-target.h.
7014         (resolve_unique_section, hot_function_section,
7015         default_function_section): Use targetm_common.have_named_sections.
7016
7017 2011-06-14  Easwaran Raman  <eraman@google.com>
7018
7019         PR rtl-optimization/44194
7020         * dse.c: Include tree-flow.h
7021         (insn_info): Add new field non_frame_wild_read.
7022         (group_info): Add new fields escaped_n and escaped_p.
7023         (kill_on_calls): New variable.
7024         (get_group_info): Initialize gi->escaped_n and gi->escaped_p.
7025         (dse_step0): Initialize kill_on_calls.
7026         (can_escape): New function.
7027         (set_usage_bits): Add additional parameter; record information
7028         about escaped locations.
7029         (record_store): Pass EXPR corresponding to MEM to set_usage_bits.
7030         (dse_step2_nospill): Set kill_on_calls based on
7031         group->escaped_n and group->escaped_n.
7032         (add_wild_read): Refactor into...
7033         (reset_active_stores): ... New function, and
7034         (free_read_records): ... New function.
7035         (add_non_frame_wild_read): New function.
7036         (scan_insn): Call add_non_frame_wild_read on non-const calls.
7037         (scan_reads_nospill): Handle instructions with non_frame_wild_read.
7038         (dse_step5_nospill): Call scan_reads_nospill for instructions
7039         marked as non_frame_wild_read.
7040         (dse_step7): Free escaped_n, escaped_p and kill_on_calls bitmaps.
7041
7042 2011-06-14  Joseph Myers  <joseph@codesourcery.com>
7043
7044         * common/common-target-def.h, common/common-target.def,
7045         common/common-target.h, common/config/default-common.c,
7046         common/config/pa/pa-common.c: New files.
7047         * Makefile.in (common_out_file, common_out_object_file,
7048         COMMON_TARGET_H, COMMON_TARGET_DEF_H): New.
7049         (OBJS-libcommon-target): Include $(common_out_object_file).
7050         (prefix.o): Update dependencies.
7051         ($(common_out_object_file), common/common-target-hooks-def.h,
7052         s-common-target-hooks-def-h): New.
7053         (s-tm-texi): Also check timestamp on common-target.def.
7054         (build/genhooks.o): Update dependencies.
7055         * config.gcc (common_out_file, target_has_targetm_common): Define.
7056         * config/pa/som.h (ALWAYS_STRIP_DOTDOT): Replace with
7057         TARGET_ALWAYS_STRIP_DOTDOT.
7058         * configure.ac (common_out_object_file): Define.
7059         (common_out_file, common_out_object_file): Substitute.
7060         (common): Create directory.
7061         * configure: Regenerate.
7062         * doc/tm.texi.in (targetm_common): Document.
7063         (TARGET_ALWAYS_STRIP_DOTDOT): Add @hook entry.
7064         * doc/tm.texi: Regenerate.
7065         * genhooks.c (hook_array): Also include common/common-target.def.
7066         * prefix.c (tm.h): Don't include.
7067         (common/common-target.h): Include.
7068         (ALWAYS_STRIP_DOTDOT): Don't define.
7069         (update_path): Use targetm_common.always_strip_dotdot instead of
7070         ALWAYS_STRIP_DOTDOT.
7071         * system.h (ALWAYS_STRIP_DOTDOT): Poison.
7072
7073 2011-06-14  David Li  <davidxl@google.com>
7074
7075         * passes.c (execute_function_todo): Remove TODO_dump_func.
7076         (execute_one_pass): Remove TODO_dump_func.
7077         (execute_function_dump): New function.
7078         * tree-vrp.c: Remove TODO_dump_func.
7079         * regrename.c: Remove TODO_dump_func.
7080         * fwprop.c: Remove TODO_dump_func.
7081         * tree-into-ssa.c: Remove TODO_dump_func.
7082         * tree-complex.c: Remove TODO_dump_func.
7083         * tracer.c: Remove TODO_dump_func.
7084         * tree-loop-distribution.c: Remove TODO_dump_func.
7085         * postreload-gcse.c: Remove TODO_dump_func.
7086         * postreload.c: Remove TODO_dump_func.
7087         * tree-ssa-loop-ch.c: Remove TODO_dump_func.
7088         * tree-tailcall.c: Remove TODO_dump_func.
7089         * ipa-cp.c: Remove TODO_dump_func.
7090         * final.c: Remove TODO_dump_func.
7091         * tree-emutls.c: Remove TODO_dump_func.
7092         * omp-low.c: Remove TODO_dump_func.
7093         * tree-ssa-dse.c: Remove TODO_dump_func.
7094         * tree-ssa-uncprop.c: Remove TODO_dump_func.
7095         * auto-inc-dec.c: Remove TODO_dump_func.
7096         * reorg.c: Remove TODO_dump_func.
7097         * tree-ssa-copyrename.c: Remove TODO_dump_func.
7098         * tree-ssa-ccp.c: Remove TODO_dump_func.
7099         * compare-elim.c: Remove TODO_dump_func.
7100         * mode-switching.c: Remove TODO_dump_func.
7101         * modulo-sched.c: Remove TODO_dump_func.
7102         * tree-call-cdce.c: Remove TODO_dump_func.
7103         * cse.c: Remove TODO_dump_func.
7104         * web.c: Remove TODO_dump_func.
7105         * tree-stdarg.c: Remove TODO_dump_func.
7106         * lto-streamer-out.c: Remove TODO_dump_func.
7107         * tree-ssa-math-opts.c: Remove TODO_dump_func.
7108         * tree-ssa-dom.c: Remove TODO_dump_func.
7109         * tree-nrv.c: Remove TODO_dump_func.
7110         * loop-init.c: Remove TODO_dump_func.
7111         * gimple-low.c: Remove TODO_dump_func.
7112         * ipa-inline.c: Remove TODO_dump_func.
7113         * tree-ssa-sink.c: Remove TODO_dump_func.
7114         * jump.c: Remove TODO_dump_func.
7115         * ifcvt.c: Remove TODO_dump_func.
7116         * tree-ssa-loop.c: Remove TODO_dump_func.
7117         * recog.c: Remove TODO_dump_func.
7118         * dse.c: Remove TODO_dump_func.
7119         * tree-ssa-ifcombine.c: Remove TODO_dump_func.
7120         * matrix-reorg.c: Remove TODO_dump_func.
7121         * tree-eh.c: Remove TODO_dump_func.
7122         * regmove.c: Remove TODO_dump_func.
7123         * function.c: Remove TODO_dump_func.
7124         * tree-vectorizer.c: Remove TODO_dump_func.
7125         * ipa-split.c: Remove TODO_dump_func.
7126         * gcse.c: Remove TODO_dump_func.
7127         * tree-if-conv.c: Remove TODO_dump_func.
7128         * init-regs.c: Remove TODO_dump_func.
7129         * tree-ssa-phiopt.c: Remove TODO_dump_func.
7130         * implicit-zee.c: Remove TODO_dump_func.
7131         * lower-subreg.c: Remove TODO_dump_func.
7132         * bt-load.c: Remove TODO_dump_func.
7133         * tree-dfa.c: Remove TODO_dump_func.
7134         * except.c: Remove TODO_dump_func.
7135         * emit-rtl.c: Remove TODO_dump_func.
7136         * store-motion.c: Remove TODO_dump_func.
7137         * cfgexpand.c: Remove TODO_dump_func.
7138         * tree-cfgcleanup.c: Remove TODO_dump_func.
7139         * cfgcleanup.c: Remove TODO_dump_func.
7140         * tree-ssa-pre.c: Remove TODO_dump_func.
7141         * tree-sra.c: Remove TODO_dump_func.
7142         * tree-mudflap.c: Remove TODO_dump_func.
7143         * tree-ssa-copy.c: Remove TODO_dump_func.
7144         * cfglayout.c: Remove TODO_dump_func.
7145         * tree-ssa-forwprop.c: Remove TODO_dump_func.
7146         * tree-ssa-dce.c: Remove TODO_dump_func.
7147         * ira.c: Remove TODO_dump_func.
7148         * tree-ssa.c: Remove TODO_dump_func.
7149         * integrate.c: Remove TODO_dump_func.
7150         * tree-optimize.c: Remove TODO_dump_func.
7151         * tree-ssa-phiprop.c: Remove TODO_dump_func.
7152         * tree-object-size.c: Remove TODO_dump_func.
7153         * combine.c: Remove TODO_dump_func.
7154         * bb-reorder.c: Remove TODO_dump_func.
7155         * cprop.c: Remove TODO_dump_func.
7156         * var-tracking.c: Remove TODO_dump_func.
7157         * tree-profile.c: Remove TODO_dump_func.
7158         * tree-vect-generic.c: Remove TODO_dump_func.
7159         * reg-stack.c: Remove TODO_dump_func.
7160         * sched-rgn.c: Remove TODO_dump_func.
7161         * tree-ssa-structalias.c: Remove TODO_dump_func.
7162         * tree-switch-conversion.c: Remove TODO_dump_func.
7163         * tree-cfg.c: Remove TODO_dump_func.
7164         * tree-ssa-reassoc.c: Remove TODO_dump_func.
7165         * combine-stack-adj.c: Remove TODO_dump_func.
7166         * dce.c: Remove TODO_dump_func.
7167         * tree-ssanames.c: Remove TODO_dump_func.
7168         * regcprop.c: Remove TODO_dump_func.
7169
7170 2011-06-14  H.J. Lu  <hongjiu.lu@intel.com>
7171
7172         PR middle-end/47364
7173         * builtins.c (expand_builtin_strlen): Expand strlen to Pmode
7174         and properly handle result not in Pmode.
7175
7176 2011-06-14  Robert Millan  <rmh@gnu.org>
7177
7178         * config/i386/kfreebsd-gnu.h: Resync with `config/i386/linux.h'.
7179         * config/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER): Resync with
7180         `config/linux.h'.
7181
7182         * config/i386/kfreebsd-gnu64.h: New file.
7183         * config.gcc (x86_64-*-kfreebsd*-gnu): Replace `i386/kfreebsd-gnu.h'
7184         with `i386/kfreebsd-gnu64.h'.
7185
7186         * config/i386/linux64.h (GNU_USER_LINK_EMULATION32)
7187         (GNU_USER_LINK_EMULATION64): New macros.
7188         * config/i386/gnu-user64.h (LINK_SPEC): Rely on
7189         `GNU_USER_LINK_EMULATION32' and `GNU_USER_LINK_EMULATION64' instead
7190         of hardcoding `elf_i386' and `elf_x86_64'.
7191
7192 2011-06-14  Nick Clifton  <nickc@redhat.com>
7193
7194         PR target/49403
7195         * config/v850/v850.c (v850_memory_move_cost): Add reg_class_t parameter.
7196
7197         PR target/49402
7198         * config.gcc(v850*-*-*): Avoid duplication of v850.opt.
7199
7200 2011-06-14  Jakub Jelinek  <jakub@redhat.com>
7201
7202         PR fortran/49103
7203         * tree.h (DECL_NONSHAREABLE): Define.
7204         (struct tree_decl_common): Change decl_common_unused to
7205         decl_nonshareable_flag.
7206         * cfgexpand.c (expand_used_vars_for_block, clear_tree_used):
7207         Ignore vars with DECL_NONSHAREABLE bit set.
7208         * tree-cfg.c (gimple_duplicate_bb): Set DECL_NONSHAREABLE
7209         on stores to automatic aggregate vars.
7210
7211         PR rtl-optimization/49390
7212         Revert:
7213         2010-06-29  Bernd Schmidt  <bernds@codesourcery.com>
7214
7215         * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
7216         MEM_ALIAS_SET.
7217
7218 2011-06-14  Zdenek Dvorak  <ook@ucw.cz>
7219             Tom de Vries  <tom@codesourcery.com>
7220
7221         PR target/45098
7222         * cfgloop.h (nb_iterations_upper_bound, nb_iterations_estimate):
7223         Document changed semantics.
7224         (max_stmt_executions, max_stmt_executions_int): Declare.
7225         * tree-data-ref.c (estimated_loop_iterations)
7226         (estimated_loop_iterations_int): Move functions...
7227         * tree-ssa-loop-niter.c (estimated_loop_iterations)
7228         (estimated_loop_iterations_int): here.
7229         (record_estimate): Change nb_iterations_upper_bound and
7230         nb_iterations_estimate semantics.
7231         (max_stmt_executions, max_stmt_executions_int): New function.
7232         * tree-data-ref.c (estimated_loop_iterations_tree): Rename to ...
7233         (max_stmt_executions_tree): this.
7234         (analyze_miv_subscript): Use max_stmt_executions_tree instead of
7235         estimated_loop_iterations_tree.
7236         tree-ssa-loop-ivopts.c (avg_loop_niter): Use
7237         max_stmt_executions_int instead of estimated_loop_iterations_int.
7238         * predict.c (predict_loops): Idem.
7239         * tree-parloops.c (parallelize_loops): Idem.
7240         * tree-data-ref.c (analyze_siv_subscript_cst_affine)
7241         (compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine)
7242         (init_omega_for_ddr_1): Idem.
7243         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse)
7244         (loop_prefetch_arrays): Idem
7245         * graphite-sese-to-poly.c (build_loop_iteration_domains): Use
7246         max_stmt_executions instead of estimated_loop_iterations.
7247         * tree-data-ref.c (estimated_loop_iterations_tree): Idem.
7248         * tree-vrp.c (adjust_range_with_scev): Use estimated_loop_iterations
7249         instead of nb_iterations_upper_bound.
7250
7251 2011-06-13  Jan Hubicka  <jh@suse.cz>
7252
7253         * ipa.c (cgraph_address_taken_from_non_vtable_p): Check the ref type.
7254
7255 2011-06-14  Richard Henderson  <rth@redhat.com>
7256
7257         PR debug/48459
7258         * dwarf2out.c (frame_pointer_fb_offset_valid): New.
7259         (based_loc_descr): Assert it's true.
7260         (compute_frame_pointer_to_fb_displacement): Set it, rather than
7261         aborting immediately.
7262
7263 2011-06-14  Sanjin Liu  <scliu@faraday-tech.com>
7264             Mingfeng Wu  <mingfeng@faraday-tech.com>
7265
7266         * doc/invoke.texi: Re-add missing -mcpu docs for Faraday cores.
7267
7268 2011-06-13  Jan Hubicka  <jh@suse.cz>
7269
7270         * ipa-cp.c (ipcp_iterate_stage): Revert accidental commit.
7271
7272 2011-06-13  Jan Hubicka  <jh@suse.cz>
7273
7274         * cgraph.c (cgraph_make_decl_local): Handle DECL_ONE_ONLY
7275         similarly to DECL_COMDAT.
7276         * cgraphunit.c (cgraph_analyze_function): Likewise.
7277         * ipa.c (function_and_variable_visibility): Likewise.
7278
7279 2011-06-13  Jan Hubicka  <jh@suse.cz>
7280
7281         * lto-streamer-out.c (lto_output_ts_binfo_tree_pointers): Do not output
7282         BINFO_VIRTUALS when streaming for ltrans unit.
7283
7284 2011-06-13  David Edelsohn  <dje.gcc@gmail.com>
7285
7286         * config/rs6000/rs6000.md (movdi_mfpgpr): Remove POWER mnemonic.
7287         (movdi_internal64): Same.
7288
7289 2011-06-13  Edmar Wienskoski  <edmar@freescale.com>
7290
7291         PR target/44618
7292         * config/rs6000/rs6000.md (save_gpregs_<mode>): Replaced pattern with
7293         a set of similar patterns, where the MATCH_OPERAND for the function
7294         argument is replaced with individual references to hardware registers.
7295         (save_fpregs_<mode>): Ditto
7296         (restore_gpregs_<mode>): Ditto
7297         (return_and_restore_gpregs_<mode>): Ditto
7298         (return_and_restore_fpregs_<mode>): Ditto
7299         (return_and_restore_fpregs_aix_<mode>): Ditto
7300
7301 2011-06-13  Jan Hubicka  <jh@suse.cz>
7302
7303         * ipa-utils.c (postorder_stack): New structure.
7304         (ipa_reverse_postorder): Handle aliases.
7305
7306 2011-06-13  Jan Hubicka  <jh@suse.cz>
7307
7308         * ipa-inline.c (reset_edge_caches): Walk aliases.
7309         (update_caller_keys): Do not test inlinability of aliases.
7310         * ipa-inline-analysis.c (do_estimate_edge_time): Look through alias.
7311         (do_estimate_growth): Fix typo.
7312
7313 2011-06-13  Jan Hubicka  <jh@suse.cz>
7314
7315         * ipa-inline-transform.c (+can_remove_node_now_p_1): Break out from...
7316         (can_remove_node_now_p): ... here; handle same comdat groups.
7317         (clone_inlined_nodes): Update use of can_remove_node_now_p add TODO.
7318         (inline_call): Update use of can_remove_node_now_p.
7319
7320 2011-06-13  Kaushik Phatak  <kaushik.phatak@kpitcummins.com>
7321
7322         * config/h8300/h8300.md (bsetqi_msx, bclrqi_msx, bnotqi_msx): Added
7323         condition to disallow non-identical memory locations.
7324         (*andqi3_2, andqi3_1, iorqi3_1, xorqi3_1): Reorder insn to give
7325         preference to bit manipulation instructions.
7326
7327 2011-06-13  Jan Hubicka  <jh@suse.cz>
7328
7329         * cgraph.c (cgraph_for_node_thunks_and_aliases,
7330         cgraph_for_node_and_aliases): Fix thinko in recursive walking.
7331         (nonremovable_p): New function.
7332         (cgraph_can_remove_if_no_direct_calls_p): New function.
7333         (used_from_object_file_p): New functoin.
7334         (cgraph_will_be_removed_from_program_if_no_direct_calls): Look for
7335         references from aliases.
7336         * cgraph.h (cgraph_can_remove_if_no_direct_calls_p): Bring offline.
7337         * ipa-inline.c (check_caller_edge): New function.
7338         (want_inline_function_called_once_p): Use it; accept aliases called
7339         once, too.
7340         * ipa-inline-analysis.c (do_estimate_growth): Remove FIXME.
7341
7342 2011-06-13  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7343
7344         PR target/48454
7345         * config/arm/neon.md (vec_pack_trunc): Set the lengths
7346         correctly for the case with Quad vectors.
7347
7348 2011-06-13 Jakub Jelinek  <jakub@redhat.com>
7349            Ira Rosen  <ira.rosen@linaro.org>
7350
7351         PR tree-optimization/49352
7352         * tree-vect-loop.c (vect_is_slp_reduction): Don't count debug uses at
7353         all, make sure loop_use_stmt after the loop is a def stmt of a used
7354         SSA_NAME that is the only one defined inside of the loop.  Don't
7355         check for COND_EXPR and GIMPLE_BINARY_RHS.
7356         (vect_is_simple_reduction_1): Call vect_is_slp_reduction only if
7357         check_reduction is true.
7358
7359 2011-06-11  Jan Hubicka  <jh@suse.cz>
7360
7361         PR middle-end/49373
7362         * ipa.c (cgraph_externally_visible_p): Check resolution info.
7363
7364 2011-06-11  Jan Hubicka  <jh@suse.cz>
7365
7366         PR middle-end/48836
7367         * ipa-inline-transform.c: Include tree-pass.h
7368         (inline_transform): Set TODO_update_ssa_only_virtuals.
7369         * Makefile.in (ipa-inline-transform.o): Add tree-pass.h.
7370
7371 2011-06-11  Jan Hubicka  <jh@suse.cz>
7372
7373         PR middle-end/49378
7374         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p): Rule out
7375         aliases and thunks.
7376
7377 2011-06-12  Ira Rosen  <ira.rosen@linaro.org>
7378
7379         * tree-vect-data-refs.c (vect_peeling_hash_get_most_frequent):
7380         Take number of iterations to peel into account for equally frequent
7381         misalignment values.
7382
7383 2011-06-11  Jan Hubicka  <jh@suse.cz>
7384
7385         * lto-streamer-out.c (produce_symtab): Stream out the newly
7386         represented aliases.
7387
7388 2011-06-11  Jan Hubicka  <jh@suse.cz>
7389
7390         * ipa-prop.c (ipa_make_edge_direct_to_target): Fix code setting
7391         varying args.
7392         (ipa_update_after_lto_read): Likewise.
7393         (ipa_write_node_info): Do not sream call_with_var_arguments.
7394         (ipa_read_node_info): Likewise.
7395
7396 2011-06-11  Jan Hubicka  <jh@suse.cz>
7397
7398         * ipa.c (cgraph_comdat_can_be_unshared_p): Fix pasto.
7399
7400 2011-06-11  Jan Hubicka  <jh@suse.cz>
7401
7402         * lto-symtab.c (lto_cgraph_replace_node): Kill same body alias code.
7403         (lto_symtab_resolve_can_prevail_p): Likewise.
7404         (lto_symtab_merge_cgraph_nodes): Update merging of aliases.
7405         * cgraph.c (same_body_aliases_done): New global var.
7406         (cgraph_same_body_alias_1): Rename to ...
7407         (cgraph_create_function_alias): ... this one; reorg to new
7408         representation.
7409         (cgraph_same_body_alias): Use cgraph_create_function_alias;
7410         record references when asked to.
7411         (cgraph_add_thunk): Fix formating.
7412         (cgraph_get_node): Kill same body alias code.
7413         (cgraph_node_for_asm): Likewise.
7414         (cgraph_remove_same_body_alias): Remove.
7415         (cgraph_remove_node): Kill same body alias code.
7416         (cgraph_mark_address_taken_node): Mark also the aliased function
7417         as having address taken.
7418         (dump_cgraph_node): Dump same body aliases.
7419         (cgraph_for_node_thunks_and_aliases): Update for new alias
7420         representation.
7421         (cgraph_for_node_and_aliases): Likewise.
7422         * cgraph.h (same_body): Kll pointer.
7423         (same_body_alias): Update comment.
7424         (same_body_aliases_done): Declare.
7425         (cgraph_remove_same_body_alias): Remove declaration.
7426         (cgraph_create_function_alias): Declare.
7427         (cgraph_process_same_body_aliases): Declare.
7428         (cgraph_function_with_gimple_body_p): Check for alias.
7429         (cgraph_can_remove_if_no_direct_calls_p): Look for aliases.
7430         (cgraph_alias_aliased_node): New function.
7431         (cgraph_function_node): Update for new aliases.
7432         (cgraph_function_or_thunk_node): Likewise.
7433         * ipa-inline-transform.c (can_remove_node_now_p): Look for aliases.
7434         (inline_call): Remove dead aliases.
7435         * cgraphunit.c (cgraph_decide_is_function_needed): Disable assembler
7436         name hack for same body aliases.
7437         (clone_of_p): Look through aliases.
7438         (verify_cgraph_node): Verify aliases.
7439         (cgraph_analyze_function): Analyze aliases; fixup C++ bugs.
7440         (cgraph_process_same_body_aliases): New function.
7441         (process_function_and_variable_attributes): Disable weakref warning on
7442         alias.
7443         (cgraph_analyze_functions): Handle aliases.
7444         (cgraph_mark_functions_to_output): Handle aliases same way as thunks.
7445         (assemble_thunks): Rename to ...
7446         (assemble_thunks_and_aliases): ... this one; handle aliases, too.
7447         (cgraph_expand_function): Remove alias output code.
7448         (cgraph_output_in_order): Skip aliases.
7449         (cgraph_preserve_function_body_p): Aliases don't need preserving.
7450         * ipa-ref.c (ipa_ref_use_name): Add alias reference.
7451         (ipa_record_reference): Do not assert on alias references.
7452         (ipa_ref_has_aliases_p): New function.
7453         * ipa-ref.h (enum ipa_ref_use): Add IPA_REF_ALIAS.
7454         (ipa_ref_has_aliases_p): Declare.
7455         * lto-cgraph.c (lto_output_node): Handle aliases.
7456         (input_node): Likewise.
7457         * lto-streamer-out.c (lto_output): Skip aliases.
7458         (produce_symtab): Kill same_body_alias code.
7459         * ipa-utils.c (ipa_reverse_postorder): Add FIXME.
7460         (ipa_reverse_postorder): Use cgraph_only_called_directly_or_aliased_p.
7461         * ipa-inline.c (update_caller_keys): Walk aliases.
7462         (inline_small_functions): Fix thinko in previous patch.
7463         * ipa.c (cgraph_externally_visible_p): Do not walk aliases.
7464         (function_and_variable_visibility): Do not walk same body aliases.
7465         * tree-ssa-structalias.c (associate_varinfo_to_alias): New function.
7466         (ipa_pta_execute): Use it.
7467
7468 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
7469
7470         * config/i386/sse.md (vec_dupv4sf): Correct mode of forced register.
7471         (*vec_dupv2df): Rename from vec_dupv2df.
7472         (vec_dupv2df): New expander.
7473
7474 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
7475
7476         * config/i386/sse.md (AVX_VEC_DUP_MODE): Rename from AVX256MODE24P.
7477
7478 2011-06-11  Uros Bizjak  <ubizjak@gmail.com>
7479
7480         * config/i386/i386.md: Use default value in "isa" attribute.
7481         * config/i386/sse.md: Ditto.
7482         * config/i386/mmx.md: Ditto.
7483
7484 2011-06-10  Wei Guozhi  <carrot@google.com>
7485
7486         PR target/45335
7487         * config/arm/ldmstm.md (ldm2_ia, stm2_ia, ldm2_ib, stm2_ib, ldm2_da,
7488         stm2_da, ldm2_db, stm2_db): Add condition !arm_arch7 to these insns.
7489         (ldrd, ldrd_reg1, ldrd_reg2 and peephole2): New insn patterns and
7490         related peephole2.
7491         (strd, strd_reg1, strd_reg2 and peephole2): New insn patterns and
7492         related peephole2.
7493         * config/arm/arm-protos.h (arm_check_ldrd_operands): New prototype.
7494         (arm_legitimate_ldrd_p): New prototype.
7495         (arm_output_ldrd): New prototype.
7496         * config/arm/arm.c (arm_check_ldrd_operands): New function.
7497         (arm_legitimate_ldrd_p): New function.
7498         (arm_output_ldrd): New function.
7499
7500 2011-06-10  David Li  <davidxl@google.com>
7501
7502         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
7503         * passes.c (passr_eq): New function.
7504         (create_pass_tab): New function.
7505         (pass_traverse): New function.
7506         (dump_one_pass): New function.
7507         (dump_pass_list): New function.
7508         (dump_passes): New function.
7509
7510 2011-06-10  Jan Hubicka  <jh@suse.cz>
7511
7512         * cgraph.c (cgraph_set_nothrow_flag_1): Update cgraph after
7513         setting the nothrow flag.
7514         * ipa-reference.c (propagate): Skip aliases.
7515         * ipa-pure-const.c (propagate_pure_const): Skip aliases.
7516         (propagate_nothrow): Skip aliases; do not update cgraph.
7517         (local_pure_const): Do not update cgraph.
7518         * tree-profile.c (tree_profiling): Do fixup_cfg.
7519
7520 2011-06-10  Jan Hubicka  <jh@suse.cz>
7521
7522         * ipa.c (cgraph_non_local_node_p_1): Break out from ...;
7523         (cgraph_local_node_p): ... here; handle aliases.
7524         (has_addr_references_p): Break out from ...;
7525         (cgraph_remove_unreachable_nodes) ... here.
7526
7527 2011-06-10  Jan Hubicka  <jh@suse.cz>
7528
7529         * opts.c (default_options): Enlist OPT_finline_functions_called_once.
7530         * common.opt (flag_inline_functions_called_once): Do not
7531         initialize to 1.
7532
7533 2011-06-10  Jan Hubicka  <jh@suse.cz>
7534
7535         * ipa-cp.c (ipcp_versionable_function_p): Thunks are not versionable.
7536         (ipcp_initialize_node_lattices): Do not deal with aliases;
7537         Do not try to propagate through thunks.
7538         (ipcp_change_tops_to_bottom): Do not deal with aliases.
7539
7540 2011-06-10  Jan Hubicka  <jh@suse.cz>
7541
7542         * ipa-prop.c (ipa_write_node_info): Stream jump functions
7543         for indirect calls.
7544         (ipa_read_node_info): Likewise.
7545
7546 2011-06-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7547
7548         PR lto/49302
7549         * tree-ssa-math-opts.c (powi_as_mults): Minor cleanup.
7550         (build_and_insert_call): Likewise.
7551         (build_and_insert_ref): New.
7552         (gimple_expand_builtin_pow): Minor cleanup.
7553         (gimple_expand_builtin_cabs): New.
7554         (execute_cse_sincos): Add case for BUILT_IN_CABS.
7555
7556 2011-06-10  Jan Hubicka  <jh@suse.cz>
7557
7558         * ipa-cp.c (ipcp_versionable_function_p): Aliases are not versionable.
7559         (ipcp_cloning_candidate_p): Aliases are not clonning candidates.
7560         (ipcp_initialize_node_lattices): We don't propagate through an aliases.
7561         (ipcp_propagate_stage): Skip aliases when propagating.
7562         (ipcp_need_redirect_p): Skip aliases.
7563         (ipcp_insert_stage): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY and
7564         collect_callers_of_node.
7565         * ipa-prop.c (ipa_init_func_list): Do not analyze datastructures
7566         for aliases.
7567         (ipa_compute_jump_functions): Look through aliases.
7568
7569 2011-06-10  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7570
7571         * doc/sourcebuild.texi (Effective-Target Keywords, pie): Document it.
7572
7573 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
7574
7575         * ira-costs.c: Remove #ifdefs on dead FORBIDDEN_INC_DEC_CLASSES.
7576         Adjust comments.
7577         * system.h (FORBIDDEN_INC_DEC_CLASSES): Poison.
7578
7579 2011-06-10  Jan Hubicka  <jh@suse.cz>
7580
7581         * ipa-cp.c (ipcp_process_devirtualization_opportunities):
7582         Update call of gimple_get_virt_method_for_binfo.
7583         * gimple-fold.c (gimple_get_virt_method_for_binfo): Remove
7584         refuse_thunks parameter.
7585         (gimple_fold_call): Update.
7586         * ipa-prop.c (try_make_edge_direct_virtual_call): Update.
7587
7588 2011-06-10  Jan Hubicka  <jh@suse.cz>
7589
7590         * tree-sra.c (all_callers_have_enough_arguments_p): Rename to ...
7591         (not_all_callers_have_enough_arguments_p): ... this one; turn into
7592         worker for cgraph_for_node_and_aliases.
7593         (convert_callers_for_node): Break out from ...
7594         (convert_callers): ... here.
7595         (modify_function): Use collect_callers_of_node.
7596         (ipa_early_sra): Use cgraph_for_node_and_aliases.
7597
7598 2011-06-10  Richard Guenther  <rguenther@suse.de>
7599
7600         PR tree-optimization/49361
7601         * fold-const.c (fold_binary_loc): Only fold x * x to pow (x, 2.0)
7602         when not already in gimple form.
7603
7604 2011-06-10  Richard Guenther  <rguenther@suse.de>
7605
7606         PR bootstrap/49344
7607         * tree-ssa-math-opts.c (convert_mult_to_fma): Use
7608         FOR_EACH_PHI_OR_STMT_USE.
7609
7610 2011-06-10  Jan Hubicka  <jh@suse.cz>
7611
7612         * ipa-inline-transform.c (can_remove_node_now_p): Move out of...
7613         (clone_inlined_nodes): ... here.
7614         (inline_call): Use cgraph_function_or_thunk_node; redirect edge
7615         to real destination prior inlining.
7616         * ipa-inline.c (caller_growth_limits, can_inline_edge_p,
7617         can_early_inline_edge_p, want_early_inline_function_p,
7618         want_early_inline_function_p, want_inline_small_function_p,
7619         want_inline_self_recursive_call_p, want_inline_function_called_once_p,
7620         edge_badness, update_all_callee_keys, lookup_recursive_calls,
7621         add_new_edges_to_heap, inline_small_functions, flatten_function,
7622         inline_always_inline_functions, early_inline_small_functions): Use
7623         cgraph_function_or_thunk_node.
7624         * ipa-inline-analysis.c (evaluate_conditions_for_edge,
7625         dump_inline_edge_summary, estimate_function_body_sizes): Likewise.
7626         (do_estimate_edge_growth_1): Break out from ...
7627         (do_estimate_growth) ... here; walk aliases.
7628         (inline_generate_summary): Skip aliases.
7629
7630 2011-06-10  Richard Guenther  <rguenther@suse.de>
7631
7632         * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Scan stmts
7633         forward when combining, visit inserted stmts when a stmt was changed.
7634
7635 2011-06-10  Paolo Carlini  <paolo.carlini@oracle.com>
7636
7637         * tree.h (error_operand_p): Add.
7638         * dbxout.c (dbxout_type_fields): Use the latter.
7639         * c-decl.c (add_stmt): Likewise.
7640         * gimplify.c (omp_add_variable, omp_notice_variable,
7641         gimplify_scan_omp_clauses): Likewise.
7642
7643 2011-06-10  Georg-Johann Lay  <avr@gjlay.de>
7644
7645         * config/avr/avr.c (avr_function_arg_advance): Fix thinko about
7646         when a value is actually passed in regs.
7647
7648 2011-06-10  Eric Botcazou  <ebotcazou@adacore.com>
7649             Laurent Rougé  <laurent.rouge@menta.fr>
7650
7651         * doc/invoke.texi (SPARC options): Add -mflat.
7652         * config/sparc/sparc.opt: Likewise.
7653         * config/sparc/sparc-protos.h (sparc_expand_epilogue): Add parameter.
7654         (sparc_flat_expand_prologue): Declare.
7655         (sparc_flat_expand_epilogue): Likewise.
7656         * config/sparc/sparc.h (CPP_CPU_SPEC): Do not handle -msoft-float.
7657         (CPP_ENDIAN_SPEC): Replace with...
7658         (CPP_OTHER_SPEC): ...this.  Also handle -mflat and -msoft-float.
7659         (CPP_SPEC): Adjust to above change.
7660         (EXTRA_SPECS): Likewise.
7661         (SPARC_INCOMING_INT_ARG_FIRST): Add TARGET_FLAT handling.
7662         (INCOMING_REGNO): Likewise.
7663         (OUTGOING_REGNO): Likewise.
7664         (LOCAL_REGNO): Likewise.
7665         (SETUP_FRAME_ADDRESSES): Likewise.
7666         (FIXED_REGISTERS): Set 0 for %fp.
7667         (CALL_USED_REGISTERS): Likewise.
7668         (INITIAL_ELIMINATION_OFFSET): Pass current_function_is_leaf.
7669         (EXIT_IGNORE_STACK): Define to 1 unconditionally.
7670         (RETURN_ADDR_REGNUM): Define.
7671         (RETURN_ADDR_RTX): Use it.
7672         (INCOMING_RETURN_ADDR_REGNUM): Define.
7673         (INCOMING_RETURN_ADDR_RTX): Use it.
7674         (DWARF_FRAME_RETURN_COLUMN): Likewise.
7675         (EH_RETURN_REGNUM): Define.
7676         (EH_RETURN_STACKADJ_RTX): Use it.
7677         (EH_RETURN_HANDLER_RTX): Delete.
7678         (EPILOGUE_USES): Use them and add TARGET_FLAT handling.
7679         * config/sparc/sparc.c (apparent_fsize, actual_fsize, num_gfregs):
7680         Delete.
7681         (struct machine_function): Add frame_size, apparent_frame_size,
7682         frame_base_reg, frame_base_offset, n_global_fp_regs and
7683         save_local_in_regs_p fields.
7684         (sparc_frame_size, sparc_apparent_frame_size, sparc_frame_base_reg,
7685         sparc_frame_base_offset, sparc_n_global_fp_regs,
7686         sparc_save_local_in_regs_p): New macros.
7687         (sparc_option_override): Error out if -fcall-saved-REG is specified
7688         for Out registers.
7689         (eligible_for_restore_insn): Fix formatting.
7690         (eligible_for_return_delay): Likewise.  Add TARGET_FLAT handling.
7691         (eligible_for_sibcall_delay): Likewise.
7692         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Add MODE parameter.
7693         (sparc_legitimate_address_p): Adjust to above change.
7694         (save_global_or_fp_reg_p): New predicate.
7695         (return_addr_reg_needed_p): Likewise.
7696         (save_local_or_in_reg_p): Likewise.
7697         (sparc_compute_frame_size): Use them.  Add TARGET_FLAT handling.
7698         (SORR_SAVE, SORR_RESTORE): Delete.
7699         (sorr_pred_t): New typedef.
7700         (sorr_act_t): New enum.
7701         (save_or_restore_regs): Rename to...
7702         (emit_save_or_restore_regs): ...this.  Change type of LOW and HIGH
7703         parameters, remove ACTION parameter, add LEAF_FUNCTION_P, SAVE_P,
7704         ACTION_TRUE and ACTION_FALSE parameters.  Implement more general
7705         mechanism.  Add CFI information for double-word saves in 32-bit mode.
7706         (emit_adjust_base_to_offset): New function extracted from...
7707         (emit_save_or_restore_regs): ...this.  Rename the rest to...
7708         (emit_save_or_restore_regs_global_fp_regs): ...this.
7709         (emit_save_or_restore_regs_local_in_regs): New function.
7710         (gen_create_flat_frame_[123]): New functions.
7711         (sparc_expand_prologue): Use SIZE local variable.  Adjust.
7712         (sparc_flat_expand_prologue): New function.
7713         (sparc_asm_function_prologue): Add TARGET_FLAT handling.
7714         (sparc_expand_epilogue): Use SIZE local variable.  Adjust.
7715         (sparc_flat_expand_epilogue): New function.
7716         (sparc_can_use_return_insn_p): Add TARGET_FLAT handling.
7717         (output_return): Likewise.
7718         (output_sibcall): Likewise.
7719         (sparc_output_mi_thunk): Likewise.
7720         (sparc_frame_pointer_required): Likewise.
7721         (sparc_conditional_register_usage): If TARGET_FLAT, disable the leaf
7722         function optimization.
7723         * config/sparc/sparc.md (flat): New attribute.
7724         (prologue): Add TARGET_FLAT handling.
7725         (save_register_window): Disable if TARGET_FLAT.
7726         (create_flat_frame_[123]): New patterns.
7727         (epilogue): Add TARGET_FLAT handling.
7728         (sibcall_epilogue): Likewise.
7729         (eh_return): New expander.
7730         (eh_return_internal): New insn and splitter.
7731         (return_internal): Add TARGET_FLAT handling.
7732         (untyped_return): Remove bogus test and use RETURN_ADDR_REGNUM.
7733         (save_stack_nonlocal): Use RETURN_ADDR_REGNUM.
7734         (nonlocal_goto): Add TARGET_FLAT handling.
7735         * config/sparc/t-elf: Add -mflat multilib.
7736         * config/sparc/t-leon: Likewise.
7737
7738 2011-06-10  Jan Hubicka  <jh@suse.cz>
7739
7740         * ipa-utils.c (searchc): Use cgraph_function_or_thunk_node.
7741         * ipa-pure-const.c (analyze_function): Aliases don't need analysis.
7742         (self_recursive_p): Use cgraph_function_node.
7743         (propagate_pure_const): Likewise.
7744         (propagate_nothrow): Likewise.
7745         * ipa-reference.c (ipa_reference_get_not_read_global): Use
7746         cgraph_function_node.
7747         (propagate_bits): Likewise.
7748         (propagate): Likewise.
7749
7750 2011-06-10  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
7751             Richard Earnshaw  <rearnsha@arm.com>
7752
7753         * config/arm/arm.c (const_ok_for_op): Check to see if mvn can be used.
7754         * config/arm/vfp.md (*arm_movdi_vfp): Delete.
7755         (*thumb2_movdi_vfp): Delete.
7756         (*arm_movdi_vfp_cortexa8): Delete.
7757         (*movdi_vfp): Consolidate from *arm_movdi_vfp and *thumb2_movdi_vfp.
7758         (*movdi_vfp_cortexa8): Likewise.
7759
7760 2011-06-10  Richard Guenther  <rguenther@suse.de>
7761
7762         * stor-layout.c (initialize_sizetypes): Give names to all
7763         sizetype kinds.
7764
7765 2011-06-10  Ira Rosen  <ira.rosen@linaro.org>
7766
7767         PR tree-optimization/49318
7768         * tree-vect-loop.c (vect_determine_vectorization_factor): Remove
7769         irrelevant pattern statements.
7770
7771 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
7772
7773         * system.h (SETJMP_VIA_SAVE_AREA): Poison.
7774
7775         PR bootstrap/49354
7776         * ira-costs.c (setup_regno_cost_classes_by_mode): Add missing cast
7777         to last assignment.
7778
7779 2011-06-09  Jan Hubicka  <jh@suse.cz>
7780
7781         * cgraphunit.c (cgraph_reset_node): Do not set redefined_extern_inline;
7782         do not recompute reachable flag.
7783         (cgraph_finalize_function, cgraph_analyze_functions): Set
7784         redefined_extern_inline here.
7785
7786 2011-06-09  Jan Hubicka  <jh@suse.cz>
7787
7788         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Rename from ...
7789         (cgraph_only_called_directly_p): ... this one; bring offline.
7790         (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
7791         varpool_used_from_object_file_p): Drop names from the declaratoin.
7792         (cgraph_for_node_thunks_and_aliases, cgraph_for_node_and_aliases,
7793         collect_callers_of_node): New.
7794         (cgraph_function_node, cgraph_function_or_thunk_node): New functions.
7795         (cgraph_edge_recursive_p): Use cgraph_function_node.
7796         * cgraph.c (cgraph_add_thunk): Check that thunk is not already alias.
7797         (cgraph_node_cannot_be_local_p_1): Break out from ...
7798         (cgraph_node_can_be_local_p): ... here; walk aliases.
7799         (cgraph_for_node_thunks_and_aliases): New function.
7800         (cgraph_for_node_and_aliases): New function.
7801         (cgraph_make_node_local_1): Break out from ...
7802         (cgraph_make_node_local) ... here; use
7803         cgraph_for_node_thunks_and_aliases.
7804         (cgraph_set_nothrow_flag_1): Break out from ...
7805         (cgraph_set_nothrow_flag) ... here;
7806         use cgraph_for_node_thunks_and_aliases.
7807         (cgraph_set_const_flag_1): Break out from ...
7808         (cgraph_set_const_flag) ... here;
7809         use cgraph_for_node_thunks_and_aliases.
7810         (cgraph_set_pure_flag_1): Break out from ...
7811         (cgraph_set_pure_flag) ... here;
7812         use cgraph_for_node_thunks_and_aliases.
7813         (cgraph_propagate_frequency_1): Break out from ...
7814         (cgraph_propagate_frequency) ... here; use
7815         cgraph_for_node_thunks_and_aliases.
7816         (cgraph_used_from_object_file_p): Do not care about aliases.
7817         (cgraph_not_only_called_directly_p_1, cgraph_only_called_directly_p):
7818         New functions.
7819         (collect_callers_of_node_1, collect_callers_of_node): New functions.
7820
7821 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
7822
7823         PR rtl-optimization/49154
7824         * config/cris/cris.h (FIXED_REGISTERS): Include CRIS_CC0_REGNUM.
7825         (enum reg_class): Add SRP_REGS and MOF_SRP_REGS.
7826         (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
7827         (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Adjust to fit.
7828         * config/cris/cris.h (cris_register_move_cost): Remove
7829         !TARGET_V32 code.  Tweak comments.
7830
7831 2011-06-09  Jan Hubicka  <jh@suse.cz>
7832
7833         * cgraphbuild.c (record_eh_tables): Mark personality function as having
7834         address taken.
7835
7836 2011-06-10  Hans-Peter Nilsson  <hp@axis.com>
7837
7838         PR rtl-optimization/49154
7839         * ira-costs.c (setup_regno_cost_classes_by_mode): If there already
7840         is a matching slot in the hashtable, assign it to classes_ptr.
7841
7842         PR rtl-optimization/49154
7843         * doc/tm.texi.in (Register Classes): Document rule for the narrowest
7844         register classes.
7845         * doc/tm.texi: Regenerate.
7846
7847 2011-06-09  Kaz Kojima  <kkojima@gcc.gnu.org>
7848
7849         PR target/49307
7850         * config/sh/sh.md (UNSPEC_CHKADD): New.
7851         (chk_guard_add): New define_insn_and_split.
7852         (symGOT_load): Use chk_guard_add instead of blockage.
7853
7854 2011-06-09  Kai Tietz  <ktietz@redhat.com>
7855
7856         * libgcc2.c (L_trampoline): Include windows.h for mingw targets.
7857
7858 2011-06-09  Eric Botcazou  <ebotcazou@adacore.com>
7859
7860         * config/sparc/sparc.md (return_internal): Adjust 'length' attribute.
7861
7862 2011-06-09  Wei Guozhi  <carrot@google.com>
7863
7864         PR target/46975
7865         * config/arm/arm.md (*addsi3_carryin_compare0_<optab>): New pattern.
7866         (peephole2 for conditional move): Generate 16 bit instructions.
7867
7868 2011-06-09  Uros Bizjak  <ubizjak@gmail.com>
7869
7870         * config/i386/i386.md (*movdi_internal_rex64): Merge
7871         alternatives 6 and 8.
7872
7873 2011-06-09  David Li  <davidxl@google.com>
7874
7875         * cgraphunit.c (cgraph_finalize_compilation_unit): Pass dump.
7876         * passes.c (passr_eq): New function.
7877         (create_pass_tab): New function.
7878         (pass_traverse): New function.
7879         (dump_one_pass): New function.
7880         (dump_pass_list): New function.
7881         (dump_passes): New function.
7882
7883 2011-06-09  David Li  <davidxl@google.com>
7884
7885         * tree-complex.c (tree_lower_complex): Gate cleanup.
7886         * tree-stdarg.c (check_all_va_list_escapes): Ditto.
7887         (execute_optimize_stdarg): Ditto.
7888         * tree-eh.c (execute_lower_eh_dispatch): Ditto.
7889         (execute_cleanup_eh_1): Ditto.
7890         (execute_cleanup_eh): Ditto.
7891         * gcse.c (gate_rtl_pre): Ditto.
7892         (execute_rtl_pre): Ditto.
7893         * except.c (finish_eh_generation): Ditto.
7894         (convert_to_eh_region_ranges): Ditto.
7895         * cprop.c (one_cprop_pass): Ditto.
7896
7897 2011-06-09  Bernd Schmidt  <bernds@codesourcery.com>
7898
7899         PR target/48673
7900         * config/ia64/ia64.c (ia64_reorg): Clear BB_DISABLE_SCHEDULE flag
7901         in all basic blocks.
7902
7903 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7904
7905         * config/alpha/netbsd.h (ENABLE_EXECUTE_STACK): Remove.
7906         (HAVE_ENABLE_EXECUTE_STACK): Define.
7907         * config/alpha/osf5.h (ENABLE_EXECUTE_STACK): Remove.
7908         (HAVE_ENABLE_EXECUTE_STACK): Define.
7909         * config/darwin.h (ENABLE_EXECUTE_STACK): Remove.
7910         (HAVE_ENABLE_EXECUTE_STACK): Define.
7911         * config/i386/mingw32.h (MINGW_ENABLE_EXECUTE_STACK): Remove.
7912         (ENABLE_EXECUTE_STACK): Remove.
7913         (HAVE_ENABLE_EXECUTE_STACK): Define.
7914         [IN_LIBGCC2]: Don't include <windows.h>.
7915         * config/i386/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
7916         (HAVE_ENABLE_EXECUTE_STACK): Define.
7917         * config/i386/netbsd64.h (ENABLE_EXECUTE_STACK): Remove.
7918         (HAVE_ENABLE_EXECUTE_STACK): Define.
7919         * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): Remove.
7920         * config/openbsd.h (ENABLE_EXECUTE_STACK): Remove.
7921         (HAVE_ENABLE_EXECUTE_STACK): Define.
7922         * config/sol2.h (ENABLE_EXECUTE_STACK): Remove.
7923         (HAVE_ENABLE_EXECUTE_STACK): Define.
7924         * config/sparc/freebsd.h (ENABLE_EXECUTE_STACK): Remove.
7925         (HAVE_ENABLE_EXECUTE_STACK): Define.
7926         * config/sparc/netbsd-elf.h (ENABLE_EXECUTE_STACK): Remove.
7927         (HAVE_ENABLE_EXECUTE_STACK): Define.
7928         * config/alpha/alpha.c (alpha_trampoline_init): Test
7929         HAVE_ENABLE_EXECUTE_STACK.
7930         * config/i386/i386.c (ix86_trampoline_init): Likewise.
7931         * config/sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
7932         (sparc64_initialize_trampoline): Likewise.
7933         * libgcc2.c [L_enable_execute_stack]: Remove.
7934         * system.h (ENABLE_EXECUTE_STACK): Poison.
7935         * doc/tm.texi.in (Trampolines, ENABLE_EXECUTE_STACK): Remove.
7936         * doc/tm.texi: Regenerate.
7937         * Makefile.in (LIBGCC2_CFLAGS): Add -fbuilding-libgcc.
7938
7939 2011-06-09  Jakub Jelinek  <jakub@redhat.com>
7940
7941         PR middle-end/49308
7942         * dce.c (reset_unmarked_insns_debug_uses): Avoid shadowing insn
7943         variable.  After resetting and rescanning insn continue with previous
7944         statement.
7945
7946 2011-06-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7947
7948         * configure.ac (gcc_cv_as_hidden): Enable on *-*-darwin*.
7949         (gcc_cv_ld_hidden): Likewise.
7950         * configure: Regenerate.
7951         * config/i386/i386.c (USE_HIDDEN_LINKONCE): Remove TARGET_MACHO.
7952         (ix86_stack_protect_fail): Mark unused.
7953         (TARGET_STACK_PROTECT_FAIL) [TARGET_MACHO]: Don't redefine.
7954         * config/rs6000/rs6000.c (rs6000_assemble_visibility)
7955         [TARGET_MACHO]: Don't define.
7956         (TARGET_ASM_ASSEMBLE_VISIBILITY): Likewise.
7957         (TARGET_STACK_PROTECT_FAIL): Likewise.
7958         (rs6000_stack_protect_fail): Mark unused.
7959         * dwarf2asm.c (dw2_output_indirect_constant_1): Mark decl hidden if
7960         USE_LINKONCE_INDIRECT.  Don't emit .hidden expicitly.
7961
7962 2011-06-08  Andi Kleen  <ak@linux.intel.com>
7963
7964         * varasm.c (get_section): Print location of other conflict
7965         for section conflicts.
7966
7967 2011-06-08  Andi Kleen  <ak@linux.intel.com>
7968
7969         * config/i386/driver-i386.c (host_detect_local_cpu):
7970         Add model 0x2d Intel CPU.
7971
7972 2011-06-08  Andi Kleen  <ak@linux.intel.com>
7973
7974         * reginfo.c (global_regs_decl): Add.
7975         (globalize_reg): Add decl parameter. Compute location.  Pass location
7976         to warnings and add inform. Store decl in global_regs_decl.
7977         * rtl.h (globalize_reg): Update prototype.
7978         * varasm.c (make_decl_rtl): Pass decl to globalize_reg().
7979
7980 2011-06-09  Mingjie Xing  <mingjie.xing@gmail.com>
7981
7982         * treestruct.def (TS_TYPE_DECL): Fix the printable name typo.
7983
7984 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
7985
7986         PR target/49305
7987         * config/sh/predicates.md (general_movsrc_operand): Check
7988         mode for memory with indexed address for QI and HImode.
7989         (general_movdst_operand): Likewise.
7990
7991 2011-06-09  Nicola Pero  <nicola.pero@meta-innovation.com>
7992
7993         * doc/objc.texi (Traditional GNU Objective-C runtime API): Updated.
7994
7995 2011-06-08  Alexandre Oliva  <aoliva@redhat.com>
7996
7997         * tree-flow-inline.h (op_iter_init): Reject GIMPLE_PHI stmts.
7998         (num_ssa_operands): Likewise.
7999         (op_iter_init_phiuse): Forward-declare.
8000         (delink_stmt_imm_use): Iterate with FOR_EACH_PHI_OR_STMT_USE.
8001
8002 2011-06-08  Nick Clifton  <nickc@redhat.com>
8003
8004         * doc/invoke.texi (ARM Options): Update description of
8005         -mthumb-interwork.
8006
8007 2011-06-08  H.J. Lu  <hongjiu.lu@intel.com>
8008
8009         * config/i386/driver-i386.c (host_detect_local_cpu): Support
8010         unknown Intel family 0x6 CPUs.
8011
8012 2011-06-08  Martin Jambor  <mjambor@suse.cz>
8013
8014         * tree-sra.c (mark_rw_status): Removed.
8015         (analyze_access_subtree): New parameter parent instead of
8016         mark_read and mark_write, propagate from that.
8017
8018 2011-06-08  Julian Brown  <julian@codesourcery.com>
8019
8020         * config/arm/arm.c (arm_libcall_uses_aapcs_base): Use correct ABI
8021         for double-precision helper functions in hard-float mode if only
8022         single-precision arithmetic is supported in hardware.
8023
8024 2011-06-08  Alexander Monakov  <amonakov@ispras.ru>
8025
8026         PR rtl-optimization/49303
8027         * sel-sched.c (move_op): Use correct type for 'res'.  Verify that
8028         code_motion_path_driver returned 0 or 1.
8029         (sel_region_finish): Clear h_d_i_d.
8030
8031 2011-06-08  Kaz Kojima  <kkojima@gcc.gnu.org>
8032
8033         * config/sh/sh.c (prepare_move_operands): Set pic register
8034         appropriately for global and local dynamic tls models even
8035         if flag_pic is unset.
8036
8037 2011-06-07  Jason Merrill  <jason@redhat.com>
8038
8039         * pretty-print.h (ATTRIBUTE_GCC_PPDIAG): Use GCC_DIAG_STYLE if set.
8040
8041 2011-06-07  Xinliang David Li  <davidxl@google.com>
8042         * passes.c (enable_disable_pass): Handle assembler name.
8043         (is_pass_explicitly_enabled_or_disabled): Ditto.
8044
8045 2011-06-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8046
8047         PR tree-optimization/48497
8048         * doc/sourcebuild.texi (Directives, dg-additional-options): Document.
8049
8050 2011-06-07  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8051
8052         PR tree-optimization/46728
8053         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Change FIXME
8054         to use gimple_val_nonnegative_real_p.
8055         * gimple-fold.c (gimple_val_nonnegative_real_p): New function.
8056         * gimple.h (gimple_val_nonnegative_real_p): New declaration.
8057
8058 2011-06-07  H.J. Lu  <hongjiu.lu@intel.com>
8059
8060         * config/i386/i386.md (*movsf_internal): Optimize AVX check.
8061
8062 2011-06-07  Sergey Grechanik  <mouseentity@ispras.ru>
8063
8064         * config/arm/arm.c (coproc_secondary_reload_class): Return NO_REGS for
8065         constant vectors.
8066
8067 2011-06-07  Richard Guenther  <rguenther@suse.de>
8068
8069         * stor-layout.c (initialize_sizetypes): Initialize all
8070         sizetypes based on target definitions.
8071         (set_sizetype): Remove.
8072         * tree.c (build_common_tree_nodes): Do not call set_sizetype.
8073         * tree.h (set_sizetype): Remove.
8074
8075 2011-06-07  Nick Clifton  <nickc@redhat.com>
8076
8077         * config.gcc: Unify V850 architecture options and add support for
8078         newer V850 architectures.
8079         * config/v850/t-v850e: Delete.
8080
8081 2011-06-07  Richard Guenther  <rguenther@suse.de>
8082
8083         * tree.c (build_common_tree_nodes): Also initialize size_type_node.
8084         Call set_sizetype from here.
8085
8086 2011-06-07  Andrew Stubbs  <ams@codesourcery.com>
8087
8088         * config/arm/arm.md (*maddhidi4tb, *maddhidi4tt): New define_insns.
8089         (*maddhisi4tb, *maddhisi4tt): New define_insns.
8090
8091 2011-06-07  Bernd Schmidt  <bernds@codesourcery.com>
8092             Andrew Stubbs  <ams@codesourcery.com>
8093
8094         * simplify-rtx.c (simplify_unary_operation_1): Canonicalize widening
8095         multiplies.
8096         * doc/md.texi (Canonicalization of Instructions): Document widening
8097         multiply canonicalization.
8098
8099 2011-06-07  Jakub Jelinek  <jakub@redhat.com>
8100
8101         PR gcov-profile/49299
8102         * value-prof.c (gimple_ic): Don't assume icall has a fallthru edge.
8103
8104 2011-06-07  Ira Rosen  <ira.rosen@linaro.org>
8105
8106         * tree-vectorizer.h (vect_recog_func_ptr): Make last argument to be
8107         a pointer.
8108         * tree-vect-patterns.c (vect_recog_widen_sum_pattern,
8109         vect_recog_widen_mult_pattern, vect_recog_dot_prod_pattern,
8110         vect_recog_pow_pattern): Likewise.
8111         (vect_pattern_recog_1): Remove declaration.
8112         (widened_name_p): Remove declaration.  Add new argument to specify
8113         whether to check that both types are either signed or unsigned.
8114         (vect_recog_widen_mult_pattern): Update documentation.  Handle
8115         unsigned patterns and multiplication by constants.
8116         (vect_pattern_recog_1): Update vect_recog_func references.  Use
8117         statement information from the statement returned from pattern
8118         detection functions.
8119         (vect_pattern_recog): Update vect_recog_func reference.
8120         * tree-vect-stmts.c (vectorizable_type_promotion): For widening
8121         multiplication by a constant use the type of the other operand.
8122
8123 2011-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
8124
8125         PR rtl-optimization/49145
8126         * combine.c (make_compound_operation): Handle ZERO_EXTEND specially.
8127
8128 2011-06-06  Jakub Jelinek  <jakub@redhat.com>
8129
8130         PR debug/49262
8131         * dwarf2out.c (native_encode_initializer): Decrement count in each
8132         iteration.
8133
8134         PR debug/49294
8135         * dwarf2out.c (mem_loc_descriptor) <do_shift>: Give up for
8136         non-MODE_INT modes.
8137
8138         PR c++/49264
8139         * gimple-fold.c (fold_stmt_1): Don't try to fold *& on the lhs
8140         if stmt folded into nothing.
8141         * tree-inline.c (fold_marked_statements): If a builtin at the end of
8142         a bb folded into nothing, just update cgraph edges and move to next bb.
8143         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Allow new_stmt
8144         to be NULL.  Don't compute count and frequency if new_call is NULL.
8145
8146 2011-06-04  Diego Novillo  <dnovillo@google.com>
8147
8148         * Makefile.in (lto-compress.o): Add dependency on LTO_STREAMER_H.
8149         (cgraph.o): Likewise.
8150         (cgraphunit.o): Likewise.
8151         * cgraphunit.c: Include lto-streamer.h
8152         (cgraph_finalize_compilation_unit): Call lto_streamer_hooks_init
8153         if LTO is enabled.
8154         * lto-streamer-in.c (unpack_value_fields): Call
8155         streamer_hooks.unpack_value_fields if set.
8156         (lto_materialize_tree): For unhandled nodes, first try to
8157         call lto_streamer_hooks.alloc_tree, if it exists.
8158         (lto_input_ts_decl_common_tree_pointers): Move reading of
8159         DECL_INITIAL to lto_streamer_read_tree.
8160         (lto_read_tree): Call lto_streamer_hooks.read_tree if set.
8161         (lto_streamer_read_tree): New.
8162         (lto_reader_init): Rename from lto_init_reader.
8163         Move initialization code to lto/lto.c.
8164         * lto-streamer-out.c (pack_value_fields): Call
8165         streamer_hooks.pack_value_fields if set.
8166         (lto_output_tree_ref): For tree nodes that are not normally indexable,
8167         call streamer_hooks.indexable_with_decls_p before giving up.
8168         (lto_output_ts_decl_common_tree_pointers): Move handling
8169         for FUNCTION_DECL and TRANSLATION_UNIT_DECL to lto_streamer_write_tree.
8170         (lto_output_tree_header): Call streamer_hooks.is_streamable instead of
8171         lto_is_streamable.  Call lto_streamer_hooks.output_tree_header if set.
8172         (lto_write_tree): Call lto_streamer_hooks.write_tree if set.
8173         (lto_streamer_write_tree): New.
8174         (lto_output): Call lto_streamer_init directly.
8175         (lto_writer_init): Remove.
8176         * lto-streamer.c (streamer_hooks): New.
8177         (lto_streamer_cache_create): Call streamer_hooks.preload_common_nodes
8178         instead of lto_preload_common_nodes.
8179         (lto_is_streamable): Move from lto-streamer.h
8180         (lto_streamer_hooks_init): New.
8181         (streamer_hooks): New.
8182         (streamer_hooks_init): New.
8183         * lto-streamer.h (struct output_block): Forward declare.
8184         (struct lto_input_block): Likewise.
8185         (struct data_in): Likewise.
8186         (struct bitpack_d): Likewise.
8187         (struct streamer_hooks): Declare.
8188         (streamer_hooks): Declare.
8189         (lto_streamer_hooks_init): Declare.
8190         (lto_streamer_write_tree): Declare.
8191         (lto_streamer_read_tree): Declare.
8192         (streamer_hooks_init): Declare.
8193         (lto_is_streamable): Move to lto-streamer.c
8194
8195 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8196
8197         * longlong.h (smul_ppmm): The resulting register pair contains the
8198         higher order word first.
8199
8200 2011-06-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8201
8202         PR tree-optimization/46728
8203         * builtins.c (powi_table): Remove.
8204         (powi_lookup_cost): Remove.
8205         (powi_cost): Remove.
8206         (expand_powi_1): Remove.
8207         (expand_powi): Remove.
8208         (expand_builtin_pow_root): Remove.
8209         (expand_builtin_pow): Remove.
8210         (expand_builtin_powi): Eliminate handling of constant exponent.
8211         (expand_builtin): Use expand_builtin_mathfn_2 for BUILT_IN_POW.
8212
8213 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
8214
8215         * cprop.c (local_cprop_pass): Don't set changed for debug insns.
8216
8217 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
8218
8219         * dce.c (reset_unmarked_insns_debug_uses): New.
8220         (delete_unmarked_insns): Skip debug insns.
8221         (prescan_insns_for_dce): Likewise.
8222         (rest_of_handle_ud_dce): Reset debug uses of removed sets.
8223         * reg-stack.c (subst_stack_regs_in_debug_insn): Signal when no
8224         active reg can be found.
8225         (subst_all_stack_regs_in_debug_insn): New.  Reset debug insn then.
8226         (convert_regs_1): Use it.
8227
8228 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
8229
8230         * tree-pretty-print.c (dump_function_header): Add flags.
8231         Don't dump decl_uid with nouid.
8232         * tree-pretty-print.h (dump_function_header): Adjust.
8233         * final.c (rest_of_clean_state): Pass dump_flags on, with nouid.
8234         * passes.c (pass_init_dump_file): Pass dump_flags on.
8235         * tree-cfg.c (gimple_dump_cfg): Pass flags on.
8236
8237 2011-06-06  Alexandre Oliva  <aoliva@redhat.com>
8238
8239         PR bootstrap/49270
8240         * ipa-inline-analysis.c (read_predicate): Initialize all clauses.
8241
8242 2011-06-06  Mikael Pettersson  <mikpe@it.uu.se>
8243
8244         PR tree-optimization/49243
8245         * calls.c (setjmp_call_p): Also check if fndecl has the
8246         returns_twice attribute.
8247
8248 2011-06-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8249
8250         * config/mips/iris6.h (ENDFILE_SPEC): Use crtfastmath.o if
8251         -ffast-math etc.
8252
8253 2011-06-06  Richard Henderson  <rth@redhat.com>
8254             Georg-Johann Lay  <avr@gjlay.de>
8255
8256         PR target/42210
8257         * config/avr/predicates.md (const1_operand, const_0_to_7_operand):
8258         New predicates.
8259         * config/avr/avr.md ("insv"): New insn expander.
8260         ("*movbitqi.1-6.a", "*movbitqi.1-6.b", "*movbitqi.0", "*insv.io",
8261         "*insv.not.io", "*insv.reg"): New insns.
8262
8263 2011-06-06  Hans-Peter Nilsson  <hp@bitrange.com>
8264
8265         PR target/49285
8266         * config/mmix/mmix.md ("truncdfsf2", "extendsfdf2"): Correct predicate
8267         to nonimmediate_operand from memory_operand for the operand that is to
8268         be forced to memory by the expander.  Lose the constraints.
8269
8270 2011-06-05  Eric Botcazou  <ebotcazou@adacore.com>
8271
8272         * config/sparc/sparc.c (output_return): Fix thinko in the output of an
8273         EH return when delayed branches are disabled.
8274
8275 2011-06-05  Uros Bizjak  <ubizjak@gmail.com>
8276
8277         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>:
8278         Remove MODE_TI handling.  Remove SSE1 handling in attribute "mode"
8279         calculation.
8280         (*movdf_internal_rex64) <case 6,7,8>: Remove MODE_TI handling.
8281         Simplify MODE_V1DF and MODE_V2SF handling.
8282         (*movsf_internal): Remove x constraint from alternative 7 of operand 1.
8283         Simplify MODE_SF handling.
8284
8285 2011-06-04  Jan Hubicka  <jh@suse.cz>
8286
8287         PR tree-optimization/48893
8288         PR tree-optimization/49091
8289         PR tree-optimization/49179
8290         * ipa-inline-analysis.c (evaluate_conditions_for_known_args):
8291         Bounds check.
8292
8293 2011-06-04  Jan Hubicka  <jh@suse.cz>
8294
8295         PR lto/48954
8296         * lto-cgraph.c (output_node_opt_summary): Handle NULL skip args
8297         bitmaps.
8298
8299 2011-06-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
8300
8301         * doc/invoke.texi: Document -Wdelete-non-virtual-dtor.
8302
8303 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
8304
8305         PR target/49281
8306         * config/i386/i386.md (*lea_general_4): Require INTVAL (operands[3])
8307         to be strictly smaller than 1 << shiftcount.
8308
8309 2011-06-04  Jan Hubicka  <jh@suse.cz>
8310
8311         PR tree-optimize/48929
8312         * ipa-inline-analysis.c (remap_edge_predicates): Fix handling
8313         of empty predicate.
8314
8315 2011-06-04  Alexandre Oliva  <aoliva@redhat.com>
8316
8317         PR debug/48333
8318         * calls.c (emit_call_1): Prefer the __builtin declaration of
8319         builtin functions.
8320
8321 2011-06-03   Diego Novillo  <dnovillo@google.com>
8322
8323         * lto-streamer-in.c (unpack_value_fields): Remove unneeded asserts.
8324         (lto_input_tree_pointers): Likewise.
8325         * lto-streamer-out.c (pack_value_fields): Likewise.
8326         (lto_output_tree_pointers): Likewise.
8327         * lto-streamer.h (lto_is_streamable): Add check for OMP_CLAUSE
8328         and OPTIMIZATION_NODE.
8329
8330 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8331
8332         * config/alpha/linux.h (MD_UNWIND_SUPPORT): Remove.
8333         * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Remove.
8334         * config/alpha/vms.h (MD_UNWIND_SUPPORT): Remove.
8335         * config/bfin/linux.h (MD_UNWIND_SUPPORT): Remove.
8336         * config/bfin/uclinux.h (MD_UNWIND_SUPPORT): Remove.
8337         * config/i386/linux.h (MD_UNWIND_SUPPORT): Remove.
8338         * config/i386/linux64.h (MD_UNWIND_SUPPORT): Remove.
8339         * config/i386/sol2.h (MD_UNWIND_SUPPORT): Remove.
8340         * config/i386/mingw32.h (MD_UNWIND_SUPPORT): Remove.
8341         * config/ia64/linux.h (MD_UNWIND_SUPPORT): Remove.
8342         * config/ia64/vms.h (MD_UNWIND_SUPPORT): Remove.
8343         * config/m68k/linux.h (MD_UNWIND_SUPPORT): Remove.
8344         * config/mips/linux.h (MD_UNWIND_SUPPORT): Remove.
8345         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): Remove.
8346         * config/pa/pa32-linux.h (MD_UNWIND_SUPPORT): Remove.
8347         * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Remove.
8348         * config/rs6000/linux.h (MD_UNWIND_SUPPORT): Remove.
8349         * config/rs6000/linux64.h (MD_UNWIND_SUPPORT): Remove.
8350         * config/s390/linux.h (MD_UNWIND_SUPPORT): Remove.
8351         * config/s390/tpf.h (MD_UNWIND_SUPPORT): Remove.
8352         * config/sh/linux.h (MD_UNWIND_SUPPORT): Remove.
8353         * config/sparc/linux.h (MD_UNWIND_SUPPORT): Remove.
8354         * config/sparc/linux64.h (MD_UNWIND_SUPPORT): Remove.
8355         * config/sparc/sol2.h (MD_UNWIND_SUPPORT): Remove.
8356         * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Remove.
8357         * config/alpha/linux-unwind.h: Move to ../libgcc/config/alpha.
8358         * config/alpha/osf5-unwind.h: Move to ../libgcc/config/alpha.
8359         * config/alpha/vms-unwind.h: Move to ../libgcc/config/alpha.
8360         * config/bfin/linux-unwind.h: Move to ../libgcc/config/bfin.
8361         * config/i386/linux-unwind.h: Move to ../libgcc/config/i386.
8362         * config/i386/sol2-unwind.h: Move to ../libgcc/config/i386.
8363         * config/i386/w32-unwind.h: Move to ../libgcc/config/i386.
8364         * config/ia64/linux-unwind.h: Move to ../libgcc/config/ia64.
8365         * config/ia64/vms-unwind.h: Move to ../libgcc/config/ia64.
8366         * config/m68k/linux-unwind.h: Move to ../libgcc/config/m68k.
8367         * config/mips/linux-unwind.h: Move to ../libgcc/config/mips.
8368         * config/pa/hpux-unwind.h: Move to ../libgcc/config/pa.
8369         * config/pa/linux-unwind.h: Move to ../libgcc/config/pa.
8370         * config/rs6000/darwin-unwind.h: Move to ../libgcc/config/rs6000.
8371         * config/rs6000/linux-unwind.h: Move to ../libgcc/config/rs6000.
8372         * config/s390/linux-unwind.h: Move to ../libgcc/config/s390.
8373         * config/s390/tpf-unwind.h: Move to ../libgcc/config/s390.
8374         * config/sh/linux-unwind.h: Move to ../libgcc/config/sh.
8375         * config/sparc/linux-unwind.h: Move to ../libgcc/config/sparc.
8376         * config/sparc/sol2-unwind.h: Move to ../libgcc/config/sparc.
8377         * config/xtensa/linux-unwind.h: Move to ../libgcc/config/xtensa.
8378         * config/darwin9.h (DARWIN_LIBSYSTEM_HAS_UNWIND): Remove.
8379         * system.h (MD_UNWIND_SUPPORT): Poison.
8380         * doc/tm.texi.in (Exception Handling, MD_UNWIND_SUPPORT): Remove.
8381         * doc/tm.texi: Regenerate.
8382         * unwind-dw2.c: Include md-unwind-support.h instead of
8383         MD_UNWIND_SUPPORT.
8384         * config/ia64/unwind-ia64.c: Likewise.
8385         * config/xtensa/unwind-dw2-xtensa.c: Likewise.
8386
8387 2011-06-03  Jack Howarth  <howarth@bromo.med.uc.edu>
8388
8389         * varpool.c (varpool_extra_name_alias): Return NULL, not false.
8390
8391 2011-06-03  Richard Henderson  <rth@redhat.com>
8392             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8393
8394         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]
8395         (sigill_hdlr): Correct insn, insn size.
8396         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Use movaps.
8397
8398 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8399
8400         * config.gcc (mips-sgi-irix6.5*): Set tmake_file to mips/t-irix6
8401         t-slibgcc-dummy.
8402         * config/mips/irix-crti.asm: Move to ../libgcc/config/mips/irix-crti.S.
8403         * config/mips/irix-crtn.asm: Move to ../libgcc/config/mips/irix-crtn.S.
8404         * config/mips/t-iris: Remove.
8405         * config/mips/t-irix6: New file.
8406         * config/mips/t-slibgcc-irix: Move to ../libgcc/config/mips.
8407
8408 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8409
8410         * Makefile.in (LIB2ADDEHDEP): Remove.
8411         * config/arm/t-bpabi (LIB2ADDEHDEP): Remove.
8412         * config/arm/t-symbian (LIB2ADDEHDEP): Remove.
8413         * config/picochip/t-picochip (LIB2ADDEHDEP): Remove.
8414         * config/t-darwin (LIB2ADDEHDEP): Remove.
8415         * config/t-freebsd (LIB2ADDEHDEP): Remove.
8416         * config/t-linux (LIB2ADDEHDEP): Remove.
8417
8418 2011-06-03  Diego Novillo  <dnovillo@google.com>
8419
8420         * lto-streamer-in.c (get_resolution): Move to lto/lto.c.
8421         (lto_register_var_decl_in_symtab): Likewise.
8422         (lto_register_function_decl_in_symtab): Likewise.
8423         (lto_read_tree): Move VAR_DECL and FUNCTION_DECL registration
8424         logic to uniquify_nodes.
8425
8426 2011-06-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8427
8428         * config/alpha/t-osf5: Remove.
8429         * config/alpha/t-osf-pthread: Remove.
8430         * config.gcc (alpha*-dec-osf5.1*): Set tmake_file to t-slibgcc-dummy.
8431         * mkmap-flat.awk: Handle osf_export for Tru64 UNIX linker -input file.
8432
8433 2011-06-03  Julian Brown  <julian@codesourcery.com>
8434
8435         * config/arm/arm-cores.def (strongarm, strongarm110, strongarm1100)
8436         (strongarm1110): Use strongarm tuning.
8437         * config/arm/arm-protos.h (tune_params): Add max_insns_skipped field.
8438         * config/arm/arm.c (arm_strongarm_tune): New.
8439         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
8440         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a5_tune)
8441         (arm_cortex_a9_tune, arm_fa726te_tune): Add max_insns_skipped field
8442         setting, using previous defaults or 1 for Cortex-A5.
8443         (arm_option_override): Set max_insns_skipped from current tuning.
8444
8445 2011-06-03  Nathan Sidwell  <nathan@codesourcery.com>
8446
8447         * doc/install.texi (Options specification): Document --with-specs.
8448
8449 2011-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8450
8451         * config/arm/neon.md (orndi3_neon): Actually split it.
8452
8453 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
8454
8455         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): Bump default to 10.
8456         * var-tracking.c (reverse_op): Limite recurse depth to 5.
8457
8458 2011-06-02  Alexandre Oliva  <aoliva@redhat.com>
8459
8460         PR debug/47590
8461         * target.def (delay_sched2, delay_vartrack): New.
8462         * doc/tm.texi.in: Update.
8463         * doc/tm.texi: Rebuild.
8464         * sched-rgn.c (gate_handle_sched2): Fail if delay_sched2.
8465         * var-tracking.c (gate_handle_var_tracking): Likewise.
8466         * config/bfin/bfin.c (bfin_flag_schedule_insns2): Drop.
8467         (bfin_flag_var_tracking): Drop.
8468         (output_file_start): Don't save and override flag_var_tracking.
8469         (bfin_option_override): Ditto flag_schedule_insns_after_reload.
8470         (bfin_reorg): Test original variables.
8471         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
8472         * config/ia64/ia64.c (ia64_flag_schedule_insns2): Drop.
8473         (ia64_flag_var_tracking): Drop.
8474         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
8475         (ia64_file_start): Don't save and override flag_var_tracking.
8476         (ia64_override_options_after_change): Ditto
8477         flag_schedule_insns_after_reload.
8478         (ia64_reorg): Test original variables.
8479         * config/picochip/picochip.c (picochip_flag_schedule_insns2): Drop.
8480         (picochip_flag_var_tracking): Drop.
8481         (TARGET_DELAY_SCHED2, TARGET_DELAY_VARTRACK): Define.
8482         (picochip_option_override): Don't save and override
8483         flag_schedule_insns_after_reload.
8484         (picochip_asm_file_start): Ditto flag_var_tracking.
8485         (picochip_reorg): Test original variables.
8486         * config/spu/spu.c (spu_flag_var_tracking): Drop.
8487         (TARGET_DELAY_VARTRACK): Define.
8488         (spu_var_tracking): New.
8489         (spu_machine_dependent_reorg): Call it.
8490         (asm_file_start): Don't save and override flag_var_tracking.
8491
8492 2011-06-02  Kaz Kojima  <kkojima@gcc.gnu.org>
8493
8494         PR target/49163
8495         * config/sh/predicates.md (general_movsrc_operand): Return 0
8496         for memory and memory subreg of which address is an invalid
8497         indexed address for QI and HImode.
8498         (general_movdst_operand): Likewise.
8499
8500 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
8501
8502         * cse.c (cse_find_path): Refine change to exclude EDGE_ABNORMAL_CALL
8503         edges only, when there is a non-local label in the function.
8504         * postreload-gcse.c (bb_has_well_behaved_predecessors): Likewise.
8505
8506 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
8507
8508         * config/i386/constraints.md (Y3): New register constraint.
8509         * config/i386/sse.md (*vec_interleave_highv2df): Merge with
8510         *sse3_interleave_highv2df and *sse2_interleave_highv2df.
8511         (*vec_interleave_lowv2df): Merge with *sse3_interleave_lowv2df and
8512         *sse2_interleave_lowv2df.
8513
8514 2011-06-02  Julian Brown  <julian@codesourcery.com>
8515
8516         * config/arm/arm-cores.def (cortex-a5): Use cortex_a5 tuning.
8517         * config/arm/arm.c (arm_cortex_a5_branch_cost): New.
8518         (arm_cortex_a5_tune): New.
8519
8520 2011-06-02  Julian Brown  <julian@codesourcery.com>
8521
8522         * config/arm/arm-protos.h (tune_params): Add branch_cost hook.
8523         * config/arm/arm.c (arm_default_branch_cost): New.
8524         (arm_slowmul_tune, arm_fastmul_tune, arm_xscale_tune, arm_9e_tune)
8525         (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a9_tune)
8526         (arm_fa726_tune): Set branch_cost field using
8527         arm_default_branch_cost.
8528         * config/arm/arm.h (BRANCH_COST): Use branch_cost hook from
8529         current_tune structure.
8530         * dojump.c (tm_p.h): Include file.
8531
8532 2011-06-02  Julian Brown  <julian@codesourcery.com>
8533
8534         * config/arm/arm-cores.def (arm1156t2-s, arm1156t2f-s): Use v6t2
8535         tuning.
8536         (cortex-a5, cortex-a8, cortex-a15, cortex-r4, cortex-r4f, cortex-m4)
8537         (cortex-m3, cortex-m1, cortex-m0): Use cortex tuning.
8538         * config/arm/arm-protos.h (tune_params): Add prefer_constant_pool
8539         field.
8540         * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune)
8541         (arm_xscale_tune, arm_9e_tune, arm_cortex_a9_tune)
8542         (arm_fa726te_tune): Add prefer_constant_pool setting.
8543         (arm_v6t2_tune, arm_cortex_tune): New.
8544         * config/arm/arm.h (TARGET_USE_MOVT): Make dependent on
8545         prefer_constant_pool setting.
8546
8547 2011-06-02  Uros Bizjak  <ubizjak@gmail.com>
8548
8549         * config/i386/i386.c (standard_sse_constant_p) <case 1>: Simplify
8550         switch statement.
8551         * config/i386/i386.md (*movdf_internal_rex64) <case 8,9,10>: Ditto.
8552         (*movdf_internal) <case 6,7,8>: Ditto.
8553
8554         * config/i386/constraints.md (Y4): New register constraint.
8555         * config/i386/sse.md (vec_set<mode>_0): Merge with
8556         *vec_set<mode>_0_sse4_1 and *vec_set<mode>_0_sse2.
8557         (*vec_extractv2di_1): Merge from *vec_extractv2di_1_sse2 and
8558         *vec_extractv2di_1_sse.
8559         (*vec_concatv2di_rex64): Merge from *vec_concatv2di_rex64_sse4_1
8560         and *vec_concatv2di_rex64_sse.
8561
8562 2011-06-02  Stuart Henderson  <shenders@gcc.gnu.org>
8563
8564         PR target/48807
8565         * config/bfin/bfin.c (bfin_function_ok_for_sibcall): Check return value
8566         of cgraph_local_info for null before attempting to use it.
8567
8568 2011-06-02  Eric Botcazou  <ebotcazou@adacore.com>
8569
8570         * function.h (struct stack_usage): Remove dynamic_alloc_count field.
8571         (current_function_dynamic_alloc_count): Delete.
8572         * builtins.c (expand_builtin_setjmp_setup): Do not set calls_setjmp.
8573         (expand_builtin_nonlocal_goto): Remove obsolete comment.
8574         (expand_builtin_update_setjmp_buf): Remove dead code.
8575         * cse.c (cse_find_path): Do not follow a single abnormal incoming edge.
8576         * explow.c (allocate_dynamic_stack_space): Remove SETJMP_VIA_SAVE_AREA
8577         support.
8578         * function.c (instantiate_virtual_regs): Likewise.
8579         * postreload-gcse.c (bb_has_well_behaved_predecessors): Return false
8580         for a block with a single abnormal incoming edge.
8581         * config/sparc/sparc.h (STACK_SAVEAREA_MODE): Define.
8582         (SETJMP_VIA_SAVE_AREA): Delete.
8583         * config/sparc/sparc-protos.h (load_got_register): Declare.
8584         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
8585         (load_got_register): Make global.
8586         (sparc_frame_pointer_required): Add 'static'.
8587         (sparc_can_eliminate): Likewise.  Call sparc_frame_pointer_required.
8588         (sparc_builtin_setjmp_frame_value): New function.
8589         * config/sparc/sparc.md (UNSPECV_SETJMP): Remove.
8590         (save_stack_nonlocal): New expander.
8591         (restore_stack_nonlocal): Likewise.
8592         (nonlocal_goto): Remove modes, adjust predicates and reimplement.
8593         (nonlocal_goto_internal): New insn.
8594         (goto_handler_and_restore): Delete.
8595         (builtin_setjmp_setup): Likewise.
8596         (do_builtin_setjmp_setup): Likewise.
8597         (setjmp): Likewise.
8598         (builtin_setjmp_receiver): New expander.
8599
8600 2011-06-01  David Li  <davidxl@google.com>
8601
8602         PR middle-end/49261
8603         * tree-pretty-print.c (dump_function_header): Format cleanup.
8604
8605 2011-06-01  Kaz Kojima  <kkojima@gcc.gnu.org>
8606
8607         PR target/49238
8608         * config/sh/sh.c (expand_cbranchdi4): Use a scratch register if
8609         needed when original operands are used for msw_skip comparison.
8610
8611 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
8612
8613         PR debug/49250
8614         * var-tracking.c (add_uses, add_stores): Don't call
8615         cselib_subst_to_values on ENTRY_VALUE.
8616
8617 2011-06-01  Diego Novillo  <dnovillo@google.com>
8618
8619         * lto-streamer-out.c (lto_output_ts_decl_with_vis_tree_pointers): Call
8620         output_record_start with LTO_null instead of output_zero.
8621         (lto_output_ts_binfo_tree_pointers): Likewise.
8622         (lto_output_tree): Likewise.
8623         (output_eh_try_list): Likewise.
8624         (output_eh_region): Likewise.
8625         (output_eh_lp): Likewise.
8626         (output_eh_regions): Likewise.
8627         (output_bb): Likewise.
8628         (output_function): Likewise.
8629         (output_unreferenced_globals): Likewise.
8630         * lto-streamer.h (enum LTO_tags): Reserve MAX_TREE_CODES
8631         instead of NUM_TREE_CODES.
8632         (lto_tag_is_tree_code_p): Check max value against MAX_TREE_CODES.
8633         (lto_output_int_in_range): Change << to >> when shifting VAL.
8634
8635 2011-06-01  Diego Novillo  <dnovillo@google.com>
8636
8637         * lto-streamer-out.c (lto_output_ts_decl_non_common_tree_pointers):
8638         Remove assertion for DECL_SAVED_TREE in FUNCTION_DECL nodes.
8639
8640 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
8641
8642         PR target/45074
8643         * optabs.h (valid_multiword_target_p): Declare.
8644         * expmed.c (extract_bit_field_1): Check valid_multiword_target_p when
8645         doing multi-word operations.
8646         * optabs.c (expand_binop): Likewise.
8647         (expand_doubleword_bswap): Likewise.
8648         (expand_absneg_bit): Likewise.
8649         (expand_unop): Likewise.
8650         (expand_copysign_bit): Likewise.
8651         (multiword_target_p): New function.
8652
8653 2011-06-01  Richard Sandiford  <rdsandiford@googlemail.com>
8654
8655         PR rtl-optimization/48830
8656         PR rtl-optimization/48808
8657         PR rtl-optimization/48792
8658         * reload.c (push_reload): Check contains_reg_of_mode.
8659         * reload1.c (strip_paradoxical_subreg): New function.
8660         (gen_reload_chain_without_interm_reg_p): Use it to handle
8661         paradoxical subregs.
8662         (emit_output_reload_insns, gen_reload): Likewise.
8663
8664 2011-06-01  David Li  <davidxl@google.com>
8665
8666         * predict.c : Change pass name
8667         * ipa.c: Ditto.
8668         * dce.c: Ditto.
8669         * tree-profile.c: Ditto.
8670         * except.c: Ditto.
8671
8672 2011-06-01  David Li  <davidxl@google.com>
8673
8674         * tree-pretty-print.c (dump_function_header): New function.
8675         * final.c (rest_of_clean_state): Use header dumper.
8676         * tree-cfg.c (gimple_dump_cfg): Use header dumper.
8677         * passes.c (pass_init_dump_file): Use header dumper.
8678
8679 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
8680
8681         * dwarf2out.c (compare_loc_descriptor, scompare_loc_descriptor,
8682         ucompare_loc_descriptor, minmax_loc_descriptor, clz_loc_descriptor,
8683         popcount_loc_descriptor, bswap_loc_descriptor, rotate_loc_descriptor):
8684         New functions.
8685         (mem_loc_descriptor): Use them.
8686
8687         * var-tracking.c (create_entry_value): New function.
8688         (vt_add_function_parameter): Use it.
8689
8690 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8691
8692         * config/i386/crtfastmath.c [!__x86_64__ && __sun__ && __svr4__]:
8693         Include <signal.h>, <ucontext.h>.
8694         (sigill_caught): Define.
8695         (sigill_hdlr): New function.
8696         (set_fast_math) [!__x86_64__ && __sun__ && __svr4__]: Check if SSE
8697         insns can be executed.
8698         * config/sol2.h (ENDFILE_SPEC): Use crtfastmath.o if -ffast-math etc.
8699         * config/sparc/sol2.h (ENDFILE_SPEC): Remove.
8700
8701 2011-06-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8702
8703         * config/t-slibgcc-darwin: Move to ...
8704         * config/t-slibgcc-dummy: ... this.  Clarify comments.
8705         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*,
8706         powerpc-*-darwin*, powerpc64-*-darwin*): Reflect this.
8707         (i[3456x]86-*-netware*): Add t-slibgcc-dummy to tmake_file.
8708         (i[34567]86-*-rtems*): Remove extra_parts.  Use i386/t-rtems.
8709         Remove i386/t-crtstuff from tmake_file.
8710         (i[34567]86-*-solaris2*): Remove t-svr4,
8711         t-slibgcc-elf-ver, t-slibgcc-sld from tmake_file, add
8712         t-slibgcc-dummy.
8713         (sparc-*-elf*, sparc64-*-elf*): Remove tmake_file, extra_parts.
8714         (sparc-*-rtems*, sparc64-*-rtems*): Remove sparc/t-crtin,
8715         sparc/t-crtfm from tmake_file.
8716         (sparc*-*-solaris2*): Remove sparc/t-sol2, sparc/t-crtfm,
8717         t-slibgcc-elf-ver, t-slibgcc-sld, add t-slibgcc-dummy.
8718         Remove extra_parts.
8719         * config/t-sol2 (TARGET_LIBGCC2_CFLAGS): Define.
8720         * config/i386/t-nwld (SHLIB_LINK): Remove.
8721         * config/i386/t-rtems-i386: Rename to ...
8722         * config/i386/t-rtems: ... this.
8723         ($(T)crti.o, $(T)crtn.o): Remove.
8724         (FPBIT, DPBIT, LIB2FUNCS_EXTRA): Remove.
8725         (dp-bit.c, fp-bit.c, xp-bit.c): Remove.
8726         (EXTRA_MULTILIB_PARTS, LIBGCC, INSTALL_LIBGCC): Remove.
8727         * config/i386/t-sol2-10 (LIBGCC, INSTALL_LIBGCC,
8728         EXTRA_MULTILIB_PARTS): Remove.
8729         * config/sparc/t-sol2-64: Likewise.
8730         * config/sparc/t-sol2: Remove.
8731         * config/sparc/t-crtin: Remove.
8732         * config/sparc/gmon-sol2.c: Move to ../libgcc/config.
8733         * config/i386/gmon-sol2.c: Remove.
8734         * config/i386/sol2-c1.asm: Move to ../libgcc/config/i386/sol2-c1.S.
8735         * config/i386/sol2-ci.asm: Move to ../libgcc/config/i386/sol2-ci.S.
8736         * config/i386/sol2-cn.asm: Move to ../libgcc/config/i386/sol2-cn.S.
8737         * config/i386/sol2-gc1.asm: Remove.
8738         * config/sparc/sol2-c1.asm: Move to ../libgcc/config/sparc/sol2-c1.S.
8739         * config/sparc/sol2-ci.asm: Move to ../libgcc/config/sparc/sol2-ci.S.
8740         * config/sparc/sol2-cn.asm: Move to ../libgcc/config/sparc/sol2-cn.S.
8741         * config/t-slibgcc-sld: Remove.
8742
8743 2011-06-01  Jakub Jelinek  <jakub@redhat.com>
8744
8745         * dwarf2out.c (mem_loc_descriptor) <do_ucompare>: Call
8746         base_type_for_mode with op_mode instead of mode.
8747
8748 2011-06-01  Paul Brook  <paul@cpodesourcery.com>
8749
8750         * config/arm/arm-cores.def: Add cortex-r5.  Add DIV flags to
8751         Cortex-A15.
8752         * config/arm/arm-tune.md: Regenerate.
8753         * config/arm/arm-tables.opt: Regenerate.
8754         * config/arm/arm.c (FL_DIV): Rename...
8755         (FL_THUMB_DIV): ... to this.
8756         (FL_ARM_DIV): Define.
8757         (FL_FOR_ARCH7R, FL_FOR_ARCH7M): Use FL_THUMB_DIV.
8758         (arm_arch_hwdiv): Remove.
8759         (arm_arch_thumb_hwdiv, arm_arch_arm_hwdiv): New variables.
8760         (arm_issue_rate): Add cortexr5.
8761         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Set
8762         __ARM_ARCH_EXT_IDIV__.
8763         (TARGET_IDIV): Define.
8764         (arm_arch_hwdiv): Remove.
8765         (arm_arch_arm_hwdiv, arm_arch_thumb_hwdiv): New prototypes.
8766         * config/arm/arm.md (tune_cortexr4): Add cortexr5.
8767         (divsi3, udivsi3): New patterns.
8768         * config/arm/thumb2.md (divsi3, udivsi3): Remove.
8769         * doc/invoke.texi: Document ARM -mcpu=cortex-r5
8770
8771 2011-06-01  Martin Jambor  <mjambor@suse.cz>
8772
8773         * ipa-utils.c (ipa_dfs_info): New field scc_no.
8774         * ipa-utils.c (searchc): Set scc_no.
8775
8776 2011-06-01  Martin Jambor  <mjambor@suse.cz>
8777
8778         * ipa-utils.c (searchc_env): New field allow_overwritable.
8779         (searchc): do not ignore edges to overwritable nodes if indicated
8780         by env->allow_overwritable.
8781         (ipa_reduced_postorder): Set env.allow_overwritable.
8782
8783 2011-06-01  Richard Guenther  <rguenther@suse.de>
8784
8785         * tree.c (free_lang_data): Do not reset boolean_type_node nor
8786         char_type_node.
8787         * lto-streamer.c (lto_record_common_node): Take node pointer,
8788         do not register types.
8789         (lto_preload_common_nodes): Explicitly skip preloading nodes
8790         that differ between frontends.
8791
8792 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
8793
8794         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Remove vr0..vr2 from
8795         NON_FLOAT_REGS.
8796
8797 2011-05-31  Pat Haugen  <pthaugen@us.ibm.com>
8798
8799         * config/rs6000/rs6000.c (rs6000_register_move_cost): Preserve from
8800         parameter value for dump. Dump cost on outermost call only.
8801         (rs6000_memory_move_cost): Dump cost on outermost call only.
8802
8803 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
8804
8805         * dwarf2out.c (resolve_addr_in_expr): Optimize away redundant
8806         DW_OP_GNU_convert ops.
8807
8808         * cselib.c (promote_debug_loc): Allow l->next non-NULL for
8809         cselib_preserve_constants.
8810         (cselib_lookup_1): If cselib_preserve_constants,
8811         a new VALUE is being created for REG and there is a VALUE for the
8812         same register in wider mode, add another loc with lowpart SUBREG of
8813         the wider VALUE.
8814         (cselib_subst_to_values): Handle ENTRY_VALUE.
8815         * var-tracking.c  (replace_expr_with_values): Return NULL for
8816         ENTRY_VALUE too.
8817         * dwarf2out.c (convert_descriptor_to_signed): New function.
8818         (mem_loc_descriptor) <case ZERO_EXTEND>: Optimize using DW_OP_and
8819         instead of two shifts.
8820         (mem_loc_descriptor) <do_shift>: ZERO_EXTEND second argument to
8821         the right mode if needed.
8822         (mem_loc_descriptor) <case MOD>: For typed ops just use DW_OP_mod.
8823         (mem_loc_descriptor) <case UNSIGNED_FIX>: Use
8824         convert_descriptor_to_signed.
8825         (mem_loc_descriptor) <case UDIV, CLZ, CTZ, FFS, POPCOUNT, PARITY,
8826         BSWAP, ROTATE, ROTATERT>: Handle these rtls.
8827
8828         PR target/48688
8829         * config/i386/i386.md (*lea_general_4): New define_insn_and_split.
8830
8831 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
8832
8833         * config/i386/i386.md: Use SWI248x instead of X87MODEI, SWI24 instead
8834         of X87MODEI12 and SWI48x instead of SSEMODEI24.
8835         (SWI248x): New mode iterator, rename from X87MODEI.
8836         (X87MODEI): Remove mode iterator.
8837         (X87MODEI12): Ditto.
8838         (SSEMODEI24): Ditto.
8839
8840 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
8841
8842         * params.def (PARAM_MAX_VARTRACK_EXPR_DEPTH): New.
8843         * doc/invoke.texi: Document max-vartrack-expr-depth.
8844         * var-tracking.c (EXPR_DEPTH): New.
8845         (reverse_op, vt_expand_loc, vt_expand_loc_dummy): Use it.
8846
8847 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
8848
8849         * config/i386/i386.c (ix86_rtx_costs): Drop NEG from sub for FMA.
8850         * config/i386/sse.md: Add n to negated FMA pattern names.
8851
8852 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
8853
8854         * gcc.c (driver_handle_option): Fix disabling of -fcompare-debug.
8855
8856 2011-05-31  Alexandre Oliva  <aoliva@redhat.com>
8857
8858         * gengtype-state.c (read_state_params_structs): Initialize previous.
8859
8860 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
8861
8862         * config/i386/i386.md (*pushxf_nointeger): Merge alternatives 1 and 2.
8863         (FP push_operand splitters): Merge {TF,XF,DF}mode splitters.
8864
8865 2011-05-31  Uros Bizjak  <ubizjak@gmail.com>
8866
8867         * config/i386/i386.md (*movtf_internal): Avoid allocating general
8868         registers.  Penalize F*r->o alternative to prevent partial memory
8869         stalls.  Slightly penalize *roF->*r alternative.  Generate SSE
8870         CONST_DOUBLE immediates when optimizing function for size.  Do not move
8871         CONST_DOUBLEs directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
8872         (*movxf_internal): Slightly penalize Yx*roF->Yx*r alternative.
8873         (*movdf_internal): Slightly penalize Yd*roF->Yd*r alternative.
8874         (*movdf_internal_rex64): Slightly penalize rm->r, F->m and r->m
8875         alternatives.
8876         (*movsf_internal): Slightly penalize rmF->r and Fr->m alternatives.
8877
8878         (fp_register_operand splitters): Use fp_register_operand
8879         constraint.  Do not use FP_REG_P in insn condition.
8880         (any_fp_register_operand splitters): Use any_fp_register_operand
8881         constraint.  Do not use ANY_FP_REG_P in insn condition.
8882
8883 2011-05-31  Jan Hubicka  <jh@suse.cz>
8884
8885         * cgraph.h (cgraph_inline_failed_t): Give enum a name
8886         * lto-cgraph.c (LDPR_NUM_KNOWN): New macro.
8887         (LTO_cgraph_tags): Add LTO_cgraph_last_tag.
8888         (lto_output_edge): Use output_enum and var_len_unsigned.
8889         (lto_output_varpool_node): Likewise.
8890         (input_overwrite_node): Do not take resolution parameter;
8891         extract it from a bitpack.
8892         (input_node): Do not read resolution; use input_enum and
8893         var_len_unsigned.
8894         (input_varpool_node): Likewise.
8895         (input_edge): Likewise.
8896         (input_cgraph_1): Likewise.
8897
8898 2011-05-31  Richard Guenther  <rguenther@suse.de>
8899
8900         * gimple.c (gimple_register_canonical_type): Do not register
8901         any types via gimple_register_type.
8902
8903 2011-05-31  Jan Hubicka  <jh@suse.cz>
8904
8905         * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Merge alias decl
8906         of thunks.
8907
8908 2011-05-31  Jakub Jelinek  <jakub@redhat.com>
8909
8910         PR rtl-optimization/49235
8911         * tree-ssa-address.c (gen_addr_rtx): Ignore base if it is const0_rtx.
8912         (create_mem_ref_raw): Create MEM_REF even if base is INTEGER_CST.
8913
8914 2011-05-31  Ira Rosen  <ira.rosen@linaro.org>
8915
8916         PR tree-optimization/49093
8917         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail for volatile
8918         data references.
8919
8920 2011-05-31  Dodji Seketeli  <dodji@redhat.com>
8921
8922         PR debug/49047
8923         * dwarf2out.c (gen_subprogram_die): Emit linkage name attribute
8924         for concrete functions containing the code of cloned functions.
8925
8926 2011-05-31  Richard Guenther  <rguenther@suse.de>
8927
8928         * tree-ssa-forwprop.c (forward_propagate_into_comparison): Rename
8929         to ...
8930         (forward_propagate_into_comparison_1): ... this.
8931         (forward_propagate_comparison): Rename to ...
8932         (forward_propagate_into_comparison): ... this.  Split out
8933         real forward propagation code to ...
8934         (forward_propagate_comparison): ... this.
8935         (forward_propagate_into_gimple_cond): Remove looping.
8936         (forward_propagate_into_cond): Likewise.
8937         (simplify_not_neg_expr): Return whether we have done something.
8938         (simplify_gimple_switch): Likewise.
8939         (tree_ssa_forward_propagate_single_use_vars): Rename to ...
8940         (ssa_forward_propagate_and_combine): ... this.  Re-structure
8941         to do a forward forward-propagation walk on BBs and a backward
8942         stmt combining walk on BBs.  Consistently re-scan changed statements.
8943         (pass_forwprop): Adjust.
8944
8945 2011-05-30  Ian Lance Taylor  <iant@google.com>
8946
8947         * godump.c (go_format_type): Correct length of name added to
8948         obstack for anonymous field.
8949
8950 2011-05-30  Kaz Kojima  <kkojima@gcc.gnu.org>
8951
8952         PR target/49186
8953         * config/sh/sh.c (expand_cbranchdi4): Set msw_skip when the high
8954         part of the second operand is 0.
8955
8956 2011-05-30  Uros Bizjak  <ubizjak@gmail.com>
8957
8958         * config/i386/i386.md (*movxf_internal): Penalize FYx*r->o alternative
8959         to prevent partial memory stalls.  Do not move CONST_DOUBLEs directly
8960         to memory for !TARGET_MEMORY_MISMATCH_STALL.
8961         (*movdf_internal_rex64): Do not penalize F->r alternative.
8962         (*movdf_internal): Penalize FYd*r->o alternative to prevent partial
8963         memory stalls.  Generate SSE and x87 CONST_DOUBLE immediates only
8964         when optimizing function for size.  Do not move CONST_DOUBLEs
8965         directly to memory for !TARGET_MEMORY_MISMATCH_STALL.
8966         (FP move splitters): Merge {TF,XF,DF}mode splitters.  Do not handle
8967         SUBREGs.  Do not check for MEM_P operands in the insn condition,
8968         check for ANY_FP_REGNO_P instead.
8969         * config/i386/constraints.md (Yd): Enable GENERAL_REGS for
8970         TARGET_64BIT and for TARGET_INTEGER_DFMODE_MOVES when optimizing
8971         function for speed.
8972         * config/i386/i386.c (ix86_option_override_internal): Do not
8973         set TARGET_INTEGER_DFMODE_MOVES here.
8974
8975 2011-05-30  H.J. Lu  <hongjiu.lu@intel.com>
8976
8977         PR target/49168
8978         * config/i386/i386.md (*movtf_internal): Handle misaligned load/store.
8979
8980 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
8981
8982         * dwarf2out.c (modified_type_die, gen_reference_type_die): Use
8983         DW_TAG_rvalue_reference_type even for
8984         -gdwarf-4 -fno-debug-types-section.
8985
8986 2011-05-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8987
8988         PR tree-optimization/46728
8989         * tree-ssa-math-opts.c (build_and_insert_call): Reorder parms.
8990         (build_and_insert_binop): New.
8991         (gimple_expand_builtin_pow): Reorder args for
8992         build_and_insert_call; use build_and_insert_binop; add more
8993         optimizations for fractional exponents.
8994
8995 2011-05-30  Nathan Froyd  <froydnj@gcc.gnu.org>
8996
8997         PR bootstrap/49190
8998
8999         Revert:
9000         2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
9001
9002         * tree.h (struct tree_identifier): Inherit from tree_typed, not
9003         tree_common.
9004         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
9005         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
9006         TS_BASE instead of TS_COMMON.
9007         * varasm.c (assemble_name): Remove assert.
9008
9009 2011-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
9010
9011         * config.gcc: Keep obselete list sorted.
9012
9013 2011-05-30  Jakub Jelinek  <jakub@redhat.com>
9014             Eric Botcazou  <ebotcazou@adacore.com>
9015
9016         * var-tracking.c (vt_add_function_parameter): Remap incoming MEMs with
9017         crtl->args.internal_arg_pointer based address to arg_pointer_rtx if
9018         there is a DRAP register and arg_pointer_rtx is the CFA pointer.
9019         (vt_init_cfa_base): Don't equate cfa_base_rtx if stack was realigned.
9020         (vt_initialize): Initialize cfa_base_rtx if there is a DRAP register.
9021
9022 2011-05-30  Richard Guenther  <rguenther@suse.de>
9023
9024         * gimple.c (gimple_types_compatible_p_1): Compare record
9025         and union type members properly.
9026
9027 2011-05-30  Richard Guenther  <rguenther@suse.de>
9028
9029         PR tree-optimization/49210
9030         * ipa-split.c (split_function): Care for the case where the call
9031         result is not trivially convertible to the result holding variable.
9032
9033 2011-05-30  Richard Guenther  <rguenther@suse.de>
9034
9035         PR tree-optimization/49218
9036         * tree-vrp.c (adjust_range_with_scev): Properly check whether
9037         overflow occured.
9038
9039 2011-05-30  Richard Guenther  <rguenther@suse.de>
9040
9041         * tree-ssa-forwprop.c (forward_propagate_into_comparison):
9042         New function split out from ...
9043         (forward_propagate_into_gimple_cond): ... here.  Adjust.
9044         (forward_propagate_into_cond): Likewise.
9045         (forward_propagate_comparison): Also propagate into
9046         comparisons on assignment RHS.  Change return value to
9047         behave similar to forward_propagate_into_cond.
9048         (tree_ssa_forward_propagate_single_use_vars): Handle
9049         strict-overflow warnings properly for forward_propagate_comparison.
9050
9051 2011-05-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9052
9053         * configure.ac (gcc_cv_lto_plugin): Determine lto plugin support
9054         from plugin linker.
9055         * configure: Regenerate.
9056
9057 2011-05-30  Ira Rosen  <ira.rosen@linaro.org>
9058
9059         PR tree-optimization/49199
9060         * tree-vect-loop.c (vect_is_slp_reduction): Check that the
9061         non-reduction operands are either defined in the loop or by induction.
9062
9063 2011-05-29  Xinliang David Li  <davidxl@google.com>
9064
9065         * opts-global.c (handle_common_deferred_options): Handle new options.
9066         * passes.c (register_one_dump_file): Call register_pass_name.
9067         (execute_one_pass): Check explicit enable/disable flag.
9068         (passr_hash): New function.
9069         (passr_eq): Ditto.
9070         (register_pass_name): Ditto.
9071         (get_pass_by_name): Ditto.
9072         (pass_hash): Ditto.
9073         (pass_eq): Ditto.
9074         (enable_pass): Ditto.
9075         (disable_pass): Ditto.
9076         (is_pass_explicitly_enabled_or_disabled): Ditto.
9077
9078 2011-05-29  Uros Bizjak  <ubizjak@gmail.com>
9079
9080         * config/i386/i386.md (*movoi_internal_avx): Use
9081         standard_sse_constant_opcode for alternative 0.
9082         (*movti_internal_sse): Ditto.
9083         (*movti_internal_rex64): Use standard_sse_constant_opcode for
9084         alternative 2.
9085         (*movdi_internal_rex64): Use standard_sse_constant_opcode for
9086         sselog1 type moves.
9087         (*movsi_internal): Ditto.
9088         (*movdi_internal): Ditto.  Add ssecvt type moves.
9089
9090 2011-05-29  Eric Botcazou  <ebotcazou@adacore.com>
9091
9092         PR target/48830
9093         * rtlanal.c (simplify_subreg_regno): Adjust comment.
9094
9095 2011-05-29  Jakub Jelinek  <jakub@redhat.com>
9096
9097         PR rtl-optimization/49095
9098         * config/i386/predicates.md (plusminuslogic_operator): New predicate.
9099         * config/i386/i386.md: Add peepholes for mem {+,-,&,|,^}= x; mem != 0.
9100
9101 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
9102
9103         PR target/43995
9104         * config/mips/mips.c (mips_pic_call_symbol_from_set): Add a
9105         recurse_p argument.  Only follow register copies if it is set,
9106         and prevent mips_find_pic_call_symbol from recursing.
9107         (mips_find_pic_call_symbol): Add a recurse_p argument.
9108         Pass it to mips_pic_call_symbol_from_set.
9109         (mips_annotate_pic_calls): Update accordingly.
9110
9111 2011-05-29  Richard Sandiford  <rdsandiford@googlemail.com>
9112
9113         * emit-rtl.c (try_split): Use a loop to search for
9114         NOTE_INSN_CALL_ARG_LOCATIONs.
9115
9116 2011-05-29  Richard Guenther  <rguenther@suse.de>
9117
9118         PR tree-optimization/49217
9119         * ipa-pure-const.c (propagate_pure_const): Fix typos.
9120
9121 2011-05-28  Jan Hubicka  <jh@suse.cz>
9122
9123         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
9124         length.
9125         (string_slot_free): Remove
9126         (create_output_block): Initialize obstack.
9127         (destroy_output_block): Free obstack.
9128         (lto_string_index): Add PERSISTENT parameter; do not duplicate
9129         the string unless it needs to be added into the hash.
9130         (lto_output_string_with_length): Add persistent attribute;
9131         handle NULL strings.
9132         (lto_output_string): Add PERSISTENT parameter.
9133         (output_string_cst, output_identifier): Simplify.
9134         (lto_output_location_bitpack): Update.
9135         (lto_output_builtin_tree): Update.
9136         * lto-streamer.h (struct output_block): Add obstack.
9137         (lto_output_string, lto_output_string_with_length): Remove
9138         declarations; functions are static now.
9139
9140 2011-05-28  Jan Hubicka  <jh@suse.cz>
9141
9142         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
9143         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
9144         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
9145         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
9146         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
9147         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
9148         unpack_ts_decl_with_vis_value_fields,
9149         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
9150         lto_get_builtin_tree): Use enum and variable length i/o.
9151         * basic-block.h (profile_status_d): Add PROFILE_LAST.
9152         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
9153         New functions.
9154         (bp_pack_enum, bp_unpack_enum): New macros.
9155
9156 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
9157
9158         * genrecog.c: Remove redundant forward declarations.
9159
9160 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
9161
9162         * config.gcc: Deprecate mips*-*-openbsd*.
9163
9164 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
9165
9166         PR bootstrap/49195
9167         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
9168         for match_op_dup.
9169
9170 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
9171
9172         PR middle-end/48981
9173         * gengtype.c (vec_prefix_type): New function.
9174         (note_def_vec): Use vec_prefix_type and change the length
9175         attribute to be based on the prefix.
9176         * vec.c: Include coretypes.h before vec.h.
9177         (struct vec_prefix): Remove.
9178         (vec_gc_p_reserve): Change the offsetof to sizeof.
9179         (vec_gc_p_reserve_exact): Likewise.
9180         (vec_heap_p_reserve): Likewise.
9181         (vec_heap_p_reserve_exact): Likewise.
9182         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
9183         (vec_stack_p_reserve): Change the offsetof to sizeof.
9184         (vec_stack_p_reserve_exact): Likewise.
9185         * vec.h (struct vec_prefix): New struct definition.
9186         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
9187         (VEC_T_GTY(T,B)): Likewise.
9188         (DEF_VEC_FUNC_P(T)): Use prefix field.
9189         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
9190         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
9191
9192 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9193
9194         PR tree-optimization/46728
9195         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
9196         (powi_as_mults): Add gimple_set_location.
9197         (build_and_insert_call): New.
9198         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
9199         0.5, 0.25, 0.75, 1./3., or 1./6.
9200
9201 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
9202
9203         * doc/contrib.texi: Update copyright years.
9204         (Contributors): Add Zdenek Sojka.
9205
9206 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
9207
9208         * c-decl.c (c_push_function_context): Copy the current statement
9209         list stack.
9210         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
9211         (finish_struct): Call building_stmt_list_p instead of checking
9212         cur_stmt_list.
9213         * c-parser.c (c_parser_postfix_expression): Likewise.
9214         * c-typeck.c (c_end_compound_stmt): Likewise.
9215         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
9216         * tree-iterator.c (stmt_list_cache): Change to a VEC.
9217         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
9218         (free_stmt_list): Likewise.
9219         * tree.h (struct tree_statement_list): Include typed_tree instead
9220         of tree_common.
9221         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
9222         as TS_TYPED instead of TS_COMMON.
9223
9224 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9225             Uros Bizjak  <ubizjak@gmail.com>
9226
9227         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
9228         (HAVE_AS_IX86_TLSGDPTL): Define.
9229         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
9230         (HAVE_AS_IX86_TLSLDMPLT): Define.
9231         * configure: Regenerate.
9232         * config.in: Regenerate.
9233         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
9234         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
9235         TARGET_SUN_TLS, use @tlsgdplt or @plt.
9236         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
9237         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
9238         @tlsldmplt or @plt.
9239         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
9240
9241 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
9242
9243         * sched-int.h (struct _haifa_deps_insn_data): New members cond
9244         and reverse_cond.
9245         (INSN_COND, INSN_REVERSE_COND): New macros.
9246         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
9247         once.
9248         (sched_get_condition_with_rev): Cache the results, and look them up
9249         if possible.
9250         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
9251         are clobbered by the current insn.
9252         * target.def (exposed_pipline): New sched data hook.
9253         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
9254         * doc/tm.texi: Regenerate.
9255
9256 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9257
9258         PR tree-optimization/49170
9259         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
9260         sincos or cexp.
9261
9262 2011-05-27  Richard Guenther  <rguenther@suse.de>
9263
9264         PR middle-end/49189
9265         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
9266         of comparisons.
9267
9268 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
9269
9270         * haifa-sched.c (sched_scan_info): Remove.
9271         (schedule_block): Call sched_extend_luids rather than sched_init_luids
9272         with NULL args.
9273         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
9274         Remove functions.
9275         (sched_scan): Remove.
9276         (sched_extend_luids): Renamed from luids_extend_insn and no longer
9277         static.  All callers changed.
9278         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
9279         static.  All callers changed.
9280         (sched_init_luids): Remove all arguments except the first.  All
9281         callers changed.  Don't use sched_scan.
9282         (haifa_init_h_i_d): Likewise.
9283         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
9284         manually rather than using sched_init_luids.  Likewise with
9285         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
9286         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
9287         rather than sched_init_luids with NULL args.
9288         * sel-sched-ir.c (new_insns): Remove variable.
9289         (sched_scan): New static function, previously in haifa-sched.c.  Remove
9290         all arguments but the first two; all callers changed.
9291         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
9292         rather than sched_init_luids.
9293         (sel_init_bbs): Remove second argument.  All callers changed.
9294         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
9295         with NULL arguments.
9296         (create_insn_rtx_from_pattern): Likewise.
9297         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
9298         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
9299         (sched_init_insn_luid, sched_extend_luids): Declare.
9300         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
9301         declarations.
9302
9303 2011-05-27  Richard Guenther  <rguenther@suse.de>
9304
9305         PR middle-end/49177
9306         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
9307         A CMP B ? (T) true : (T) false for non-integral types T again.
9308
9309 2011-05-27  Jan Hubicka  <jh@suse.cz>
9310
9311         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
9312         so 0 means NULL string.
9313         (lto_output_string_with_length): ... here.
9314         (lto_output_string, output_string_cst, output_identifier): Update
9315         handling of NULL strings.
9316         (lto_output_location_bitpack): New function.
9317         (lto_output_location): Use it.
9318         (lto_output_tree_ref): Use output_record_start.
9319         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
9320         len values.
9321         * lto-streamer-in.c (string_for_index): Break out from ...; offset
9322         values by 1.
9323         (input_string_internal): ... here;
9324         (input_string_cst, input_identifier, lto_input_string): Update handling
9325         of NULL strings.
9326         (lto_input_location_bitpack): New function
9327         (lto_input_location): Use it.
9328         (unpack_ts_type_common_value_fields): Pack align & alias in var len
9329         values.
9330         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
9331         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
9332         (bp_pack_value): Sanity check the value range.
9333         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
9334         New functions.
9335         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
9336         New functions.
9337
9338 2011-05-27  Hariharan Sandanagobalane  <hariharan@picochip.com>
9339
9340         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
9341         call_arg_location instructions down the floor.
9342
9343 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
9344
9345         PR rtl-optimization/49154
9346         * ira.c (setup_pressure_classes): Process class without sublcasses
9347         as a candidate for pressure classes.
9348
9349 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
9350
9351         PR rtl-optimization/48575
9352         * genrecog.c (position_type): New enum.
9353         (position): New structure.
9354         (decision): Use position structure instead of a string.
9355         (root_pos, peep2_insn_pos_list): New variables.
9356         (next_position, compare_positions): New functions.
9357         (new_decision): Use position structures instead of strings.
9358         (maybe_both_true): Likewise.
9359         (change_state): Likewise.
9360         (write_tree): Likewise.
9361         (make_insn_sequence): Likewise.
9362
9363 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
9364
9365         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
9366         TS_BASE instead of TS_COMMON.
9367         (find_decls_types_r): Check for TS_TYPED structure before looking at
9368         TREE_TYPE.
9369         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
9370         Add chain field.
9371         (BLOCK_CHAIN): Use new chain field.
9372
9373 2011-05-26  Pat Haugen  <pthaugen@us.ibm.com>
9374
9375         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
9376         moves expensive on Power7 also.
9377
9378 2011-05-26  Richard Guenther  <rguenther@suse.de>
9379
9380         * fold-const.c (fold_unary_loc): Remove bogus code.
9381
9382 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
9383
9384         * tree.h (struct tree_identifier): Inherit from tree_typed, not
9385         tree_common.
9386         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
9387         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
9388         TS_BASE instead of TS_COMMON.
9389         * varasm.c (assemble_name): Remove assert.
9390
9391 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
9392
9393         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
9394         substituted first.
9395         * libgcc-std.ver: Delete file.
9396
9397 2011-05-26  Richard Guenther  <rguenther@suse.de>
9398
9399         PR tree-optimization/48702
9400         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
9401         only when we know the base address is within bounds.
9402         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
9403         assume the base address of TARGET_MEM_REFs is in bounds.
9404
9405 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9406
9407         PR target/49099
9408         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
9409         declaration in TARGET_SOLARIS.
9410
9411 2011-05-26  Hariharan Sandanagobalane  <hariharan@picochip.com>
9412
9413         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
9414         The instruction is then expanded explicitly.
9415         (supported_compare): Callable instruction.
9416         (compare): Likewise.
9417
9418 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
9419
9420         PR c++/49165
9421         * gimplify.c (shortcut_cond_r): Don't special case
9422         COND_EXPRs if they have void type on one of their arms.
9423
9424 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
9425
9426         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
9427         to reduce duplication, and to achieve a slightly more logical order
9428         of operations.
9429
9430 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
9431
9432         PR tree-optimization/49161
9433         * tree-vrp.c (struct case_info): New type.
9434         (compare_case_labels): Sort case_info structs instead of
9435         trees, and not primarily by CASE_LABEL uids but by
9436         label_for_block indexes.
9437         (find_switch_asserts): Put case labels into struct case_info
9438         array instead of TREE_VEC, adjust sorting, compare label_for_block
9439         values instead of CASE_LABELs.
9440
9441 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
9442
9443         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
9444         ("orndi3_neon"): Likewise.
9445         ("bic<mode>3_neon"): Likewise.
9446
9447 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
9448
9449         PR tree-optimization/49038
9450         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
9451         Ensure at least one epilogue iteration if required by data
9452         accesses with gaps.
9453         * tree-vectorizer.h (struct _loop_vec_info): Add new field
9454         to mark loops that require peeling for gaps.
9455         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
9456         (vect_get_known_peeling_cost): Take peeling for gaps into
9457         account.
9458         (vect_transform_loop): Generate epilogue if required by data
9459         access with gaps.
9460         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
9461         loop as requiring an epilogue if there are gaps in the end of
9462         the strided group.
9463
9464 2011-05-25  Ian Lance Taylor  <iant@google.com>
9465
9466         * godump.c (go_format_type): Output the first field with a usable
9467         Go type, if any.
9468
9469 2011-05-25  Ian Lance Taylor  <iant@google.com>
9470
9471         * godump.c (go_format_type): Check for invalid type names, pointer
9472         target types, and struct field types.
9473
9474 2011-05-25  Jason Merrill  <jason@redhat.com>
9475
9476         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
9477
9478 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
9479
9480         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
9481
9482 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
9483
9484         * config/i386/i386.md (*movqi_extv_1)): Put back
9485         "register_operand" check in "type" calculation.
9486         (*movqi_extzv_2): Likewise.
9487
9488 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
9489
9490         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
9491
9492 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
9493
9494         PR bootstrap/49160
9495         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
9496         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
9497         __divxc3, __divtc3): Wrap definitions in #ifndef.
9498
9499 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
9500
9501         PR target/49142
9502         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
9503         "register_operand" check and replace q_regs_operand with
9504         QIreg_operand in "type" calculation.
9505         (*movqi_extv_1): Likewise.
9506         (*movqi_extzv_2_rex64): Likewise.
9507         (*movqi_extzv_2): Likewise.
9508
9509         * config/i386/predicates.md (QIreg_operand): New.
9510
9511 2011-05-25  Richard Guenther  <rguenther@suse.de>
9512
9513         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
9514         type-based offset disambiguation, streamline MEM_REF and
9515         TARGET_MEM_REF handling.
9516
9517 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
9518
9519         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
9520         (bdesc_special_args): Add pause intrinsic.
9521
9522         * config/i386/i386.md (UNSPEC_PAUSE): New.
9523         (pause): Likewise.
9524         (*pause): Likewise.
9525         * config/i386/ia32intrin.h (__pause): Likewise.
9526
9527         * doc/extend.texi (X86 Built-in Functions): Add documentation for
9528         pause intrinsic.
9529
9530 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9531
9532         PR tree-optimization/46728
9533         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
9534         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
9535
9536 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
9537
9538         * tree.h (struct tree_exp): Inherit from struct tree_typed.
9539         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
9540         instead of TS_COMMON.
9541
9542 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
9543
9544         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
9545         LIBGCC2_GNU_PREFIX is defined.
9546         (__N): New macro.
9547         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
9548         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
9549         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
9550         __clz_tab): Define using __N.
9551         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
9552         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
9553         * target.def (libfunc_gnu_prefix): New hook.
9554         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
9555         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
9556         * doc/tm.texi: Regenerate.
9557         * system.h (LIBGCC2_GNU_PREFIX): Poison.
9558         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
9559         account.
9560         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
9561         (init_optabs): Likewise for the bswap libfuncs.
9562         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
9563         and divide.
9564         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
9565         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
9566         * libgcc-std.ver: Remove.
9567         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
9568         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
9569         libgcc-std.ver.
9570         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
9571         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
9572         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
9573         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
9574         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
9575         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
9576         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
9577         * config/fixed-bit.h (FIXED_OP): Define differently depending on
9578         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
9579         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
9580
9581 2011-05-25  Jan Hubicka  <jh@suse.cz>
9582
9583         * lto-streamer-out.c (output_record_start): Use lto_output_enum
9584         (lto_output_tree): Use output_record_start.
9585         * lto-streamer-in.c (input_record_start): Use lto_input_enum
9586         (lto_get_pickled_tree): Use input_record_start.
9587         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
9588         (lto_value_range_error): New function.
9589         * lto-streamer.h (lto_value_range_error): Declare.
9590         (lto_output_int_in_range, lto_input_int_in_range): New functions.
9591         (lto_output_enum, lto_input_enum): New macros.
9592
9593 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
9594
9595         * common.opt (flag_stack_usage_info): New variable.
9596         (-Wstack-usage): New option.
9597         * doc/invoke.texi (Warning options): Document -Wstack-usage.
9598         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
9599         <OPT_fstack_usage>: Likewise.
9600         * toplev.c (output_stack_usage): Handle -Wstack-usage.
9601         * calls.c (expand_call): Test flag_stack_usage_info variable instead
9602         of flag_stack_usage.
9603         (emit_library_call_value_1): Likewise.
9604         * explow.c (allocate_dynamic_stack_space): Likewise.
9605         * function.c (instantiate_virtual_regs ): Likewise.
9606         (prepare_function_start): Likewise.
9607         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
9608         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
9609         * config/arm/arm.c (arm_expand_prologue): Likewise.
9610         (thumb1_expand_prologue): Likewise.
9611         * config/avr/avr.c (expand_prologue): Likewise.
9612         * config/i386/i386.c (ix86_expand_prologue): Likewise.
9613         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
9614         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
9615         * config/mips/mips.c (mips_expand_prologue): Likewise.
9616         * config/pa/pa.c (hppa_expand_prologue): Likewise.
9617         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9618         * config/s390/s390.c (s390_emit_prologue): Likewise.
9619         * config/sh/sh.c (sh_expand_prologue): Likewise.
9620         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9621         * config/spu/spu.c (spu_expand_prologue): Likewise.
9622
9623 2011-05-25  Richard Guenther  <rguenther@suse.de>
9624
9625         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
9626         (gimple_canonical_types_compatible_p): Likewise.
9627
9628 2011-05-25  Jan Hubicka  <jh@suse.cz>
9629
9630         PR middle-end/49062
9631         * ipa.c (function_and_variable_visibility): Only add to same
9632         comdat group list if DECL_ONE_ONLY.
9633
9634 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
9635
9636         PR rtl-optimization/49014
9637         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
9638
9639 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
9640
9641         PR target/49128
9642         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
9643
9644 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
9645
9646         PR rtl-optimization/48757
9647         * ira-build.c (loop_with_eh_edge_p): Rename to
9648         loop_with_complex_edge_p, check edges on complexity, make function
9649         conditional.
9650         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
9651         conditional.
9652
9653 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
9654
9655         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
9656         force flag_ira_share_save_slots to 0.
9657
9658 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
9659
9660         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
9661         (vt_initialize): Set PROLOGUE_BB unconditionally.
9662         Add block comment about CFA_BASE_RTX machinery.
9663         Reset FP_CFA_OFFSET to -1 on all invalid paths.
9664         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
9665
9666 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
9667
9668         PR objc/48187
9669         * c-parser.c (c_parser_objc_class_instance_variables): More robust
9670         parsing of syntax error in ObjC instance variable lists.  In
9671         particular, avoid an infinite loop if there is a stray ']'.
9672         Updated error message.
9673
9674 2011-05-24  Ian Lance Taylor  <iant@google.com>
9675
9676         * godump.c (go_define): Don't accept a string immediately after
9677         another operand.
9678
9679 2011-05-24  Ian Lance Taylor  <iant@google.com>
9680
9681         * godump.c (struct godump_container): Add invalid_hash field.
9682         (go_format_type): Return false if type is found in invalid_hash.
9683         (go_output_typedef): Add invalid type to invalid_hash.
9684         (go_finish): Create and delete invalid_hash.
9685
9686 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9687
9688         PR tree-optimization/46728
9689         * tree-ssa-math-opts.c (powi_table): New.
9690         (powi_lookup_cost): New.
9691         (powi_cost): New.
9692         (powi_as_mults_1): New.
9693         (powi_as_mults): New.
9694         (gimple_expand_builtin_powi): New.
9695         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
9696         (gate_cse_sincos): Remove sincos/cexp restriction.
9697
9698 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9699
9700         PR target/3746
9701         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
9702         mips-tdump native.
9703         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
9704         * mips-tdump.c: Likewise.
9705
9706 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
9707
9708         PR target/49128
9709         * config/i386/driver-i386.c (host_detect_local_cpu): Always
9710         add -mno-XXX.  Handle FMA.
9711
9712 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
9713
9714         PR rtl-optimization/48633
9715         * ira-build.c (loop_with_eh_edge_p): New function.
9716         (mark_loops_for_removal): Use it.
9717
9718 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
9719
9720         PR rtl-optimization/48971
9721         * ira.c (setup_pressure_classes): Don't check register move cost
9722         for classes with one registers.  Don't add pressure class if there
9723         is a pressure class with the same available hard registers.
9724         Check contains_reg_of_mode.  Fix a typo in collecting
9725         temp_hard_regset.  Ignore hard registers not belonging to a class.
9726
9727 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
9728
9729         PR target/49133
9730         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
9731
9732 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
9733             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9734
9735         PR gcov-profile/48845
9736         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
9737
9738 2011-05-24  Richard Guenther  <rguenther@suse.de>
9739
9740         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
9741         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
9742         (gimple_types_compatible_p_1): Adjust.
9743         (iterative_hash_canonical_type): Do not bother about complete vs.
9744         incomplete types.
9745         (gimple_canonical_types_compatible_p): Likewise.
9746
9747 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9748
9749         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
9750
9751 2011-05-24  Richard Guenther  <rguenther@suse.de>
9752
9753         PR bootstrap/49078
9754         * gimple.c (gimple_register_canonical_type): Revert
9755         previous change.
9756         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
9757         does not for a tree for the case where it matters.  Cache
9758         pointer-type alias-sets.
9759
9760 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
9761
9762         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
9763         (OBJS): Remove options.o, opts-common.o and prefix.o.
9764         (OBJS-libcommon-target): New.
9765         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
9766         (BACKEND): Include libcommon-target.a.
9767         (MOSTLYCLEANFILES): Include libcommon-target.a.
9768         (libcommon-target.a): New.
9769         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
9770         prefix.o.
9771
9772 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
9773
9774         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
9775         parts of output shared with the driver.
9776         * optc-gen.awk: Don't generate parts of output not shared with the
9777         driver.
9778         * opth-gen.awk: Remove GCC_DRIVER conditionals.
9779         * doc/options.texi (SourcerInclude): Mention options-save.c.
9780         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
9781         (OBJS): Add options-save.o.
9782         (options-save.c, options-save.o): New.
9783         (options.o): Update dependencies.
9784         (gcc-options.o): Remove.
9785         (mostlyclean): Remove options-save.c.
9786
9787 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
9788
9789         PR debug/49032
9790         * dbxout.c: Include cgraph.h.
9791         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
9792         and without value expr, return NULL if no varpool node exists for
9793         it or if it is not needed.
9794         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
9795
9796         PR c/49120
9797         * c-decl.c (start_decl): Convert expr to void_type_node.
9798
9799 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
9800
9801         PR rtl-optimization/48826
9802         * emit-rtl.c (try_split): When splitting a call that is followed
9803         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
9804
9805 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
9806
9807         * cfgexpand.c (expand_debug_expr): For unused non-addressable
9808         parameters passed in memory prefer using DECL_INCOMING_RTL over
9809         the pseudos it will be copied into.
9810
9811 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
9812
9813         PR target/47315
9814         * config/i386/i386.c (ix86_option_override_internal): Save the
9815         initial options after checking vzeroupper.
9816
9817 2011-05-23  David Li  <davidxl@google.com>
9818
9819         PR tree-optimization/48988
9820         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
9821         Initialize has_valid_pred for each pred chain.
9822
9823 2011-05-23  Richard Guenther  <rguenther@suse.de>
9824
9825         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
9826         (iterative_hash_gimple_type): Always hash type names.
9827
9828 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
9829
9830         * c-typeck.c (build_function_call_vec): Tweak call to
9831         check_function_arguments.
9832
9833 2011-05-23  Richard Guenther  <rguenther@suse.de>
9834
9835         PR tree-optimization/49115
9836         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
9837         is not necessarily carried out, do not claim it kills the ref.
9838         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
9839
9840 2011-05-23  Richard Guenther  <rguenther@suse.de>
9841
9842         PR middle-end/15419
9843         * builtins.c (fold_builtin_memory_op): Be less restrictive about
9844         what pointer types we accept for folding.
9845
9846 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9847
9848         * gthr-gnat.c: Remove.
9849         * gthr-gnat.h: Remove.
9850         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
9851         * config/t-freebsd (LIB2ADDEH): Likewise.
9852         * config/t-linux (LIB2ADDEH): Likewise.
9853         * config/t-sol2 (LIB2ADDEH): Likewise.
9854         * config/ia64/t-vms (LIB2ADDEH): Likewise.
9855         * configure.ac (target_thread_file): Remove gnat handling.
9856         * configure: Regenerate.
9857         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
9858
9859 2011-05-23  Tristan Gingold  <gingold@adacore.com>
9860             Eric Botcazou  <ebotcazou@adacore.com>
9861
9862         * gcov.c (create_file_names): If no object directory is specified,
9863         keep the directory of the file.
9864
9865 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9866
9867         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
9868         * configure: Regenerate.
9869
9870 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
9871
9872         PR middle-end/48973
9873         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
9874         failed and the comparison has a single bit signed type, use
9875         constm1_rtx instead of const1_rtx for true value.
9876         (do_store_flag): If ops->type is single bit signed type, disable
9877         signel bit test optimization and pass -1 instead of 1 as last
9878         parameter to emit_store_flag_force.
9879
9880 2011-05-23  Tom de Vries  <tom@codesourcery.com>
9881
9882         PR target/45098
9883         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
9884         function.
9885         (infer_loop_bounds_from_undefined): Use new function.
9886
9887 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
9888
9889         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
9890         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
9891         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
9892         and -O0 otherwise.
9893         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
9894
9895 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
9896
9897         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
9898         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
9899         returns true.
9900
9901 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
9902
9903         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
9904
9905 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
9906
9907         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
9908         UNSPEC_MOVE_PIC pattern.
9909
9910 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
9911
9912         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
9913         (sparc-*-rtems*): Likewise.
9914         (sparc64-*-elf*): Likewise.
9915         (sparc64-*-rtems*): Likewise.
9916         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
9917         * config/sparc/t-crtin: New file.
9918         * config/sparc/t-sol2 (crti.o): Delete rule.
9919         (crtn.o): Likewise.
9920         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
9921         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
9922         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
9923         (ENDFILE_SPEC): Add crtn.o.
9924
9925 2011-05-22  Tom de Vries  <tom@codesourcery.com>
9926
9927         PR middle-end/48689
9928         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
9929         CODE_CONTAINS_STRUCT (TS_COMMON).
9930
9931 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
9932
9933         PR middle-end/49029
9934         * expmed.c (extract_fixed_bit_field): Test whether target can be used
9935         only after deciding which mode to use.
9936
9937 2011-05-22  Tom de Vries  <tom@codesourcery.com>
9938
9939         PR target/45098
9940         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
9941         for call to get_shiftadd_cost.
9942
9943 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
9944
9945         PR target/49104
9946         * config/i386/cpuid.h (bit_MMXEXT): New define.
9947
9948 2011-05-22  Nick Clifton  <nickc@redhat.com>
9949
9950         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
9951         initialisation of non-existant args[2] element.  Use args[] array
9952         not arg[] array to pass arguments to build_function_type_list.
9953
9954 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
9955
9956         PR tree-optimization/49087
9957         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
9958
9959 2011-05-21  Jason Merrill  <jason@redhat.com>
9960
9961         PR c++/49092
9962         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
9963         static storage duration.
9964
9965 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
9966
9967         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
9968         frame pointer.
9969
9970 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
9971
9972         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
9973         false if there are call-saved registers here...
9974         (sparc_can_use_return_insn_p): ...but here instead.
9975         (save_or_restore_regs): Fix thinko.
9976         (sparc_expand_prologue): Use current_function_is_leaf.
9977         (sparc_frame_pointer_required): Likewise.
9978
9979 2011-05-21  Nick Clifton  <nickc@redhat.com>
9980
9981         PR target/49098
9982         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
9983
9984 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
9985
9986         * gengtype.c (walk_type): Implemented "atomic" GTY option.
9987         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
9988
9989 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
9990
9991         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
9992         * optc-gen.awk: Move common code to opt-read.awk.
9993         * opth-gen.awk: Likewise.
9994         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
9995
9996 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
9997
9998         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
9999
10000 2011-05-20  Tom de Vries  <tom@codesourcery.com>
10001
10002         PR target/45098
10003         * tree-ssa-loop-ivopts.c: Include expmed.h.
10004         (get_shiftadd_cost): New function.
10005         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
10006
10007 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
10008
10009         PR bootstrap/49086
10010         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
10011         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
10012
10013 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
10014
10015         * Makefile.in: Update comment referring to $(OBJS-common).
10016
10017 2011-05-20  Ian Lance Taylor  <iant@google.com>
10018
10019         * godump.c (go_output_typedef): Put enum constants in the macro
10020         hash table to avoid duplicate Go const definitions.
10021
10022 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
10023
10024         * Makefile.in (LIBDEPS): Add libcommon.a.
10025         (LIBS): Likewise.
10026         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
10027         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
10028         pretty-print.o and version.o.
10029         (OBJS-libcommon): New.
10030         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
10031         (BACKEND): Add libcommon.a.
10032         (MOSTLYCLEANFILES): Likewise.
10033         (libcommon.a): New.
10034         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
10035         (cpp$(exeext)): Likewise.
10036         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
10037         pretty-print.o and input.o.
10038         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
10039         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
10040         (errors.o): Remove.
10041         (mips-tfile): Don't explicitly use version.o.
10042         (mips-tdump): Likewise.
10043         (gcov.o): Depend on $(DIAGNOSTIC_H).
10044         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
10045         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
10046         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
10047         * gcov-dump.c: Include intl.h and diagnostic.h.
10048         (main): Initialize diagnostics.
10049         * gcov.c: Include diagnostic.h.
10050         (fnotice): Remove.
10051         (main): Initialize diagnostics.
10052         * lto-wrapper.c: Include diagnostic.h.
10053         (main): Initialize diagnostics.
10054
10055 2011-05-20  Michael Matz  <matz@suse.de>
10056
10057         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
10058
10059 2011-05-20  Michael Matz  <matz@suse.de>
10060             Richard Guenther  <rguenther@suse.de>
10061
10062         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
10063         use lto_streamer_cache_append directly instead of returning a VEC.
10064         (preload_common_node): Remove.
10065         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
10066         track seen nodes.
10067         (lto_streamer_cache_create): Call lto_preload_common_nodes.
10068
10069 2011-05-20  Richard Guenther  <rguenther@suse.de>
10070
10071         PR tree-optimization/49079
10072         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
10073         MEM_REFs correctly for the trailing array access detection.
10074         Special case constants the same way as decls for overall size
10075         constraining.
10076
10077 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
10078
10079         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
10080         argument expansion.
10081
10082 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
10083
10084         PR tree-optimization/49073
10085         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
10086         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
10087         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
10088
10089 2011-05-20  Richard Guenther  <rguenther@suse.de>
10090
10091         PR middle-end/48849
10092         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
10093         of pointer types the same way the middle-end does.
10094
10095 2011-05-20  Richard Guenther  <rguenther@suse.de>
10096
10097         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
10098         or pointer-to chains.  Delay all fixup to uniquify_nodes.
10099
10100 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
10101
10102         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
10103         (fma4_fmaddsub): Likewise
10104
10105 2011-05-19  Jan Hubicka  <jh@suse.cz>
10106
10107         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
10108         (GIMPLE_TYPE_PAIR_SIZE): New macro.
10109         (type_pair_cache): New static var.
10110         (lookup_type_pair): Use fixed sized custom hash; make inline.
10111         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
10112         calls of lookup_type_pair.
10113         (print_gimple_types_stats): Remove cache stats.
10114         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
10115         and gtc_ob.
10116
10117 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
10118
10119         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
10120         when TARGET_RDRND is active.
10121         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
10122         Generate dummy SImode target register when target is NULL.
10123
10124 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
10125
10126         * config/arm/arm-fpus.def: New.
10127         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
10128         arm-fpus.def.
10129         * config/arm/arm-tables.opt: Regenerate.
10130         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
10131         (arm_option_override): Don't decode FPU name to string here.
10132         * config/arm/arm.opt (mfpu=): Use Enum.
10133         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
10134         Update dependencies.
10135
10136 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
10137
10138         * collect2.c: Include diagnostic.h.
10139         (fatal_perror, fatal, error, fancy_abort): Remove.
10140         (main): Set progname.  Call xmalloc_set_program_name and
10141         diagnostic_initialize.
10142         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
10143         scan_libraries, resolve_lib_name): Call fatal_error instead of
10144         fatal and fatal_perror.
10145         * collect2.h (error, fatal, fatal_perror): Don't declare.
10146         * tlink.c: Include diagnostic-core.h.
10147         (recompile_files): Call fatal_error instead of fatal_perror.
10148         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
10149         pretty-print.o and input.o.
10150         (collect2.o, tlink.o): Update dependencies.
10151
10152 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10153
10154         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
10155
10156 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10157
10158         PR target/40483
10159         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
10160         COMDAT group syntax, both SPARC and x86 variants.
10161         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
10162         * configure: Regenerate.
10163         * config/sol2.h (TARGET_SOLARIS): Define.
10164         (PUSHSECTION_FORMAT): Remove.
10165         (SECTION_NAME_FORMAT): Define.
10166         * config/sol2.c: Include hashtab.h.
10167         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
10168         expansion, using SECTION_NAME_FORMAT.
10169         (solaris_comdat_htab): New variable.
10170         (struct comdat_entry): Define.
10171         (comdat_hash): New function.
10172         (comdat_eq): New function.
10173         (solaris_elf_asm_comdat_section): New function.
10174         (solaris_define_comdat_signature): New function.
10175         (solaris_code_end): New function.
10176         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
10177         (solaris_code_end): Declare.
10178         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
10179         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
10180         solaris_code_end.
10181         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
10182         Remove ATTRIBUTE_UNUSED.
10183         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
10184         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
10185         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
10186         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
10187         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
10188         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
10189         (PUSHSECTION_FORMAT): Remove.
10190         (SECTION_NAME_FORMAT): Redefine.
10191
10192 2011-05-19  Kai Tietz  <ktietz@redhat.com>
10193
10194         * tree-cfg.c (verify_gimple_assign_binary): Barf on
10195         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
10196         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
10197
10198 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
10199             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10200
10201         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
10202
10203 2011-05-19  Richard Guenther  <rguenther@suse.de>
10204
10205         PR middle-end/48985
10206         * tree-object-size.c (addr_object_size): If the pointed-to
10207         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
10208
10209 2011-05-19  Richard Guenther  <rguenther@suse.de>
10210
10211         * gimple.c (gimple_types_compatible_p_1): Compare names of
10212         the types themselves.
10213         (iterative_hash_gimple_type): And hash them that way.
10214         (gimple_register_type_1): If we register a main variant properly
10215         initialize the leader to ourselves.
10216
10217 2011-05-19  Tom de Vries  <tom@codesourcery.com>
10218
10219         PR target/45098
10220         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
10221         get_loop_invariant_expr_id.
10222         (get_loop_invariant_expr_id): Use get_expr_id.
10223         (parm_decl_cost): New function.
10224         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
10225         Improve bound cost estimation.  Use different inv_expr_id for elim and
10226         express cases.
10227
10228 2011-05-19  Tom de Vries  <tom@codesourcery.com>
10229
10230         PR target/45098
10231         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
10232         cost_base.cost == 0.
10233
10234 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
10235
10236         PR target/49002
10237         * config/i386/sse.md
10238         (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>): Properly handle
10239         load cast.
10240
10241 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
10242
10243         PR tree-optimization/49039
10244         * tree-vrp.c (extract_range_from_binary_expr): For
10245         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
10246         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
10247
10248 2011-05-18  Tom de Vries  <tom@codesourcery.com>
10249
10250         PR target/45098
10251         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
10252
10253 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
10254
10255         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
10256         (*tls_global_dynamic_64): Ditto.
10257         (*tls_local_dynamic_base_32_gnu): Ditto.
10258         (*tls_local_dynamic_base_64): Ditto.
10259         (tls_initial_exec_64_sun): Ditto.
10260
10261 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
10262
10263         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
10264         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
10265         bf592-none.
10266         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
10267         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
10268         * config/bfin/bfin.c (bfin_cpus): Add bf592.
10269         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
10270         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
10271         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
10272         * config/bfin/elf.h (LIB_SPEC): Add bf592.
10273
10274 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
10275
10276         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
10277         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
10278         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
10279         target_thread_pointer, arm_structure_size_boundary, struct
10280         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
10281         struct abi_name, arm_all_abis): Remove.
10282         (arm_option_override) Don't process most enumerated option values here.
10283         Don't process target_fpe_name here.  Work with integer not string for
10284         structure size boundary; use separate diagnostics for each case.
10285         * config/arm/arm.h (enum float_abi_type, enum
10286         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
10287         to arm-opts.h.
10288         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
10289         arm_structure_size_boundary): Remove.
10290         * config/arm/arm.opt (mabi=): Use Enum and Init.
10291         (arm_abi_type): New Enum and EnumValue entries.
10292         (mfloat-abi=): Use Enum and Init.
10293         (float_abi_type): New Enum and EnumValue entries.
10294         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
10295         (mfp16-format=): Use Enum and Init.
10296         (arm_fp16_format_type): New Enum and EnumValue entries.
10297         (mstructure-size-boundary=): Use UInteger and Init.
10298         (mtp=): Use Enum and Init.
10299         (arm_tp_type): New Enum and EnumValue entries.
10300
10301 2011-05-18  Richard Guenther  <rguenther@suse.de>
10302
10303         PR tree-optimization/49018
10304         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
10305         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
10306         gimple_has_side_effects.
10307
10308 2011-05-18  Richard Guenther  <rguenther@suse.de>
10309
10310         * gimple.c (gimple_register_type_1): New function, split out from ...
10311         (gimple_register_type): ... here.  Avoid infinite recursion.
10312
10313 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
10314
10315         PR tree-optimization/41881
10316         * tree-vectorizer.h (struct _loop_vec_info): Add new field
10317         reduction_chains along with a macro for its access.
10318         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
10319         (destroy_loop_vec_info): Free reduction chains.
10320         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
10321         (vect_is_slp_reduction): New function.
10322         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
10323         (vect_create_epilog_for_reduction): Support SLP reduction chains.
10324         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
10325         definition types for reduction chains.
10326         (vect_supported_load_permutation_p): Don't allow permutations for
10327         reduction chains.
10328         (vect_analyze_slp_instance): Support reduction chains.
10329         (vect_analyze_slp): Try to build SLP instance from reduction chains.
10330         (vect_get_constant_vectors):  Handle reduction chains.
10331         (vect_schedule_slp_instance): Mark the first statement of the
10332         reduction chain as reduction.
10333
10334 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
10335
10336         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
10337         names for group elements access.
10338         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
10339         reduction chains as well.  Remove data reference and interleaving
10340         related words from the fields names.
10341         * tree-vect-loop.c (vect_transform_loop): Use new names for group
10342         elements access.
10343         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
10344         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
10345         vect_update_interleaving_chain, vect_same_range_drs,
10346         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
10347         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
10348         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
10349         vect_analyze_group_access, vect_analyze_data_ref_access,
10350         vect_create_data_ref_ptr, vect_transform_strided_load,
10351         vect_record_strided_load_vectors): Likewise.
10352         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
10353         vect_model_load_cost, vectorizable_store, vectorizable_load,
10354         vect_remove_stores, new_stmt_vec_info): Likewise.
10355         * tree-vect-slp.c (vect_build_slp_tree,
10356         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
10357
10358 2011-05-18  Richard Guenther  <rguenther@suse.de>
10359
10360         PR middle-end/48989
10361         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
10362         operand verification.
10363         (verify_gimple_assign_binary): Likewise.
10364         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
10365         to non-1-precision BOOLEAN_TYPEs.
10366
10367 2011-05-18  Tom de Vries  <tom@codesourcery.com>
10368
10369         PR target/45098
10370         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
10371
10372 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
10373
10374         PR tree-optimization/49000
10375         * tree-ssa.c (execute_update_addresses_taken): Call
10376         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
10377         be rewritten and decl has been marked for renaming, reset
10378         the debug stmt.
10379
10380 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
10381
10382         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
10383         enum_opts_set when testing if attributes have set -mfpmath=.
10384
10385 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
10386
10387         * config/mips/mips.c (mips_handle_option): Remove unused variable.
10388
10389 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
10390
10391         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
10392         info->entry with 0
10393         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
10394         id.transform_lang_insert_block with NULL.
10395
10396 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
10397
10398         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
10399         (output_fp_compare): Change args 3 and 4 to bool.
10400         (ix86_expand_call): Change arg 6 to bool.
10401         (ix86_attr_length_immediate_default): Change arg 2 to bool.
10402         (ix86_attr_length_vex_default): Change arg 3 to bool.
10403         * config/i386/i386.md: Update all uses.
10404         * config/i386/i386.c: Ditto.
10405         (ix86_flags_dependent): Change return type to bool.
10406
10407 2011-05-17  Richard Guenther  <rguenther@suse.de>
10408
10409         * gimple.c (type_hash_pair_compare): Fix comparison.
10410
10411 2011-05-17  Richard Guenther  <rguenther@suse.de>
10412
10413         * gimple.c (iterative_hash_gimple_type): Simplify singleton
10414         case some more, fix final hash value of the non-singleton case.
10415
10416 2011-05-17  Richard Guenther  <rguenther@suse.de>
10417
10418         PR bootstrap/49013
10419         Revert
10420         2011-05-16  Richard Guenther  <rguenther@suse.de>
10421
10422         * gimple.c (gimple_types_compatible_p_1): Use names of the
10423         type itself, not its main variant.
10424         (iterative_hash_gimple_type): Likewise.
10425
10426 2011-05-17  Richard Guenther  <rguenther@suse.de>
10427
10428         * gimple.c (gimple_register_canonical_type): Use the main-variant
10429         leader for computing the canonical type.
10430
10431 2011-05-17  Nick Clifton  <nickc@redhat.com>
10432
10433         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
10434         moves.
10435
10436         * config/rx/rx.md: Add peephole to remove redundant extensions
10437         after loads.
10438         (bitset_in_memory): Use rx_restricted_mem_operand.
10439         (bitinvert_in_memory): Likewise.
10440         (bitclr_in_memory): Likewise.
10441
10442 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
10443             Nick Clifton  <nickc@redhat.com>
10444
10445         * config/rx/rx.md: Add peepholes to match a register move followed
10446         by a comparison of the moved register.  Replace these with an
10447         addition of zero that does both actions in one instruction.
10448
10449 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
10450
10451         PR target/48986
10452         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
10453         predicate to allow CONST_INT.
10454         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
10455
10456 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
10457
10458         * opts-common.c (opt_enum_arg_to_value): New.
10459         * opts.h (opt_enum_arg_to_value): Declare.
10460         * config/i386/i386.opt (fpmath): Remove.
10461         (mfpmath=): Use Enum, Init and Save.
10462         (fpmath_unit): New Enum and EnumValue entries.
10463         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
10464         name for function fpmath state.
10465         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
10466         * config/i386/i386.c: Include diagnostic.h.
10467         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
10468         (ix86_target_string): Take enum fpmath_unit value instead of string.
10469         (ix86_debug_options): Update call to ix86_target_string.
10470         (ix86_option_override_internal): Don't process fpmath strings here.
10471         (x86_function_specific_save, ix86_function_specific_restore):
10472         Don't handle fpmath state specially.
10473         (ix86_function_specific_print): Pass fpmath state to
10474         ix86_target_string instead of printing in this function.
10475         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
10476         Handle enum attributes.
10477         (IX86_ATTR_ENUM, ix86_opt_enum): New.
10478         (ix86_valid_target_attribute_tree): Update option_strings
10479         handling.  Handle fpmath as enum option.
10480         (ix86_can_inline_p): Update field names for function fpmath state.
10481         (ix86_expand_builtin): Update call to ix86_target_string.
10482         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
10483         (ix86_fpmath): Remove.
10484         * config/i386/t-i386 (i386.o): Update dependencies.
10485
10486 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
10487
10488         PR preprocessor/48677
10489         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
10490         from decoded_options[0], not from itself.
10491
10492 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
10493
10494         * config/i386/constraints.md (z): New constraint.
10495         * config/i386/i386.c (c): New mode attribute.
10496         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
10497         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
10498         constraint for operand 0.
10499         (*call_vzeroupper): Ditto.
10500         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
10501         (*call_rex64_ms_sysv_vzeroupper): Ditto.
10502         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
10503         Use "lzm" constraint for operand 0.
10504         (*call_pop_vzeroupper): Ditto.
10505         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
10506         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
10507         constraint for operand 0.
10508         (*sibcall_vzeroupper): Ditto.
10509         (*sibcall_rex64_ms_sysv): Ditto.
10510         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
10511         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
10512         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
10513         (*sibcall_pop_vzeroupper): Ditto.
10514         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
10515         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
10516         mode iterator.  Use "<c>zm" constraint for operand 1.
10517         (*call_value_vzeroupper): Ditto.
10518         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
10519         for operand 1.
10520         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
10521         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
10522         *call_value_pop_1.  Use "lzm" constraint for operand 1.
10523         (*call_value_pop_vzeroupper): Ditto.
10524         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
10525         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
10526         mode iterator.  Use "Uz" constraint for operand 1.
10527         (*sibcall_value_vzeroupper): Ditto.
10528         (*sibcall_value_rex64_ms_sysv): Ditto.
10529         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
10530         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
10531         constraint for operand 1.
10532         (*sibcall_value_pop_vzeroupper): Ditto.
10533         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
10534         and "z" constraint for operand 2.
10535         (*tls_global_dynamic_32_gnu): Ditto.
10536         (*tls_local_dynamic_base_32_gnu): Ditto.
10537         (*tls_local_dynamic_base_64): Ditto.
10538         (*tls_local_dynamic_32_once): Ditto.
10539         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
10540         Update all callers.
10541         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
10542
10543 2011-05-16  Richard Guenther  <rguenther@suse.de>
10544
10545         * gimple.c (gimple_types_compatible_p_1): Use names of the
10546         type itself, not its main variant.
10547         (iterative_hash_gimple_type): Likewise.
10548
10549 2011-05-16  Richard Guenther  <rguenther@suse.de>
10550
10551         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
10552         always visit pointer target and function result and argument types.
10553
10554 2011-05-16  Jason Merrill  <jason@redhat.com>
10555
10556         PR c++/48999
10557         * tree-inline.c (copy_statement_list): Put back recursion.
10558
10559 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
10560
10561         PR target/27663
10562         PR target/41076
10563         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
10564         * config/avr/avr.md ("*ior<mode>qi.byte0",
10565         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
10566
10567 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
10568
10569         PR target/45099
10570         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
10571         register is needed for a function argument.
10572
10573 2011-05-16  Richard Guenther  <rguenther@suse.de>
10574
10575         * gimple.c (struct type_hash_pair): New type.
10576         (type_hash_pair_compare): New function.
10577         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
10578
10579 2011-05-16  Revital Eres  <revital.eres@linaro.org>
10580
10581         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
10582
10583 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
10584
10585         * config/i386/i386.md (floating point move splitters): Fix
10586         usage of standard_80387_constant_p.
10587         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
10588
10589 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
10590
10591         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
10592
10593 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
10594
10595         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
10596         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
10597         (tree_ssa_lim_finalize): Likewise.
10598
10599 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
10600
10601         * config/i386/constraint.md (Yd, Yx): New register constraints.
10602         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
10603         Yd conditional register constraint.
10604         (*movtf_internal): Use standard_sse_constant_opcode.
10605         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
10606         Yx conditional register constraint.
10607         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
10608         Yd conditional register constraint.  Use standard_sse_constant_p to
10609         check for valid SSE constants and call standard_sse_constant_opcode to
10610         output SSE insn.
10611         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
10612         constants and call standard_sse_constant_opcode to output SSE insn.
10613         * config/i386/i386.c (ix86_option_ovverride_internal): Set
10614         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
10615         optimize_size is set.
10616         (standard_sse_constant_opcode): Output conditional AVX insn templates.
10617
10618 2011-05-14  Tobias Burnus  <burnus@net-b.de>
10619
10620         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
10621
10622 2011-05-13  Martin Jambor  <mjambor@suse.cz>
10623
10624         * ipa-prop.c (ipa_cst_from_jfunc): New function.
10625         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
10626         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
10627         (evaluate_conditions_for_ipcp_clone): Removed.
10628         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
10629         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
10630         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
10631
10632 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
10633
10634         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
10635         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
10636         lieu of MAY_HAVE_DEBUG_STMTS.
10637         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
10638         debug statements if !MAY_HAVE_DEBUG_STMTS.
10639
10640 2011-05-13  Martin Thuresson  <martint@google.com>
10641
10642         PR gcov-profile/47793
10643         * libgcov.c (gcov_exit): Support relative profile paths.
10644         * doc/invoke.texi (-fprofile-dir): Update for above change.
10645
10646 2011-05-13  Richard Guenther  <rguenther@suse.de>
10647
10648         * gimple.c (gimple_canonical_types_compatible_p): Do not use
10649         type-pair caching, do not compare hashes.
10650
10651 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
10652
10653         PR middle-end/48965
10654         * tree-cfg.c (edge_to_cases_cleanup): Return true.
10655         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
10656
10657 2011-05-13  Kai Tietz  <ktietz@redhat.com>
10658
10659         * gimplify.c (gimplify_expr): Make sure operand is boolified.
10660         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
10661         compatible type for TRUTH_NOT_EXPR.
10662
10663 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
10664
10665         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
10666         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
10667         can_create_pseudo_p ().
10668
10669 2011-05-13  Richard Guenther  <rguenther@suse.de>
10670
10671         PR lto/48978
10672         * gimple.c (iterative_hash_gimple_type): Revert change in
10673         pointer target and function result and argument hashing.
10674
10675 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
10676
10677         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
10678         (*movxf_internal_nointeger): Ditto.
10679         (*movdf_internal_rex64): Ditto.
10680         (*movdf_internal): Ditto.
10681         (*movdf_internal_nointeger): Ditto.
10682         (*movsf_internal): Ditto.
10683         (sincos splitters): Use can_create_pseudo ().
10684
10685 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
10686
10687         * config/i386/i386-opts.h: New.
10688         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
10689         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
10690         ix86_section_threshold): Remove.
10691         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
10692         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
10693         OPT_mbranch_cost_.
10694         (ix86_option_override_internal): Don't decode strings for options
10695         other than -march=, -mtune= and -mfpmath=.  Don't allow for
10696         __attribute__ uses in remaining diagnostics for options with
10697         string arguments.  Don't check for integer arguments being negative.
10698         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
10699         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
10700         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
10701         ix86_branch_cost, ix86_section_threshold): Remove.
10702         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
10703         HeaderInclude.
10704         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
10705         but not Var.
10706         (masm=): Use Enum and Init.
10707         (asm_dialect): New Enum and EnumValue entries.
10708         (mbranch-cost=): Use UInteger.
10709         (mlarge-data-threshold=): Use UInteger and Init.
10710         (mcmodel=): Use Enum and Init.
10711         (cmodel): New Enum and EnumValue entries.
10712         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
10713         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
10714         mregparm=): Use UInteger.
10715         (mstringop-strategy=): Use Enum and Init.
10716         (stringop_alg): New Enum and EnumValue entries.
10717         (mtls-dialect=): Use Enum and Init.
10718         (tls_dialect): New Enum and EnumValue entries.
10719         (mabi=): Use Enum and Init.
10720         (calling_abi): New Enum and EnumValue entries.
10721         (mveclibabi=): Use Enum and Init.
10722         (ix86_veclibabi): New Enum and EnumValue entries.
10723
10724 2011-05-13  Nick Clifton  <nickc@redhat.com>
10725
10726         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
10727         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
10728
10729 2011-05-13  Kai Tietz  <ktietz@redhat.com>
10730
10731         PR middle-end/48984
10732         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
10733         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
10734         (gimple_boolify): Check for cast for boolean_type_node instead for
10735         BOOLEAN_TYPE.
10736
10737 2011-05-13  Richard Guenther  <rguenther@suse.de>
10738
10739         PR tree-optimization/48172
10740         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
10741         multiplying by number of iterations for equal step.
10742         (vect_create_cond_for_alias_checks): Likewise.
10743
10744 2011-05-13  Andreas Schwab  <schwab@redhat.com>
10745
10746         * configure.ac: Use AS_HELP_STRING throughout.
10747         * configure: Regenerate.
10748
10749 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
10750
10751         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
10752         (ix86_emit_restore_regs_using_mov): Likewise.
10753         (ix86_emit_restore_sse_regs_using_mov): Likewise.
10754
10755 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
10756
10757         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
10758         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
10759         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
10760         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
10761         RTX_OK_FOR_OLO10_P): ...here.
10762         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
10763         SYMBOLIC_CONST.
10764
10765 2011-05-12  Kai Tietz  <ktietz@redhat.com>
10766
10767         * gimplify.c (gimple_boolify): Re-boolify expression
10768         arguments even if expression type is of kind BOOLEAN_TYPE.
10769         (gimplify_boolean_expr): Removed.
10770         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
10771         and XOR. Additional take care that we keep expression's type.
10772         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
10773         of TRUTH_AND|OR|XOR_EXPR.
10774
10775 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
10776
10777         PR tree-optimization/48975
10778         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
10779         on all bbs here and free and clear ifc_bbs at the end.
10780
10781 2011-05-12  Richard Guenther  <rguenther@suse.de>
10782
10783         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
10784         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
10785         until after simple checks.
10786         (gimple_types_compatible_p): Likewise.
10787         (iterative_hash_gimple_type): Always hash pointer targets
10788         and function return and argument types.
10789         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
10790         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
10791         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
10792         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
10793         completely in the simple compare section.
10794         (gimple_register_canonical_type): Query the cache again after
10795         registering.
10796
10797 2011-05-12  Richard Guenther  <rguenther@suse.de>
10798
10799         PR tree-optimization/48172
10800         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
10801         the number of iterations from the segment size calculation.
10802         (vect_create_cond_for_alias_checks): Adjust.
10803
10804 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
10805
10806         PR debug/48967
10807         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
10808         if validate_subreg fails.
10809
10810 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
10811
10812         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
10813         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
10814         early.
10815
10816 2011-05-12  DJ Delorie  <dj@redhat.com>
10817
10818         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
10819         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
10820         created builtin into rx_builtins array.
10821         (rx_builtin_decl): New function.
10822         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
10823
10824 2011-05-12  DJ Delorie  <dj@redhat.com>
10825             Nick Clifton  <nickc@redhat.com>
10826
10827         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
10828         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
10829         (rx_is_legitimate_address): Add pre-decrement and post-increment
10830         addressing in HImode and QImode.  Fix test for out of range
10831         REG+INT addressing.
10832         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
10833         (rx_align_for_label): Test label before extracting its usage count.
10834         (rx_adjust_insn_lengths): Fix selection of insn codes.
10835         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
10836
10837 2011-05-11  Jason Merrill  <jason@redhat.com>
10838
10839         * tree.c (type_hash_canon): Use struct tree_type_non_common.
10840
10841 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
10842
10843         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
10844         reindent the subsequent block.
10845
10846 2011-05-11  Satoru Takabayashi  <satorux@google.com>
10847             Paul Pluzhnikov  <ppluzhnikov@google.com>
10848
10849         * doc/install.texi (Configuration): Document --with-linker-hash-style.
10850         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
10851         * config.in: Add LINKER_HASH_STYLE.
10852         * configure.ac: Add --with-linker-hash-style.
10853         * configure: Regenerate.
10854
10855 2011-05-11  Richard Guenther  <rguenther@suse.de>
10856
10857         PR middle-end/48964
10858         * gimple.c (iterative_hash_canonical_type): Fix typo.
10859
10860 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
10861
10862         * config/i386/i386.c (legitimize_tls_address)
10863         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
10864         expanders directly for TARGET_GNU2_TLS.  Determine pic and
10865         __tls_get_addr symbol reference here.  Update call to
10866         gen_tls_global_dynamic_{32,64} for added arguments.
10867         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
10868         expanders directly for TARGET_GNU2_TLS.  Determine
10869         __tls_get_addr symbol reference here.  Update call to
10870         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
10871         unique UNSPEC REG_EQUIV to libcall block.
10872         (ix86_tls_get_addr): Declare static.
10873         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
10874         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
10875         Do not determine pic and __tls_get_addr symbol reference here. Do not
10876         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
10877         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
10878         (tls_global_dynamic_64): Add operand 2.  Do not determine
10879         __tls_get_addr symbol reference here.  Do not call
10880         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
10881         (tls_local_dynamic_base64): Ditto for operand 1.
10882
10883 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
10884
10885         * function.c (expand_function_start): Initialize stack_check_probe_note
10886         only if the generic stack checking mechanism is used.
10887
10888 2011-05-11  Richard Guenther  <rguenther@suse.de>
10889
10890         PR tree-optimization/15256
10891         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
10892         (A & B) | C, combine (A op CST1) op CST2.
10893         (tree_ssa_forward_propagate_single_use_vars): Only bother to
10894         visit assigns that have uses.
10895
10896 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
10897
10898         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
10899         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
10900         (unpack_ts_type_common_value_fields): ...this.  Update comment.
10901         (unpack_value_fields): Adjust for renaming.
10902         (lto_input_ts_type_tree_pointers): Split into...
10903         (lto_input_ts_type_common_tree_pointer): ...this and...
10904         (lto_input_ts_type_non_common_tree_pointers): ...this.
10905         (lto_input_tree_pointers): Adjust for above split.
10906         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
10907         (pack_ts_type_common_value_fields): ...this.  Update comment.
10908         (lto_output_ts_type_tree_pointers): Split into...
10909         (lto_output_ts_type_common_tree_pointers): ...this and...
10910         (lto_output_ts_type_non_common_tree_pointers): ...this.
10911         (lto_output_tree_pointers): Adjust for above split.
10912         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
10913         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
10914         * stor-layout.c (vector_type_mode): Adjust location of mode field.
10915         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
10916         Define.
10917         (struct tree_type): Split into...
10918         (struct tree_type_common: ...this and...
10919         (struct tree_type_with_lang_specific): ...this and...
10920         (struct tree_type_non_common): ...this.  Adjust accessor macros
10921         accordingly.
10922         (TYPE_VALUES_RAW): Define.
10923         (union tree_node): Update for above changes.
10924         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
10925         TS_TYPE_NON_COMMON.
10926         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
10927         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
10928         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
10929         * treestructu.def (TS_TYPE): Remove.
10930         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
10931         Define.
10932
10933 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
10934
10935         PR debug/48159
10936         * tree-ssa.c (reset_debug_uses): New function.
10937         * tree-flow.h (reset_debug_uses): New prototype.
10938         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
10939         * tree-loop-distribution.c (generate_loops_for_partition): Call
10940         reset_debug_uses on the stmts that will be removed.  Keep around
10941         all debug stmts, don't count them as bits in partition bitmap.
10942         (generate_builtin): Don't count debug stmts or labels as bits in
10943         partition bitmap.
10944
10945 2011-05-11  Richard Guenther  <rguenther@suse.de>
10946
10947         * gimple.c (gimple_type_hash_1): Merge with ...
10948         (gimple_type_hash): ... this.
10949         (gtc_visit): Remove mode parameter and simplify accordingly.
10950         (gimple_types_compatible_p_1): Likewise.
10951         (gimple_types_compatible_p): Likewise.
10952         (iterative_hash_gimple_type): Likewise.
10953         (visit): Likewise.
10954         (gimple_type_eq): Adjust.
10955
10956 2011-05-11  Revital Eres  <revital.eres@linaro.org>
10957
10958         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
10959         enters the branch create an anti edge in the opposite direction
10960         to prevent the creation of reg-moves.
10961         * modulo-sched.c: Adjust comment to reflect the fact we are
10962         scheduling closing branch.
10963         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
10964         (stage_count): New field in struct partial_schedule.
10965         (calculate_stage_count): New function.
10966         (normalize_sched_times): Rename to reset_sched_times and handle
10967         incrementing the sched time of the nodes by a constant value
10968         passed as parameter.
10969         (duplicate_insns_of_cycles): Skip closing branch.
10970         (sms_schedule_by_order): Schedule closing branch.
10971         (ps_insn_find_column): Handle closing branch.
10972         (sms_schedule): Call reset_sched_times and adjust the code to
10973         support scheduling of the closing branch.
10974         (ps_insert_empty_row): Update calls to normalize_sched_times
10975         and rotate_partial_schedule functions.
10976
10977 2011-05-11  Richard Guenther  <rguenther@suse.de>
10978
10979         PR middle-end/48953
10980         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
10981
10982 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
10983
10984         * opts.c (finish_options): Move warning settings from process_options.
10985         * toplev.c (process_options): Move warning settings to finish_options.
10986
10987 2011-05-11  Richard Guenther  <rguenther@suse.de>
10988
10989         PR tree-optimization/18041
10990         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
10991         (simplify_bitwise_binary): ... this.  Handle operand conversions
10992         by applying them to the result instead.
10993         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
10994
10995 2011-05-11  Richard Guenther  <rguenther@suse.de>
10996
10997         * gimple.c (gimple_canonical_types_compatible_p): Split out
10998         from gimple_types_compatible_p and friends.  Do not recurse
10999         to pointed-to types.
11000         (gimple_canonical_type_eq): Use it.
11001         (iterative_hash_canonical_type): Split out from
11002         iterative_hash_gimple_type and friends.  Do not recurse
11003         to pointed-to types.
11004         (gimple_canonical_type_hash): Use it, allocate the hash here.
11005
11006 2011-05-11  Revital Eres  <revital.eres@linaro.org>
11007
11008         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
11009         recognizing doloop.
11010
11011 2011-05-11  Revital Eres  <revital.eres@linaro.org>
11012
11013         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
11014         instead of PREV_INSN.
11015
11016 2011-05-11  Revital Eres  <revital.eres@linaro.org>
11017
11018         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
11019         * loop-doloop.c (doloop_condition_get): Likewise.
11020         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
11021         (doloop_end): New.
11022         * config/arm/arm.md (*addsi3_compare0): Remove "*".
11023
11024 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
11025
11026         * tree.def (CASE_LABEL_EXPR): Add an operand.
11027         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
11028
11029 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
11030
11031         * c-decl.c (c_override_global_bindings_to_false): Remove.
11032         (global_bindings_p): Don't check
11033         c_override_global_bindings_to_false.
11034         * c-tree.h (c_override_global_bindings_to_false): Remove.
11035         * c-typeck.c (composite_type): Don't set
11036         c_override_global_bindings_to_false.
11037
11038 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
11039
11040         PR target/48857, 48495
11041         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
11042         (VSX_MODE): Ditto.
11043         (VSX_MOVE_MODE): Ditto.
11044         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
11045         VSX vector types.  Add V2DImode.
11046         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
11047         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
11048         (MODES_TIEABLE_P): Ditto.
11049
11050         * config/rs6000/rs6000.c (rs6000_emit_move): Use
11051         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
11052         VSX_VECTOR_MODE.
11053         (init_cumulative_args): Ditto.
11054         (rs6000_function_arg_boundary): Ditto.
11055         (rs6000_function_arg_advance_1): Ditto.
11056         (rs6000_function_arg): Ditto.
11057         (rs6000_function_ok_for_sibcall): Ditto.
11058         (emit_frame_save): Ditto.
11059         (rs6000_function_value): Ditto.
11060         (rs6000_libcall_value): Ditto.
11061
11062 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
11063
11064         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
11065         i386/darwin-lib.h to $libgcc_tm_file.
11066         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
11067
11068 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
11069
11070         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
11071
11072 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
11073
11074         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
11075         * config/rs6000/rs6000-tables.opt: New file (generated).
11076         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
11077         rs6000/rs6000-tables.opt to extra_options.
11078         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
11079         * config/rs6000/rs6000.c (rs6000_select): Remove.
11080         (processor_target_table): Move contents to rs6000-cpus.def.
11081         (darwin_rs6000_override_options): Check
11082         global_options_set.x_rs6000_cpu_index instead of
11083         rs6000_select[1].string.
11084         (rs6000_option_override_internal): Likewise.
11085         (rs6000_handle_option): Don't assert that global structures are in
11086         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
11087         (rs6000_default_cpu): New variable.
11088         (rs6000_file_start): Set it instead of local default_cpu.  Check
11089         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
11090         global_options_set.x_rs6000_tune_index instead of rs6000_select.
11091         (rs6000_darwin_file_start): Check rs6000_default_cpu and
11092         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
11093         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
11094         rs6000_select): Remove.
11095         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
11096         Remove.
11097         (mcpu=, mtune=): Use Var, Init, Enum and Save.
11098         * config/rs6000/t-rs6000
11099         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
11100         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
11101         global_options_set.x_rs6000_cpu_index instead of
11102         rs6000_select[1].string.
11103         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
11104         global_options_set.x_rs6000_cpu_index instead of
11105         rs6000_select[1].string.
11106
11107 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
11108
11109         * config.gcc (libgcc_tm_file): Define instead of including files
11110         from ../../libgcc/config/ in tm_file.
11111         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
11112         * configure: Regenerate.
11113         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
11114         libgcc_tm.h, cs-libgcc_tm.h): New.
11115         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
11116         (clean): Remove libgcc_tm.h.
11117         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
11118         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
11119         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
11120
11121 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
11122
11123         PR target/48896
11124         * config/avr/avr.c (avr_ret_register): Return unsigned int
11125         instead of int.
11126         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
11127         it to avr_libcall_value.
11128         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
11129         expand_expr.
11130         (avr_expand_binop_builtin): Ditto.
11131         (avr_expand_unop_builtin): Ditto.
11132
11133 2011-05-10  DJ Delorie  <dj@redhat.com>
11134
11135         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
11136         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
11137         * config/rx/rx.c (rx_align_for_label): Add label and
11138         uses_threshold parameters.  Do not align when the label is not
11139         used enough.
11140         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
11141
11142 2011-05-10  Richard Guenther  <rguenther@suse.de>
11143
11144         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
11145         a series of conversions and apply foldings similar to what
11146         fold-const does.
11147         (tree_ssa_forward_propagate_single_use_vars): Call it.
11148
11149 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
11150
11151         PR tree-optimization/48611
11152         PR tree-optimization/48794
11153         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
11154         referenced from RESX or EH_DISPATCH arguments.
11155
11156         PR debug/48928
11157         * dfp.c (decimal_to_decnumber): Handle conversion from
11158         dconst{1,2,m1,half}.
11159
11160 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
11161
11162         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
11163         for !flag_prefer_avx128.
11164         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
11165
11166 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
11167
11168         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
11169         (fold_ternary_loc): Use expr_location_or.
11170
11171 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
11172
11173         PR debug/48853
11174         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
11175         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
11176         Pmode and mem_mode is not VOIDmode.
11177
11178 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
11179
11180         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
11181         TYPE_QUAL_RESTRICT): Convert to enum.
11182
11183 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
11184
11185         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
11186         (const_pow2_1_to_8_operand): Ditto.
11187         (const_pow2_1_to_128_operand): Ditto.
11188         (const_pow2_1_to_32768_operand): Ditto.
11189         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
11190         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
11191         in insn constraint to check integer value of operand 3.
11192         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
11193
11194         (PINSR_MODE): New mode iterator.
11195         (sse2p4_1): New mode attribute.
11196         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
11197         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
11198         iterator.  Use const_int_operand instead of
11199         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
11200         exact_log2 in insn constraint to check integer value of operand 3.
11201
11202 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
11203
11204         * config/i386/sse.md (blendbits): Remove mode attribute.
11205         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
11206         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
11207         Check integer value of operand 3 in insn constraint.
11208
11209 2011-05-09  Richard Guenther  <rguenther@suse.de>
11210
11211         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
11212         for diagnostics.
11213         (lto_symtab_merge): Likewise.  Do not register types here.
11214         (lto_symtab_merge_decls_2): Likewise.
11215         (lto_symtab_merge_decls_1): Likewise.
11216         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
11217         * gimple.c (enum gtc_mode): Declare.
11218         (gimple_types_compatible_p): Make static.
11219
11220 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11221
11222         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
11223         temporary register to match Pmode.
11224
11225 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
11226
11227         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
11228         and *vec_concatv4si_1_avx.
11229
11230 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
11231
11232         PR rtl-optimization/48927
11233         * ira-conflicts.c (commutative_constraint_p): Use
11234         recog_data.alternative_enabled_p to disable alternatives where
11235         "enabled" attribute is false.
11236         (get_dup_num): Ditto.
11237         * ira-lives.c (single_reg_class): Ditto.
11238         (ira_implicitly_set_insn_hard_regs): Ditto.
11239
11240 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
11241
11242         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
11243         (dataflow_set_preserve_mem_locs): Likewise.
11244
11245 2011-05-09  Philipp Thomas  <pth@suse.de>
11246
11247         * config/mep/mep.c (mep_validate_vliw): Syntax description
11248         should not be translated.
11249
11250 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
11251
11252         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
11253         * config/mips/mips-tables.opt: New file (generated).
11254         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
11255         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
11256         MIPS_ARCH_OPTION_NATIVE): Define.
11257         * config/mips/mips.c (mips_cpu_info_table): Move contents to
11258         mips-cpus.def.
11259         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
11260         mips_parse_cpu): Remove.
11261         (mips_cpu_info_from_opt, mips_default_arch): New.
11262         (mips_handle_option): Don't assert that global structures are in
11263         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
11264         (mips_option_override): Use new variables and functions to set
11265         state of these options.  Use strcmp to check for individual CPU names.
11266         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
11267         definition.
11268         * config/mips/mips.opt (march=): Use ToLower and Enum.
11269         (mips): Use ToLower, Enum and Var.
11270         (mtune=): Use ToLower and Enum.
11271         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
11272
11273 2011-05-08  Jan Hubicka  <jh@suse.cz>
11274
11275         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
11276         Arrange type pairs to be UID ordered.
11277         (gimple_lookup_type_leader): Make inline.
11278
11279 2011-05-09  Nick Clifton  <nickc@redhat.com>
11280
11281         PR target/48899
11282         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
11283         PROCESSOR_DEFAULT.
11284
11285         PR target/48897
11286         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
11287         variable 's'.
11288
11289 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
11290
11291         * combine.c (simplify_comparison): Abstract out parts into...
11292         (simplify_compare_const): ... new function.
11293         (try_combine): Generalize parallel arithmetic/compare combining
11294         to call simplify_compare_const() and CANONICALIZE_COMPARE().
11295
11296 2011-05-08  Jan Hubicka  <jh@suse.cz>
11297
11298         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
11299         (cgraph_create_virtual_clone): Call hooks once virtual clone
11300         is finished.
11301         * cgraph.h (cgraph_clone_node): Update prototype.
11302         * ipa-cp.c (ipcp_estimate_growth): Use
11303         estimate_ipcp_clone_size_and_time.
11304         * ipa-inline-transform.c (clone_inlined_nodes): Update.
11305         * lto-cgraph.c (input_node): Update.
11306         * ipa-inline.c (recursive_inlining): Update.
11307         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
11308         (evaluate_conditions_for_known_args): Break out from ...
11309         (evaluate_conditions_for_edge): ... here.
11310         (evaluate_conditions_for_ipcp_clone): New function.
11311         (inline_node_duplication_hook): Update clone summary based
11312         on parameter map.
11313         (estimate_callee_size_and_time): Rename to ...
11314         (estimate_node_size_and_time): take NODE instead of EDGE;
11315         take POSSIBLE_TRUTHS as argument.
11316         (estimate_callee_size_and_time): Update.
11317         (estimate_ipcp_clone_size_and_time): New function.
11318         (do_estimate_edge_time): Update.
11319
11320 2011-05-08  Richard Guenther  <rguenther@suse.de>
11321
11322         PR middle-end/48908
11323         PR middle-end/48905
11324         * expmed.c (expand_shift_1): Compute adjusted constant shift
11325         amount manually.
11326
11327 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
11328
11329         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
11330
11331 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
11332
11333         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
11334
11335 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
11336
11337         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
11338
11339 2011-05-07  Jan Hubicka  <jh@suse.cz>
11340
11341         * ipa-inline-transform.c (inline_call): Account when program size
11342         decreases.
11343         * ipa-inline.c (relative_time_benefit): New function.
11344         (edge_badness): Reorganize to be power 2 based; fix thinko when
11345         computing badness for negative growth; update comments to match
11346         reality; better dumps.
11347
11348 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
11349
11350         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
11351         type to bool and adjust comment.
11352         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
11353         (fold_mathfn_compare): Remove calls to global_bindings_p.
11354         (fold_inf_compare): Likewise.
11355         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
11356         * c-tree.h (global_bindings_p): Adjust prototype.
11357         * c-decl.c (global_bindings_p): Return bool and simplify.
11358
11359 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
11360
11361         PR tree-optimization/48837
11362         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
11363         when accumulator transformation is performed.
11364
11365 2011-05-06  Jan Hubicka  <jh@suse.cz>
11366
11367         * i386.h (ix86_tune_indices): Add
11368         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
11369         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
11370         * i386.c (initial_ix86_tune_features): Add
11371         X86_SOFTARE_PREFETCHING_BENEFICIAL.
11372         (software_prefetching_beneficial_p): Remove predicate.
11373         (ix86_option_override_internal): Use new macro.
11374
11375 2011-05-06  Jan Hubicka  <jh@suse.cz>
11376
11377         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
11378
11379 2011-05-06  Jan Hubicka  <jh@suse.cz>
11380
11381         * cgraph.c (cgraph_add_thunk): Create real function node instead
11382         of alias node; finalize it and mark needed/reachale; arrange visibility
11383         to be right and add it into the corresponding same comdat group list.
11384         (dump_cgraph_node): Dump thunks.
11385         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
11386         cgraph_function_with_gimple_body_p,
11387         cgraph_first_function_with_gimple_body,
11388         cgraph_next_function_with_gimple_body): New functions.
11389         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
11390         New macros.
11391         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
11392         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
11393         * cgraphunit.c (cgraph_finalize_function): Only look into possible
11394         devirtualization when optimizing.
11395         (verify_cgraph_node): Verify thunks.
11396         (cgraph_analyze_function): Analyze thunks.
11397         (cgraph_mark_functions_to_output): Output thunks only in combination
11398         with function they are assigned to.
11399         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
11400         alias into normal node.
11401         (assemble_thunks): New functoin.
11402         (cgraph_expand_function): Use it.
11403         * lto-cgraph.c (lto_output_node): Stream thunks.
11404         (input_overwrite_node): Stream in thunks.
11405         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
11406         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
11407         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
11408         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
11409         (inline_analyze_function): Do not care about thunk jump functions.
11410         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
11411         * ipa-prop.c (ipa_prop_write_jump_functions): Use
11412         cgraph_function_with_gimple_body_p.
11413         * passes.c (do_per_function_toporder): Use
11414         cgraph_function_with_gimple_body_p.
11415         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
11416         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
11417         (function_called_by_processed_nodes_p): Likewise.
11418
11419 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
11420
11421         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
11422         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
11423         entries.
11424         (mabi=): Replace with separate entries for mabi=altivec,
11425         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
11426         mabi=ieeelongdouble and mabi=ibmlongdouble.
11427         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
11428         check for -mabi=spe without SPE ABI support here.
11429         (rs6000_handle_option): Replace OPT_mabi_ handling with
11430         OPT_mabi_altivec and OPT_mabi_spe handling.
11431
11432 2011-05-06  Cary Coutant  <ccoutant@google.com>
11433
11434         * dwarf2out.c (contains_subprogram_definition): New function.
11435         (should_move_die_to_comdat): Call it.
11436
11437 2011-05-06  Jeff Law  <law@redhat.com>
11438
11439         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
11440         remove_ctrl_stmt_and_useless_edges.
11441         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
11442         (fixup_template_block, thread_single_edge): Likewise.
11443         (mark_threaded_blocks): Use THREAD_TARGET.
11444
11445 2011-05-06  Alan Modra  <amodra@gmail.com>
11446
11447         PR target/48900
11448         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
11449         const0_rtx as the arg to the dummy __tls_get_addr libcall.
11450
11451 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
11452
11453         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
11454         constraint modifier to "r".
11455
11456 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
11457
11458         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
11459         fall through for OPT_mcmodel_.
11460
11461 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11462
11463         * config/s390/s390.c (s390_asm_trampoline_template): Comment
11464         instruction sizes.
11465         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
11466
11467 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11468
11469         PR target/47930
11470         * config/arm/arm.opt (marm): Document it.
11471         (mthumb): Reject negative variant.
11472
11473 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
11474
11475         PR target/48898
11476         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
11477         Fix typo in "ccvt" variable name.
11478
11479 2011-05-06  Tristan Gingold  <gingold@adacore.com>
11480
11481         PR target/48895
11482         * config/vms/vms-ar.c (main): Remove cwd variable.
11483
11484 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
11485
11486         PR debug/48902
11487         * var-tracking.c (prepare_call_arguments): Move else before #endif.
11488
11489 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
11490
11491         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
11492         * gimplify.c (gimplify_switch_expr): Likewise.
11493         * omp-low.c (expand_omp_sections): Likewise.
11494         * tree-eh.c (lower_try_finally_switch): Likewise.
11495         (lower_eh_dispatch): Likewise.
11496         * tree.h (build_case_label): Declare.
11497         * tree.c (build_case_label): Define.
11498
11499 2011-05-05  Jason Merrill  <jason@redhat.com>
11500
11501         PR c++/40975
11502         * tree-inline.c (copy_tree_r): Use copy_statement_list.
11503         (copy_statement_list): Don't recurse.
11504         * stor-layout.c (copy_self_referential_tree_r): Don't allow
11505         STATEMENT_LIST.
11506
11507 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
11508
11509         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
11510         through from -mfpu= handling.
11511         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
11512
11513 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
11514
11515         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
11516         POST_MODIFY.
11517
11518 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
11519
11520         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
11521         for 11.31.
11522         (hppa[12]*-*-hpux11*): Ditto.
11523         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
11524         * config/ia64/hpux-unix2003.h: New.
11525         * config/pa/pa-hpux1131.opt: New.
11526         * config/pa/pa-hpux1131.h: New.
11527         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
11528         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
11529         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
11530
11531 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
11532
11533         PR debug/48853
11534         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
11535         instead of mode as 3rd argument to recursive call.
11536         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
11537         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
11538         VOIDmode.
11539         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
11540         don't give up if mode is Pmode and mem_mode is not VOIDmode.
11541         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
11542         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
11543
11544 2011-05-05  Julian Brown  <julian@codesourcery.com>
11545
11546         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
11547         parenthesis in D-register case.
11548
11549 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
11550
11551         * opt-functions.awk (var_type_struct): Handle Enum options.
11552         * optc-gen.awk: Don't check range of variables of character type.
11553         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
11554         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
11555         rs6000_sdata_name, rs6000_explicit_options): Remove.
11556         (rs6000_option_override_internal): Check for -malign-power here.
11557         Use global_options_set instead of rs6000_explicit_options.
11558         (rs6000_parse_fpu_option): Remove.
11559         (rs6000_handle_option): Access variables via opts and opts_set
11560         pointers.  Use error_at and warning_at.  Add fall-through
11561         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
11562         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
11563         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
11564         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
11565         here.  Don't use rs6000_parse_fpu_option.
11566         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
11567         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
11568         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
11569         (mrecip=): Use Var.
11570         (mspe): Use Var and Save.
11571         (mtraceback=): Use Enum and Var.
11572         (rs6000_traceback_type): New Enum and EnumValue entries.
11573         (mfloat-gprs=): Use Enum, Var and Save.
11574         (rs6000_float_gprs): New Enum and EnumValue entries.
11575         (mlong-double-): use Var and Save.
11576         (msched-costly-dep=, minsert-sched-nops=): Use Var.
11577         (malign-): Use Enum and Var.
11578         (rs6000_alignment_flags): New Enum and EnumValue entries.
11579         (mfpu=): Use Enum.
11580         (fpu_type_t): New Enum and EnumValue entries.
11581         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
11582         global_options_set instead of rs6000_explicit_options.
11583         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
11584         global_options_set instead of rs6000_explicit_options.
11585         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
11586         global_options_set instead of rs6000_explicit_options.
11587         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
11588         global_options_set instead of rs6000_explicit_options.
11589         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
11590         global_options_set instead of rs6000_explicit_options.
11591         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
11592         global_options_set instead of rs6000_explicit_options.
11593         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
11594         definition.
11595         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
11596         global_options_set instead of rs6000_explicit_options.
11597         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
11598         (rs6000_cmodel): New Enum and EnumValue entries.
11599         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
11600         global_options_set instead of rs6000_explicit_options.
11601         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
11602         (mtls-size=): Use Enum and Var.
11603         (rs6000_tls_size): New Enum and EnumValue entries.
11604
11605 2011-05-05  Michael Matz  <matz@suse.de>
11606
11607         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
11608         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
11609         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
11610         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
11611         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
11612         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
11613         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
11614         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
11615         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
11616         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
11617         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
11618         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
11619         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
11620         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
11621         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
11622         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
11623
11624 2011-05-05  Richard Guenther  <rguenther@suse.de>
11625
11626         * expmed.c (expand_variable_shift): Rename to ...
11627         (expand_shift_1): ... this.  Take an expanded shift amount.
11628         For rotates recurse directly not building trees for the shift amount.
11629         (expand_variable_shift): Wrap around expand_shift_1.
11630         (expand_shift): Adjust.
11631
11632 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
11633
11634         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
11635
11636 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
11637
11638         * tree.h (get_pending_sizes): Remove prototype.
11639         (put_pending_size): Likewise.
11640         (put_pending_sizes): Likewise.
11641         * stor-layout.c (pending_sizes): Delete.
11642         (get_pending_sizes): Likewise.
11643         (put_pending_size): Likewise.
11644         (put_pending_sizes): Likewise.
11645         (variable_size): Do not call put_pending_size and tidy up.
11646         * function.h (struct function): Remove dont_save_pending_sizes_p.
11647         * lto-streamer-in.c (input_function): Do not stream it.
11648         * lto-streamer-out.c (output_function): Likewise.
11649         * tree-inline.c (initialize_cfun): Do not copy it.
11650         * c-decl.c (store_parm_decls): Do not set it.
11651         * omp-low.c (create_task_copyfn): Likewise.
11652         * tree-optimize.c (tree_rest_of_compilation): Likewise.
11653
11654 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
11655
11656         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
11657         conditions.
11658         (*movdf_internal): Ditto.
11659         (*movdf_internal_nointeger): Ditto.
11660         (*movsf_internal): Ditto.
11661
11662 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
11663
11664         * c-decl.c (finish_decl): Don't call get_pending_sizes.
11665         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
11666         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
11667         (c_variable_size): Remove.
11668         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
11669         call put_pending_sizes.
11670         (get_parm_info): Add parameter expr.  Use it to set
11671         arg_info->pending_sizes.
11672         (store_parm_decls): Use arg_info->pending_sizes instead or calling
11673         get_pending_sizes.
11674         * c-parser.c (c_parser_parms_declarator): Update call to
11675         c_parser_parms_list_declarator.
11676         (c_parser_parms_list_declarator): Take parameter expr.  Update
11677         call to push_parm_decl.  Update recursive call.  Don't call
11678         get_pending_sizes.  Update calls to get_parm_info.
11679         (c_parser_objc_method_definition): Update calls to
11680         c_parser_objc_method_decl and objc_start_method_definition.
11681         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
11682         (c_parser_objc_method_decl): Add parameter expr.  Update call to
11683         grokparm.
11684         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
11685         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
11686         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
11687
11688 2011-05-05  Michael Hope  <michael.hope@linaro.org>
11689
11690         PR pch/45979
11691         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
11692         __ARM_EABI__ hosts.
11693
11694 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11695
11696         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
11697         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
11698         (spu_output_mi_thunk): New function.
11699
11700 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11701
11702         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
11703         targetm.asm_out.print_operand.
11704         * config/sol2.c: Include target.h.
11705
11706 2011-05-04  Jan Hubicka  <jh@suse.cz>
11707
11708         * ipa-inline.c (reset_edge_caches): New function.
11709         (update_caller_keys): Add check_inlinablity_for; do not
11710         reset edge caches; remove now unnecesary loop.
11711         (update_callee_keys): Add comments; reset node_growth_cache of callee.
11712         (update_all_callee_keys): Likewise.
11713         (inline_small_functions): Sanity check cache; update code
11714         recomputing it.
11715
11716 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
11717
11718         PR rtl-optimization/47612
11719         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
11720         as the last insn of the sequence to be moved.
11721
11722 2011-05-04  Tobias Burnus  <burnus@net-b.de>
11723
11724         PR fortran/48864
11725         * doc/invoke.texi (Ofast): Document that it
11726         enables Fortran's -fno-protect-parens.
11727
11728 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
11729
11730         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
11731
11732 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
11733
11734         * stor-layout.c (variable_size): Do not issue errors.
11735
11736 2011-05-04  Richard Guenther  <rguenther@suse.de>
11737
11738         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
11739         for array-ref indices.
11740         (tree_coverage_counter_addr): Likewise.
11741         (build_fn_info_type): Use size_int for index types.
11742         (build_gcov_info): Likewise.
11743
11744 2011-05-04  Richard Guenther  <rguenther@suse.de>
11745
11746         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
11747         to build_int_cst.
11748         * c-typeck.c (really_start_incremental_init): Use bitsize_int
11749         for constructor indices.
11750         (push_init_level): Likewise.
11751
11752 2011-05-04  Richard Guenther  <rguenther@suse.de>
11753
11754         * explow.c (promote_mode): Move variable declarations before code.
11755
11756 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
11757
11758         * tree.h (build_function_type_array): Declare.
11759         (build_varargs_function_type_array): Declare.
11760         (build_function_type_vec, build_varargs_function_type_vec): Define.
11761         * tree.c (build_function_type_array_1): New function.
11762         (build_function_type_array): New function.
11763         (build_varargs_function_type_array): New function.
11764
11765 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
11766
11767         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
11768         before setting STMT_VINFO_TYPE.
11769
11770 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
11771
11772         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
11773         instead of spu_pass_by_reference.
11774
11775 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11776
11777         * calls.c (emit_library_call_value_1): Invoke
11778         promote_function_mode hook on libcall arguments.
11779         * explow.c (promote_function_mode, promote_mode): Handle TYPE
11780         argument being NULL.
11781         * targhooks.c (default_promote_function_mode): Lisewise.
11782         * config/s390/s390.c (s390_promote_function_mode): Likewise.
11783         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
11784
11785         * doc/tm.texi: Document that TYPE argument might be NULL.
11786
11787 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
11788
11789         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
11790
11791 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
11792
11793         From Bernd Schmidt
11794         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
11795
11796 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11797
11798         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
11799         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
11800         Move ...
11801         * mips-tfile.c: ... here.
11802         Don't include coretypes.h, tm.h, filenames.h.
11803         (saber_stop): Remove definition and all calls.
11804         [__SABER__]: Remove.
11805         (__LINE__): Remove default.
11806         (Size_t, Ptrdiff_t): Remove definitions.
11807         Replace by size_t, ptrdiff_t.
11808         [!MIPS_DEBUGGING_INFO]: Remove.
11809         (SHASH_SIZE, THASH_SIZE): Remove defaults.
11810         (progname): Add const.
11811         (STATIC): Remove.
11812         Replace all uses by static.
11813         (ALIGN_SYMTABLE_OFFSET): Remove default.
11814         * mips-tdump.c: Don't include coretypes.h, tm.h.
11815         Remove !MIPS_IS_STAB guard.
11816         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
11817         $(TM_H), filenames.h dependencies.
11818         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
11819
11820 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
11821
11822         From Jie Zhang
11823         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
11824         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
11825
11826 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
11827
11828         From Bernd Schmidt
11829         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
11830         account and save/restore RETS.
11831         (PROFILE_BEFORE_PROLOGUE): Define.
11832         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
11833         the push insn to use predecrement.
11834
11835 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
11836
11837         From Jie Zhang
11838         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
11839
11840 2011-05-04  Nick Clifton  <nickc@redhat.com>
11841
11842         * config/mn10300/mn10300.c: Include cfgloop.h.
11843         (DUMP): New macro.
11844         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
11845         Lcc or a FLcc insn into the instruction stream.
11846         (mn10300_block_contains_call): New function.  Returns true if the
11847         given basic block contains a CALL insn.
11848         (mn10300_loop_contains_call_insn): New function.  Returns true if
11849         the given loop contains a CALL insn.
11850         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
11851         to use the SETLB and Lcc or FLcc insns.
11852         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
11853         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
11854         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
11855         disable the SETLB optimization.
11856         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
11857         __SETLB__ or __NO_SETLB__.
11858         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
11859         (movsf_internal): Handle MDR register.
11860         (cmpsi): Make visible.
11861         (setlb): New pattern.
11862         (Lcc): New pattern.
11863         (FLcc): New pattern.
11864
11865 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
11866
11867         PR target/48860
11868         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
11869         for reg<->xmm moves.
11870         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
11871         (vec_concatv2di_rex64_sse): Ditto.
11872         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
11873         (*vec_extractv2di_1_rex64): Ditto.
11874
11875         Revert:
11876         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
11877
11878         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
11879         reg<->xmm moves.
11880         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
11881
11882 2011-05-04  Richard Guenther  <rguenther@suse.de>
11883
11884         * tree.h (int_const_binop): Remove notrunc argument.
11885         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
11886         create integer constants that are properly truncated.
11887         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
11888         (const_binop): Remove zero notrunc argument to int_const_binop.
11889         (size_binop_loc): Likewise.
11890         (fold_div_compare): Likewise.
11891         (maybe_canonicalize_comparison_1): Likewise.
11892         (fold_comparison): Likewise.
11893         (fold_binary_loc): Likewise.
11894         (multiple_of_p): Likewise.
11895         * expr.c (store_constructor): Likewise.
11896         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
11897         (maybe_fold_stmt_addition): Likewise.
11898         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
11899         * stor-layout.c (layout_type): Likewise.
11900         * tree-data-ref.c (tree_fold_divides_p): Likewise.
11901         * tree-sra.c (build_ref_for_offset): Likewise.
11902         (build_user_friendly_ref_for_offset): Likewise.
11903         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
11904         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
11905         * tree-ssa-loop-niter.c (inverse): Likewise.
11906         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11907         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
11908         * tree-switch-conversion.c (check_range): Likewise.
11909         (build_constructors): Likewise.
11910         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
11911         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
11912         (extract_range_from_assert): Likewise.
11913         (vrp_int_const_binop): Likewise.
11914         (extract_range_from_binary_expr): Likewise.
11915         (extract_range_from_unary_expr): Likewise.
11916         (check_array_ref): Likewise.
11917         (find_case_label_range): Likewise.
11918         (simplify_div_or_mod_using_ranges): Likewise.
11919         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
11920         comparing case labels for merging.
11921
11922 2011-05-03  Mark Wielaard  <mjw@redhat.com>
11923
11924         * dwarf2out.c (debug_str_hash_forced): Removed.
11925         (gen_label_for_indirect_string): Removed.
11926         (get_debug_string_label): Removed.
11927         (AT_string_form): Generate label directly.
11928         (output_indirect_string): Test indirect_string_node for
11929         DW_FORM_strp instead of checking label and refcount.
11930         (prune_indirect_string): Removed.
11931         (prune_unused_types): Don't check debug_str_hash_forced or
11932         call prune_indirect_string.
11933
11934 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
11935
11936         PR other/48093
11937         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
11938
11939 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
11940
11941         PR debug/47994
11942         PR debug/47919
11943         * combine.c (try_combine): Skip debug insns at m_split tests.
11944
11945 2011-04-26  Mark Wielaard  <mjw@redhat.com>
11946
11947         PR42288
11948         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
11949         when info_section_emitted.
11950
11951 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
11952
11953         * config/mips/mips-opts.h: New.
11954         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
11955         to mips-opts.h.
11956         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
11957         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
11958         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
11959         via opts pointer.
11960         * config/mips/mips.h (enum mips_code_readable_setting): Move to
11961         mips-opts.h.
11962         (mips_abi, mips_code_readable): Don't declare.
11963         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
11964         (mabi=): Use Enum and Var.
11965         (mips_abi): New Enum and EnumValue entries.
11966         (mcode-readable=): Use Enum and Var.
11967         (mips_code_readable_setting): New Enum and EnumValue entries.
11968         (mr10k-cache-barrier=): Use Enum and Var.
11969         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
11970
11971 2011-05-03  Jan Hubicka  <jh@suse.cz>
11972
11973         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
11974         replace hash by pointer map.
11975         (cgraph_node_set_element_def, cgraph_node_set_element,
11976         const_cgraph_node_set_element, varpool_node_set_element_def,
11977         varpool_node_set_element, const_varpool_node_set_element): Remove.
11978         (free_cgraph_node_set, free_varpool_node_set): New function.
11979         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
11980         * tree-emutls.c: Free varpool node set.
11981         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
11982         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
11983         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
11984         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
11985         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
11986         Move here from ipa.c; implement using pointer_map
11987         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
11988         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
11989         debug_cgraph_node_set, varpool_node_set_new,
11990         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
11991         dump_varpool_node_set, debug_varpool_node_set):
11992         Move to ipa-uitls.c.
11993         * passes.c (ipa_write_summaries): Update.
11994
11995 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
11996
11997         From Mike Frysinger:
11998         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
11999         bf542/bf544/bf547/bf548/bf549.
12000
12001 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
12002
12003         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
12004
12005 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
12006
12007         From Bernd Schmidt:
12008         * config/bfin/bfin.md (MOVCC): New mode_macro.
12009         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
12010         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
12011         comments from generated assembly.
12012
12013 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
12014
12015         From Bernd Schmidt
12016         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
12017         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
12018         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
12019         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
12020         * config/bfin/lib1funcs.asm (___muldi3): New function.
12021
12022 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12023
12024         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
12025         build_function_type_list instead of build_function_type.
12026         Rearrange initialization of `args' to do so.
12027
12028 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12029
12030         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
12031         instead of build_function_type.
12032
12033 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12034
12035         * config/rs6000/rs6000.c (spe_init_builtins): Call
12036         build_function_type_list instead of build_function_type.
12037         (paired_init_builtins, altivec_init_builtins): Likewise.
12038         (builtin_function_type): Likewise.
12039
12040 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12041
12042         * config/sh/sh.c (sh_media_init_builtins): Call
12043         build_function_type_list instead of build_function_type.
12044
12045 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12046
12047         * config/sparc/sparc.c (sparc_file_end): Call
12048         build_function_type_list instead of build_function_type.
12049
12050 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12051
12052         * config/alpha/alpha.c (alpha_init_builtins): Call
12053         build_function_type_list instead of build_function_type.
12054
12055 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12056
12057         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
12058         build_function_type_list instead of build_function_type.
12059
12060 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12061
12062         * config/iq2000/i2000.c (iq2000_init_builtins): Call
12063         build_function_type_list instead of build_function_type.
12064         Delete `endlink' variable.
12065
12066 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12067
12068         * config/avr/avr.c (avr_init_builtins): Call
12069         build_function_type_list instead of build_function_type.
12070
12071 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12072
12073         * config/picochip/picochip.c (picochip_init_builtins): Call
12074         build_function_type_list instead of build_function_type.
12075         Delete `endlink' variable.
12076
12077 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
12078
12079         * config/bfin/bfin.c (bfin_init_builtins): Call
12080         build_function_type_list instead of build_function_type.
12081
12082 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
12083
12084         From Bernd Schmidt
12085         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
12086         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
12087
12088 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
12089
12090         From Jie Zhang:
12091         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
12092         libbffastfp overrides libgcc when -mfast-fp.
12093
12094 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
12095
12096         Originally from Bernd Schmidt
12097         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
12098         * config/bfin/bfin.c (override_options): Test it and error if
12099         TARGET_FDPIC.
12100
12101 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
12102
12103         Originally From Bernd Schmidt
12104         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
12105         FD-PIC.
12106
12107 2011-05-03  Jeff Law  <law@redhat.com>
12108
12109         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
12110         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
12111         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
12112         than accessing AUX field directly.  Free the AUX field before
12113         clearing it.
12114         (thread_block, thread_through_loop_header): Likewise.
12115         (thread_single_edge, mark_threaded_blocks): Likewise.
12116         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
12117         (register_jump_thread): Do not attempt to thread to a NULL edge.
12118
12119 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
12120
12121         * function.c (init_function_start): Call decide_function_section.
12122         * varasm.c (decide_function_section): New function.
12123         (assemble_start_function): When not using
12124         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
12125         or first_function_block_is_cold.
12126         * rtl.h (decide_function_section): Declare.
12127
12128 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
12129             Jakub Jelinek  <jakub@redhat.com>
12130
12131         PR target/48774
12132         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
12133         only succeed if req_mode is the same as set_mode.
12134
12135 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
12136
12137         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
12138         * genemit.c (gen_exp): Handle RETURN.
12139         * emit-rtl.c (verify_rtx_sharing): Likewise.
12140         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
12141         * rtl.c (copy_rtx): RETURN is shared.
12142         * rtl.h (enum global_rtl_index): Add GR_RETURN.
12143         (ret_rtx): New.
12144         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
12145         * config/s390/s390.c (s390_emit_epilogue): Likewise.
12146         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
12147         * config/cris/cris.c (cris_expand_return): Likewise.
12148         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
12149         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
12150         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
12151         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
12152         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
12153         Likewise.
12154         * config/v850/v850.c (expand_epilogue): Likewise.
12155         * config/bfin/bfin.c (bfin_expand_call): Likewise.
12156         * config/arm/arm.md (epilogue): Likewise.
12157         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
12158         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
12159         variable to ret_reg.
12160
12161 2011-05-03  Richard Guenther  <rguenther@suse.de>
12162
12163         PR lto/48846
12164         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
12165         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
12166         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
12167
12168 2011-05-03  Richard Guenther  <rguenther@suse.de>
12169
12170         * c-decl.c (grokdeclarator): Instead of looking at
12171         TREE_OVERFLOW check if the constant fits in the index type.
12172
12173 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
12174
12175         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
12176         (vec_store_lanes<mode><mode>): Likewise.
12177
12178 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
12179
12180         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
12181         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
12182         convert_optab_index values.
12183         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
12184         * genopinit.c (optabs): Initialize the new optabs.
12185         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
12186         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
12187         (expand_STORE_LANES): New functions.
12188         * tree.h (build_array_type_nelts): Declare.
12189         * tree.c (build_array_type_nelts): New function.
12190         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
12191         (vect_model_load_cost): Likewise.
12192         (vect_store_lanes_supported, vect_load_lanes_supported)
12193         (vect_record_strided_load_vectors): Declare.
12194         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
12195         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
12196         (vect_transform_strided_load): Split out statement recording into...
12197         (vect_record_strided_load_vectors): ...this new function.
12198         * tree-vect-stmts.c (create_vector_array, read_vector_array)
12199         (write_vector_array, create_array_ref): New functions.
12200         (vect_model_store_cost): Add store_lanes_p argument.
12201         (vect_model_load_cost): Add load_lanes_p argument.
12202         (vectorizable_store): Try to use store-lanes functions for
12203         interleaved stores.
12204         (vectorizable_load): Likewise load-lanes and loads.
12205         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
12206         to vect_model_store_cost.
12207         (vect_build_slp_tree): Likewise vect_model_load_cost.
12208
12209 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
12210
12211         * hooks.h (hook_bool_mode_uhwi_false): Declare.
12212         * hooks.c (hook_bool_mode_uhwi_false): New function.
12213         * target.def (array_mode_supported_p): New hook.
12214         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
12215         * doc/tm.texi: Regenerate.
12216         * stor-layout.c (mode_for_array): New function.
12217         (layout_type): Use it.
12218         * config/arm/arm.c (arm_array_mode_supported_p): New function.
12219         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
12220
12221 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
12222
12223         PR target/48723
12224         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
12225         for -fstack-check if the size to allocate is negative.
12226
12227 2011-05-02  Lawrence Crowl  <crowl@google.com>
12228
12229         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
12230         (timevar_cond_start): New for starting a timer only when it is not
12231         already running.
12232         (timevar_cond_stop): New for stopping a timer when it was not already
12233         running.
12234
12235         * timevar.c (timevar_stop): Enable start/stop timers to start again.
12236         (timevar_cond_start): New as above.
12237         (timevar_cond_stop): New as above.
12238
12239         * timevar.def: Add start/stop timers for compiler phases,
12240         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
12241         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
12242         and TV_PHASE_FINALIZE.
12243         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
12244         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
12245         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
12246         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
12247         Make unused TV_OVERLOAD into a start/stop timer.
12248
12249         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
12250         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
12251         to indicate that they are start/stop timers.
12252
12253         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
12254         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
12255         Move initialization to do_compile.
12256         (do_compile): Add initialization from above.
12257         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
12258
12259         * c-decl.c (c_write_global_declarations): Add start/stop of
12260         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
12261
12262         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
12263         or TV_PARSE_INLINE, as appropriate.
12264         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
12265         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
12266
12267 2011-05-02  Jason Merrill  <jason@redhat.com>
12268
12269         PR c++/40975
12270         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
12271
12272 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
12273
12274         PR c/35445
12275         * c-decl.c (finish_decl): Only create a composite if the types are
12276         compatible.
12277
12278 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
12279
12280         * config/fr30/fr30-protos.h (Mmode): Don't define.
12281         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
12282         definition where used.
12283         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
12284         define.  Expand definitions where used.
12285         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
12286         Expand definitions where used.
12287         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
12288         rx_function_arg, rx_function_arg_advance,
12289         rx_function_arg_boundary): Expand definitions of those macros.
12290         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
12291         definition where used.
12292
12293 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
12294
12295         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
12296         reg<->xmm moves.
12297         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
12298         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
12299         with *movv2sf_internal_rex64_avx.
12300         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
12301         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
12302         Use %v prefix in insn mnemonic to handle TARGET_AVX.
12303         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
12304         "vex" in "prefix" attribute calculation.
12305         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
12306
12307 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
12308
12309         PR target/47951
12310         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
12311         inputs match the output.
12312
12313 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
12314
12315         PR target/47955
12316         * config/m68k/m68k.c (m68k_expand_prologue): Set
12317         current_function_static_stack_size.
12318
12319 2011-05-02   Jan Hubicka  <jh@suse.cz>
12320
12321         * lto-streamer.c (lto_streamer_cache_insert_1,
12322         lto_streamer_cache_lookup, lto_streamer_cache_create,
12323         lto_streamer_cache_delete): Use pointer map instead of hashtable.
12324         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
12325
12326 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
12327
12328         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
12329         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
12330         config/m68k/t-opts: New files.
12331         * config/m68k/m68k-tables.opt: New file (generated).
12332         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
12333         extra_options and m68k/t-opts to tmake_file.
12334         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
12335         (all_isas): Initialize using m68k-isas.def.
12336         (all_microarchs): Initialize using m68k-microarchs.def.
12337         (m68k_find_selection): Remove.
12338         (m68k_handle_option): Don't assert that global structures are in
12339         use.  Use error_at.  Access variables via opts pointer.  Don't
12340         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
12341         directly for -m68020-40 and -m68020-60.
12342         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
12343         m68k_tune_entry here.
12344         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
12345         to m68k-opts.h.
12346         (m68k_library_id_string): Remove declaration.
12347         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
12348         (m68k_library_id_string): New Variable.
12349         (march=, mcpu=, mtune=): Use Enum and Var.
12350
12351 2011-05-02  Richard Guenther  <rguenther@suse.de>
12352
12353         * varasm.c (output_constructor_regular_field): Compute zero-based
12354         index with double-ints.  Make sure to ICE instead of producing
12355         wrong code.
12356         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
12357         in asserts.  Properly use a signed type.
12358
12359 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
12360
12361         * config/i386/sse.md (V): New mode iterator.
12362         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
12363         TARGET_SSE2.
12364         (V_256): Rename from AVX256MODE.
12365         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
12366         condition to all users.
12367         (VF1): Ditto.
12368         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
12369         condition to all users.
12370         (VF_128): Make V4SF mode unconditional.
12371         (VF_256): Rename from AVX256MODEF2P.
12372         (VI4F_128): Rename from SSEMODE4S.
12373         (VI8F_128): Rename from SSEMODE2D.
12374         (VI4F_256): Rename from AVX256MODE8P.
12375         (VI8F_256): Rename from AVX256MODE4P.
12376         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
12377         (ssescalarmodesuffix): Remove SF and DF modes.
12378         (SSEMODE124): Remove.
12379         (SSEMODE1248): Ditto.
12380         (SSEMODEF2P): Ditto.
12381         (AVXMODEF2P): Ditto.
12382         (AVXMODEFDP): Ditto.
12383         (AVXMODEFSP): Ditto.
12384         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
12385         unconditional.
12386         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
12387         unconditional.
12388         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
12389         xop_pcmov_<mode>256.  Use V mode iterator.
12390
12391         Adjust RTX patterns globally for renamed mode attributes.
12392
12393 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12394
12395         * haifa-sched.c (sched_emit_insn): Emit insn before first
12396         non-scheduled insn.  Inform back-end about new insn.  Add
12397         new insn to scheduled_insns list.
12398
12399 2011-05-02  Richard Guenther  <rguenther@suse.de>
12400
12401         PR tree-optimization/48822
12402         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
12403         (process_scc): Indicate which iteration we start.
12404
12405 2011-05-02  Jan Hubicka  <jh@suse.cz>
12406
12407         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
12408         (lto_section_overrun): New.
12409         * lto-section-out.c (append_block): Rename to ...
12410         (lto_append_block): ... this one; export.
12411         (lto_output_1_stream): Move lto lto-streamer.h
12412         (lto_output_data_stream): Update.
12413         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
12414         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
12415         functions.
12416
12417 2011-05-02  Richard Guenther  <rguenther@suse.de>
12418
12419         * tree.c (tree_code_counts): New global array.
12420         (record_node_allocation_statistics): Count individual tree codes.
12421         (dump_tree_statistics): Dump individual code stats.
12422
12423 2011-05-01  Jan Hubicka  <jh@suse.cz>
12424
12425         * ipa-inline.c (caller_growth_limits): Fix thinko when
12426         looking for largest stack frame.
12427         * ipa-inline.h (dump_inline_summary): Declare.
12428         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
12429         on stack usage.
12430         (dump_inline_summary): Export.
12431         (debug_inline_summary): Declare as DEBUG_FUNCTION.
12432
12433 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
12434
12435         * reginfo.c (memory_move_cost): Change rclass argument type form
12436         'enum reg_class' to reg_class_t.
12437         * reload.h (memory_move_cost): Update prototype.
12438         * postreload.c reload_cse_simplify_set): Change type dclass var to
12439         reg_class_t.
12440         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
12441         Update prototype.
12442         (ira_allocate_and_set_costs): Change aclass argument type form
12443         'enum reg_class' to reg_class_t.
12444         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
12445         Change aclass argument type to reg_class_t.
12446         (update_conflict_hard_reg_costs): Change type aclass and pref vars
12447         to reg_class_t.
12448         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
12449         memory_move_cost call.
12450
12451         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
12452         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
12453         Change type tmp var to reg_class_t.
12454
12455 2011-04-30  Jan Hubicka  <jh@suse.cz>
12456
12457         * ipa-inline.c (can_inline_edge_p): Disregard limits when
12458         inlining into function with flatten attribute.
12459         (want_inline_small_function_p): Be more realistic about inlining
12460         cold calls where callee size grows.
12461
12462 2011-04-30  Jan Hubicka  <jh@suse.cz>
12463
12464         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
12465         flags.
12466
12467 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
12468
12469         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
12470         PRINT_OPERAND_PUNCT_VALID_P): Remove.
12471         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
12472         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
12473         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
12474         (print_operand): Rename to...
12475         (sparc_print_operand): ...this. Make static. Adjust
12476         sparc_print_operand function call.
12477         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
12478         functions.
12479
12480 2011-04-30  Jan Hubicka  <jh@suse.cz>
12481
12482         PR middle-end/48752
12483         * ipa-inline.c (early_inliner): Disable when doing late
12484         addition of function.
12485
12486 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
12487
12488         * dwarf2out.c (get_address_mode): New inline.
12489         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
12490         if not dwarf_strict emit
12491         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
12492         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
12493         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
12494         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
12495         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
12496         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
12497         mem_loc_descriptor callers.
12498         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
12499         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
12500         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
12501         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
12502         (base_types): New variable.
12503         (get_base_type_offset, calc_base_type_die_sizes,
12504         base_type_for_mode, mark_base_types, base_type_cmp,
12505         move_marked_base_types): New functions.
12506         (calc_die_sizes): Assert that die_offset is 0 or equal to
12507         next_die_offset.
12508         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
12509         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
12510         callers.  If not dwarf_strict, call mem_loc_descriptor even for
12511         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
12512         (gen_subprogram_die): Don't give up on call site parameters
12513         with non-integral or large integral modes.  Adjust
12514         mem_loc_descriptor callers.
12515         (prune_unused_types): Call prune_unused_types_mark on base_types
12516         vector entries.
12517         (resolve_addr): Call mark_base_types.
12518         (dwarf2out_finish): Call move_marked_base_types.
12519
12520         PR tree-optimization/48809
12521         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
12522         type.
12523         (gen_inbound_check): Don't compute index_expr - range_min in utype
12524         again, instead reuse SSA_NAME initialized in build_arrays.
12525         Remove two useless gsi_for_stmt calls.
12526
12527 2011-04-29  Jeff Law  <law@redhat.com>
12528
12529         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
12530
12531 2011-04-29  Martin Jambor  <mjambor@suse.cz>
12532
12533         * cgraph.h (cgraph_postorder): Remove declaration.
12534         * ipa-utils.h (ipa_free_postorder_info): Declare.
12535         (ipa_reverse_postorder): Likewise.
12536         * cgraphunit.c: Include ipa-utils.h.
12537         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
12538         * ipa-inline.c: Include ipa-utils.h.
12539         (ipa_inline): Update call to ipa_reverse_postorder.
12540         * ipa-pure-const.c (propagate_pure_const): Update call to
12541         ipa_reduced_postorder and ipa_print_order.  Call
12542         ipa_free_postorder_info to clean up.
12543         (propagate_nothrow): Likewise.
12544         * ipa-reference.c (propagate): Removed a useless call to
12545         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
12546         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
12547         * ipa.c: Include ipa-utils.h.
12548         (ipa_profile): Update call to ipa_reverse_postorder.
12549         (cgraph_postorder): Moved to...
12550         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
12551         (ipa_utils_print_order): Renamed to ipa_print_order.
12552         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
12553         comments.
12554         (ipa_free_postorder_info): New function.
12555         * passes.c: Include ipa-utils.h.
12556         (do_per_function_toporder): Update call to ipa_reverse_postorder.
12557         (ipa_write_summaries): Likewise.
12558         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
12559         (cgraphunit.o): Likewise.
12560         (ipa.o): Likewise.
12561         (ipa-inline.o): Likewise.
12562
12563 2011-04-29  Jan Hubicka  <jh@suse.cz>
12564
12565         * gcc.dg/tree-ssa/inline-10.c: New testcase.
12566         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
12567         * ipa-inline.h (clause_t): Turn into unsigned int.
12568         * ipa-inline-analysis.c (add_clause): Do more simplification.
12569         (and_predicates): Shortcut more cases.
12570         (predicates_equal_p): Move forward; check that clauses are properly
12571         ordered.
12572         (or_predicates): Shortcut more cases.
12573         (edge_execution_predicate): Rewrite as...
12574         (set_cond_stmt_execution_predicate): ... this function; handle
12575         __builtin_constant_p.
12576         (set_switch_stmt_execution_predicate): New .
12577         (compute_bb_predicates): New.
12578         (will_be_nonconstant_predicate): Update TODO.
12579         (estimate_function_body_sizes): Use compute_bb_predicates
12580         and free them later, always try to estimate if stmt is constant.
12581         (estimate_time_after_inlining, estimate_size_after_inlining):
12582         Gracefully handle optimized out edges.
12583         (read_predicate): Fix off by one error.
12584
12585 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
12586
12587         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
12588
12589 2011-04-27  Xinliang David Li  <davidxl@google.com>
12590
12591         * tree-profile.c (init_ic_make_global_vars): Set
12592         tls attribute on ic vars.
12593         * coverage.c (coverage_end_function): Initialize
12594         function_list with zero.
12595
12596 2011-04-29  Richard Guenther  <rguenther@suse.de>
12597
12598         * builtins.c (fold_builtin_classify_type): Use integer_type_node
12599         for the type of the result.
12600         (fold_builtin_isascii): Likewise.
12601         (fold_builtin_toascii): Use integer_type_node where appropriate.
12602         (fold_builtin_logb): Likewise.
12603         (fold_builtin_frexp): Likewise.
12604         (fold_builtin_strstr): Likewise.
12605         (fold_builtin_strpbrk): Likewise.
12606         (fold_builtin_fputs): Likewise.
12607         (fold_builtin_sprintf): Likewise.
12608         (fold_builtin_snprintf): Likewise.
12609         (fold_builtin_printf): Likewise.
12610         (do_mpfr_remquo): Use a proper type for the assigned constant.
12611         (do_mpfr_lgamma_r): Likewise.
12612         * dwarf2out.c (resolve_one_addr): Use size_int.
12613         * except.c (init_eh): Likewise.
12614         (assign_filter_values): Use integer_type_node for filter values.
12615         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
12616         indices.
12617         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
12618         for EH region numbers.
12619         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
12620         for the shift amount.
12621
12622 2011-04-29  Richard Guenther  <rguenther@suse.de>
12623
12624         * expr.h (expand_shift): Rename to ...
12625         (expand_variable_shift): ... this.
12626         (expand_shift): Take a constant shift amount.
12627         * expmed.c (expand_shift): Rename to ...
12628         (expand_variable_shift): ... this.
12629         (expand_shift): New wrapper around expand_variable_shift.
12630         * expr.c (convert_move, emit_group_load_1, emit_group_store,
12631         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
12632         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
12633         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
12634         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
12635         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
12636         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
12637         emit_store_flag_1, emit_store_flag): Likewise.
12638         * builtins.c (expand_builtin_signbit): Likewise.
12639         * calls.c (load_register_parameters): Likewise.
12640         * function.c (assign_parm_setup_block): Likewise.
12641         * lower-subreg.c (resolve_shift_zext): Likewise.
12642         * optabs.c (widen_bswap, expand_abs_nojump,
12643         expand_one_cmpl_abs_nojump, expand_float): Likewise.
12644         * spu/spu.c (spu_expand_extv): Likewise.
12645         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
12646
12647 2011-04-29  Richard Guenther  <rguenther@suse.de>
12648
12649         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
12650         for the remapped region number.
12651         * predict.c (build_predict_expr): Use integer_type_node for the
12652         predict kind.
12653         * fold-const.c (fold_binary_loc): Use integer_type_node for
12654         the shift amount.  Use a proper type for the PLUS_EXPR operand.
12655
12656 2011-04-29  Michael Matz  <matz@suse.de>
12657
12658         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
12659         other trees that just builtins.
12660         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
12661
12662 2011-04-29  Richard Guenther  <rguenther@suse.de>
12663
12664         * tree-nested.c (get_trampoline_type): Use size_int.
12665         (get_nl_goto_field): Likewise.
12666         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
12667         for all indexes.
12668         (lower_eh_constructs_2): Likewise.
12669         (lower_resx): Likewise.
12670         (lower_eh_dispatch): Likewise.
12671         * tree-mudflap.c (mf_build_string): Use size_int.
12672         (mudflap_register_call): Use integer_type_node for the flag.
12673         (mudflap_enqueue_constant): Use size_int.
12674         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
12675         instead of rebuilding it.
12676
12677 2011-04-29  Richard Guenther  <rguenther@suse.de>
12678
12679         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
12680         Handle OBJ_TYPE_REF.
12681         (find_func_aliases_for_call): Use it more consistently.
12682
12683 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
12684
12685         * haifa-sched.c (last_nondebug_scheduled_insn): New.
12686         (rank_for_schedule): Use it.
12687         (schedule_block): Set it.
12688
12689 2011-04-28  David Li  <davidxl@google.com>
12690
12691         * tree.c (crc32_string): Use crc32_byte.
12692         (crc32_byte): New function.
12693         * tree.h (crc32_byte): New function.
12694         * gcov.c (read_graph_file): Handle new cfg_cksum.
12695         (read_count_file): Ditto.
12696         * profile.c (instrument_values): Ditto.
12697         (get_exec_counts): Ditto.
12698         (read_profile_edge_counts): Ditto.
12699         (compute_branch_probabilities): Ditto.
12700         (compute_value_histograms): Ditto.
12701         (branch_prob): Ditto.
12702         (end_branch_prob): Ditto.
12703         * coverage.c (read_counts_file): Ditto.
12704         (get_coverage_counts): Ditto.
12705         (tree_coverage_counter_addr): Ditto.
12706         (coverage_checksum_string): Ditto.
12707         (coverage_begin_output): Ditto.
12708         (coverage_end_function): Ditto.
12709         (build_fn_info_type): Ditto.
12710         (build_fn_info_value): Ditto.
12711         * libgcov.c (gcov_exit): Ditto.
12712         * gcov-dump.c (tag_function): Ditto.
12713         (compute_checksum): Remove.
12714
12715 2011-04-29  Alan Modra  <amodra@gmail.com>
12716
12717         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
12718         unspec plus offset.  Tidy macho code.
12719
12720 2011-04-29  Martin Jambor  <mjambor@suse.cz>
12721
12722         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
12723         node instead of a decl.  Update all callers.
12724         * cgraph.h: Update declaration.
12725
12726 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
12727
12728         PR tree-optimization/48765
12729         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
12730         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
12731         to indicate if loop aware SLP is being used.  Scan the statements
12732         and update the vectorization factor according to the type of
12733         vectorization before statement analysis.
12734         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
12735         pass it to vect_analyze_loop_operations.
12736         (vectorizable_reduction): Set number of copies to 1 in case of pure
12737         SLP statement.
12738         * tree-vect-stmts.c (vectorizable_conversion,
12739         vectorizable_assignment, vectorizable_shift,
12740         vectorizable_operation, vectorizable_type_demotion,
12741         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
12742         Likewise.
12743         (vectorizable_condition): Move the check that it is not SLP
12744         vectorization before the number of copies check.
12745         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
12746         to vectorize the loop using SLP.
12747
12748 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
12749
12750         PR middle-end/48597
12751         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
12752         inline asm.
12753
12754 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
12755
12756         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
12757         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
12758         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
12759         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
12760         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
12761         linux*.h headers.
12762         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
12763         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
12764         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
12765         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
12766         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
12767         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
12768         REG_NAME.
12769         * config/i386/linux.h (REG_NAME): Don't define.
12770         * config/i386/linux64.h (REG_NAME): Don't define.
12771         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
12772         Undefine before defining.
12773
12774 2011-04-28  Jan Hubicka  <jh@suse.cz>
12775
12776         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
12777         nonconstant_names array.
12778         (estimate_function_body_sizes): Build nonconstant_names array; handle
12779         BUILT_IN_CONSTANT_P.
12780
12781 2011-04-28  Richard Guenther  <rguenther@suse.de>
12782
12783         PR bootstrap/48804
12784         Revert
12785         2011-04-28  Richard Guenther  <rguenther@suse.de>
12786
12787         * tree-ssa-structalias.c (solve_constraints): Build succ graph
12788         as late as possible.
12789
12790 2011-04-28  Richard Guenther  <rguenther@suse.de>
12791
12792         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
12793         (debug_constraint): Do it here.
12794         (dump_constraints): And here.
12795         (rewrite_constraints): And here.
12796         (dump_constraint_edge): Remove.
12797         (dump_constraint_graph): Rewrite to produce DOT output.
12798         (solve_constraints): Build succ graph as late as possible.
12799         Dump constraint graphs before and after solving.
12800
12801 2011-04-28  Richard Guenther  <rguenther@suse.de>
12802
12803         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
12804         New function split out from ...
12805         (find_func_aliases): ... here.  Call it.
12806         (find_func_aliases_for_call): Likewise.
12807
12808 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12809
12810         * internal-fn.h (internal_fn_name_array): Declare.
12811         (internal_fn_flags_array): Likewise.
12812
12813 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
12814
12815         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
12816         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
12817         Move from sse.md.
12818         (ssemodefsuffix): Remove.
12819         (ssevecmodesuffix): New mode attribute.
12820         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
12821         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
12822         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
12823         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
12824         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
12825         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
12826         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
12827         ssemodesuffix mode attribute.
12828         (float splitters): Use ssevecmodesuffix mode attribute.
12829         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
12830         (sseinsmode): Rename from avxvecmode.
12831         (avxsizesuffix): Rename from avxmodesuffix.
12832         (sseintvecmode): Rename from avxpermvecmode.
12833         (ssedoublevecmode): Rename from ssedoublesizemode.
12834         (ssehalfvecmode): Rename from avxhalfvecmode.
12835         (ssescalarmode): Rename from avxscalarmode.
12836         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
12837         templates for ssemodesuffix mode attribute.
12838         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
12839         mode attribute.
12840
12841         Adjust RTX patterns globally for renamed mode attributes.
12842
12843 2011-04-27  Jan Hubcika  <jh@suse.cz>
12844
12845         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
12846         * ipa-inline-analysis.c: Include alloc-pool.h.
12847         (edge_predicate_pool): New.
12848         (trye_predicate_p): New function
12849         (false_predicate_p): New function.
12850         (add_clause): Sanity check that false clauses are "optimized";
12851         never add clauses to predicate that is already known to be false.
12852         (and_predicate): Use flase_predicate_p.
12853         (evaulate_predicate): Rename to ...
12854         (evaluate_predicate): ... this one; update all callers; assert
12855         that false is not listed among possible truths.
12856         (dump_predicate): Use true_predicate_p.
12857         (account_size_time): Use false_predicate_p.
12858         (evaulate_conditions_for_edge): Rename to ...
12859         (evaluate_conditions_for_edge) ... this one.
12860         (edge_set_predicate): New function.
12861         (inline_edge_duplication_hook): Duplicate edge predicates.
12862         (inline_edge_removal_hook): Free edge predicates.
12863         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
12864         (dump_inline_summary): Update.
12865         (estimate_function_body_sizes): Set edge predicates.
12866         (estimate_calls_size_and_time): Handle predicates.
12867         (estimate_callee_size_and_time): Update.
12868         (remap_predicate): Add toplev_predicate; update comment.
12869         (remap_edge_predicates): New function.
12870         (inline_merge_summary): Compute toplev predicate; update.
12871         (read_predicate): New function.
12872         (read_inline_edge_summary): Use it.
12873         (inline_read_section): Likewise.
12874         (write_predicate): New function.
12875         (write_inline_edge_summary): Use it.
12876         (inline_write_summary): Likewise.
12877         (inline_free_summary): Free alloc pool and edge summary vec.
12878
12879 2011-04-27  Richard Guenther  <rguenther@suse.de>
12880
12881         * tree-ssa-structalias.c (changed_count): Remove.
12882         (changed): Use a bitmap.
12883         (unify_nodes): Adjust.
12884         (do_sd_constraint): Likewise.
12885         (do_ds_constraint): Likewise.
12886         (do_complex_constraint): Likewise.
12887         (solve_graph): Likewise.
12888
12889 2011-04-27  Jan Hubicka  <jh@suse.cz>
12890
12891         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
12892
12893 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
12894
12895         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
12896         (avx_vperm2f128_*_operand): Ditto.
12897         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
12898         Use avx_vpermilp_parallel in insn condition.
12899         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
12900         Use avx_vperm2f128_parallel in insn condition.
12901
12902 2011-04-27  Richard Guenther  <rguenther@suse.de>
12903
12904         * Makefile.in (tree-ssa-structalias.o): Remove
12905         gt-tree-ssa-structalias.h dependency.
12906         (GTFILES): Remove tree-ssa-structalias.c.
12907         * tree.c (allocate_decl_uid): New function.
12908         (make_node_stat): Use it.
12909         (copy_node_stat): Likewise.
12910         * tree.h (allocate_decl_uid): Declare.
12911         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
12912         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
12913         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
12914         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
12915         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
12916         (struct heapvar_map): Likewise.
12917         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
12918         heapvar_insert): Likewise.
12919         (make_heapvar_for): Rename to ...
12920         (make_heapvar): ... this.  Simplify.
12921         (fake_var_decl_obstack): New global var.
12922         (build_fake_var_decl): New function.
12923         (make_constraint_from_heapvar): Adjust.
12924         (handle_lhs_call): Likewise.
12925         (create_function_info_for): Likewise.
12926         (intra_create_variable_infos): Likewise.
12927         (init_alias_vars): Allocate fake_var_decl_obstack.
12928         (init_alias_heapvars, delete_alias_heapvars): Remove.
12929         (compute_points_to_sets): Do not call init_alias_heapvars.
12930         (ipa_pta_execute): Likewise.
12931         (delete_points_to_sets): Free fake_var_decl_obstack.
12932
12933 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12934
12935         * config/spu/divmovti4.c (union qword_UTItype): New data type.
12936         (si_from_UTItype, si_to_UTItype): New functions.
12937         (__udivmodti4): Use them to implement type-punning.
12938         * config/spu/multi3.c (union qword_TItype): New data type.
12939         (si_from_TItype, si_to_TItype): New functions.
12940         (__multi3): Use them to implement type-punning.
12941
12942 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12943
12944         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
12945
12946 2011-04-27  Jan Hubicka  <jh@suse.cz>
12947
12948         * ipa-prop.c (function_insertion_hook_holder): New holder.
12949         (ipa_add_new_function): New function.
12950         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
12951         Register/deregister holder.
12952
12953 2011-04-27  Richard Guenther  <rguenther@suse.de>
12954
12955         PR tree-optimization/48772
12956         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
12957
12958 2011-04-27  Richard Guenther  <rguenther@suse.de>
12959
12960         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
12961         TARGET_MEM_REF handling.
12962
12963 2011-04-27  Nick Clifton  <nickc@redhat.com>
12964
12965         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
12966         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
12967         (REG_CLASS_NAMES): Likewise.
12968         (REG_CLASS_CONTENTS): Likewise.
12969         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
12970         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
12971         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
12972         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
12973         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
12974         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
12975         duplicate register classes.
12976         (frv_class_likely_spilled_p): Likewise.
12977         (frv_register_move_cost): Likewise.
12978
12979         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
12980         end of the regno_reg_class array.
12981
12982 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
12983
12984         PR c/48742
12985         * c-typeck.c (build_binary_op): Don't wrap arguments if
12986         int_operands is true.
12987
12988 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
12989
12990         PR target/48767
12991         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
12992         targetm.calls.must_pass_in_stack for void type.
12993
12994 2011-04-26  Jan Hubicka  <jh@suse.cz>
12995
12996         * cgraphbuild.c (build_cgraph_edges): Update call
12997         of cgraph_create_edge and cgraph_create_indirect_edge.
12998         * cgraph.c (cgraph_create_edge_including_clones,
12999         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
13000         cgraph_update_edges_for_call_stmt_node): Do not take nest
13001         argument; do not initialize call_stmt_size/time.
13002         (dump_cgraph_node): Do not dump nest.
13003         (cgraph_clone_edge): Do not take loop_nest argument;
13004         do not propagate it; do not clone call_stmt_size/time.
13005         (cgraph_clone_node): Likewise.
13006         (cgraph_create_virtual_clone): Update.
13007         * cgraph.h (struct cgraph_edge): Remove
13008         call_stmt_size/call_stmt_time/loop_nest.
13009         (cgraph_create_edge, cgraph_create_indirect_edge,
13010         cgraph_create_edge_including_clones, cgraph_clone_node): Update
13011         prototype.
13012         * tree-emutls.c (gen_emutls_addr): Update.
13013         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
13014         loop_nest; handle indirect calls, too.
13015         (clone_inlined_nodes): Do not care about updating inline summaries.
13016         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
13017         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
13018         stream call_stmt_size/call_stmt_time/loop_nest.
13019         * ipa-inline.c (edge_badness): Update.
13020         (ipa_inline): dump summaries after inlining.
13021         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
13022         New.
13023         (inline_edge_summary): New function.
13024         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
13025         (inline_edge_removal_hook): Handle edge summaries.
13026         (inline_edge_duplication_hook): New hook.
13027         (inline_summary_alloc): Alloc hooks.
13028         (initialize_growth_caches): Do not register removal hooks.
13029         (free_growth_caches); Do not free removal hook.
13030         (dump_inline_edge_summary): New function.
13031         (dump_inline_summary): Use it.
13032         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
13033         (inline_update_callee_summaries): New function.
13034         (inline_merge_summary): Use it.
13035         (do_estimate_edge_time, do_estimate_edge_growth): Update.
13036         (read_inline_edge_summary): New function.
13037         (inline_read_section): Use it.
13038         (write_inline_edge_summary): New function.
13039         (inline_write_summary): Use it.
13040         (inline_free_summary): Free edge new holders.
13041         * tree-inline.c (copy_bb): Update.
13042
13043 2011-04-26  Jason Merrill  <jason@redhat.com>
13044
13045         * tree-eh.c (lower_try_finally_switch): Create the label along with
13046         the CASE_LABEL_EXPR.
13047
13048 2011-04-26  David S. Miller  <davem@davemloft.net>
13049             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13050
13051         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
13052         * configure: Regenerate.
13053
13054 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
13055
13056         PR target/48258
13057         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
13058         reduction.
13059         (VEC_reduc): New code iterator and splitters for vector reduction.
13060         (VEC_reduc_name): Ditto.
13061         (VEC_reduc_rtx): Ditto.
13062         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
13063         (reduc_<VEC_reduc_name>_v4sf): Ditto.
13064
13065         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
13066         support for extracting SF on VSX.
13067
13068         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
13069         generating xscvspdp.
13070         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
13071         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
13072         double add, minimum, maximum vector reduction.
13073         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
13074         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
13075         optimize double vector reduction.
13076         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
13077
13078 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
13079
13080         * config/fr30/fr30.h (inhibit_libc): Don't define.
13081         * config/m32r/m32r-protos.h: Correct comment.
13082         * config/v850/v850.h (GHS_default_section_names,
13083         GHS_current_section_names): Use tree, not union tree_node *.
13084
13085 2011-04-26  Xinliang David Li  <davidxl@google.com>
13086
13087         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
13088         * c-family/c-opts.c (c_common_handle_option): Set
13089         warn_maybe_uninitialized.
13090         * opts.c (common_handle_option): Ditto.
13091         * common.opt:  New option.
13092         * tree-ssa.c (warn_uninit): Add one more parameter.
13093         (warn_uninitialized_var): Pass warning code.
13094         * tree-flow.h: Interface change.
13095
13096 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13097
13098         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
13099         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
13100         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
13101
13102 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13103
13104         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
13105         * config/mips/mips.opt (mmips-tfile): Remove.
13106
13107         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
13108         mips-tdump reference to ...
13109         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
13110         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
13111         reference by Tru64 UNIX.
13112
13113 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
13114
13115         PR debug/48768
13116         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
13117         is error_mark_node, set value to NULL.
13118
13119         PR tree-optimization/48734
13120         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
13121         if return value from maybe_fold_*_comparsions isn't something
13122         the code is prepared to handle.
13123
13124 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
13125
13126         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
13127         mode check.
13128         (ext_QIreg_nomode_operands): Remove.
13129         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
13130         (*andsi_1): Ditto.
13131         (*andhi_1): Ditto.
13132
13133 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
13134
13135         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
13136
13137 2011-04-26  Richard Guenther  <rguenther@suse.de>
13138
13139         * c-typeck.c (build_unary_op): Do not expand array-refs via
13140         pointer arithmetic.  Only adjust qualifiers for function types.
13141
13142 2011-04-26  Richard Guenther  <rguenther@suse.de>
13143
13144         PR middle-end/48694
13145         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
13146         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
13147         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
13148         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
13149
13150 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
13151
13152         * doc/extend.texi: Document __underlying_type.
13153
13154 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
13155
13156         * config/rs6000/titan.md (automata_option "progress"): Remove.
13157
13158 2011-04-25  Jeff Law  <law@redhat.com>
13159
13160         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
13161
13162 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
13163
13164         * system.h (ENUM_BITFIELD): Remove.
13165
13166 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
13167             Eric Botcazou  <ebotcazou@adacore.com>
13168
13169         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
13170         for STORE_FLAG_VALUE==-1 case.
13171
13172 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
13173
13174         PR target/43804
13175         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
13176         LEGITIMATE_PIC_OPERAND_P.
13177
13178 2011-04-24  Jan Hubicka  <jh@suse.cz>
13179
13180         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
13181         WPA hack.
13182         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
13183         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
13184         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
13185         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
13186         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
13187         Sanity check predicate length.
13188         (remap_predicate): Likewise; sanity check jump functions.
13189         (inline_read_section, inline_write_summary): Sanity check
13190         predicate length.
13191
13192 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
13193
13194         PR other/48748
13195         * doc/extend.texi (Type Traits): Document __is_standard_layout,
13196         __is_literal_type, and __is_trivial; update throughout about
13197         possibly cv-qualified void types.
13198
13199 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
13200
13201         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
13202         testsuite and make it version agnostic.
13203
13204 2011-04-22  Jan Hubicka  <jh@suse.cz>
13205
13206         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
13207
13208 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
13209
13210         PR c/48685
13211         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
13212         to VOID_TYPE even around MODIFY_EXPR.
13213
13214 2011-04-22  Mike Stump  <mikestump@comcast.net>
13215
13216         * gensupport.c (read_md_rtx): Fix typo in comment.
13217         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
13218         comment.
13219
13220 2011-04-22  Jan Hubicka  <jh@suse.cz>
13221
13222         * gengtype.c (open_base_files): Add ipa-inline.h include.
13223         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
13224         ipa-prop.c; update all uses.
13225         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
13226         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
13227         merge summary of inlined function into former caller.
13228         * ipa-inline.c (max_benefit): Remove.
13229         (edge_badness): Compensate for removal of benefits.
13230         (update_caller_keys): Use
13231         reset_node_growth_cache/reset_edge_growth_cache.
13232         (update_callee_keys): Likewise.
13233         (update_all_callee_keys): Likewise.
13234         (inline_small_functions): Do not collect max_benefit; do not reset
13235         estimated_growth; call free_growth_caches and initialize_growth_caches.
13236         * ipa-inline.h (struct condition, type clause_t, struct predicate,
13237         struct size_time_entry): New structures.
13238         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
13239         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
13240         and estimated_growth.
13241         (edge_growth_cache_entry): New structure.
13242         (node_growth_cache, edge_growth_cache): New global vars.
13243         (estimate_growth): Turn into inline.
13244         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
13245         initialize_growth_caches, free_growth_caches): Declare.
13246         (estimate_edge_growth): Rewrite.
13247         (estimate_edge_time): Implement as inline cache lookup.
13248         (reset_node_growth_cache, reset_edge_growth_cache): New inline
13249         functions.
13250         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
13251         (NUM_CONDITIONS): New constant.
13252         (predicate_conditions): New enum.
13253         (IS_NOT_CONSTANT): New constant.
13254         (edge_removal_hook_holder): New var.
13255         (node_growth_cache, edge_growth_cache): New global vars.
13256         (true_predicate, single_cond_predicate, false_predicate,
13257         not_inlined_predicate, add_condition, add_clause, and_predicates,
13258         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
13259         dump_clause, dump_predicate, account_size_time,
13260         evaulate_conditions_for_edge): New functions.
13261         (inline_summary_alloc): Move to heap.
13262         (inline_node_removal_hook): Clear condition and entry vectors.
13263         (inline_edge_removal_hook): New function.
13264         (initialize_growth_caches, free_growth_caches): New function.
13265         (dump_inline_summary): Update.
13266         (edge_execution_predicate): New function.
13267         (will_be_nonconstant_predicate): New function.
13268         (estimate_function_body_sizes): Compute BB and constantness predicates.
13269         (compute_inline_parameters): Do not clear estimated_growth.
13270         (estimate_edge_size_and_time): New function.
13271         (estimate_calls_size_and_time): New function.
13272         (estimate_callee_size_and_time): New function.
13273         (remap_predicate): New function.
13274         (inline_merge_summary): New function.
13275         (do_estimate_edge_time): New function based on...
13276         (estimate_edge_time): ... this one.
13277         (do_estimate_edge_growth): New function.
13278         (do_estimate_growth): New function based on....
13279         (estimate_growth): ... this one.
13280         (inline_analyze_function): Analyze after deciding on jump functions.
13281         (inline_read_section): New function.
13282         (inline_read_summary): Use it.
13283         (inline_write_summary): Write all the new data.
13284         * ipa-prop.c (ipa_get_param_decl_index): Export.
13285         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
13286         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
13287         Declare.
13288         (ipa_get_lattice): Move here from ipa-cp.c
13289         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
13290         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
13291         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
13292         cgraph_edge_inlinable_p): Remove.
13293         * cgraphunit.c: Include ipainline.h
13294         (cgraph_process_new_functions): Update call of
13295         compute_inline_parameters.
13296
13297 2011-04-22  Richard Guenther  <rguenther@suse.de>
13298
13299         * tree.c (build_int_cst): Properly create canonicalized integer
13300         constants.
13301         (build_int_cst_type): Remove scary comments.
13302
13303 2011-04-22  Xinliang David Li  <davidxl@google.com>
13304
13305         * toplev.c (process_options): Enable -Werror=coverage-mismatch
13306         by default when -Wno-error is not specified.
13307         * opts-global.c (decode_options): Remove call to
13308         control_warning_options.
13309
13310 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
13311
13312         PR tree-optimization/48717
13313         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
13314         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
13315
13316 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
13317
13318         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
13319         definition where used.
13320
13321 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
13322
13323         PR c/48716
13324         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
13325         TREE_STATIC variables declared inside of some OpenMP construct.
13326
13327 2011-04-22  Martin Jambor  <mjambor@suse.cz>
13328
13329         PR middle-end/48585
13330         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
13331
13332 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
13333
13334         PR c/36750
13335         * c-typeck.c (pop_init_level): Do not warn about initializing
13336         with ` = {0}'.
13337
13338 2011-04-22  Alan Modra  <amodra@gmail.com>
13339
13340         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
13341         when returning call_cookie.
13342         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
13343         pointers, to functions with no more vector args than the current
13344         function, and some non-local calls for ABI_V4.
13345         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
13346         sibcall_nonlocal_aix64): Combine to ..
13347         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
13348         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
13349         (sibcall_value_nonlocal_aix<mode>): ..likewise.
13350         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
13351         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
13352         operand.
13353         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
13354         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
13355         sibcall_value_symbolic_64): Delete.
13356
13357 2011-04-21  Xinliang David Li  <davidxl@google.com>
13358
13359         * cgraph.h: Remove pid.
13360         * cgraph.c: Remove pid.
13361         * value-prof.c (init_node_map): New function.
13362         (del_node_map): New function.
13363         (find_func_by_funcdef_no): New function.
13364         (gimple_ic_transform): Call new function.
13365         * cgraphunit.c (cgraph_finalize_function): Remove pid.
13366         * function.c (get_last_funcdef_no): New function.
13367         * function.h (get_last_funcdef_no): New function.
13368         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
13369         to libgcov function.
13370         (tree-profiling): Call node map init and delete function.
13371
13372 2011-04-21  Ian Lance Taylor  <iant@google.com>
13373
13374         * godump.c (go_format_type): Use exported Go name for anonymous
13375         field name.
13376
13377 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
13378
13379         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
13380         Call builtin_function_type_list instead of builtin_function_type.
13381         (UNARY, BINARY, TRINARY, QUAD): Likewise.
13382
13383 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
13384
13385         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
13386         build_function_type_list instead of build_function_type.
13387         Delete variable `endlink'.
13388
13389 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
13390
13391         * config/s390/s390.c (s390_init_builtins): Call
13392         build_function_type_list instead of build_function_type.
13393
13394 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
13395
13396         * config/ia64/ia64.c (ia64_init_builtins): Call
13397         build_function_type_list instead of builtin_function_type.
13398
13399 2011-04-21  Easwaran Raman  <eraman@google.com>
13400
13401         * cfgexpand.c (stack_var): Remove OFFSET...
13402         (add_stack_var): ...and its reference here...
13403         (expand_stack_vars): ...and here.
13404         (stack_var_cmp): Sort by descending order of size.
13405         (partition_stack_vars): Change heuristic.
13406         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
13407         (dump_stack_var_partition): Add newline after each partition.
13408
13409 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
13410             Jeff Law  <law@redhat.com>
13411
13412         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
13413         * gengtype.c (matching_file_name_substitute): Likewise.
13414
13415 2011-04-21  Richard Guenther  <rguenther@suse.de>
13416
13417         PR lto/48703
13418         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
13419
13420 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
13421
13422         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
13423
13424 2011-04-21  Richard Guenther  <rguenther@suse.de>
13425
13426         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
13427         file name.
13428
13429 2011-04-21  Richard Guenther  <rguenther@suse.de>
13430
13431         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
13432         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
13433         Use DECL_P, not SSA_VAR_P.
13434         (ptr_derefs_may_alias_p): Likewise.
13435         (ptr_deref_may_alias_ref_p_1): Likewise.
13436         (decl_refs_may_alias_p): Likewise.
13437         (refs_may_alias_p_1): Likewise.
13438         (ref_maybe_used_by_call_p_1): Likewise.
13439         (call_may_clobber_ref_p_1): Likewise.
13440         (indirect_ref_may_alias_decl_p): Assume indirect refrences
13441         are either MEM_REF or TARGET_MEM_REF.
13442         (indirect_refs_may_alias_p): Likewise.
13443         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
13444         for MEM_EXPR of indirect calls.
13445
13446 2011-04-21  Tristan Gingold  <gingold@adacore.com>
13447
13448         * vmsdbgout.c (write_srccorr): Compute file length from the string.
13449         (dst_file_info_struct): Remove flen field.
13450         (lookup_filename): Remove code that set flen field.
13451
13452 2011-04-21  Tristan Gingold  <gingold@adacore.com>
13453
13454         * config/ia64/ia64.c (ia64_start_function): Add a guard.
13455
13456 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
13457
13458         PR target/48708
13459         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
13460         vec_extract and vec_concat for non-SSE4_1 targets.
13461
13462 2011-04-21  Richard Guenther  <rguenther@suse.de>
13463
13464         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
13465         return statements.
13466
13467 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
13468
13469         * config/i386/cygming.h (union tree_node, TREE): Don't define or
13470         undefine.
13471         (FILE): Don't undefine.
13472
13473 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
13474
13475         * config/alpha/alpha.c (struct machine_function): Use rtx, not
13476         struct rtx_def *.
13477         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
13478         struct rtx_def *.
13479         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
13480         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
13481         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
13482         rtx_def *.
13483         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
13484         definitions where used.
13485         * config/microblaze/microblaze.h (struct microblaze_args): Use
13486         rtx, not struct rtx_def *.
13487         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
13488         rtx_def *.
13489         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
13490         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
13491         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
13492         not struct rtx_def *.
13493         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
13494         struct rtx_def *.
13495         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
13496         rtx_def *.
13497         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
13498
13499 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
13500
13501         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
13502         operand_equal_p to compare DR_BASE_ADDRESSes.
13503         (vect_check_interleaving): Likewise.
13504
13505 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
13506
13507         PR target/46329
13508         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
13509         for all Neon struct constants.
13510
13511 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
13512
13513         * target.def (legitimate_constant_p): New hook.
13514         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
13515         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
13516         * doc/tm.texi: Regenerate.
13517         * hooks.h (hook_bool_mode_rtx_true): Declare.
13518         * hooks.c (hook_bool_mode_rtx_true): Define.
13519         * system.h (LEGITIMATE_CONSTANT_P): Poison.
13520         * calls.c (precompute_register_parameters): Replace uses of
13521         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
13522         (emit_library_call_value_1): Likewise.
13523         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
13524         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
13525         * ira-costs.c (scan_one_insn): Likewise.
13526         * recog.c (general_operand, immediate_operand): Likewise.
13527         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
13528         * reload1.c (init_eliminable_invariants): Likewise.
13529
13530         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
13531         mode argument.
13532         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
13533         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
13534         argument.
13535         (TARGET_LEGITIMATE_CONSTANT_P): Define.
13536         * config/alpha/predicates.md (input_operand): Update call to
13537         alpha_legitimate_constant_p.
13538
13539         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
13540         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
13541         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
13542         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13543         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
13544         (arm_legitimate_constant_p): New functions.
13545         (arm_cannot_force_const_mem): Make static.
13546
13547         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
13548
13549         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
13550         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
13551         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
13552         instead of bfin_legitimate_constant_p.
13553         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
13554         (TARGET_LEGITIMATE_CONSTANT_P): Define.
13555
13556         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
13557
13558         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
13559
13560         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
13561         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
13562         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13563         (frv_legitimate_constant_p): Make static.  Add a mode argument.
13564
13565         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
13566         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
13567         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
13568
13569         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
13570         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
13571         * config/i386/i386.c (legitimate_constant_p): Rename to...
13572         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
13573         argument.
13574         (ix86_cannot_force_const_mem): Update accordingly.
13575         (ix86_legitimate_address_p): Likewise.
13576         (TARGET_LEGITIMATE_CONSTANT_P): Define.
13577         * config/i386/i386.md: Update commentary.
13578
13579         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
13580         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
13581         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13582         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
13583
13584         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
13585
13586         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
13587         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
13588         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13589         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
13590
13591         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
13592         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
13593         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
13594
13595         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
13596         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13597         (m32r_legitimate_constant_p): New function.
13598
13599         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
13600         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
13601         LEGITIMATE_CONSTANT_P.
13602         (LEGITIMATE_CONSTANT_P): Delete.
13603         * config/m68k/m68k.c (m68k_expand_prologue): Call
13604         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
13605         (m68k_legitimate_constant_p): New function.
13606         * config/m68k/m68k.md: Update comments.
13607
13608         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
13609         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13610         (mcore_legitimate_constant_p): New function.
13611
13612         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
13613         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
13614         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
13615         Add a mode argument.
13616         (mep_legitimate_address): Update accordingly.
13617         (TARGET_LEGITIMATE_CONSTANT_P): Define.
13618
13619         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
13620         Delete.
13621         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
13622         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
13623         static.  Check OP's mode for VOIDmode.
13624         (microblaze_legitimate_constant_p): New function.
13625         (TARGET_LEGITIMATE_CONSTANT_P): Define.
13626
13627         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
13628         * config/mips/mips.c (mips_legitimate_constant_p): New function.
13629         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
13630         (TARGET_LEGITIMATE_CONSTANT_P): Define.
13631         * config/mips/predicates.md: Update comments.
13632
13633         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
13634         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
13635         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13636         (mmix_legitimate_constant_p): Make static, return a bool, and take
13637         a mode argument.
13638         (mmix_print_operand_address): Update accordingly.
13639
13640         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
13641         Delete.
13642         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
13643         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
13644         static.  Add a mode argument.
13645         (TARGET_LEGITIMATE_CONSTANT_P): Define.
13646
13647         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
13648
13649         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
13650         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13651         (pa_legitimate_constant_p): New function.
13652
13653         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
13654
13655         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
13656         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13657         (pdp11_legitimate_constant_p): New function.
13658
13659         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
13660         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13661         (rs6000_legitimate_constant_p): New function.
13662
13663         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
13664         (rx_legitimate_constant_p): ...this.
13665         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
13666         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
13667         (rx_legitimate_constant_p): ...this.
13668         (TARGET_LEGITIMATE_CONSTANT_P): Define.
13669         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
13670
13671         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
13672         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
13673         * config/s390/s390.c (legitimate_constant_p): Rename to...
13674         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
13675         and add a mode argument.
13676         (TARGET_LEGITIMATE_CONSTANT_P): Define.
13677
13678         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
13679
13680         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
13681         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13682         (sh_legitimate_constant_p): New function.
13683
13684         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
13685         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
13686         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13687         (legitimate_constant_p): Rename to...
13688         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
13689         argument.
13690         (constant_address_p): Update accordingly.
13691
13692         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
13693         argument and return a bool.
13694         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
13695         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13696         (spu_legitimate_constant_p): Add a mode argument and return a bool.
13697         (spu_rtx_costs): Update accordingly.
13698         * config/spu/predicates.md (vec_imm_operand): Likewise.
13699
13700         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
13701
13702         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
13703         * config/v850/v850.c (v850_legitimate_constant_p): New function.
13704         (TARGET_LEGITIMATE_CONSTANT_P): Define.
13705
13706         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
13707         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
13708         * config/vax/vax.c (legitimate_constant_p): Likewise.
13709
13710         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
13711         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
13712         (xtensa_legitimate_constant_p): New function.
13713
13714 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
13715
13716         * target.def (cannot_force_const_mem): Add a mode argument.
13717         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
13718         * doc/tm.texi: Regenerate.
13719         * hooks.h (hook_bool_mode_rtx_false): Declare.
13720         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
13721         (hook_bool_mode_const_rtx_true): Likewise.
13722         (hook_bool_mode_rtx_false): New function.
13723         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
13724         to be non-VOID.  Update call to cannot_force_const_mem.
13725         (find_reloads): Update accordingly.
13726         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
13727         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
13728         argument.
13729         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
13730         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
13731         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
13732         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
13733         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
13734         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
13735         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
13736         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
13737         (m68k_cannot_force_const_mem): ...this new function.
13738         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
13739         argument.
13740         (mips_const_insns, mips_legitimize_const_move): Update calls.
13741         (mips_secondary_reload_class): Likewise.
13742         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
13743         (pa_cannot_force_const_mem): ...this new function.
13744         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
13745         (rs6000_cannot_force_const_mem): ...this new function.
13746         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
13747         argument.
13748         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
13749         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
13750         to...
13751         (xtensa_cannot_force_const_mem): ...this new function.
13752
13753 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
13754
13755         * config/mips/mips.c (mips16_build_function_stub): Call
13756         build_function_type_list instead of build_function_type.
13757         (mips16_build_call_stub): Likewise.
13758
13759 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
13760
13761         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
13762         instead of build_function_type.
13763
13764 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
13765
13766         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
13767         instead of build_function_type.
13768
13769 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
13770
13771         PR target/48678
13772         * config/i386/i386.md (insv): Change operand 0 constraint to
13773         "register_operand".  Change operand 1 and 2 constraint to
13774         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
13775         * config/i386/sse.md (sse4_1_pinsrb): Export.
13776         (sse2_pinsrw): Ditto.
13777         (sse4_1_pinsrd): Ditto.
13778         (sse4_1_pinsrq): Ditto.
13779         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
13780         * config/i386/i386.c (ix86_expand_pinsr): New.
13781
13782 2011-04-20  Easwaran Raman  <eraman@google.com>
13783
13784         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
13785         containing union type only with -fstrict-aliasing.
13786
13787 2011-04-20  Jim Meyering  <meyering@redhat.com>
13788
13789         Remove useless if-before-free tests.
13790         * calls.c (expand_call, save_area): Likewise.
13791         * cfgcleanup.c (try_forward_edges): Likewise.
13792         * collect2.c (collect_execute): Likewise.
13793         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
13794         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
13795         * coverage.c (coverage_checksum_string): Likewise.
13796         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
13797         * cselib.c (cselib_init): Likewise.
13798         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
13799         (df_set_clean_cfg): Likewise.
13800         * function.c (free_after_compilation): Likewise.
13801         * gcc.c (do_spec_1, main): Likewise.
13802         * gcov.c (create_file_names): Likewise.
13803         * gensupport.c (identify_predicable_attribute): Likewise.
13804         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
13805         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
13806         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
13807         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
13808         * ipa-pure-const.c (local_pure_const): Likewise.
13809         * ipa-reference.c (propagate): Likewise.
13810         * ira-costs.c (free_ira_costs): Likewise.
13811         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
13812         * matrix-reorg.c (mat_free): Likewise.
13813         * prefix.c (get_key_value): Likewise.
13814         * profile.c (compute_value_histograms): Likewise.
13815         * reload1.c (free_reg_equiv): Likewise.
13816         * sched-deps.c (free_deps): Likewise.
13817         * sel-sched-ir.c (fence_clear): Likewise.
13818         * sese.c (set_rename, if_region_set_false_region): Likewise.
13819         * tree-data-ref.c (free_rdg): Likewise.
13820         * tree-eh.c (lower_try_finally): Likewise.
13821         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
13822         * tree-ssa-live.c (delete_var_map): Likewise.
13823         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
13824         * tree-ssa-pre.c (phi_trans_add): Likewise.
13825
13826 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
13827
13828         PR tree-optimization/48611
13829         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
13830         beyond ERT_MUST_NOT_THROW region.
13831
13832 2011-04-20  Catherine Moore  <clm@codesourcery.com>
13833
13834         * config/mips/mips.opt (mfix-24k): New.
13835         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
13836         * config/mips/mips.md (length): Increase by 4 for stores if
13837         fixing 24K errata.
13838         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
13839         all noreorder if fixing 24K errata.
13840         * doc/invoke.texi: Document mfix-24k.
13841
13842 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
13843
13844         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
13845         quad-word modes, reduce to 9-bit index range when above 1016 limit.
13846
13847 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
13848
13849         * config/arm/arm.c (arm_gen_constant): Move movw support ....
13850         (const_ok_for_op): ... to here.
13851
13852 2011-04-20  Kai Tietz  <ktietz@redhat.com>
13853
13854         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
13855         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
13856
13857 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
13858
13859         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
13860
13861 2011-04-20  Richard Guenther  <rguenther@suse.de>
13862
13863         PR tree-optimization/47892
13864         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
13865         are if-convertible.
13866
13867 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
13868
13869         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
13870
13871 2011-04-20  Tristan Gingold  <gingold@adacore.com>
13872
13873         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
13874
13875 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
13876
13877         PR target/18145
13878
13879         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
13880         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
13881         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
13882         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
13883         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
13884
13885         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
13886         New prototype.
13887
13888         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
13889         (avr_asm_named_section, avr_asm_output_aligned_common,
13890         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
13891         New functions to update...
13892         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
13893         (avr_asm_init_sections): Overwrite section callbacks for
13894         data_section, bss_section.
13895         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
13896         from here to...
13897         (avr_file_end): ...here.
13898
13899 2011-04-20  Richard Guenther  <rguenther@suse.de>
13900
13901         PR middle-end/48695
13902         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
13903         objects and types here.  Adjust for their offset before comparing.
13904
13905 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
13906
13907         * tree-vect-stmts.c (vectorizable_store): Only chain one related
13908         statement per copy.
13909
13910 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
13911
13912         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
13913         (GIMPLE_H): Include $(INTERNAL_FN_H).
13914         (OBJS-common): Add internal-fn.o.
13915         (internal-fn.o): New rule.
13916         * internal-fn.def: New file.
13917         * internal-fn.h: Likewise.
13918         * internal-fn.c: Likewise.
13919         * gimple.h: Include internal-fn.h.
13920         (GF_CALL_INTERNAL): New gf_mask.
13921         (gimple_statement_call): Put fntype into a union with a new
13922         internal_fn field.
13923         (gimple_build_call_internal): Declare.
13924         (gimple_build_call_internal_vec): Likewise.
13925         (gimple_call_same_target_p): Likewise.
13926         (gimple_call_internal_p): New function.
13927         (gimple_call_internal_fn): Likewise.
13928         (gimple_call_fntype): Return null for internal calls.
13929         (gimple_call_set_fntype): Assert that the function is not internal.
13930         (gimple_call_set_fn): Likewise.
13931         (gimple_call_set_fndecl): Likewise.
13932         (gimple_call_set_internal_fn): New function.
13933         (gimple_call_addr_fndecl): Handle null functions.
13934         (gimple_call_return_type): Likewise null types.
13935         * gimple.c (gimple_build_call_internal_1): New function.
13936         (gimple_build_call_internal): Likewise.
13937         (gimple_build_call_internal_vec): Likewise.
13938         (gimple_call_same_target_p): Likewise.
13939         (gimple_call_flags): Handle calls to internal functions.
13940         (gimple_call_fnspec): New function.
13941         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
13942         (gimple_has_side_effects): Handle null functions.
13943         (gimple_rhs_has_side_effects): Likewise.
13944         (gimple_call_copy_skip_args): Handle calls to internal functions.
13945         * cfgexpand.c (expand_call_stmt): Likewise.
13946         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
13947         * gimple-fold.c (gimple_fold_call): Handle null functions.
13948         (gimple_fold_stmt_to_constant_1): Don't fold
13949         calls to internal functions.
13950         * gimple-low.c (gimple_check_call_args): Handle calls to internal
13951         functions.
13952         * gimple-pretty-print.c (dump_gimple_call): Likewise.
13953         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
13954         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
13955         (do_warn_unused_result): Likewise.
13956         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
13957         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
13958         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
13959         the target of a call.
13960         (initialize_hash_element): Update accordingly.
13961         (hashable_expr_equal_p): Use gimple_call_same_target_p.
13962         (iterative_hash_hashable_expr): Handle calls to internal functions.
13963         (print_expr_hash_elt): Likewise.
13964         * tree-ssa-pre.c (can_value_number_call): Likewise.
13965         (eliminate): Handle null functions.
13966         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
13967         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
13968         (find_func_aliases): Likewise.
13969         * value-prof.c (gimple_ic_transform): Likewise.
13970         (gimple_indirect_call_to_profile): Likewise.
13971         * lto-streamer-in.c (input_gimple_stmt): Likewise.
13972         * lto-streamer-out.c (output_gimple_stmt): Likewise.
13973
13974 2011-04-19  Jan Hubicka  <jh@suse.cz>
13975
13976         * ipa-inline-transform.c (save_inline_function_body): Add comments.
13977         * ipa-inline.c (inline_small_functions): Compute summaries first,
13978         populate heap later.
13979
13980 2011-04-19  Jan Hubicka  <jh@suse.cz>
13981
13982         * cgraph.h (save_inline_function_body): Remove.
13983         * ipa-inline-transform.c: New file, broke out of...
13984         * ipa-inline.c: ... this one; Update toplevel comment.
13985         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
13986         make global.
13987         (update_noncloned_frequencies): Move to ipa-inline-transform.c
13988         (cgraph_mark_inline_edge): Rename to inline_call; move to
13989         ipa-inline-transform.c.
13990         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
13991         move to ipa-inline-transform.c
13992         (recursive_inlining, inline_small_functions, flatten_function,
13993         ipa_inline, inline_always_inline_functions,
13994         early_inline_small_functions): Update.
13995         (inline_transform): Move to ipa-inline-transform.c.
13996         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
13997         Declare.
13998         * Makefile.in (ipa-inline-transform.o): New file.
13999         * cgraphunit.c (save_inline_function_body): Move to
14000         ipa-inline-transform.c
14001
14002 2011-04-19  DJ Delorie  <dj@redhat.com>
14003
14004         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
14005         registers if we already know there aren't any.
14006         (m32c_emit_epilogue): Don't emit a barrier here.
14007         (m32c_emit_eh_epilogue): Likewise.
14008         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
14009         operands at expand time.
14010         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
14011         int" wchar type.
14012         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
14013         duplicates.  Provide aliases instead.
14014         * config/m32c/prologue.md (eh_return): Emit a barrier here.
14015         (eh_epilogue): Add a "(return)" here as a hint to other parts of
14016         the compiler.
14017
14018 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
14019
14020         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
14021         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
14022         (general_or_i64_p, sparc_register_move_cost): New function.
14023
14024 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14025
14026         * doc/install.texi (Configuration, --enable-threads): Remove mach.
14027         Add lynx, mipssde.  Sort table.
14028
14029 2011-04-19  Xinliang David Li  <davidxl@google.com>
14030
14031         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
14032         not negative.
14033
14034 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
14035
14036         PR target/48678
14037         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
14038         is a SUBREG with non-MODE_INT mode inside of it.
14039
14040 2011-04-19  Martin Jambor  <mjambor@suse.cz>
14041
14042         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
14043         also according to actual contants.
14044         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
14045         (gimple_fold_call): Use it.
14046         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
14047
14048 2011-04-19  Martin Jambor  <mjambor@suse.cz>
14049
14050         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
14051         non-pointer assignments.
14052
14053 2011-04-19  Martin Jambor  <mjambor@suse.cz>
14054
14055         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
14056         account anc_offset and otr_type from the indirect edge info.
14057         * ipa-prop.c (get_ancestor_addr_info): New function.
14058         (compute_complex_ancestor_jump_func): Assignment analysis moved to
14059         get_ancestor_addr_info, call it.
14060         (ipa_note_param_call): Do not initialize information about polymorphic
14061         calls, return the indirect call graph edge.  Remove the last
14062         parameter, adjust all callers.
14063         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
14064         parameters.  Initialize polymorphic information in the indirect edge.
14065
14066 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
14067
14068         PR lto/48148
14069         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
14070         the types if they have different enumeration identifiers.
14071
14072 2011-04-19  Jan Hubicka  <jh@suse.cz>
14073
14074         * cgraph.h (cgraph_optimize_for_size_p): Declare.
14075         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
14076         * predict.c (cgraph_optimize_for_size_p): Break out from ...
14077         (optimize_function_for_size_p) ... here.
14078
14079 2011-04-19  Richard Guenther  <rguenther@suse.de>
14080
14081         PR lto/48207
14082         * tree.c (free_lang_data): Do not reset the decl-assembler-name
14083         langhook.
14084
14085 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
14086
14087         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
14088         if DECL_NO_INLINE_WARNING_P is set on the function.
14089
14090 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
14091
14092         PR fortran/47976
14093         * reload1.c (inc_for_reload): Return void. All callers changed.
14094         (emit_input_reload_insns): Don't try to delete previous output
14095         reloads to a register, or record spill_reg_store for autoincs.
14096
14097 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
14098
14099         * gengtype.h: Updated copyright year.
14100         (struct input_file_st): Add inpisplugin field.
14101         (type_fileloc): New function.
14102         * gengtype.c
14103         (write_typed_struct_alloc_def): Add gcc_assert.
14104         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
14105         (write_typed_alloc_defns): Don't output for plugin files.
14106         (input_file_by_name): Clear inpisplugin field.
14107         (main): Set inpisplugin field for plugin files.
14108
14109 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
14110
14111         * gengtype-state.c (string_eq): New.
14112         (read_state): Use string_eq instead of strcmp when creating the
14113         state_ident_tab.
14114
14115 2011-04-19  Wei Guozhi  <carrot@google.com>
14116
14117         PR target/47855
14118         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
14119         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
14120         linkage.
14121         * config/arm/constraints.md (Uu): New constraint.
14122         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
14123
14124 2011-04-19  Tristan Gingold  <gingold@adacore.com>
14125
14126         * config.gcc (-*-*-*vms): Added.
14127         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
14128         definitions moved.
14129         * config/vms/vms-ld.c: New file.
14130         * config/vms/vms-ar.c: New file.
14131         * config/vms/t-vmsnative: New file.
14132
14133 2011-04-18  Xinliang David Li  <davidxl@google.com>
14134
14135         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
14136
14137 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
14138
14139         PR middle-end/48661
14140         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
14141         if TREE_TYPE (v) is non-NULL.
14142
14143         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
14144         gimple_get_virt_mehtod_for_binfo.
14145         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
14146         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
14147         callers.
14148         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
14149
14150 2011-04-18  Michael Matz  <matz@suse.de>
14151             Steve Ellcey  <sje@cup.hp.com>
14152
14153         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
14154         use its mode as source mode if it isn't VOIDmode.
14155
14156 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
14157
14158         * doc/passes.texi: Fill crossref nodes.
14159
14160 2011-04-18  Jim Meyering  <meyering@redhat.com>
14161
14162         Fix doubled-word typos in comments and strings
14163         * config/alpha/vms-unwind.h: s/for for/for/
14164         * config/arm/unwind-arm.h: Likewise.
14165         * config/microblaze/microblaze.c: Likewise.
14166         * config/sh/constraints.md: s/in in/in/
14167         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
14168
14169 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
14170
14171         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
14172         (AVX_FLOAT_MODE_P): Ditto.
14173         (AVX128_VEC_FLOAT_MODE_P): Ditto.
14174         (AVX256_VEC_FLOAT_MODE_P): Ditto.
14175         (AVX_VEC_FLOAT_MODE_P): Ditto.
14176         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
14177         (UNSPEC_MASKSTORE): Ditto.
14178         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
14179         Merge from <sse>_movmsk<ssemodesuffix> and
14180         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
14181         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
14182         iterator.
14183         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
14184         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
14185         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
14186
14187 2011-04-18  Jan Hubicka  <jh@suse.cz>
14188
14189         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
14190
14191         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
14192         (want_inline_function_called_once_p): Break out the logic from
14193         ipa_inline.
14194         (edge_badness): Ensure that profile is not misupdated.
14195         (lookup_recursive_calls): Prioritize by call frequencies.
14196         (inline_small_functions): Move program size estimates here;
14197         actually process whole queue even when unit growth has been
14198         met. (to properly compute inline_failed reasons and for the
14199         case unit size decrease.) Revisit comments on recursive inlining.
14200         (ipa_inline): Remove unit summary code; first inline hot calls
14201         of functions called once, cold calls next.
14202         (order, nnodes): Remove unused variables.
14203         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
14204         (GTFILES): Remove ipa-inline.c
14205         * sel-sched.c (fill_insns): Silence uninitialized var warning.
14206
14207 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
14208
14209         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
14210
14211 2011-04-18  Jie Zhang  <jie@codesourcery.com>
14212             Richard Earnshaw  <rearnsha@arm.com>
14213
14214         * arm.c (neon_builtin_type_bits): Remove.
14215         (typedef enum neon_builtin_mode): New.
14216         (T_MAX): Don't define.
14217         (typedef enum neon_builtin_datum): Remove bits, codes[],
14218         num_vars and base_fcode.  Add mode, code and fcode.
14219         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
14220         VAR10): Change accordingly.
14221         (neon_builtin_data[]): Change accordingly
14222         (arm_init_neon_builtins): Change accordingly.
14223         (neon_builtin_compare): Remove.
14224         (locate_neon_builtin_icode): Remove.
14225         (arm_expand_neon_builtin): Change accordingly.
14226
14227         * arm.h (enum arm_builtins): Move to ...
14228         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
14229
14230         * arm.c (arm_builtin_decl): Declare.
14231         (TARGET_BUILTIN_DECL): Define.
14232         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
14233         (arm_builtin_decls[]): New.
14234         (arm_init_neon_builtins): Store builtin declarations in
14235         arm_builtin_decls[].
14236         (arm_init_tls_builtins): Likewise.
14237         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
14238         (arm_builtin_decl): New.
14239
14240 2011-04-18  Richard Guenther  <rguenther@suse.de>
14241
14242         * tree.c (upper_bound_in_type): Build properly canonicalized
14243         INTEGER_CSTs.
14244         (lower_bound_in_type): Likewise.
14245
14246 2011-04-18  Richard Guenther  <rguenther@suse.de>
14247
14248         * gimple.h (gimple_call_addr_fndecl): New function.
14249         (gimple_call_fndecl): Use it.
14250         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
14251         for direct calls.
14252         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
14253         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
14254
14255 2011-04-18  Richard Guenther  <rguenther@suse.de>
14256
14257         PR middle-end/48650
14258         * tree.c (build_string): STRING_CST is now derived from tree_typed.
14259
14260 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
14261
14262         PR lto/48492
14263         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
14264         DECL_IN_CONSTANT_POOL without RTL.
14265
14266 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
14267             Ira Rosen  <ira.rosen@linaro.org>
14268
14269         PR target/48252
14270         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
14271         to match neon_vzip/vuzp/vtrn_internal.
14272         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
14273         outputs explicitly dependent on both inputs.
14274         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
14275
14276 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
14277
14278         PR tree-optimization/48616
14279         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
14280         whether the shift is by scalar or vector based on whether all SLP
14281         scalar stmts have the same rhs.
14282
14283 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
14284
14285         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
14286         memory operands.
14287
14288 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
14289
14290         PR target/43700
14291         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
14292         registers.
14293
14294 2011-04-17  Jan Hubicka  <jh@suse.cz>
14295
14296         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
14297         * cgrpahunit.c (cgraph_finalize_function): Do not set
14298         finalized_by_frontend.
14299         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
14300         finalized_by_frontend.
14301
14302 2011-04-17  Jan Hubicka  <jh@suse.cz>
14303
14304         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
14305         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
14306         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
14307         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
14308         method.
14309         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
14310         gimple-fold.c
14311         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
14312
14313 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
14314
14315         PR lto/48538
14316         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
14317         is non-null before accessing it.
14318         (input_cgraph): Remove trailing spaces.
14319
14320 2011-04-17  Revital Eres  <revital.eres@linaro.org>
14321
14322         * params.def (sms-min-sc): New param flag.
14323         * modulo-sched.c (sms_schedule): Use it.
14324         * doc/invoke.texi (sms-min-sc): Document it.
14325
14326 2011-04-17  Jan Hubicka  <jh@suse.cz>
14327
14328         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
14329         present, also set gimple_call_set_cannot_inline.
14330         * ipa-inline.c: Update toplevel comment.
14331         (MAX_TIME): Remove.
14332         (cgraph_clone_inlined_nodes): Fix linebreaks.
14333         (cgraph_check_inline_limits): Restructure to ...
14334         (caller_growth_limits): ... this one; be more tolerant
14335         on growth in nested inline chains; add explanatory comment;
14336         fix stack accounting thinko introduced by previous patch.
14337         (cgraph_default_inline_p): Remove.
14338         (report_inline_failed_reason): New function.
14339         (can_inline_edge_p): New function.
14340         (can_early_inline_edge_p): New function.
14341         (leaf_node_p): Move upwards in file.
14342         (want_early_inline_function_p): New function.
14343         (want_inline_small_function_p): New function.
14344         (want_inline_self_recursive_call_p): New function.
14345         (cgraph_edge_badness): Rename to ...
14346         (edge_badness) ... this one; fix linebreaks.
14347         (update_edge_key): Update call of edge_baddness; add
14348         detailed dump about queue updates.
14349         (update_caller_keys): Use can_inline_edge_p and
14350         want_inline_small_function_p.
14351         (cgraph_decide_recursive_inlining): Rename to...
14352         (recursive_inlining): Use can_inline_edge_p and
14353         want_inline_self_recursive_call_p; simplify and remove no longer
14354         valid FIXME.
14355         (cgraph_set_inline_failed): Remove.
14356         (add_new_edges_to_heap): Use can_inline_edge_p and
14357         want_inline_small_function_p.
14358         (cgraph_decide_inlining_of_small_functions): Rename to ...
14359         (inline_small_functions): ... this one; cleanup; use
14360         can/want predicates; cleanup debug ouput; work edges till fibheap
14361         is exhausted and do not stop once unit growth is reached; remove
14362         later loop processing remaining edges.
14363         (cgraph_flatten): Rename to ...
14364         (flatten_function): ... this one; use can_inline_edge_p
14365         and can_early_inline_edge_p predicates.
14366         (cgraph_decide_inlining): Rename to ...
14367         (ipa_inline): ... this one; remove unreachable nodes before
14368         inlining functions called once; simplify the pass.
14369         (cgraph_perform_always_inlining): Rename to ...
14370         (inline_always_inline_functions): ... this one; use
14371         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
14372         (cgraph_decide_inlining_incrementally): Rename to ...
14373         (early_inline_small_functions): ... this one; simplify
14374         using new predicates; cleanup; make dumps prettier.
14375         (cgraph_early_inlining): Rename to ...
14376         (early_inliner): newer inline regular functions into always-inlines;
14377         fix updating of call stmt summaries.
14378         (pass_early_inline): Update for new names.
14379         (inline_transform): Fix formating.
14380         (gate_cgraph_decide_inlining): Rename to ...
14381         (pass_ipa_inline): ... this one.
14382         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
14383         * ipa-inline-analysis.c (dump_inline_summary): Update.
14384         (compute_inline_parameters): Do not compute disregard_inline_limits;
14385         look for mismatching arguments.
14386         (estimate_growth): Fix handlig of non-trivial self recursion.
14387         (inline_read_summary): Do not read info->disregard_inline_limits.
14388         (inline_write_summary): Do not write info->disregard_inline_limits.
14389         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
14390         and move all checks into can_inline_edge_p predicate; re-enable code
14391         comparing optimization levels.
14392         (expand_call_inline): Do not test inline_forbidden_into_p.
14393         * Makefile.in (ipa-inline.o): Update arguments.
14394
14395 2011-04-17  Revital Eres  <revital.eres@linaro.org>
14396
14397         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
14398
14399 2011-04-17  Revital Eres  <revital.eres@linaro.org>
14400
14401         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
14402
14403 2011-04-17  Michael Matz  <matz@suse.de>
14404
14405         PR tree-optimization/48622
14406         PR lto/48645
14407         * ipa-inline-analysis.c (inline_read_summary): Read size/time
14408         in same order as they're written.
14409
14410 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14411
14412         * config/pa/predicates.md: Reorganize and simplify predicates.
14413         Eliminate duplicate code checks.
14414         (arith_operand): Rename to arith14_operand
14415         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
14416         * config/pa/pa.md: Use renamed operands.
14417         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
14418         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
14419         arith11_operand, adddi3_operand, indexed_memory_operand,
14420         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
14421         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
14422         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
14423         move_dest_operand, move_src_operand, prefetch_cc_operand,
14424         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
14425         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
14426         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
14427         div_operand, int5_operand, movb_comparison_operator,
14428         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
14429         arith_double_operand, ireg_operand, lhs_lshift_operand,
14430         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
14431         integer_store_memory_operand): Likewise.
14432         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
14433         (integer_store_memory_operand, read_only_operand,
14434         function_label_operand, borx_reg_operand,
14435         non_hard_reg_operand): Likewise.
14436         (eq_neq_comparison_operator): Delete unused operator.
14437         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
14438         function_label_operand.
14439         (emit_move_sequence): Likewise.
14440
14441 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
14442
14443         * config/i386/sse.md (sseunpackmode): New mode attribute.
14444         (ssepackmode): Ditto.
14445         (vec_pack_trunc_<mode>): Macroize expander from
14446         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
14447         (vec_unpacks_lo_<mode>): Macroize expander from
14448         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
14449         (vec_unpacks_hi_<mode>): Macroize expander from
14450         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
14451         (vec_unpacku_lo_<mode>): Macroize expander from
14452         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
14453         (vec_unpacku_hi_<mode>): Macroize expander from
14454         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
14455         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
14456         ix86_expand_sse4_unpack.
14457         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
14458
14459 2011-04-16  Jan Hubicka  <jh@suse.cz>
14460
14461         * cgraphbuild.c: Include ipa-inline.h.
14462         (reset_inline_failed): Use initialize_inline_failed.
14463         * cgraph.c: Include ipa-inline.h.
14464         (cgraph_create_node_1): Do not initialize estimated_growth.
14465         (initialize_inline_failed): More to ipa-inline-analysis.c
14466         (dump_cgraph_node): Do not dump inline flags.
14467         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
14468         and disregard_inline_limits flags.
14469         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
14470         time, size, estimated_growth.
14471         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
14472         Update.
14473         * cgraphunit.c (cgraph_decide_is_function_needed): Use
14474         DECL_DISREGARD_INLINE_LIMITS.
14475         (cgraph_analyze_function): Do not initialize
14476         node->local.disregard_inline_limits.
14477         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
14478         inlinable, versionable and disregard_inline_limits.
14479         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
14480         cgraph_check_inline_limits, cgraph_default_inline_p,
14481         cgraph_edge_badness, update_caller_keys, update_callee_keys,
14482         add_new_edges_to_heap): Update.
14483         (cgraph_decide_inlining_of_small_function): Update; set
14484         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
14485         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
14486         cgraph_decide_inlining_incrementally): Update.
14487         * ipa-inline.h (inline_summary): Add inlinable, versionable,
14488         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
14489         time, size and estimated_growth parameters.
14490         (estimate_edge_growth): Update.
14491         (initialize_inline_failed): Declare.
14492         * ipa-split.c: Include ipa-inline.h
14493         (execute_split_functions): Update.
14494         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
14495         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
14496         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
14497         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
14498         estimated_growth to INT_MIN.
14499         (inline_node_duplication_hook): Likewise.
14500         (dump_inline_summary): Dump new fields.
14501         (compute_inline_parameters): Update.
14502         (estimate_edge_time, estimate_time_after_inlining,
14503         estimate_size_after_inlining, estimate_growth, inline_read_summary,
14504         inline_write_summary):
14505         (initialize_inline_failed): Move here from cgraph.c.
14506         * tree-sra.c: Include ipa-inline.h.
14507         (ipa_sra_preliminary_function_checks): Update.
14508         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
14509         ipa-inline.h.
14510
14511 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
14512
14513         * config/i386/sse.md (V16): New mode iterator.
14514         (VI1, VI8): Ditto.
14515         (AVXMODEQI, AVXMODEDI): Remove.
14516         (sse2, sse3): New mode attribute.
14517         (mov<mode>): Use V16 mode iterator.
14518         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
14519         (push<mode>1): Use V16 mode iterator.
14520         (movmisalign<mode>): Ditto.
14521         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
14522         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
14523         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
14524         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
14525         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
14526         avx_movdqu<avxmodesuffix>.
14527         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
14528         *avx_movdqu<avxmodesuffix>.
14529         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
14530         avx_lddqu<avxmodesuffix>.
14531         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
14532         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
14533         avx_movnt<AVXMODEDI:mode>.
14534         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
14535         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
14536
14537 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
14538
14539         PR target/48629
14540         * haifa-sched.c (prune_ready_list, schedule_block): Use
14541         sched_pressure_p rather than flag_sched_pressure.
14542
14543 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
14544
14545         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
14546         cgraph_get_node instead of cgraph_get_create_node.
14547
14548 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
14549
14550         * cfgexpand.c (expand_debug_expr): Use
14551         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
14552
14553 2011-04-15  Michael Matz  <matz@suse.de>
14554
14555         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
14556         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
14557         * function.c (gimplify_parameters): Ditto.
14558         * gimplify.c (gimplify_vla_decl): Ditto.
14559
14560         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
14561         (gimple_call_set_alloca_for_var): New inline function.
14562         (gimple_call_alloca_for_var_p): Ditto.
14563         * gimple.c (gimple_build_call_from_tree): Remember
14564         CALL_ALLOCA_FOR_VAR_P state.
14565         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
14566
14567         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
14568         calls if they were for VLA objects.
14569
14570 2011-04-15  Martin Jambor  <mjambor@suse.cz>
14571
14572         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
14573         of ADR_EXPRs.
14574
14575 2011-04-15  Martin Jambor  <mjambor@suse.cz>
14576
14577         PR middle-end/48601
14578         * tree-emutls.c (lower_emutls_function_body): Call
14579         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
14580         result is non-NULL.
14581
14582 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
14583
14584         * c-decl.c (detect_field_duplicates): Call
14585         objc_detect_field_duplicates instead of objc_get_interface_ivars.
14586
14587 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
14588
14589         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
14590         * gimple.c (gimple_asm_clobbers_memory_p): Define.
14591         * ipa-pure-const.c (check_stmt): Call it.
14592         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
14593
14594 2011-04-15  Richard Guenther  <rguenther@suse.de>
14595
14596         PR tree-optimization/48290
14597         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
14598         Properly decide inhibiting propagation based on the valueized
14599         operand.  Do loop-closed SSA form preserving here ...
14600         (init_copy_prop): ... not here.
14601
14602 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
14603
14604         PR target/48612
14605         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
14606         (*ieee_smax<mode>3): Likewise.
14607
14608 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14609
14610         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
14611         Replace match_operand with match_dup for the third operand in
14612         these expanders.
14613
14614 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
14615
14616         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
14617         to track processing of conditionals.  Update all callers.
14618         (try_combine, simplify_if_then_else): Update.
14619
14620 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
14621
14622         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
14623         -fsched-pressure.
14624
14625 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
14626
14627         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
14628         instead of match_operand for operand 3.
14629
14630 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
14631
14632         * recog.h (insn_operand_data): Add an "allows_mem" field.
14633         * genoutput.c (output_operand_data): Initialize it.
14634         * optabs.c (maybe_legitimize_operand_same_code): New function.
14635         (maybe_legitimize_operand): Use it when matching the original
14636         op->value.
14637
14638 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
14639
14640         * gimplify.c: Fix issues in comments throughout.
14641         (voidify_wrapper_expr): Fix long line.
14642         (build_stack_save_restore): Likewise.
14643         (gimplify_loop_expr): Likewise.
14644         (gimplify_compound_lval): Likewise.
14645         (gimplify_init_ctor_eval): Likewise.
14646         (gimplify_modify_expr_rhs): Likewise.
14647         (omp_notice_threadprivate_variable): Likewise.
14648
14649 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
14650
14651         * cfgexpand.c (expand_call_stmt): Convert the function type to the
14652         original one if this is not a builtin function.
14653
14654 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
14655
14656         PR target/48605
14657         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
14658         offset it as needed based on top 2 bits in operands[3], change
14659         MEM mode to SFmode and mask those 2 bits away from operands[3].
14660
14661 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
14662
14663         * c-parser.c (c_parser_objc_protocol_definition): Updated for
14664         change from objc_declare_protocols() to objc_declare_protocol().
14665
14666 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
14667
14668         * config/i386/sse.md (sse4_1): New mode attribute.
14669         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
14670         avx_blend<ssemodesuffix><avxmodesuffix> and
14671         sse4_1_blend<ssemodesuffix> using VF mode iterator.
14672         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
14673         avx_blendv<ssemodesuffix><avxmodesuffix> and
14674         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
14675         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
14676         avx_dp<ssemodesuffix><avxmodesuffix> and
14677         sse4_1_dp<ssemodesuffix> using VF mode iterator.
14678         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
14679         (sse4_1_packusdw): Merge with *avx_packusdw.
14680         (sse4_1_pblendvb): Merge with *avx_pblendvb.
14681         (sse4_1_pblendw): Merge with *avx_pblendw.
14682         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
14683         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
14684         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
14685         VF mode iterator.
14686         (sse4_1_round<ssescalarmodesuffix>): Merge with
14687         *avx_round<ssescalarmodesuffix>.
14688         (aesenc): Merge with *avx_aesenc.
14689         (aesenclast): Merge with *avx_aesenclast.
14690         (aesdec): Merge with *avx_aesdec.
14691         (aesdeclast): Merge with *avx_aesdeclast.
14692         (pclmulqdq): Merge with *pclmulqdq.
14693         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
14694         New predicate.
14695         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
14696
14697 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
14698
14699         PR middle-end/48608
14700         * cfgexpand.c (get_decl_align_unit): Renamed to ...
14701         (align_local_variable): This.  Update DECL_ALIGN.
14702         (add_stack_var): Updated.
14703         (expand_one_stack_var): Likewise.
14704
14705 2011-04-14  Richard Guenther  <rguenther@suse.de>
14706
14707         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
14708         Remove.
14709         (dse_initialize_block_local_data, dse_leave_block,
14710         record_voperand_set, get_stmt_uid): Likewise.
14711         (dse_possible_dead_store_p): Allow any kind of killing stmt.
14712         (dse_optimize_stmt): Remove voperand set handling code.
14713         Simplify and improve to handle any kind of killing stmt.
14714         (dse_record_phi): Remove.
14715         (dse_enter_block): Simplify.
14716         (tree_ssa_dse): Likewise.
14717         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
14718
14719 2011-04-14  Jan Hubicka  <jh@suse.cz>
14720
14721         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
14722         * cgraph.h (struct inline_summary): Move to ipa-inline.h
14723         (cgraph_local_info): Remove inline_summary.
14724         * ipa-cp.c: Include ipa-inline.h.
14725         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
14726         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
14727         accesor.
14728         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
14729         (input_overwrite_node): Do not set inline summary.
14730         (input_node): Do not stream inline summary.
14731         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
14732         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
14733         growth; we do not have inline parameters computed for that anyway.
14734         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
14735         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
14736         (inline_summary_t): New type and VECtor.
14737         (debug_inline_summary, dump_inline_summaries): Declare.
14738         (inline_summary): Use VOCtor.
14739         (estimate_edge_growth): Kill hack computing call stmt size directly.
14740         * lto-section-in.c (lto_section_name): Add inline section.
14741         * ipa-inline-analysis.c: Include lto-streamer.h
14742         (node_removal_hook_holder, node_duplication_hook_holder): New holders
14743         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
14744         (inline_summary_vec): Define.
14745         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
14746         dump_inline_summaries): New functions.
14747         (estimate_function_body_sizes): Properly compute size/time of outgoing
14748         calls.
14749         (compute_inline_parameters): Alloc inline_summary; do not compute
14750         size/time of incomming calls.
14751         (estimate_edge_time): Avoid missing time summary hack.
14752         (inline_read_summary): Read inline summary info.
14753         (inline_write_summary): Write inline summary info.
14754         (inline_free_summary): Free all hooks and inline summary vector.
14755         * lto-streamer.h: Add LTO_section_inline_summary section.
14756         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
14757         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
14758
14759 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
14760
14761         * tree-vectorizer.h (vect_strided_store_supported): Add a
14762         HOST_WIDE_INT argument.
14763         (vect_strided_load_supported): Likewise.
14764         (vect_permute_store_chain): Return void.
14765         (vect_transform_strided_load): Likewise.
14766         (vect_permute_load_chain): Delete.
14767         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
14768         count argument.  Check that the count is a power of two.
14769         (vect_strided_load_supported): Likewise.
14770         (vect_permute_store_chain): Return void.  Update after above changes.
14771         Assert that the access is supported.
14772         (vect_permute_load_chain): Likewise.
14773         (vect_transform_strided_load): Return void.
14774         * tree-vect-stmts.c (vectorizable_store): Update calls after
14775         above interface changes.
14776         (vectorizable_load): Likewise.
14777         (vect_analyze_stmt): Don't check for strided powers of two here.
14778
14779 2011-04-14  Richard Guenther  <rguenther@suse.de>
14780
14781         PR tree-optimization/48590
14782         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
14783         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
14784         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
14785         BUILT_IN_STACK_SAVE.
14786         * tree-ssa-dce.c (propagate_necessity): Handle
14787         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
14788
14789 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
14790
14791         * c-parser.c (c_parser_objc_class_declaration): Updated call to
14792         objc_declare_class.
14793
14794 2011-04-14  Richard Guenther  <rguenther@suse.de>
14795
14796         * tree.h (get_object_alignment_1): Declare.
14797         * builtins.c (get_object_alignment_1): Split out worker from ...
14798         (get_object_alignment): ... here.
14799         * fold-const.c (get_pointer_modulus_and_residue): Use
14800         get_object_alignment_1.
14801
14802 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
14803
14804         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
14805         type parameter.
14806         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
14807         parameter.  Generalise code to handle arrays as well as vectors.
14808         (vect_setup_realignment): Update accordingly.
14809         * tree-vect-stmts.c (vectorizable_store): Likewise.
14810         (vectorizable_load): Likewise.
14811
14812 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
14813
14814         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
14815         within the per-copy loop.
14816
14817 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
14818
14819         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
14820         in the dump file.
14821
14822 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
14823
14824         * doc/options.texi (Negative): Explicitly mention that the
14825         Negative chain must be circular.
14826
14827 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
14828
14829         * function.h (block_chainon): Declare.
14830         * function.c (block_chainon): Define.
14831
14832 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
14833             Eric Weddington  <eric.weddington@atmel.com>
14834             Georg-Johann Lay  <avr@gjlay.de>
14835
14836         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
14837         New Includes
14838         (avr_init_builtins, avr_expand_builtin,
14839         avr_expand_delay_cycles, avr_expand_unop_builtin,
14840         avr_expand_binop_builtin ): New functions.
14841         (avr_builtin_id): New enum
14842         (struct avr_builtin_description): New struct
14843         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
14844         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
14845
14846         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
14847         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
14848         UNSPECV_DELAY_CYCLES): new enumeration values
14849         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
14850         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
14851         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
14852         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
14853         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
14854         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
14855         "fmulsu"): New insns
14856
14857         * config/avr/avr-c.c: fix line endings
14858         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
14859         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
14860         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
14861         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
14862         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
14863
14864         * doc/extend.texi (AVR Built-in Functions): New node
14865         (Target Builtins): Add documentation of AVR
14866         built-in functions.
14867
14868 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
14869
14870         PR target/44643
14871         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
14872         alone. Error if non-const data has attribute progmem.
14873
14874 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
14875
14876         * tree.h (struct tree_constructor): Include tree_typed instead of
14877         tree_common.
14878         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
14879         TS_TYPED instead of TS_COMMON.
14880
14881 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
14882
14883         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
14884         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
14885         (sse2_psadbw): Merge with *avx_psadbw.
14886         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
14887         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
14888         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
14889         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
14890         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
14891         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
14892         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
14893         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
14894         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
14895         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
14896         (ssse3_palignrti): Merge with *avx_palignrti.
14897
14898 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
14899
14900         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
14901         * tree-ssanames.c (fini_ssanames): VEC_free it.
14902         (make_ssa_name_fn): Update for VECness of free_ssanames.
14903         (release_ssa_name, release_dead_ssa_names): Likewise.
14904         * tree.h (struct tree_ssa_name): Include tree_typed instead of
14905         tree_common.
14906         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
14907         TS_TYPED instead of TS_COMMON.
14908
14909 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
14910
14911         * postreload-gcse.c (gcse_after_reload_main): Add calls to
14912         statistics_counter_event.
14913         * tree-ssa-copyrename.c (stats): Define.
14914         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
14915         statistics_counter_event.
14916         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
14917         (bswap_stats, widen_mul_stats): Define.
14918         (insert_reciprocals): Increment rdivs_inserted.
14919         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
14920         rfuncs_inserted.  Add calls to statistics_counter_event.
14921         (execute_cse_sincos_1): Increment inserted.
14922         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
14923         statistics_counter_event.
14924         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
14925         of bswap_stats.  Add calls to statistics_counter_event.
14926         (convert_mult_to_widen): Increment widen_mults_inserted.
14927         (convert_plusminus_to_widen): Increment maccs_inserted.
14928         (convert_mult_to_fma): Increment fmas_inserted.
14929         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
14930         calls to statistics_counter_event.
14931
14932 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
14933
14934         PR rtl-optimization/48455
14935         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
14936         `temp_costs->mem_cost'.
14937
14938 2011-04-13  Jan Hubicka  <jh@suse.cz>
14939
14940         * ipa-inline.h: New file.
14941         * ipa-inline-analysis.c: New file. Broken out of ...
14942         * ipa-inline.c: ... this file; update toplevel comment;
14943         include ipa-inline.h
14944         (inline_summary): Move to ipa-inline.h
14945         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
14946         ipa-inline-analysis.c.
14947         (cgraph_estimate_time_after_inlining): Rename to
14948         estiamte_time_after_inlining; move to ipa-inline-analysis.c
14949         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
14950         to estimate_edge_growth.
14951         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
14952         rename to estimate_size_after_inlining.
14953         (cgraph_mark_inline_edge): Update for new naming convention.
14954         (cgraph_check_inline_limits): Likewise.
14955         (cgraph_edge_badness): Likewise.
14956         (cgraph_decide_recursive_inlining): Likewise.
14957         (cgraph_decide_inlining_of_small_functions): Likewise.
14958         (cgraph_decide_inlining_incrementally): Likewise.
14959         (cgraph_estimate_growth): Rename to estimate_growth; move to
14960         ipa-inline-analysis.c.
14961         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
14962         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
14963         (compute_inline_parameters): Likewise.
14964         (compute_inline_parameters_for_current): Likewise.
14965         (pass_inline_parameters): Likewise.
14966         (inline_indirect_intraprocedural_analysis): Likewise.
14967         (analyze_function): Rename to inline_analyze_function; likewise.
14968         (add_new_function): Move to ipa-inline-analysis.c.
14969         (inline_generate_summary): Likewise.
14970         (inline_read_summary): Likewise.
14971         (inline_write_summary): Likewise.
14972         * Makefile.in (ipa-inline-analysis.c): New file.
14973
14974 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14975
14976         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
14977         * configure: Regenerate.
14978
14979 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
14980
14981         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
14982         instead of tree_common.
14983         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
14984         Likewise.
14985         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
14986         TS_TYPED rather than TS_COMMON.
14987         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
14988
14989 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
14990
14991         PR target/45263
14992         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
14993         r20 around calls of __tablejump_elpm__
14994
14995 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
14996
14997         PR middle-end/48591
14998         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
14999         NULL.
15000         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
15001
15002 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
15003
15004         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
15005         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
15006         (cfi_vec): New typedef.
15007         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
15008         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
15009         (cie_cfi_vec): New static variable.
15010         (cie_cfi_head): Delete.
15011         (add_cfi): Accept a cfi_vec * as first argument. All callers and
15012         declaration changed. Use vector rather than list operations.
15013         (new_cfi): Don't initialize the dw_cfi_next field.
15014         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
15015         rather than list operations.
15016         (lookup_cfa): Use vector rather than list operations.
15017         (output_cfis): New argument upto. Accept a cfi_vec rather than
15018         a dw_cfi_ref list head as argument. All callers changed.
15019         Iterate over the vector using upto as a maximum index.
15020         (output_all_cfis): New static function.
15021         (output_fde): Use vector rather than list operations. Use the
15022         new upto argument for output_cfis rather than manipulating a
15023         list.
15024         (dwarf2out_begin_prologue): Change initializations to match
15025         new struct members.
15026         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
15027         from the vector length rather than searching for the end of a list.
15028         Use output_all_cfis.
15029         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
15030
15031 2011-04-13  Nick Clifton  <nickc@redhat.com>
15032
15033         * config/rx/rx.md (movmemsi): Do not use this pattern when
15034         volatile pointers are involved.
15035
15036 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
15037
15038         * config/i386/sse.md (pinsrbits): Remove.
15039         (sse2_packsswb): Merge with *avx_packsswb.
15040         (sse2_packssdw): Merge with *avx_packssdw.
15041         (sse2_packuswb): Merge with *avx_packuswb.
15042         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
15043         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
15044         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
15045         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
15046         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
15047         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
15048         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
15049         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
15050         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
15051         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
15052         (sse2_loadld): Merge with *avx_loadld.
15053         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
15054         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
15055         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
15056         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
15057         (vec_concatv2di): Merge with *vec_concatv2di_avx.
15058
15059 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
15060
15061         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
15062         calling TREE_CHAIN.
15063         * print-tree.c (print_node): Likewise.
15064         * tree-inline.c (copy_tree_r): Likewise.
15065         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
15066         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
15067         instead of TS_COMMON.
15068         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
15069         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
15070         (copy_node_stat): Zero TREE_CHAIN only if necessary.
15071         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
15072         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
15073         ...and these...
15074         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
15075         * tree.h: ...here.
15076         (TREE_CHAIN): Check for a TS_COMMON structure.
15077         (TREE_TYPE): Check for a TS_TYPED structure.
15078
15079 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
15080
15081         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
15082         cgraph_get_create_node instead of cgraph_node.
15083
15084 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15085
15086         * c-parser.c (c_parser_initelt): Updated call to
15087         objc_build_message_expr.
15088         (c_parser_postfix_expression): Likewise.
15089
15090 2011-04-12  Kai Tietz  <ktietz@redhat.com>
15091
15092         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
15093         MASK_MS_BITFIELD_LAYOUT bit.
15094
15095 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
15096
15097         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
15098         assert it is always true.
15099         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
15100         moves.
15101
15102 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15103
15104         * c-parser.c (c_lex_one_token): Rewritten conditional used when
15105         compiling Objective-C to be more efficient.
15106
15107 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
15108
15109         * opts-common.c (decode_cmdline_options_to_array): Remove variable
15110         argv_copied.
15111
15112 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
15113
15114         * recog.h, genoutput.c, optabs.c: Revert last patch.
15115
15116 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
15117
15118         PR target/48090
15119         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
15120
15121 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
15122
15123         * recog.h (insn_operand_data): Add an "allows_mem" field.
15124         * genoutput.c (output_operand_data): Initialize it.
15125         * optabs.c (maybe_legitimize_operand_same_code): New function.
15126         (maybe_legitimize_operand): Use it when matching the original
15127         op->value.
15128
15129 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
15130
15131         * genpreds.c (process_define_predicate): Move most processing
15132         to gensupport.c.  Continue to validate the expression.
15133         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
15134         (process_define_predicate): Move processing to gensupport.c.
15135         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
15136         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
15137         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
15138         argument.
15139         (valid_predicate_name_p): New function, split out from old
15140         genpreds.c:process_define_predicate.
15141         (process_define_predicate): New function, combining code from
15142         old genpreds.c and genrecog.c functions.
15143         (process_rtx): Call it for DEFINE_PREDICATE and
15144         DEFINE_SPECIAL_PREDICATE.
15145
15146 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
15147
15148         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
15149         size of a '%A' memory reference.
15150         (T_DREG, T_QREG): New neon_builtin_type_bits.
15151         (arm_init_neon_builtins): Assert that the load and store operands
15152         are neon_struct_operands.
15153         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
15154         (NEON_ARG_MEMORY): New builtin_arg.
15155         (neon_dereference_pointer): New function.
15156         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
15157         Handle NEON_ARG_MEMORY.
15158         (arm_expand_neon_builtin): Update after above interface changes.
15159         Use NEON_ARG_MEMORY for loads and stores.
15160         * config/arm/predicates.md (neon_struct_operand): New predicate.
15161         * config/arm/iterators.md (V_two_elem): Tweak formatting.
15162         (V_three_elem): Use BLKmode for accesses that have no associated mode.
15163         (V_four_elem): Tweak formatting.
15164         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
15165         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
15166         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
15167         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
15168         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
15169         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
15170         (neon_vst4<mode>): Replace pointer operand with a memory operand.
15171         Use %A in the output template.
15172         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
15173         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
15174         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
15175         the width of the memory access.  Remove post-increment.
15176         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
15177
15178 2011-04-12  Nick Clifton  <nickc@redhat.com>
15179
15180         * config/v850/v850.c (expand_prologue): Do not use the CALLT
15181         instruction for interrupt handlers if the target is the basic V850
15182         architecture.
15183         (expand_epilogue): Likewise.
15184
15185 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
15186
15187         PR rtl-optimization/48549
15188         * combine.c (propagate_for_debug): Also stop after BB_END of
15189         this_basic_block.  Process LAST and just stop processing after it.
15190         (combine_instructions): If last_combined_insn has been deleted,
15191         set last_combined_insn to its PREV_INSN.
15192
15193 2011-04-12  Richard Guenther  <rguenther@suse.de>
15194
15195         PR tree-optimization/46076
15196         * gimple.h (struct gimple_statement_call): Add fntype field.
15197         (gimple_call_fntype): Adjust.
15198         (gimple_call_set_fntype): New function.
15199         * gimple.c (gimple_build_call_1): Set the call function type.
15200         * gimplify.c (gimplify_call_expr): Preserve the function
15201         type the frontend used for the call.
15202         (gimplify_modify_expr): Likewise.
15203         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
15204         function type.
15205         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
15206         function type.
15207         * tree-ssa.c (useless_type_conversion_p): Function pointer
15208         conversions are useless.
15209
15210 2011-04-12  Martin Jambor  <mjambor@suse.cz>
15211
15212         * cgraph.h (cgraph_node): Remove function declaration.
15213         (cgraph_create_node): Declare.
15214         (cgraph_get_create_node): Likewise.
15215         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
15216         Updated all callers.
15217         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
15218         the decl does not already exist.  Call cgraph_get_create_node instead
15219         of cgraph_node.
15220         (cgraph_get_create_node): New function.
15221         (cgraph_same_body_alias): Update comment.
15222         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
15223         assert it does not return NULL.
15224         (cgraph_update_edges_for_call_stmt): Likewise.
15225         (cgraph_clone_edge): Likewise.
15226         (cgraph_create_virtual_clone): Likewise.
15227         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
15228         instead of cgraph_node.
15229         (cgraph_add_new_function): Call cgraph_create_node or
15230         cgraph_get_create_node instead of cgraph_node.
15231         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
15232         instead of cgraph_node.
15233         (record_eh_tables): Likewise.
15234         (mark_address): Likewise.
15235         (mark_load): Likewise.
15236         (build_cgraph_edges): Call cgraph_get_create_node instead
15237         of cgraph_node.
15238         (rebuild_cgraph_edges): Likewise.
15239         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
15240         instead of cgraph_node.
15241         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
15242         cgraph_node.
15243         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
15244         cgraph_create_node instead of cgraph_node.
15245         * c-decl.c (finish_function): Call cgraph_get_create_node instead
15246         of cgraph_node.
15247         * lto-cgraph.c (input_node): Likewise.
15248         * lto-streamer-in.c (input_function): Likewise.
15249         * varasm.c (mark_decl_referenced): Likewise.
15250         (assemble_alias): Likewise.
15251
15252 2011-04-12  Martin Jambor  <mjambor@suse.cz>
15253
15254         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
15255         instead of cgraph_node and assert it does not return NULL.
15256         * lto-streamer-in.c (lto_read_body): Likewise.
15257         * omp-low.c (new_omp_context): Likewise.
15258         (create_task_copyfn): Likewise.
15259         * tree-emutls.c (lower_emutls_function_body): Likewise.
15260         * matrix-reorg.c (transform_allocation_sites): Likewise.
15261
15262 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
15263
15264         PR c/48552
15265         * c-typeck.c (build_asm_expr): Error out on attempts to use
15266         void type outputs or inputs for constraints that allow reg or
15267         don't allow memory.
15268
15269 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
15270             Richard Earnshaw  <rearnsha@arm.com>
15271
15272         PR target/48250
15273         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
15274         to use sign-magnitude offsets. Reject unsupported unaligned
15275         cases. Add detailed description in comments.
15276         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
15277         condition from TARGET_32BIT to TARGET_ARM.
15278
15279 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
15280
15281         * tree.h (struct typed_tree): New.
15282         (struct tree_common): Include it instead of tree_base.
15283         (TREE_TYPE): Update for new location of type field.
15284         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
15285         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
15286         (union tree_node): Add typed field.
15287         * treestruct.def (TS_TYPED): New.
15288         * lto-streamer.c (check_handled_ts_structures): Handle it.
15289         * tree.c (MARK_TS_TYPED): New macro.
15290         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
15291
15292 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
15293
15294         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
15295         (force_nonfallthru): Do not alter the loop nest if no basic block
15296         was created.
15297
15298 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
15299
15300         * config/i386/sse.md (VI): New mode iterator.
15301         (SSEMODEI): Remove.
15302         (AVX256MODEI): Ditto.
15303         (AVXMODEF4P): Ditto.
15304         (avxvecpsmode): Ditto.
15305         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
15306         (sse2_andnot<mode>3): New expander.
15307         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
15308         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
15309         (<any_logic:code><mode>3): Use VI mode iterator.
15310         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
15311         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
15312         (*andnottf3): Handle AVX three-operand constraints.
15313         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
15314
15315 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
15316             Robert Millan  <rmh@gnu.org>
15317
15318         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
15319         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
15320         GNU_USER_DYNAMIC_LINKER64): Define.
15321         (REG_NAME): Don't undefine.
15322         (MD_UNWIND_SUPPORT): Undefine.
15323         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
15324         (REG_NAME): Don't undefine.
15325         (MD_UNWIND_SUPPORT): Undefine.
15326         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
15327
15328 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
15329
15330         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
15331         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
15332
15333 2011-04-11  Xinliang David Li  <davidxl@google.com>
15334
15335         * value-profile.c (check_ic_target): New function.
15336         (gimple_ic_transform): Sanity check indirect call target.
15337         * gimple-low.c (gimple_check_call_args): Interface change.
15338         (gimple_check_call_matching_types): New function.
15339         * tree-inline.c (tree_can_inline_p): Call new function.
15340
15341 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
15342
15343         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
15344         tree-pretty-print.h & realmpfr.h.
15345
15346 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
15347
15348         PR middle-end/48464
15349         * ira.c (setup_pressure_classes): Fix typo in loop condition.
15350         (setup_allocno_and_important_classes): Ditto.
15351
15352 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
15353
15354         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
15355         GNU_USER_DYNAMIC_LINKER.
15356         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
15357         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15358         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
15359         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
15360         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
15361         GNU_USER_TARGET_OS_CPP_BUILTINS.
15362         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
15363         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15364         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
15365         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15366         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
15367         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
15368         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
15369         GNU_USER_TARGET_OS_CPP_BUILTINS.
15370         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15371         GNU_USER_DYNAMIC_LINKER.
15372         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
15373         GNU_USER_TARGET_OS_CPP_BUILTINS.
15374         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
15375         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15376         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
15377         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15378         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
15379         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
15380         GNU_USER_DYNAMIC_LINKER64): Remove.
15381         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
15382         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15383         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15384         GNU_USER_DYNAMIC_LINKER.
15385         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
15386         GNU_USER_TARGET_OS_CPP_BUILTINS.
15387         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
15388         GNU_USER_TARGET_OS_CPP_BUILTINS.
15389         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
15390         to GNU_USER_TARGET_OS_CPP_BUILTINS.
15391         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
15392         GNU_USER_TARGET_OS_CPP_BUILTINS.
15393         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
15394         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
15395         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
15396         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
15397         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15398         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15399         GNU_USER_DYNAMIC_LINKER.
15400         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
15401         GNU_USER_TARGET_OS_CPP_BUILTINS.
15402         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
15403         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15404         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15405         GNU_USER_DYNAMIC_LINKER.
15406         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
15407         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15408         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
15409         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15410         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15411         GNU_USER_DYNAMIC_LINKER.
15412         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
15413         GNU_USER_DYNAMIC_LINKERN32.
15414         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
15415         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
15416         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
15417         GNU_USER_DYNAMIC_LINKER32.
15418         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
15419         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15420         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15421         GNU_USER_DYNAMIC_LINKER.
15422         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
15423         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15424         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
15425         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15426         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
15427         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
15428         GNU_USER_DYNAMIC_LINKER32.
15429         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
15430         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
15431         GNU_USER_DYNAMIC_LINKER.
15432         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
15433         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15434         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
15435         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
15436         GNU_USER_DYNAMIC_LINKER64.
15437         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
15438         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15439         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15440         GNU_USER_DYNAMIC_LINKER.
15441         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
15442         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15443         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
15444         GNU_USER_DYNAMIC_LINKER.
15445         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
15446         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15447         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
15448         GNU_USER_DYNAMIC_LINKER32.
15449         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
15450         GNU_USER_DYNAMIC_LINKER64.
15451         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
15452         GNU_USER_DYNAMIC_LINKER64.
15453         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
15454         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15455         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
15456         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
15457         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
15458
15459 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
15460
15461         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
15462         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
15463         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
15464         GNU_USER_DYNAMIC_LINKER.
15465         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
15466         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
15467         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
15468         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
15469         GNU_USER_DYNAMIC_LINKER64.
15470         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
15471         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
15472         GNU_USER_LINK_EMULATION.
15473         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
15474         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
15475         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
15476         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
15477         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
15478         CPP_SPEC, CC1_SPEC): Remove.
15479         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
15480         (GNU_USER_DYNAMIC_LINKER): Define.
15481         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
15482         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
15483         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
15484         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
15485         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
15486         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
15487         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
15488         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
15489         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
15490         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
15491         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
15492         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
15493         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
15494         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
15495         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
15496         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
15497         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
15498         GNU_USER_DYNAMIC_LINKER.
15499         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
15500         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
15501         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
15502         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
15503         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
15504         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
15505         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
15506         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
15507         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
15508         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
15509
15510 2011-04-11  Kai Tietz  <ktietz@redhat.com>
15511
15512         PR target/9601
15513         PR target/11772
15514         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
15515         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
15516         comment.
15517         (ix86_is_msabi_thiscall): Removed.
15518         (ix86_is_type_thiscall): Likewise.
15519         (ix86_get_callcvt): New function.
15520         (ix86_comp_type_attributes): Simplify check.
15521         (ix86_function_regparm): Use ix86_get_callcvt for calling
15522         convention attribute checks.
15523         (ix86_return_pops_args): Likewise.
15524         (ix86_static_chain): Likewise.
15525         (x86_this_parameter): Likewise.
15526         (x86_output_mi_thunk): Likewise.
15527         (ix86_function_type_abi): Optimize check for types without attributes.
15528         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
15529         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
15530         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
15531         by flag-values.
15532         (IX86_BASE_CALLCVT): Helper macro.
15533         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
15534         Use ix86_get_callcvt for calling convention attribute checks and avoid
15535         symbol-decoration for stdcall in TARGET_RTD case.
15536         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
15537         Likewise.
15538         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
15539         for declaration.
15540
15541 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
15542
15543         * config/i386/sse.md (VI_128): New mode iterator.
15544         (VI12_128): Rename from SSEMODE12.
15545         (VI14_128): Rename from SSEMODE14.
15546         (VI124_128): New mode iterator.
15547         (VI24_128): Rename from SSEMODE248.
15548         (VI248_128): Rename from SSEMODE248.
15549         (SSEMODE124C8): Remove.
15550         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
15551         (*sse2_<plusminus_insn><mode>3): Merge with
15552         *avx_<plusminus_insn><mode>3.
15553         (*mulv8hi3): Merge with *avx_mulv8hi3.
15554         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
15555         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
15556         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
15557         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
15558         (ashr<mode>3): Merge with *avx_ashr<mode>3.
15559         (lshr<mode>3): Merge with *avx_lshr<mode>3.
15560         (ashl<mode>3): Merge with *avx_ashl<mode>3.
15561         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
15562         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
15563         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
15564         (*<smaxmin:code>v8hi3): Ditto.
15565         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
15566         (*<smaxmin:code>v16qi3): Ditto.
15567         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
15568         (*sse2_eq<mode>3): Ditto.
15569         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
15570         (*sse2_gt<mode>3): Ditto.
15571         (vcondv2di): Split out of vcond<mode>.
15572         (vconduv2di): Split out of vcondu<mode>.
15573
15574 2011-04-11  Richard Guenther  <rguenther@suse.de>
15575
15576         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
15577         before calling tree_low_cst.
15578
15579 2011-04-11  Richard Guenther  <rguenther@suse.de>
15580
15581         * stor-layout.c (layout_type): Compute all array index size operations
15582         in the original type.
15583         (initialize_sizetypes): Add comment.
15584         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
15585
15586 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
15587
15588         * common.opt (Tbss=, Tdata=, Ttext=): New options.
15589
15590 2011-04-11  Martin Jambor  <mjambor@suse.cz>
15591
15592         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
15593         of cgraph_node, handle NULL return value.
15594         (cgraph_global_info): Likewise.
15595         (cgraph_rtl_info): Likewise.
15596         * tree-inline.c (estimate_num_insns): Likewise.
15597         * gimplify.c (unshare_body): Likewise.
15598         (unvisit_body): Likewise.
15599         (gimplify_body): Likewise.
15600         * predict.c (optimize_function_for_size_p): Likewise.
15601         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
15602         (call_may_clobber_ref_p_1): Likewise.
15603         * varasm.c (function_section_1): Likewise.
15604         (assemble_start_function): Likewise.
15605
15606 2011-04-11  Martin Jambor  <mjambor@suse.cz>
15607
15608         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
15609         of cgraph_node.
15610         * final.c (rest_of_clean_state): Likewise.
15611         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
15612         * passes.c (pass_init_dump_file): Likewise.
15613         (execute_all_ipa_transforms): Likewise.
15614         (function_called_by_processed_nodes_p): Likewise.
15615         * predict.c (maybe_hot_frequency_p): Likewise.
15616         (probably_never_executed_bb_p): Likewise.
15617         (compute_function_frequency): Likewise.
15618         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
15619         (unnest_nesting_tree_1): Likewise.
15620         (lower_nested_functions): Likewise.
15621         * tree-optimize.c (execute_fixup_cfg): Likewise.
15622         (tree_rest_of_compilation): Likewise.
15623         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
15624         * tree-sra.c (ipa_early_sra): Likewise.
15625         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
15626         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
15627         * ipa.c (record_cdtor_fn): Likewise.
15628         * ipa-inline.c (cgraph_early_inlining): Likewise.
15629         (compute_inline_parameters_for_current): Likewise.
15630         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
15631         * ipa-pure-const.c (local_pure_const): Likewise.
15632         * ipa-split.c (split_function): Likewise.
15633         (execute_split_functions): Likewise.
15634         * cgraphbuild.c (build_cgraph_edges): Likewise.
15635         (rebuild_cgraph_edges): Likewise.
15636         (cgraph_rebuild_references): Likewise.
15637         (remove_cgraph_callee_edges): Likewise.
15638         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
15639         (verify_cgraph_node): Likewise.
15640         (cgraph_analyze_functions): Likewise.
15641         (cgraph_preserve_function_body_p): Likewise.
15642         (save_inline_function_body): Likewise.
15643         (save_inline_function_body): Likewise.
15644         * tree-inline.c (copy_bb): Likewise.
15645         (optimize_inline_calls): Likewise.
15646
15647 2011-04-11  Martin Jambor  <mjambor@suse.cz>
15648
15649         PR tree-optimization/48195
15650         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
15651         ipa_check_create_edge_args.
15652         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
15653         ipa_check_create_edge_args.
15654         * ipa-inline.c (inline_generate_summary): Do not call
15655         ipa_check_create_node_params and ipa_check_create_edge_args.
15656         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
15657         ipa_check_create_edge_args.
15658
15659 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
15660
15661         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
15662         instead of loop.
15663         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
15664         * function.c (record_hard_reg_sets): Likewise.
15665         * ira.c (compute_regs_asm_clobbered): Likewise.
15666         * sched-deps.c (sched_analyze_1): Likewise.
15667         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
15668
15669 2011-04-09  Xinliang David Li  <davidxl@google.com>
15670
15671         PR tree-optimization/PR48484
15672         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
15673         has_valid_pred lazily
15674
15675 2011-04-09  Duncan Sands  <baldrick@free.fr>
15676
15677         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
15678
15679 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
15680
15681         * combine.c (combine_validate_cost): Adjust comments.  Set registered
15682         cost of I0 to zero at the end, if any.
15683
15684 2011-04-08  Xinliang David Li  <davidxl@google.com>
15685
15686         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
15687         to insane profile data.
15688
15689 2011-04-08  Xinliang David Li  <davidxl@google.com>
15690
15691         * ipa-cp.c (ipcp_update_profiling): Correct
15692          negative scale factor due to insane profile data.
15693
15694 2011-04-08  Xinliang David Li  <davidxl@google.com>
15695
15696         * final.c (dump_basic_block_info): New function.
15697         (final): Dump basic block.
15698         (final_scan_insn): Remove old dump.
15699
15700 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
15701
15702         PR target/47829
15703         * config.gcc (i386-*-freebsd): Disable unwind table generation for
15704         crtbegin/crtend.
15705
15706 2011-04-08  Michael Matz  <matz@suse.de>
15707
15708         PR middle-end/48389
15709         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
15710         functions.
15711         (rebuild_jump_labels): Call rebuild_jump_labels_1.
15712         * rtl.h (rebuild_jump_labels_chain): Declare.
15713         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
15714         insns inserted on edges.
15715
15716 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
15717
15718         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
15719         * config/arm/arm-arches.def: New.
15720         * config/arm/arm-opts.h: New.
15721         * config/arm/genopt.sh: New.
15722         * config/arm/arm-tables.opt: New (generated).
15723         * config/arm/arm.c (arm_handle_option, arm_target_help,
15724         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
15725         (all_architectures): Get most table contents from arm-arches.def.
15726         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
15727         arm_selected_tune here.
15728         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
15729         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
15730         (march=, mcpu=, mtune=): Use Enum and Var.
15731         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
15732         (arm.o): Update dependencies.
15733
15734 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
15735
15736         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
15737         of header_file.
15738         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
15739         (write_typed_alloc_defns): Likewise.
15740         (main): Calls write_typed_alloc_defns with output_header.
15741
15742 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
15743
15744         PR inline-asm/48435
15745         * ira-color.c (setup_profitable_hard_regs): Add comments.
15746         Don't take prohibited hard regs into account.
15747         (setup_conflict_profitable_regs): Rename to
15748         get_conflict_profitable_regs.
15749         (check_hard_reg_p): Check prohibited hard regs.
15750
15751 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
15752
15753         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
15754         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
15755         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
15756
15757 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
15758
15759         PR target/48366
15760         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
15761         move from floating point to shift amount register.
15762         (emit_move_sequence): Remove secondary reload support for floating
15763         point to shift amount amount register copies.
15764         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
15765         amount register copies.
15766         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
15767         register, return false if mode isn't a scalar integer mode.
15768         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
15769
15770 2011-04-08  Richard Guenther  <rguenther@suse.de>
15771
15772         * gimple.c (gimple_call_flags): Remove kludge.
15773
15774 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
15775
15776         * sel-sched.c (sel_region_init): Move call to
15777         sel_setup_region_sched_flags after setup_current_loop_nest.
15778
15779 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
15780
15781         PR rtl-optimization/48272
15782         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
15783         init_insn_reg_pressure_info.  Adjust a caller.
15784         * sched-int.h (init_insn_reg_pressure_info): Declare.
15785         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
15786         when sched-pressure is enabled.
15787
15788 2011-04-08  Richard Guenther  <rguenther@suse.de>
15789
15790         * gimple.c (gimple_set_modified): Do not queue calls to
15791         MODIFIED_NORETURN_CALLS here ...
15792         * tree-ssa-operands.c (update_stmt_operands): ... but here.
15793
15794 2011-04-08  Richard Guenther  <rguenther@suse.de>
15795
15796         PR lto/48467
15797         * toplev.c (lang_dependent_init): Do not open asm_out_file
15798         in WPA mode, nor perform debug machinery initialization.
15799         (finalize): Do not unlink asm_out_file in WPA mode.
15800
15801 2011-04-08  Richard Guenther  <rguenther@suse.de>
15802
15803         * gimple.h (gimple_call_fntype): New function.
15804         (gimple_call_return_type): Use it.
15805         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
15806         * gimple-low.c (gimple_check_call_args): Likewise.
15807         * gimple.c (gimple_call_flags): Likewise.
15808         (gimple_call_arg_flags): Likewise.
15809         (gimple_call_return_flags): Likewise.
15810         * tree-cfg.c (verify_gimple_call): Likewise.
15811         (do_warn_unused_result): Likewise.
15812         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
15813         * value-prof.c (gimple_ic_transform): Fix fndecl check.
15814
15815 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
15816
15817         PR rtl-optimization/48235
15818         * sel-sched.c (code_motion_process_successors): Recompute the last
15819         insn in basic block if control flow changed.
15820         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
15821         Update condition for ilist_remove.
15822
15823 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
15824
15825         PR rtl-optimization/48302
15826         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
15827         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
15828         it to record added preheader blocks.
15829         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
15830         on to sel_add_loop_preheaders.
15831         (sel_region_init): Move call to setup_current_loop_nest after
15832         sel_init_bbs.
15833
15834 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
15835
15836         PR target/48273
15837         * cfgloop.h (loop_has_exit_edges): New helper.
15838         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
15839         non-clonable.
15840         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
15841         that have no exit edges.
15842
15843 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
15844
15845         PR rtl-optimization/48442
15846         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
15847         all callers.  Adjust assert.
15848
15849 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
15850
15851         PR tree-optimization/48377
15852         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
15853         is_packed to true even for types with smaller TYPE_ALIGN than
15854         TYPE_SIZE.
15855
15856 2011-04-08  Richard Guenther  <rguenther@suse.de>
15857
15858         PR bootstrap/48513
15859         * doc/tm.texi: Re-generate.
15860
15861 2011-04-08  Wei Guozhi  <carrot@google.com>
15862
15863         PR target/47855
15864         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
15865         * config/arm/arm.c (arm_attr_length_push_multi): New function.
15866         * config/arm/arm.md (*push_multi): Change the length computation to
15867         call a C function.
15868
15869 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
15870
15871         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
15872         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
15873         * doc/tm.texi: Regenerate.
15874         * system.h (ASM_OUTPUT_BSS): Poison.
15875         * varasm.c (asm_output_bss): Remove function.
15876         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
15877
15878         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
15879         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
15880         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
15881         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
15882         Likewise.
15883         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
15884         Likewise.
15885         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
15886         Likewise.
15887         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
15888
15889 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
15890
15891         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
15892         EnumValue lines.
15893
15894 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
15895
15896         * config/m68k/m68k.c (m68k_handle_option): Don't handle
15897         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
15898         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
15899         OPT_mcpu32.
15900         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
15901         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
15902         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
15903         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
15904         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
15905         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
15906         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
15907         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
15908         options.  Don't map other m68k options manually.  Don't handle
15909         old-style options as canonical.
15910         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
15911         * doc/install.texi (m68k-*-*): Document binutils version requirement.
15912
15913 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
15914
15915         * basic-block.h (force_nonfallthru): Move to...
15916         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
15917         (force_nonfallthru): ...here.
15918         * cfghooks.c (force_nonfallthru): New function.
15919         * cfgrtl.c (force_nonfallthru): Rename into...
15920         (rtl_force_nonfallthru): ...this.
15921         (commit_one_edge_insertion): Do not set AUX field.
15922         (commit_edge_insertions): Do not discover new basic blocks.
15923         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
15924         (cfg_layout_rtl_cfg_hooks): Likewise.
15925         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
15926         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
15927         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
15928
15929 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
15930
15931         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
15932         Remove macros.
15933
15934 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
15935
15936         * config/i386/sse.md: Update copyright year.
15937         (avxcvtvecmode): Remove.
15938         (sse_movhlps): Merge with *avx_movhlps.
15939         (sse_movlhps): Merge with *avx_movlhps.
15940         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
15941         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
15942         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
15943         (sse_loadhps): Merge with *avx_loadhps.
15944         (sse_storelps): Merge with *avx_storelps.
15945         (sse_loadlps): Merge with *avx_loadlps.
15946         (sse_movss): Merge with *avx_movss.
15947         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
15948         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
15949         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
15950         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
15951         (vec_set<mode>_0): Ditto.
15952         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
15953         (sse4_1_insertps): Merge with *avx_insertps.
15954         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
15955         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
15956         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
15957         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
15958         (sse2_storehpd): Merge with *avx_storehpd.
15959         (sse2_loadhpd): Merge with *avx_loadhpd.
15960         (sse2_loadlpd): Merge with *avx_loadlpd.
15961         (sse2_movsd): Merge with *avx_movsd.
15962         (*vec_concatv2df): Merge with *vec_concatv2df.
15963
15964 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
15965
15966         PR debug/48343
15967         * combine.c (combine_instructions): Add last_combined_insn,
15968         update it if insn is after it, pass it to all try_combine calls.
15969         (try_combine): Add last_combined_insn parameter, pass it instead of
15970         i3 to propagate_for_debug.
15971
15972 2011-04-07  Nick Clifton  <nickc@redhat.com>
15973
15974         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
15975         to handle MDR <-> data register transfers.
15976         (movhi_internal): Likewise.
15977
15978 2011-04-07  Alan Modra  <amodra@gmail.com>
15979
15980         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
15981         previous stack info.
15982
15983 2011-04-07  Tom de Vries  <tom@codesourcery.com>
15984
15985         PR target/43920
15986         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
15987         flow_find_cross_jump.  Swap variables to implement backward replacement.
15988         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
15989
15990 2011-04-07  Tom de Vries  <tom@codesourcery.com>
15991
15992         PR target/43920
15993         * cfgcleanup.c (walk_to_nondebug_insn): New function.
15994         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
15995         and bb2.
15996         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
15997         src1 or src2.  Redirect edges to the last basic block.  Update
15998         frequency and count on multiple basic blocks in case of fallthru.
15999
16000 2011-04-07  Tom de Vries  <tom@codesourcery.com>
16001
16002         PR target/43920
16003         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
16004         function.
16005         (old_insns_match_p): Change return type.  Replace return false/true
16006         with return dir_none/dir_both.  Use can_replace_by.
16007         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
16008         direction from dir_p.  Register replacement direction in dir, last_dir
16009         and afterlast_dir.  Handle new return type of old_insns_match_p using
16010         merge_dir.  Return replacement direction in dir_p.
16011         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
16012         return type of old_insns_match_p.
16013         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
16014         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
16015         flow_find_cross_jump.
16016         * basic-block.h (enum replace_direction): New type.
16017         (flow_find_cross_jump): Add parameter to declaration.
16018
16019 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
16020
16021         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
16022         (AVXMODEDCVTPS2DQ): Ditto.
16023         (VEC_FLOAT_MODE): Ditto.
16024         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
16025         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
16026         (<any_logic:code><mode>3): Use VF mode iterator.
16027         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
16028         Use VF mode iterator.
16029         (copysign<mode>3): Use VF mode iterator.
16030         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
16031         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
16032         (*<any_logic:code><MODEF:mode>3): Merge with
16033         *avx_<any_logic:code><MODEF:mode>3.
16034         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
16035         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
16036         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
16037         (avx_cvtdq2ps<avxmodesuffix>): Remove.
16038         (sse2_cvtdq2ps): Use %v modifier.
16039         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
16040         (avx_cvtps2dq<avxmodesuffix>): Remove.
16041         (sse2_cvtps2dq): Use %v modifier.
16042         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
16043         (avx_cvttps2dq<avxmodesuffix>): Remove.
16044         (sse2_cvttps2dq): Use %v modifier.
16045         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
16046         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
16047         (sse2_cvtsd2siq): Fix insn template.
16048         (sse2_cvtsd2siq_2): Ditto.
16049         (sse2_cvttsd2siq): Ditto.
16050         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
16051         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
16052
16053 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
16054
16055         * gcov-io.c: Use GCC Runtime Library Exception.
16056
16057 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
16058
16059         PR debug/48466
16060         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
16061         as base_reg whatever register reg has been eliminated to, instead
16062         of hardcoding STACK_POINTER_REGNUM.
16063
16064 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
16065
16066         * doc/tm.texi.in: Document C target hooks as separate from general
16067         target hooks.
16068         * doc/tm.texi: Regenerate.
16069         * genhooks.c (struct hook_desc): Add docname field.
16070         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
16071         docname field.
16072         (hook_array): Include c-target.def.
16073         (emit_documentation): Use docname field in output.
16074         (emit_init_macros): Take docname argument.  Only emit definitions
16075         for hooks matching docname.
16076         (main): Expect additional arguments in all cases.  Pass argument
16077         to emit_init_macros.
16078         * target.def: Move initial macro definitions and comments to
16079         target-hooks-macros.h.
16080         (gcc_targetcm): Move to c-family/c-target.def.
16081         * target.h (targetcm): Move declaration to c-family/c-target.h.
16082         * targhooks.c (default_handle_c_option): Move to
16083         c-family/c-opts.c.
16084         * targhooks.h (default_handle_c_option): Move declaration to
16085         c-family/c-common.h.
16086         * target-hooks-macros.h: New file.
16087         * config.gcc (target_has_targetcm): Define and use to add to
16088         c_target_objs and cxx_target_objs.
16089         * config/default-c.c: New file.
16090         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
16091         of target.h and target-def.h.
16092         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
16093         (darwin_objc_construct_string, darwin_cfstring_ref_p,
16094         darwin_check_cfstring_format_arg): Make static.
16095         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
16096         TARGET_STRING_OBJECT_REF_TYPE_P,
16097         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
16098         * config/darwin-protos.h (darwin_objc_construct_string,
16099         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
16100         declare.
16101         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
16102         TARGET_STRING_OBJECT_REF_TYPE_P,
16103         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
16104         * config/t-darwin (darwin-c.o): Update dependencies.
16105         * system.h (TARGET_HAS_TARGETCM): Poison.
16106         * Makefile.in (TARGET_H): Update.
16107         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
16108         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
16109         (default-c.o): New target.
16110         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
16111         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
16112         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
16113         c-target.def.
16114         (build/genhooks.o): Update dependencies.
16115
16116 2011-04-06  Richard Guenther  <rguenther@suse.de>
16117
16118         * ipa-inline.c (enum inlining_mode): Remove.
16119         (cgraph_flatten): Use some other token.
16120         (cgraph_edge_early_inlinable_p): New function, split out from ...
16121         (cgraph_perform_always_inlining): New function, split out from ...
16122         (cgraph_decide_inlining_incrementally): ... here.
16123         (cgraph_mark_inline_edge): Adjust.
16124         (cgraph_early_inlining): Re-structure.
16125         (pass_early_inline): Require SSA form.
16126
16127 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
16128             Julian Brown  <julian@codesourcery.com>
16129             Mark Shinwell  <shinwell@codesourcery.com>
16130
16131         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
16132         LO_REGS only for Thumb-1.
16133         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
16134         be used in short instructions when optimising for size on Thumb-2.
16135
16136 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
16137
16138         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
16139         associated with user returns to be preserved.
16140
16141 2011-04-06  Tristan Gingold  <gingold@adacore.com>
16142
16143         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
16144         symbol_queue_size, DBXOUT_DECR_NESTING,
16145         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
16146         if XCOFF_DEBUGGING_INFO.
16147
16148 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
16149
16150         * config/i386/i386.md (attribute isa): New.
16151         (attribute enabled): New.
16152         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
16153         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
16154         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
16155         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
16156         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
16157         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
16158         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
16159         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
16160
16161         * config/i386/sse.md (VF): New mode iterator.
16162         (VF1): Ditto.
16163         (VF2): Ditto.
16164         (VF_128): Ditto.
16165         (SSEMODEF4): Remove.
16166         (attribute sse): Handle V8SF and V4DF modes.
16167         (<absneg:code><mode>2): Use VF mode iterator.
16168         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
16169         mode iterator.
16170         (<plusminus_insn><mode>3): Use VF mode iterator.
16171         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
16172         Use VF mode iterator.
16173         (<sse>_vm<plusminus_insn><mode>3): Merge with
16174         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
16175         (mul<mode>3): Use VF mode iterator.
16176         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
16177         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
16178         mode iterator.
16179         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
16180         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
16181         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
16182         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
16183         mode iterator.
16184         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
16185         Use VF1 mode iterator.
16186         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
16187         (sqrt<VF2:mode>2): New expander.
16188         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
16189         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
16190         and sqrtv2df2.  Use VF mode iterator.
16191         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
16192         mode iterator.
16193         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
16194         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
16195         Use VF1 mode iterator.
16196         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
16197         (<smaxmin:code><mode>3): Use VF mode iterator.
16198         (*<smaxmin:code><mode>3_finite): Merge with
16199         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
16200         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
16201         (<sse>_vm<smaxmin:code><mode>2): Merge with
16202         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
16203         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
16204         mode iterator.
16205         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
16206         mode iterator.
16207         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
16208         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
16209         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
16210         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
16211         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
16212         VF mode iterator.
16213         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
16214         Use VF_128 mode iterator.
16215         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
16216         mode iterator.
16217         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
16218         VF_128 mode iterator.
16219         (vcond<mode>): Use VF mode iterator.
16220         * config/i386/predicates.md (sse_comparison_operator): Merge with
16221         avx_comparison_float_operator.  Do not declare as special_predicate.
16222         * config/i386/i386.c (struct builtin_description): Update for renamed
16223         compare patterns.
16224         (ix86_expand_args_builtin): Ditto.
16225         (ix86_expand_sse_compare_mask): Ditto.
16226
16227 2011-04-06  Richard Guenther  <rguenther@suse.de>
16228
16229         * tree-inline.c (estimate_num_insns): For calls simply account
16230         for all passed arguments and a used return value.
16231
16232 2011-04-06  Richard Guenther  <rguenther@suse.de>
16233
16234         PR tree-optimization/47663
16235         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
16236         call_stmt_time fields.
16237         (cgraph_edge_inlinable_p): Declare.
16238         (cgraph_edge_recursive_p): New inline function.
16239         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
16240         (cgraph_clone_edge): Copy it.
16241         * ipa-inline.c (cgraph_estimate_edge_time): New function.
16242         Account for call stmt time.
16243         (cgraph_estimate_time_after_inlining): Take edge argument.
16244         (cgraph_estimate_edge_growth): Account call stmt size.
16245         (cgraph_estimate_size_after_inlining): Take edge argument.
16246         (cgraph_mark_inline_edge): Adjust.
16247         (cgraph_check_inline_limits): Likewise.
16248         (cgraph_recursive_inlining_p): Remove.
16249         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
16250         (cgraph_decide_recursive_inlining): Take edge argument and
16251         adjust.
16252         (cgraph_decide_inlining_of_small_functions): Do not avoid
16253         diags for recursive inlining here.
16254         (cgraph_flatten): Adjust.
16255         (cgraph_decide_inlining_incrementally): Likewise.
16256         (estimate_function_body_sizes): Remove call cost handling.
16257         (compute_inline_parameters): Initialize caller edge call costs.
16258         (cgraph_estimate_edge_growth): New function.
16259         (cgraph_estimate_growth): Use it.
16260         (cgraph_edge_badness): Likewise.
16261         (cgraph_check_inline_limits): Take an edge argument.
16262         (cgraph_decide_inlining_of_small_functions): Adjust.
16263         (cgraph_decide_inlining): Likewise.
16264         * tree-inline.c (estimate_num_insns): Only account for call
16265         return value if it is used.
16266         (expand_call_inline): Avoid diagnostics on recursive inline
16267         functions here.
16268         * lto-cgraph.c (lto_output_edge): Output edge call costs.
16269         (input_edge): Input edge call costs.
16270
16271 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16272
16273         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
16274
16275 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
16276
16277         * doc/invoke.texi (Spec Files): Fix typo.
16278
16279 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
16280
16281         * profile.c (branch_prob): Move declaration of local variable.  Remove
16282         obsolete ??? comment.  Expand the location explicitly instead of using
16283         the LOCATION_FILE and LOCATION_LINE macros.
16284
16285 2011-04-06  Wei Guozhi  <carrot@google.com>
16286
16287         PR target/47855
16288         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
16289         (arm_cond_branch): Likewise.
16290         (arm_cond_branch_reversed): Likewise.
16291         (arm_jump): Likewise.
16292         (push_multi): Likewise.
16293         * config/arm/constraints.md (Py): New constraint.
16294
16295 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
16296
16297         PR bootstrap/48471
16298         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
16299         Move these...
16300         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
16301         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
16302         #ifdef DBX_DEBUGGING_INFO.
16303
16304 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
16305
16306         PR bootstrap/48403
16307         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
16308         if old and new states differ.
16309
16310 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
16311
16312         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
16313         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
16314         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
16315         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
16316         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
16317         mcfv4e): Use Alias.
16318         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
16319         ColdFire options to -mcpu= options.
16320
16321 2011-04-05  Jeff Law  <law@redhat.com>
16322
16323         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
16324         check if BB is a successor of LOOP->header and return
16325         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
16326
16327 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
16328
16329         * cprop.c (struct reg_use): Remove.
16330         (reg_use_table): Make an array of RTX.
16331         (find_used_regs, constprop_register, local_cprop_pass,
16332         bypass_block): Simplify users of reg_use_table.
16333         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
16334         on one of the uses found by find_used_regs.
16335
16336 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
16337
16338         PR bootstrap/48469
16339         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
16340         declaration.
16341
16342 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
16343
16344         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
16345         as an rtx.
16346         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
16347
16348 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
16349
16350         PR middle-end/48441
16351         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
16352
16353 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
16354
16355         * combine.c: Include obstack.h.
16356         (struct insn_link): Define.
16357         (uid_log_links): Adjust type.
16358         (FOR_EACH_LOG_LINK): New macro.
16359         (insn_link_obstack): Declare.
16360         (alloc_insn_link): Define.
16361         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
16362         type of link variables.
16363         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
16364         (try_combine, record_promoted_values, distribute_notes): Likewise.
16365         (distribute_links): Likewise.  Tweak prototype.
16366         (clear_log_links): Delete.
16367         (adjust_for_new_dest): Call alloc_insn_link.
16368         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
16369
16370 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
16371
16372         * gcse.c (modify_mem_list): Convert to an array of VECs.
16373         (canon_modify_mem_list, compute_transp): Tweak formatting.
16374         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
16375         (load_killed_in_block_p): Likewise.
16376         (record_last_mem_set_info): Likewise.
16377         (clear_modify_mem_tables): Likewise.
16378
16379 2011-04-05  Tom de Vries  <tom@codesourcery.com>
16380
16381         PR middle-end/48461
16382         * function.c (emit_use_return_register_into_block): Only define if
16383         HAVE_return.
16384
16385 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
16386
16387         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
16388
16389 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
16390
16391         * config/rx/rx-opts.h: New.
16392         * config/rx/rx.c (rx_cpu_type): Remove.
16393         (rx_handle_option): Don't assert that global structures are in
16394         use.  Access variables via opts pointer.  Defer most handling of
16395         OPT_mint_register_.  Use error_at.
16396         (rx_option_override): Handle deferred OPT_mint_register_ here.
16397         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
16398         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
16399         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
16400         (rx_cpu_types): New Enum and EnumValue entries.
16401         (mint-register=): Use Defer and use Var accordingly.
16402
16403 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
16404
16405         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
16406         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
16407         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
16408         Move these...
16409         (debug_free_queue, debug_nesting, symbol_queue_index):
16410         ...and these...
16411         * dbxout.c: ...to here.  Make static.
16412
16413 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
16414
16415         * gcse.c (modify_pair): Define.  Define a VEC of it.
16416         (canon_modify_mem_list): Convert to an array of VECs.
16417         (free_insn_expr_list_list): Delete.
16418         (clear_modify_mem_tables): Call VEC_free instead.
16419         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
16420         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
16421         (canon_list_insert, compute_transp): Likewise.
16422
16423 2011-04-05  Tom de Vries  <tom@codesourcery.com>
16424
16425         PR target/43920
16426         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
16427         for size.
16428
16429 2011-04-05  Tom de Vries  <tom@codesourcery.com>
16430
16431         PR target/43920
16432         * function.c (emit_use_return_register_into_block): New function.
16433         (thread_prologue_and_epilogue_insns): Use
16434         emit_use_return_register_into_block.
16435
16436 2011-04-05  Tom de Vries  <tom@codesourcery.com>
16437
16438         PR target/43920
16439         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
16440         insn.
16441
16442 2011-04-05  Tom de Vries  <tom@codesourcery.com>
16443
16444         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
16445
16446 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
16447
16448         * config/arm/arm.md (define_constants for unspec): Replace with
16449         define_c_enum.
16450         (define_constants for unspecv): Replace with define_c_enum.
16451         * config/arm/neon.md (define_constants for unspec): Replace with
16452         define_c_enum.
16453
16454 2011-04-04  Richard Henderson  <rth@redhat.com>
16455
16456         PR bootstrap/48400
16457         * dwarf2out.c (output_line_info): Always emit line info from
16458         at least one section.
16459         (dwarf2out_init): Create text_section_line_info here ...
16460         (set_cur_line_info_table): ... not here.
16461
16462 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
16463
16464         PR target/48380
16465         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
16466         not called.
16467
16468         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
16469
16470 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
16471
16472         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
16473         (expr_equiv_p): Remove.
16474         (insert_set_in_table): Look at <dest, src> pair instead of expr.
16475         (hash_scan_set): Update call to insert_set_in_table.
16476         (dump_hash_table): Dump <dest, src> pair.
16477         (lookup_set): Simplify.  Lookup <dest, src> pair.
16478         (compute_transp): Remove, fold heavily simplified code into...
16479         (compute_local_properties): ...here.  Expect COMP and TRANSP
16480         unconditionally.
16481         (find_avail_set): Take set directly from struct expr.
16482         (find_bypass-set): Likewise.
16483         (bypass_block): Likewise.
16484         (cprop_insn): Likewise.  Remove redundant INSN_P test.
16485
16486         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
16487         checks on form of COND from find_implicit_sets to here.
16488         (find_implicit_sets): Cleanup control flow. Split critical edges
16489         if it exposes implicit sets.  Allocate/resize implicit_sets as
16490         necessary.
16491         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
16492         changed something.  Run df_analyze after find_implicit_sets if any
16493         edges were split.  Do not allocate implicit_sets here.
16494
16495         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
16496         (gcse_obstack): Renamed to cprop_obstack.
16497         (GNEW, GNEWVEC, GNEWVAR): Remove.
16498         (gmalloc): Remove.
16499         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
16500         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
16501         (gcse_alloc): Likewise, and rename to cprop_alloc.
16502         (alloc_gcse_men, free_gcse_mem): Remove.
16503         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
16504         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
16505         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
16506
16507         * cprop.c (oprs_not_set_p): Remove.
16508         (mark_set, mark_clobber): Remove.
16509         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
16510         (reg_not_set_p): New function.
16511         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
16512         (cprop_insn): Likewise.
16513         (cprop_jump): Use FOR_EACH_EDGE.
16514
16515 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
16516
16517         PR bootstrap/48403
16518         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
16519         (rank_for_schedule): Use scheduled_insns vector instead of
16520         last_scheduled_insn.
16521         (ok_for_early_queue_removal): Likewise.
16522         (queue_to_ready): Search forward in nonscheduled_insns_begin if
16523         we have a dbg_cnt.
16524         (choose_ready): Likewise.
16525         (commit_schedule): Use VEC_iterate.
16526         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
16527         a dbg_cnt, use it and ensure the first insn is in the ready list.
16528         (haifa_sched_init): Allocate scheduled_insns.
16529         (sched_extend_ready_list): Don't allocate it; reserve space.
16530         (haifa_sched_finish): Free it.
16531
16532 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
16533
16534         * optc-gen.awk: Always remove type from Variable entry before
16535         recording in var_seen.
16536
16537 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
16538
16539         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
16540         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
16541         call to tidy_fallthru_edges.
16542
16543 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
16544
16545         * doc/options.texi (ToLower): Document.
16546         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
16547         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
16548         * opts.h (cl_option): Add cl_tolower field.
16549         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
16550         arguments with lowercase strings.
16551         * config/rx/rx.opt (mcpu=): Add ToLower.
16552         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
16553         argument.
16554
16555 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
16556
16557         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
16558
16559 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
16560
16561         * config/vax/vax.c: Include reload.h.
16562
16563 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
16564
16565         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
16566         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
16567         (sparc_preferred_reload_class): New function.
16568
16569 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
16570
16571         PR debug/48401
16572         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
16573         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
16574
16575 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
16576
16577         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
16578         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
16579
16580 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
16581
16582         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
16583         (ASM_OUTPUT_ALIGNED_BSS): Define.
16584
16585 2011-04-03  Michael Matz  <matz@suse.de>
16586
16587         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
16588         and next_slot members.
16589         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
16590         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
16591         (lto_streamer_cache_append): Declare.
16592         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
16593         unsigned index, remove offset parameter, ensure that we append
16594         or update existing entries.
16595         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
16596         parameter, update next_slot for append.
16597         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
16598         parameter.
16599         (lto_streamer_cache_insert_at): Likewise.
16600         (lto_streamer_cache_append): New function.
16601         (lto_streamer_cache_lookup): Use unsigned index.
16602         (lto_streamer_cache_get): Likewise.
16603         (lto_record_common_node): Don't test tree_node_can_be_shared.
16604         (preload_common_node): Adjust call to lto_streamer_cache_insert.
16605         (lto_streamer_cache_delete): Don't free offsets member.
16606         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
16607         (lto_output_string_with_length): Use lto_output_data_stream.
16608         (lto_output_tree_header): Remove ix parameter, don't write it.
16609         (lto_output_builtin_tree): Likewise.
16610         (lto_write_tree): Adjust callers to above, don't track and write
16611         offset, write unsigned index.
16612         (output_unreferenced_globals): Don't emit all global vars.
16613         (write_global_references): Use unsigned indices.
16614         (lto_output_decl_state_refs): Likewise.
16615         (write_symbol): Likewise.
16616         * lto-streamer-in.c (lto_input_chain): Move earlier.
16617         (input_function): Use unsigned index.
16618         (input_alias_pairs): Don't read and then ignore all global vars.
16619         (lto_materialize_tree): Remove ix_p parameter, don't read index,
16620         don't pass it back, use lto_streamer_cache_append.
16621         (lto_register_var_decl_in_symtab): Use unsigned index.
16622         (lto_register_function_decl_in_symtab): Likewise.
16623         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
16624         index.
16625         (lto_get_builtin_tree): Don't read index, use
16626         lto_streamer_cache_append.
16627         (lto_read_tree): Adjust call to lto_materialize_tree.
16628
16629         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
16630         don't use function calls in arguments to MIN.
16631
16632         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
16633         twice.
16634
16635         * gimple.c (gimple_type_leader_entry): Mark deletable.
16636
16637 2011-04-03  Alan Modra  <amodra@gmail.com>
16638
16639         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
16640
16641 2011-04-03  Michael Matz  <matz@suse.de>
16642
16643         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
16644         an integer.
16645         * tree.h (tree_decl_non_common.vindex): Adjust comment.
16646
16647 2011-04-03  Michael Matz  <matz@suse.de>
16648
16649         * cgraphbuild.c (record_reference): Canonicalize constructor values.
16650         * gimple-fold.c (canonicalize_constructor_val): Accept being called
16651         without function context.
16652         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
16653         current_function_decl and cfun.
16654
16655 2011-04-03  Michael Matz  <matz@suse.de>
16656
16657         * tree.c (decl_init_priority_insert): Don't create entry for
16658         default priority.
16659         (decl_fini_priority_insert): Ditto.
16660         (fields_compatible_p, find_compatible_field): Remove.
16661         * tree.h (fields_compatible_p, find_compatible_field): Remove.
16662         * gimple.c (gimple_compare_field_offset): Adjust block comment.
16663
16664 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
16665
16666         * combine.c (try_combine): Remove useless local variable.
16667
16668 2011-04-03  Richard Guenther  <rguenther@suse.de>
16669             Ira Rosen  <ira.rosen@linaro.org>
16670
16671         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
16672         non-variable offsets and compare the remaining bases of the two
16673         accesses instead of looking for exact same data-ref.
16674
16675 2011-04-02  Kai Tietz  <ktietz@redhat.com>
16676
16677         PR target/48416
16678         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
16679
16680         * i386.c (ix86_is_msabi_thiscall): New helper function.
16681         (ix86_is_type_thiscall): New helper function.
16682         (ix86_comp_type_attributes): Handle thiscall for method-functions
16683         special.
16684         (init_cumulative_args): Likewise.
16685         (find_drap_reg): Likewise.
16686         (ix86_static_chain): Likewise.
16687         (x86_this_parameter): Likewise.
16688         (x86_output_mi_thunk): Likewise.
16689
16690 2011-04-01  Olivier Hainque  <hainque@adacore.com>
16691             Nicolas Setton  <setton@adacore.com>
16692             Eric Botcazou  <ebotcazou@adacore.com>
16693
16694         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
16695         (add_gnat_descriptive_type_attribute): New function.
16696         (gen_array_type_die): Call it.
16697         (gen_enumeration_type_die): Likewise.
16698         (gen_struct_or_union_type_die): Likewise.
16699         (modified_type_die): Likewise.
16700         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
16701         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
16702         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
16703
16704 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
16705
16706         PR bootstrap/48148
16707         * dwarf2out.c (resolve_addr): Don't call force_decl_die
16708         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
16709
16710         Revert:
16711         2011-03-17  Richard Guenther  <rguenther@suse.de>
16712
16713         PR bootstrap/48148
16714         * lto-cgraph.c (input_overwrite_node): Clear the abstract
16715         origin for decls in other ltrans units.
16716         (input_varpool_node): Likewise.
16717
16718 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
16719
16720         PR middle-end/48335
16721         * expr.c (expand_assignment): Handle all possibilities
16722         if TO_RTX is CONCAT.
16723         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
16724         (store_split_bit_field): If SUBREG_REG (op0) or
16725         op0 itself has smaller mode than word, return it
16726         for offset 0 and const0_rtx for out-of-bounds stores.
16727         If word is const0_rtx, skip it.
16728
16729 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
16730
16731         * config/h8300/h8300.c (print_operand_address): Rename to...
16732         (h8300_print_operand_address): ...this. Make static. Adjust comments.
16733         Call h8300_print_operand and h8300_print_operand_address instead of
16734         print_operand and print_operand_address. Declare.
16735         (print_operand): Renake to...
16736         (h8300_print_operand): ...this. Make static. Adjust comments.
16737         Call h8300_print_operand instead of print_operand. Declare.
16738         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
16739         (h8300_register_move_cost): Likewise.
16740         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
16741         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
16742         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
16743         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
16744         * config/h8300/h8300-protos.h (print_operand): Delete.
16745         (print_operand_address): Delete.
16746
16747 2011-04-01  Richard Henderson  <rth@redhat.com>
16748
16749         PR 48400
16750         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
16751         in strict mode before dwarf4.  Re-order tests to early out
16752         before switching sections.
16753
16754 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
16755
16756         * config/h8300/constraints.md: New file.
16757         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
16758         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
16759         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
16760         * config/h8300/predicates.md (bit_operand): Likewise.
16761         (incdec_operand): Use satisfies_constraint_M and
16762         satisfies_constraint_O.  Don't use C code block.
16763         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
16764         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
16765         (compute_mov_length): Use satisfies_constraint_G.
16766         (fix_bit_operand): Use satisfies_constraint_U.
16767         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
16768         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
16769         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
16770         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
16771         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
16772         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
16773         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
16774         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
16775         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
16776         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
16777         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
16778         (EXTRA_MEMORY_CONSTRAINT): Delete.
16779
16780 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
16781             Michael Meissner  <meissner@linux.vnet.ibm.com>
16782
16783         PR target/48262
16784         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
16785         operands, as per the specifications.
16786
16787         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
16788         (vec_extract_evenv4sf): Ditto.
16789         (vec_extract_evenv8hi): Ditto.
16790         (vec_extract_evenv16qi): Ditto.
16791         (vec_extract_oddv4si): Ditto.
16792
16793 2011-03-31  Mark Wielaard  <mjw@redhat.com>
16794
16795         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
16796         high_pc attribute if the CU has no associated code. Only output
16797         DW_AT_entry_pc for CU if not generating strict dwarf and
16798         dwarf_version < 4.
16799
16800 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
16801
16802         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
16803         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
16804         out of ...
16805         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
16806         * final.c (final_start_function): Call the new function rather
16807         than using a NULL argument for dwarf2out_frame_debug.
16808
16809         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
16810         that contains the prologue.
16811
16812         * haifa-sched.c (queue_insn): New arg REASON.  All callers
16813         changed.  Print it in debugging output.
16814
16815         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
16816
16817         * sched-ebb.c (begin_schedule_ready): Remove second argument.
16818         Split most of the code into...
16819         (begin_move_insn): ... here.  New function.
16820         (ebb_sched_info): Add a pointer to it.
16821         * haifa-sched.c (scheduled_insns): New static variable.
16822         (sched_extend_ready_list): Allocate it.
16823         (schedule_block): Use it to record the order of scheduled insns.
16824         Perform RTL changes to move insns only after all scheduling
16825         decisions have been made.
16826         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
16827         begin_move_insn field.
16828         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
16829         * sched-int.h (struct haifa_sched_info): Remove second argument
16830         from begin_schedule_ready hook.  Add new member begin_move_insn.
16831         * sched-rgn.c (begin_schedule_ready): Remove second argument.
16832         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
16833
16834         * haifa-sched.c (prune_ready_list): New function, broken out of
16835         schedule_block.
16836         (schedule_block): Use it.
16837
16838 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
16839
16840         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
16841
16842 2011-04-01  Kai Tietz  <ktietz@redhat.com>
16843
16844         * config.gcc (*-*-mingw*): Allow as option the
16845         posix threading model.
16846         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
16847         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
16848         definition.
16849         (CPP_SPEC): Add pthread/no-pthread handling.
16850         (LIB_SPEC): Likewise.
16851         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
16852         (LIB_SPEC): Likewise.
16853         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
16854         flag to pass -pthread option for shared libgcc build.
16855         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
16856         for shared libgcc build.
16857         * config/i386/t-mingw-pthread: New file.
16858         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
16859         New define to enable use of library pthread by default.
16860         * config/i386/mingw.opt (pthread): New driver option.
16861         (no-pthread): New driver option.
16862         * config/i386/cygming.opt: Make sure trailing empty line is retained.
16863         * config/i386/mingw-w64.opt: Likewise.
16864
16865 2011-04-01  Gary Funck  <gary@intrepid.com>
16866
16867         * c-decl.c (grokdeclarator): Fix formatting.
16868
16869 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
16870
16871         * expr.c (emit_block_move_via_movmem): Use n_generator_args
16872         instead of n_operands.
16873         (set_storage_via_setmem): Likewise.
16874         * optabs.c (maybe_gen_insn): Likewise.
16875         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
16876         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
16877         (mips_expand_builtin_direct): Likewise.
16878         * config/spu/spu.c (expand_builtin_args): Likewise.
16879
16880 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
16881
16882         * recog.h (insn_data_d): Add n_generator_args.
16883         * genoutput.c (data): Likewise.
16884         (output_insn_data): Print it.
16885         (max_opno, num_dups): Delete.
16886         (scan_operands): Just fill in "d->operand[...]".
16887         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
16888
16889 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
16890
16891         * gensupport.h (pattern_stats): New structure.
16892         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
16893         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
16894         (max_operand_1, max_operand_vec): Delete.
16895         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
16896
16897 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
16898
16899         * emit-rtl.c (emit_pattern_after_setloc): New function.
16900         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
16901         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
16902         (emit_pattern_after): New function.
16903         (emit_insn_after, emit_jump_insn_after): Call it.
16904         (emit_call_insn_after, emit_debug_insn_after): Likewise.
16905         (emit_pattern_before_setloc): New function.
16906         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
16907         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
16908         Likewise.
16909         (emit_pattern_before): New function.
16910         (emit_insn_before, emit_jump_insn_before): Call it.
16911         (emit_call_insn_before, emit_debug_insn_before): Likewise.
16912
16913 2011-03-31  Richard Henderson  <rth@redhat.com>
16914
16915         * dwarf2out.c (dw_separate_line_info_ref): Remove.
16916         (dw_separate_line_info_entry): Remove.
16917         (enum dw_line_info_opcode): New.
16918         (dw_line_info_entry): Use it.
16919         (dw_line_info_table, dw_line_info_table_p): New.
16920         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
16921         (line_info_table, line_info_label_num): Remove.
16922         (line_info_table_in_use): Remove.
16923         (separate_line_info_table): Remove.
16924         (separate_line_info_table_allocated): Remove.
16925         (separate_line_info_table_in_use): Remove.
16926         (LINE_INFO_TABLE_INCREMENT): Remove.
16927         (line_info_label_num): New.
16928         (cur_line_info_table): New.
16929         (text_section_line_info, cold_text_section_line_info): New.
16930         (separate_line_info): New.
16931         (SEPARATE_LINE_CODE_LABEL): Remove.
16932         (print_dwarf_line_table): Remove.
16933         (debug_dwarf): Don't dump it.
16934         (output_one_line_info_table): New.
16935         (output_line_info): Use it.
16936         (new_line_info_table): New.
16937         (set_cur_line_info_table): New.
16938         (dwarf2out_switch_text_section): Use it.
16939         (dwarf2out_begin_function): Likewise.
16940         (push_dw_line_info_entry): New.
16941         (dwarf2out_source_line): Rewrite for new line info tables.
16942         (dwarf2out_init): Remove dead initailizations.
16943
16944 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
16945
16946         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
16947         various flags.
16948         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
16949         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
16950         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
16951         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
16952         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
16953         * opt-functions.awk (flag_init, switch_bit_fields): New.
16954         (switch_flags): Don't handle flags moved to bit-fields.  Don't
16955         generate CL_MISSING_OK or CL_SAVE.
16956         * optc-gen.awk: Update to generate bit-field output as well as
16957         flags field.
16958         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
16959         bit-field instead of CL_REJECT_DRIVER flag.
16960         * opts-common.c (generate_canonical_option,
16961         decode_cmdline_option): Use bit-fields instead of CL_* flags.
16962         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
16963         instead of CL_REJECT_NEGATIVE flag.
16964         * toplev.c (print_switch_values): Use cl_report bit-field instead
16965         of CL_REPORT flag.
16966
16967 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
16968
16969         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
16970         a zero minimum index only if it is redundant.
16971
16972 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
16973
16974         PR rtl-optimization/48381
16975         * ira-color.c (assign_hard_reg): Use hard reg set intersection
16976         instead of ira_class_hard_reg_index for calculating conflicting
16977         hard registers.
16978
16979 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
16980
16981         * cprop.c: Clean up hash table building.
16982         (reg_avail_info): Remove.
16983         (oprs_available_p): Remove.
16984         (record_last_reg_set_info): Remove.
16985         (record_last_set_info): Remove.
16986         (reg_available_p): New function.
16987         (gcse_constant_p): Do not treat unfolded conditions as constants.
16988         (make_set_regs_unavailable): New function.
16989         (hash_scan_set): Simplify with new reg_available_p.
16990         (compute_hash_table_work): Traverse insns stream only once.
16991         Do not compute reg_avail_info. Traverse insns in reverse order.
16992         Record implicit sets after recording explicit sets from the block.
16993
16994 2011-03-31  Michael Matz  <matz@suse.de>
16995
16996         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
16997
16998 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
16999
17000         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
17001         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
17002         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
17003         (h8300_mode_dependent_address_p): New function.
17004         (h8300_get_index): Make static.
17005
17006 2011-03-31  Jeff Law  <law@redhat.com>
17007
17008         * reload1.c (elimination_effects): Fix typo in recent change.
17009
17010         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
17011         typo potentially leading to null pointer dereference.
17012
17013         * caller-save.c (new_saved_hard_reg): Eliminate return value.
17014         (setup_save_areas): Corresponding changes to avoid useless
17015         assignments.
17016
17017         * jump.c (reversed_comparison_code_parts): Avoid successive return
17018         statements when REVERSE_CONDITION is defined.
17019
17020         * expr.c (expand_assignment): Avoid useless assignments.
17021         (expand_expr_real_1): Likewise.
17022         (expand_expr_real_2): Avoid useless statements.
17023
17024         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
17025
17026         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
17027
17028         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
17029         statements.
17030
17031         * stmt.c (expand_expr_stmt): Avoid useless assignment.
17032
17033 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
17034
17035         PR target/47109
17036         * doc/tm.texi.in (TARGET_VERSION): Remove.
17037         * doc/tm.texi: Regenerate.
17038         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
17039         * collect2.c (main): Don't use TARGET_VERSION.
17040         * mips-tdump.c (main): Don't use TARGET_VERSION.
17041         * mips-tfile.c (main): Don't use TARGET_VERSION.
17042         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
17043         * config/rs6000/vxworksae.h: Remove.
17044         * config/alpha/alpha.h (TARGET_VERSION): Remove.
17045         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
17046         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
17047         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
17048         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
17049         * config/arm/arm.h (TARGET_VERSION): Remove.
17050         * config/arm/coff.h (TARGET_VERSION): Remove.
17051         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
17052         * config/arm/elf.h (TARGET_VERSION): Remove.
17053         * config/arm/freebsd.h (TARGET_VERSION): Remove.
17054         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
17055         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
17056         * config/arm/pe.h (TARGET_VERSION): Remove.
17057         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
17058         * config/arm/semi.h (TARGET_VERSION): Remove.
17059         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
17060         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
17061         * config/arm/vxworks.h (TARGET_VERSION): Remove.
17062         * config/avr/avr.h (TARGET_VERSION): Remove.
17063         * config/bfin/bfin.h (TARGET_VERSION): Remove.
17064         * config/fr30/fr30.h (TARGET_VERSION): Remove.
17065         * config/frv/frv.h (TARGET_VERSION): Remove.
17066         * config/h8300/h8300.h (TARGET_VERSION): Remove.
17067         * config/i386/cygwin.h (TARGET_VERSION): Remove.
17068         * config/i386/darwin.h (TARGET_VERSION): Remove.
17069         * config/i386/darwin64.h (TARGET_VERSION): Remove.
17070         * config/i386/djgpp.h (TARGET_VERSION): Remove.
17071         * config/i386/freebsd.h (TARGET_VERSION): Remove.
17072         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
17073         * config/i386/gnu.h (TARGET_VERSION): Remove.
17074         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
17075         * config/i386/i386elf.h (TARGET_VERSION): Remove.
17076         * config/i386/linux.h (TARGET_VERSION): Remove.
17077         * config/i386/linux64.h (TARGET_VERSION): Remove.
17078         * config/i386/lynx.h (TARGET_VERSION): Remove.
17079         * config/i386/mingw32.h (TARGET_VERSION): Remove.
17080         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
17081         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
17082         * config/i386/netware.h (TARGET_VERSION): Remove.
17083         * config/i386/nto.h (TARGET_VERSION): Remove.
17084         * config/i386/openbsd.h (TARGET_VERSION): Remove.
17085         * config/i386/vxworks.h (TARGET_VERSION): Remove.
17086         * config/ia64/elf.h (TARGET_VERSION): Remove.
17087         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
17088         * config/ia64/hpux.h (TARGET_VERSION): Remove.
17089         * config/ia64/linux.h (TARGET_VERSION): Remove.
17090         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
17091         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
17092         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
17093         * config/lm32/lm32.h (TARGET_VERSION): Remove.
17094         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
17095         * config/m32c/m32c.h (TARGET_VERSION): Remove.
17096         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
17097         * config/m32r/m32r.h (TARGET_VERSION): Remove.
17098         * config/m68k/linux.h (TARGET_VERSION): Remove.
17099         * config/m68k/m68k.h (TARGET_VERSION): Remove.
17100         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
17101         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
17102         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
17103         * config/mep/mep.h (TARGET_VERSION): Remove.
17104         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
17105         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
17106         * config/mips/iris6.h (MACHINE_TYPE): Remove.
17107         * config/mips/linux.h (TARGET_VERSION): Remove.
17108         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
17109         * config/mips/vxworks.h (TARGET_VERSION): Remove.
17110         * config/mmix/mmix.h (TARGET_VERSION): Remove.
17111         * config/mn10300/linux.h (TARGET_VERSION): Remove.
17112         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
17113         * config/pa/pa.h (TARGET_VERSION): Remove.
17114         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
17115         * config/picochip/picochip.h (TARGET_VERSION): Remove.
17116         * config/rs6000/aix.h (TARGET_VERSION): Remove.
17117         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
17118         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
17119         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
17120         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
17121         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
17122         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
17123         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
17124         * config/rs6000/linux.h (TARGET_VERSION): Remove.
17125         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
17126         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
17127         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
17128         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
17129         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
17130         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
17131         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
17132         * config/s390/linux.h (TARGET_VERSION): Remove.
17133         * config/s390/s390.h (TARGET_VERSION): Remove.
17134         * config/s390/tpf.h (TARGET_VERSION): Remove.
17135         * config/score/score.h (TARGET_VERSION): Remove.
17136         * config/sh/linux.h (TARGET_VERSION): Remove.
17137         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
17138         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
17139         * config/sh/sh.h (TARGET_VERSION): Remove.
17140         * config/sh/sh64.h (TARGET_VERSION): Remove.
17141         * config/sh/superh.h (TARGET_VERSION): Remove.
17142         * config/sh/vxworks.h (TARGET_VERSION): Remove.
17143         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
17144         * config/sparc/linux.h (TARGET_VERSION): Remove.
17145         * config/sparc/linux64.h (TARGET_VERSION): Remove.
17146         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
17147         TARGET_NAME32, TARGET_NAME): Remove.
17148         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
17149         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
17150         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
17151         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
17152         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
17153         * config/spu/spu.h (TARGET_VERSION): Remove.
17154         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
17155         * config/v850/v850.h (TARGET_VERSION): Remove.
17156         * config/vax/linux.h (TARGET_VERSION): Remove.
17157         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
17158         * config/xtensa/elf.h (TARGET_VERSION): Remove.
17159         * config/xtensa/linux.h (TARGET_VERSION): Remove.
17160
17161 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
17162
17163         PR target/48142
17164         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
17165         frame-related from frame-unrelated adjustments to the stack pointer.
17166
17167 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
17168
17169         * common.opt (fdebug-types-section): Move earlier.
17170         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
17171
17172 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
17173
17174         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
17175         var.
17176
17177 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
17178
17179         * tree.h (CASE_CHAIN): Define.
17180         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
17181         (gimple_redirect_edge_and_branch): Likewise.
17182
17183 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
17184
17185         PR middle-end/48367
17186         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
17187         calculation.
17188
17189 2011-03-30  Jeff Law  <law@redhat.com>
17190
17191         * PR bootstrap/48371
17192         * reload1.c (reload): Fix botch in last change.
17193
17194         * reload.h (struct reload): Fix typo introduced in last change.
17195
17196 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
17197
17198         * config/arm/arm.opt (mhard-float, msoft-float): Mark
17199         Undocumented.  Remove help text.
17200         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
17201         -mhard-float.
17202
17203 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
17204
17205         * doc/options.texi (NegativeAlias): Document.
17206         (Alias): Mention NegativeAlias.
17207         * opt-functions.awk: Handle NegativeAlias.
17208         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
17209         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
17210         * opts.h (CL_NEGATIVE_ALIAS): Define.
17211         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
17212         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
17213         OPT_mspe_.
17214         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
17215         Alias entries.
17216         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
17217         mno-spe and mno-isel instead of mspe=no and -misel=no.
17218
17219 2011-03-29  Mark Wielaard  <mjw@redhat.com>
17220
17221         * common.opt (fdebug-types-section): New flag.
17222         * doc/invoke.texi: Document new -fno-debug-types-section flag.
17223         * dwarf2out.c (use_debug_types): New define.
17224         (struct die_struct): Mark die_id with GTY desc use_debug_types.
17225         (print_die): Guard output of type unit signatures using
17226         use_debug_types.
17227         (build_abbrev_table): Replace assert of dwarf_version >= 4
17228         with assert on use_debug_types.
17229         (size_of_die): Likewise.
17230         (unmark_dies): Likewise.
17231         (value_format): Decide AT_ref_external form on use_debug_types.
17232         (output_die): Replace dwarf_version version check guard with
17233         use_debug_types where appropriate.
17234         (modified_type_die): Likewise.
17235         (gen_reference_type_die): Likewise.
17236         (dwarf2out_start_source_file): Likewise.
17237         (dwarf2out_end_source_file): Likewise.
17238         (prune_unused_types_walk_attribs): Likewise.
17239         (dwarf2out_finish): Likewise.
17240
17241 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
17242
17243         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
17244
17245 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
17246
17247         PR rtl-optimization/48332
17248         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
17249         mode of input operand N and modeN to its actual mode.
17250
17251 2011-03-30  Jeff Law  <law@redhat.com>
17252
17253         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
17254         define accessor macro.
17255         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
17256         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
17257         (reg_equiv_init): Likewise.
17258         (reg_equivs_size): New variable.
17259         (reg_equiv_init_size): Remove.
17260         (allocate_initial_values): Move prototype to here from....
17261         * integrate.h (allocate_initial_values): Remove prototype.
17262         * integrate.c: Include reload.h.
17263         (allocate_initial_values): Corresponding changes.
17264         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
17265         (fix_reg_equiv_init, no_equiv): Corresponding changes.
17266         (update_equiv_regs): Corresponding changes.
17267         (ira): Corresponding changes.
17268         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
17269         (push_secondary_reload): Corresponding changes.
17270         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
17271         (make_memloc, find_reloads_address): Corresponding changes.
17272         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
17273         (find_reloads_address_1): Corresponding changes.
17274         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
17275         (refers_to_regno_for_reload_p): Corresponding changes.
17276         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
17277         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
17278         * reload1.c: Include ggc.h.
17279         (grow_reg_equivs): New function.
17280         (replace_pseudos_in, reload): Corresponding changes.
17281         (calculate_needs_all_insns, alter_regs): Corresponding changes.
17282         (eliminate_regs_1, elimination_effects): Corresponding changes.
17283         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
17284         (delete_output_reload): Likewise.
17285         * caller-save.c (mark_referenced_regs): Corresponding changes.
17286         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
17287         * frv/predicates.md (frv_load_operand): Corresponding changes.
17288         * microblaze/microblaze.c (double_memory_operand): Corresponding
17289         changes.
17290         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
17291         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
17292         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
17293         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
17294         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
17295         changes.
17296         * pa/pa.c (emit_move_sequence): Corresponding changes.
17297         * vax/vax.c (nonindexed_address_p): Corresponding changes.
17298
17299 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
17300
17301         PR target/47551
17302         * config/arm/arm.c (coproc_secondary_reload_class): Handle
17303         structure modes.  Don't check neon_vector_mem_operand for
17304         vector or structure modes.
17305
17306 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
17307             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
17308
17309         PR target/43590
17310         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
17311         operand 1 and reshuffle the operands to match.
17312         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
17313
17314 2011-03-30  Christian Schüler  <cschueler@gmx.de>
17315
17316         PR driver/48208
17317         * config/c.opt (F): Added 'Driver' to -F option.
17318
17319         PR driver/48260
17320         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
17321           handler function.
17322         * config/darwin.opt: Added '-arch' option.
17323
17324 2011-03-30  Nick Clifton  <nickc@redhat.com>
17325
17326         * config/rx/rx.md: Add peepholes and patterns to combine
17327         extending loads and simple arithmetic instructions.
17328         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
17329         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
17330         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
17331         modes to use pre-decrement and post-increment addressing.
17332         (rx_is_restricted_memory_address): Add range checking of REG+INT
17333         addresses.
17334         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
17335         (rx_memory_move_cost): Adjust cost of stores.
17336         (rx_adjust_insn_length): New function.
17337
17338 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
17339
17340         PR c/48305
17341         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
17342         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
17343         matching arg00/arg01 types.
17344
17345 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
17346
17347         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
17348         last_location to UNKNOWN_LOCATION.
17349
17350 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
17351
17352         PR target/48349
17353         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
17354         FLOAT_SSE_REGS.
17355
17356 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
17357             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17358
17359         PR bootstrap/48337
17360         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
17361         Init(PROCESSOR_V7).
17362         (sparc_cpu): Likewise.
17363         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
17364         PROCESSOR_V7.
17365
17366 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
17367
17368         PR target/48336
17369         PR middle-end/48342
17370         PR rtl-optimization/48345
17371         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
17372         hard regs for given mode from profitable regs when doing secondary
17373         allocation.
17374
17375 2011-03-29  Jeff Law  <law@redhat.com>
17376
17377         PR bootstrap/48327
17378         * tree-ssa-threadupdate.c (struct redirection_data): Remove
17379         do_not_duplicate field.
17380         (lookup_redirection_data): Corresponding changes.
17381         (create_duplicates): Always create a template block.
17382         (redirect_edges): Remove code which reused the original block
17383         when it was going to become unreachable code.
17384         (thread_block): Don't set do_not_duplicate field.
17385
17386 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
17387
17388         * lto-opts.c (register_user_option_p, lto_register_user_option):
17389         Make type argument unsigned.
17390         * lto-streamer.h (lto_register_user_option): Make type argument
17391         unsigned.
17392         * opth-gen.awk: Make CL_* macros unsigned.
17393         * opts-common.c (find_opt): Make lang_mask argument unsigned.
17394         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
17395         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
17396         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
17397         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
17398         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
17399         (find_opt): Make lang_mask argument unsigned.
17400
17401 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
17402
17403         PR rtl-optimization/48331
17404         PR rtl-optimization/48334
17405         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
17406         for any used algorithm.
17407
17408 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
17409
17410         * ira-conflicts.c (build_object_conflicts): Add unused attribute
17411         to parent_max.
17412
17413 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
17414
17415         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
17416         (alpha_option_override): Don't set alpha_sr_alias_set.
17417         (emit_frame_store_1): Use gen_frame_mem rather than calling
17418         set_mem_alias_set.
17419         (alpha_expand_epilogue): Ditto.
17420
17421 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
17422
17423         PR tree-optimization/48290
17424         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
17425         vectorization, check that relevant phis in the basic block after
17426         the inner loop are really inner loop's exit phis.
17427
17428 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
17429
17430         PR debug/48190
17431         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
17432         (cached_dw_loc_list_def): New structure.
17433         (cached_dw_loc_list): New typedef.
17434         (cached_dw_loc_list_table): New variable.
17435         (cached_dw_loc_list_table_hash): New function.
17436         (cached_dw_loc_list_table_eq): Likewise.
17437         (add_location_or_const_value_attribute): Take a bool cache_p.
17438         Cache the list when the parameter is true.
17439         (gen_formal_parameter_die): Update caller.
17440         (gen_variable_die): Likewise.
17441         (dwarf2out_finish): Likewise.
17442         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
17443         while generating debug info for the decl.
17444         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
17445         (dwarf2out_init): Initialize cached_dw_loc_list_table.
17446         (resolve_addr): Cache the result of resolving a chain of
17447         location lists.
17448
17449 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
17450
17451         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
17452         conflict object hard regset nodes have intersecting hard reg sets.
17453
17454         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
17455         after regstat_init_n_sets_and_refs.
17456
17457         * ira.c: Add more comments at the top.
17458         (setup_stack_reg_pressure_class, setup_pressure_classes):
17459         Add comments how we compute the register pressure classes.
17460         (setup_allocno_and_important_classes): Add more comments.
17461         (setup_class_translate_array, reorder_important_classes)
17462         (setup_reg_class_relations): Add comments.
17463
17464         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
17465         start of the file.
17466
17467         * ira-color.c: Add 2011 to the Copyright line.
17468         (assign_hard_reg):  Add more comments.
17469         (improve_allocation): Ditto.
17470
17471         * ira-costs.c: Add 2011 to the Copyright line.
17472         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
17473         comments.
17474         (setup_regno_cost_classes_by_mode): Ditto.
17475
17476         Initial patches from ira-improv branch:
17477
17478         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
17479
17480         * ira-build.c (ira_create_object): Remove initialization of
17481         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
17482         (ira_create_allocno): Remove initialization of
17483         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
17484         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
17485         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
17486         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
17487         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
17488         Initialize ALLOCNO_ADD_DATA.
17489         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
17490         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
17491         ALLOCNO_REG.
17492         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
17493         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
17494
17495         * ira.c (ira_reallocate): Remove.
17496         (setup_pressure_classes): Call
17497         ira_init_register_move_cost_if_necessary.  Use
17498         ira_register_move_cost instead of ira_get_register_move_cost.
17499         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
17500         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
17501
17502         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
17503         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
17504         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
17505         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
17506         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
17507         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
17508         Fix formatting.
17509         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
17510         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
17511         (struct allocno_color_data): New.
17512         (allocno_color_data_t): New typedef.
17513         (allocno_color_data): New definition.
17514         (ALLOCNO_COLOR_DATA): New macro.
17515         (struct object_color_data): New.
17516         (object_color_data_t): New typedef.
17517         (object_color_data): New definition.
17518         (OBJECT_COLOR_DATA): New macro.
17519         (update_copy_costs, calculate_allocno_spill_cost): Call
17520         ira_init_register_move_cost_if_necessary.  Use
17521         ira_register_move_cost instead of ira_get_register_move_cost.
17522         (move_spill_restore, update_curr_costs): Ditto.
17523         (allocno_spill_priority): Make it inline.
17524         (color_pass): Allocate and free allocno_color_dat and object_color_data.
17525         (struct coalesce_data, coalesce_data_t): New.
17526         (allocno_coalesce_data): New definition.
17527         (ALLOCNO_COALESCE_DATA): New macro.
17528         (merge_allocnos, coalesced_allocno_conflict_p): Use
17529         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
17530         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
17531         (coalesce_allocnos): Ditto.
17532         (setup_coalesced_allocno_costs_and_nums): Ditto.
17533         (collect_spilled_coalesced_allocnos): Ditto.
17534         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
17535         (setup_slot_coalesced_allocno_live_ranges): Ditto.
17536         (coalesce_spill_slots): Ditto.
17537         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
17538         free allocno_coalesce_data.
17539
17540         * ira-conflicts.c: Fix formatting.
17541         (process_regs_for_copy): Call
17542         ira_init_register_move_cost_if_necessary.  Use
17543         ira_register_move_cost instead of ira_get_register_move_cost.
17544         (build_object_conflicts): Optimize.
17545
17546         * ira-costs.c (record_reg_classes): Optimize.  Call
17547         ira_init_register_move_cost_if_necessary.  Use
17548         ira_register_move_cost, ira_may_move_in_cost, and
17549         ira_may_move_out_cost instead of ira_get_register_move_cost and
17550         ira_get_may_move_cost.
17551         (record_address_regs): Ditto.
17552         (scan_one_insn): Optimize.
17553         (find_costs_and_classes): Optimize.
17554         (process_bb_node_for_hard_reg_moves): Call
17555         ira_init_register_move_cost_if_necessary.  Use
17556         ira_register_move_cost instead of ira_get_register_move_cost.
17557
17558         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
17559         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
17560         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
17561         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
17562         definitions.
17563         (ira_initiate_emit_data, ira_finish_emit_data)
17564         (create_new_allocno): New functions.
17565         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
17566         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
17567         Use ira_register_move_cost instead of ira_get_register_move_cost.
17568
17569         * ira-int.h: Fix some comments.
17570         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
17571         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
17572         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
17573         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
17574         add_data.
17575         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
17576         bitfield after mode.  Make hard_regno a short int.  Make
17577         hard_regno short.  Remove first_coalesced_allocno and
17578         next_coalesced_allocno.  Move mem_optimized_dest_p,
17579         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
17580         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
17581         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
17582         temp, colorable_p.  Add new member add_data.
17583         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
17584         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
17585         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
17586         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
17587         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
17588         (ALLOCNO_ADD_DATA): New macro.
17589         (ira_emit_data_t): New typedef.
17590         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
17591         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
17592         from struct ira_allocno.
17593         (ALLOCNO_EMIT_DATA): New macro.
17594         (ira_allocno_emit_data, allocno_emit_reg): New.
17595         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
17596         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
17597         (OBJECT_ADD_DATA): New macro.
17598         (ira_reallocate): Remove.
17599         (ira_initiate_emit_data, ira_finish_emit_data): New.
17600         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
17601         (ira_init_register_move_cost_if_necessary): New.
17602         (ira_object_conflict_iter_next): Merge into
17603         ira_object_conflict_iter_cond.
17604         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
17605
17606         * ira-live.c (process_single_reg_class_operands): Call
17607         ira_init_register_move_cost_if_necessary.  Use
17608         ira_register_move_cost instead of ira_get_register_move_cost.
17609
17610         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
17611
17612         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
17613
17614         * ira-costs.c: Fix formatting.
17615         (cost_classes, cost_classes_num): Remove.
17616         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
17617         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
17618         (cost_classes_del, cost_classes_htab): New.
17619         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
17620         (initiate_regno_cost_classes, setup_cost_classes): New.
17621         (setup_regno_cost_classes_by_aclass): New.
17622         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
17623         (record_reg_classes): Use regno_cost_classes instead of
17624         cost_classes.  Move checking opposite operand up.
17625         (record_address_regs): Use regno_cost_classes
17626         instead of cost_classes.
17627         (scan_one_insn): Ditto.  Use always general register.
17628         (print_allocno_costs): Use regno_cost_classes instead of
17629         cost_classes.
17630         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
17631         (find_costs_and_classes): Set up cost classes for each registers.
17632         Use also their mode for this.  Use regno_cost_classes instead of
17633         cost_classes.
17634         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
17635         cost_classes.
17636         (free_ira_costs, ira_init_costs): Don't use cost_classes.
17637         (ira_costs, ira_set_pseudo_classes): Call
17638         initiate_regno_cost_classes and finish_regno_cost_classes.
17639
17640         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
17641
17642         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
17643
17644         * target.def (ira_cover_classes): Remove.
17645
17646         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
17647
17648         * doc/tm.texi.in: Ditto.
17649
17650         * ira-conflicts.c: Remove mentioning cover classes from the file.
17651         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
17652         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
17653
17654         * targhooks.c (default_ira_cover_classes): Remove.
17655
17656         * targhooks.h (default_ira_cover_classes): Ditto.
17657
17658         * haifa-sched.c: Remove mentioning cover classes from the file.
17659         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
17660         ira_pressure_classes and ira_pressure_classes_num instead of
17661         ira_reg_class_cover_size and ira_reg_class_cover.  Use
17662         sched_regno_pressure_class instead of sched_regno_cover_class.
17663         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
17664         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
17665
17666         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
17667         classes from the file.
17668         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
17669         (struct object_hard_regs, struct object_hard_regs_node): New.
17670         (struct ira_object): New members profitable_hard_regs,
17671         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
17672         (struct ira_allocno): Rename cover_class to aclass.  Rename
17673         cover_class_cost and updated_cover_class_cost to class_cost and
17674         updated_class_cost.  Remove splay_removed_p and
17675         left_conflict_size.  Add new members colorable_p.
17676         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
17677         (ALLOCNO_COLORABLE_P): New macro.
17678         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
17679         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
17680         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
17681         (OBJECT_...): Rename parameter C to O.
17682         (OBJECT_PROFITABLE_HARD_REGS): New macro.
17683         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
17684         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
17685         (struct target_ira_int): New members x_ira_max_memory_move_cost,
17686         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
17687         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
17688         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
17689         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
17690         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
17691         x_ira_reg_class_subunion.
17692         (ira_max_memory_move_cost, ira_max_register_move_cost)
17693         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
17694         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
17695         (ira_important_class_nums, ira_reg_class_superunion): New macros.
17696         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
17697         (ira_reg_class_union): Rename to ira_reg_class_subunion.
17698         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
17699         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
17700         (ira_tune_allocno_costs_and_cover_classes): Rename to
17701         ira_tune_allocno_costs.
17702         (ira_debug_hard_regs_forest): New.
17703         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
17704         (ira_object_conflict_iter_next): Fix comments.
17705         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
17706         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
17707         cover_class to aclass.
17708         (ira_allocate_and_accumulate_costs): Ditto.
17709         (ira_allocate_and_set_or_copy_costs): Ditto.
17710
17711         * opts.c (decode_options): Remove ira_cover_class check.
17712
17713         * ira-color.c: Remove mentioning cover classes from the file.  Use
17714         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
17715         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
17716         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
17717         (splay-tree.h): Remove include.
17718         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
17719         before copy_freq_compare_func.
17720         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
17721         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
17722         New definitions.
17723         (hard_regs_roots, hard_regs_node_vec): Ditto.
17724         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
17725         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
17726         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
17727         (create_new_object_hard_regs_node): Ditto.
17728         (add_new_object_hard_regs_node_to_forest): Ditto.
17729         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
17730         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
17731         Ditto.
17732         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
17733         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
17734         (remove_unused_object_hard_regs_nodes): Ditto.
17735         (enumerate_object_hard_regs_nodes): Ditto.
17736         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
17737         (object_hard_regs_subnode_t): Ditto.
17738         (struct object_hard_regs_subnode): Ditto.
17739         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
17740         (setup_object_hard_regs_subnode_index): Ditto.
17741         (get_object_hard_regs_subnodes_num): Ditto.
17742         (form_object_hard_regs_nodes_forest): Ditto.
17743         (finish_object_hard_regs_nodes_tree): Ditto.
17744         (finish_object_hard_regs_nodes_forest): Ditto.
17745         (allocnos_have_intersected_live_ranges_p): Rename to
17746         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
17747         (pseudos_have_intersected_live_ranges_p): Rename to
17748         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
17749         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
17750         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
17751         (update_copy_costs): Remove assert.  Skip cost update if the hard
17752         reg does not belong the class.
17753         (assign_hard_reg): Process only profitable hard regs.
17754         (uncolorable_allocnos_num): Make it scalar.
17755         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
17756         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
17757         and ira_reg_class_max_nregs.
17758         (bucket_allocno_compare_func): Check frequency first.
17759         (sort_bucket): Add compare function as a parameter.
17760         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
17761         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
17762         (push_allocno_to_stack): Rewrite for checking new allocno
17763         colorability.
17764         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
17765         (push_only_colorable): Pass new parameter to sort_bucket.
17766         (push_allocno_to_spill): Remove.
17767         (allocno_spill_priority_compare): Make it inline and rewrite.
17768         (splay_tree_allocate, splay_tree_free): Remove.
17769         (allocno_spill_sort_compare): New function.
17770         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
17771         build and use splay tree.  Choose first allocno in uncolorable
17772         allocno bucket to spill.  Remove setting spill cost.
17773         (all_conflicting_hard_regs): Remove.
17774         (setup_allocno_available_regs_num): Check only profitable hard
17775         regs.  Print info about hard regs nodes.
17776         (setup_allocno_left_conflicts_size): Remove.
17777         (put_allocno_into_bucket): Don't call
17778         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
17779         (improve_allocation): New.
17780         (color_allocnos): Call setup_profitable_hard_regs,
17781         form_object_hard_regs_nodes_forest, improve_allocation,
17782         finish_object_hard_regs_nodes_forest.  Setup spill cost.
17783         (print_loop_title): Use pressure classes.
17784         (color_allocnso): Ditto.
17785         (do_coloring): Remove allocation and freeing splay_tree_node_pool
17786         and allocnos_for_spilling.
17787         (ira_sort_regnos_for_alter_reg): Don't setup members
17788         {first,next}_coalesced_allocno.
17789         (color): Remove allocating and freeing removed_splay_allocno_vec.
17790         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
17791         prohibited_class_mode_regs.
17792
17793         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
17794         formatting.
17795         (update_allocno_pressure_excess_length): Use pressure classes.
17796         (inc_register_pressure, dec_register_pressure): Check for pressure
17797         class.
17798         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
17799         pressure class.  Use ira_reg_class_nregs instead of
17800         ira_reg_class_max_nregs.
17801         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
17802         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
17803         (single_reg_class): Use ira_reg_class_nregs instead of
17804         ira_reg_class_max_nregs.
17805         (process_bb_node_lives): Use pressure classes.
17806
17807         * ira-emit.c: Remove mentioning cover classes from the file.  Use
17808         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
17809         (change_loop): Use pressure classes.
17810         (modify_move_list): Call ira_set_allocno_class instead of
17811         ira_set_allocno_cover_class.
17812
17813         * ira-build.c: Remove mentioning cover classes from the file.  Use
17814         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
17815         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
17816         ALLOCNO_UPDATED_CLASS_COST instead of
17817         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
17818         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
17819         (ira_create_allocno): Remove initialization of
17820         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
17821         ALLOCNO_COLORABLE_P.
17822         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
17823         Update conflict regs for the objects.
17824         (create_cap_allocno): Remove assert.  Don't propagate
17825         ALLOCNO_AVAILABLE_REGS_NUM.
17826         (ira_free_allocno_costs): New function.
17827         (finish_allocno): Change a part of code into call of
17828         ira_free_allocno_costs.
17829         (low_pressure_loop_node_p): Use pressure classes.
17830         (object_range_compare_func): Don't compare classes.
17831         (setup_min_max_conflict_allocno_ids): Ditto.
17832
17833         * loop-invariant.c: Remove mentioning cover classes from the file.
17834         Use ira_pressure_classes and ira_pressure_classes_num instead of
17835         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
17836         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
17837         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
17838         Use reg_allocno_class instead of reg_cover_class.
17839         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
17840         STACK_REG_COVER_CLASS.
17841         (get_regno_cover_class): Rename to get_regno_pressure_class.
17842         (move_loop_invariants): Initialize and finalize regstat.
17843
17844         * ira.c: Remove mentioning cover classes from the file.  Add
17845         comments about coloring without cover classes.  Use ALLOCNO_CLASS
17846         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
17847         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
17848         setup_class_subset_and_memory_move_costs.
17849         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
17850         (setup_cover_and_important_classes): Rename to
17851         setup_allocno_and_important_classes.
17852         (setup_class_translate_array): New.
17853         (setup_class_translate): Call it for allocno and pressure classes.
17854         (cover_class_order): Rename to allocno_class_order.
17855         (comp_reg_classes_func): Use ira_allocno_class_translate instead
17856         of ira_class_translate.
17857         (reorder_important_classes): Set up ira_important_class_nums.
17858         (setup_reg_class_relations): Set up ira_reg_class_superunion.
17859         (print_class_cover): Rename to print_classes.  Add parameter.
17860         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
17861         Print pressure classes too.
17862         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
17863         setup_reg_subclasses.
17864         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
17865         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
17866         (setup_prohibited_class_mode_regs): Use
17867         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
17868         (clarify_prohibited_class_mode_regs): New function.
17869         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
17870         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
17871         (ira_init_once): Initialize them.
17872         (free_register_move_costs): Process them.
17873         (ira_init): Move calls of find_reg_classes and
17874         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
17875         Call clarify_prohibited_class_mode_regs.
17876         (ira_no_alloc_reg): Remove.
17877         (too_high_register_pressure_p): Use pressure classes.
17878
17879         * sched-deps.c: Remove mentioning cover classes from the file.
17880         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
17881         ira_pressure_classes and ira_pressure_classes_num instead of
17882         ira_reg_class_cover_size and ira_reg_class_cover.
17883         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
17884         sched_regno_pressure_class instead of sched_regno_cover_class.
17885         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
17886         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
17887
17888         * ira.h: Add 2010 to Copyright.
17889         (ira_no_alloc_reg): Remove external.
17890         (struct target_ira): Rename x_ira_hard_regno_cover_class,
17891         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
17892         x_ira_class_translate to x_ira_hard_regno_allocno_class,
17893         x_ira_allocno_classes_num, x_ira_allocno_classes, and
17894         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
17895         x_ira_pressure_classes, x_ira_pressure_class_translate, and
17896         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
17897         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
17898         x_ira_no_alloc_regs.
17899         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
17900         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
17901         ira_allocno_classes_num and ira_allocno_classes.
17902         (ira_class_translate): Rename to ira_allocno_class_translate.
17903         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
17904         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
17905         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
17906         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
17907         (ira_no_alloc_regs): New.
17908
17909         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
17910         classes from the file.  Use ALLOCNO_CLASS instead of
17911         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
17912         ALLOCNO_COVER_CLASS_COST.
17913         (regno_cover_class): Rename to regno_aclass.
17914         (record_reg_classes): Use ira_reg_class_subunion instead of
17915         ira_reg_class_union.
17916         (record_address_regs): Check overflow.
17917         (scan_one_insn): Ditto.
17918         (print_allocno_costs): Print total mem cost fore regional allocation.
17919         (print_pseudo_costs): Use REG_N_REFS.
17920         (find_costs_and_classes): Use classes intersected with them on the
17921         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
17922         ira_reg_class_union.  Use ira_allocno_class_translate and
17923         regno_aclass instead of ira_class_translate and regno_cover_class.
17924         Modify code for finding regno_aclass.  Setup preferred classes for
17925         the next pass.
17926         (setup_allocno_cover_class_and_costs): Rename to
17927         setup_allocno_class_and_costs.  Use regno_aclass instead of
17928         regno_cover_class.  Use ira_set_allocno_class instead of
17929         ira_set_allocno_cover_class.
17930         (init_costs, finish_costs): Use regno_aclass instead of
17931         regno_cover_class.
17932         (ira_costs): Use setup_allocno_class_and_costs instead of
17933         setup_allocno_cover_class_and_costs.
17934         (ira_tune_allocno_costs_and_cover_classes): Rename to
17935         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
17936         by processing objects.  Use ira_reg_class_max_nregs instead of
17937         ira_reg_class_nregs.
17938
17939         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
17940
17941         * sched-int.h: Remove mentioning cover classes from the file.
17942         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
17943
17944         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
17945         classes from the file.
17946         (struct reg_pref): Rename coverclass into allocnoclass.
17947         (reg_cover_class): Rename to reg_allocno_class.
17948
17949         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
17950
17951         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
17952
17953         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
17954
17955         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
17956
17957         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
17958
17959         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
17960
17961         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
17962
17963         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
17964
17965         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
17966
17967         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
17968
17969         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
17970         (i386_ira_cover_classes): Ditto.
17971
17972         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
17973
17974         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
17975
17976         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
17977
17978         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
17979
17980         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
17981
17982         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
17983
17984         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
17985         (mips_ira_cover_classes): Ditto.
17986
17987         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
17988
17989         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
17990
17991         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
17992
17993         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
17994
17995         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
17996
17997         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
17998         (IRA_COVER_CLASSES_VSX): Ditto.
17999
18000         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
18001         (rs6000_ira_cover_classes): Ditto.
18002
18003         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
18004
18005         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
18006
18007         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
18008
18009         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
18010
18011         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
18012
18013         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
18014
18015         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
18016
18017         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
18018
18019         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
18020
18021         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
18022
18023 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
18024
18025         PR debug/48253
18026         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
18027         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
18028         dw_fde_unlikely_section_end_label, cold_in_std_section,
18029         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
18030         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
18031         fields.
18032         (output_fde): Use dw_fde_second_{begin,end} if second is
18033         true, otherwise dw_fde_{begin,end}.
18034         (output_call_frame_info): Test dw_fde_second_begin != NULL
18035         instead of dw_fde_switched_sections.
18036         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
18037         fields, initialize new fields.  Initialize in_std_section
18038         unconditionally from the first partition.
18039         (dwarf2out_end_epilogue): Don't override dw_fde_end when
18040         dw_fde_second_begin is non-NULL.
18041         (dwarf2out_switch_text_section): Stop initializing removed
18042         dw_fde_struct fields, initialize new fields, initialize
18043         also dw_fde_end here.  Set dw_fde_switch_cfi even when
18044         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
18045         (struct var_loc_list_def): Add last_before_switch field.
18046         (arange_table, arange_table_allocated, arange_table_in_use,
18047         ARANGE_TABLE_INCREMENT, add_arange): Removed.
18048         (size_of_aranges): Count !in_std_section and !second_in_std_section
18049         hunks in fdes, instead of looking at arange_table_in_use.
18050         (output_aranges): Add aranges_length argument, don't call
18051         size_of_aranges here.  Instead of using aranges_table*
18052         emit ranges for fdes when !in_std_section resp.
18053         !second_in_std_section.
18054         (dw_loc_list): Break ranges crossing section switch.
18055         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
18056         use dw_fde_second_end instead of dw_fde_end as end of last range.
18057         (gen_subprogram_die): Don't call add_arange.  Use
18058         dw_fde_{begin,end} for first partition and if switched
18059         section dw_fde_second_{begin,end} for the second.
18060         (var_location_switch_text_section_1,
18061         var_location_switch_text_section): New functions.
18062         (dwarf2out_begin_function): Initialize cold_text_section even
18063         when function_section () isn't text_section.
18064         (prune_unused_types): Don't walk arange_table.
18065         (dwarf2out_finish): Don't needlessly test
18066         flag_reorder_blocks_and_partition when testing cold_text_section_used.
18067         If info_section_emitted, call size_of_aranges and if it indicates
18068         non-empty .debug_aranges, call output_aranges with the computed
18069         size.  Stop using removed dw_fde_struct fields, use
18070         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
18071         for second.
18072
18073         PR debug/48203
18074         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
18075         create ENTRY_VALUE if incoming or address of incoming's MEM
18076         is a hard REG.
18077         * dwarf2out.c (mem_loc_descriptor): Don't emit
18078         DW_OP_GNU_entry_value of DW_OP_fbreg.
18079         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
18080         on ENTRY_VALUE is able to find the canonical parameter VALUE.
18081         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
18082         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
18083         ENTRY_VALUE_EXPs.
18084         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
18085         is a REG_P or MEM_P with REG_P address, compute hash directly
18086         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
18087         (preserve_only_constants): Don't clear VALUES forwaring
18088         ENTRY_VALUE to some other VALUE.
18089
18090 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
18091
18092         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
18093         instead of GEN_INT.
18094
18095 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
18096
18097         * cfgexpand.c (expand_gimple_cond): Always set the source location and
18098         block before expanding the statement.
18099         (expand_gimple_stmt_1): Likewise.  Set them here...
18100         (expand_gimple_stmt): ...and not here.  Tidy.
18101         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
18102         unknown.
18103
18104 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
18105
18106         * Makefile.in: New rule for cprop.o.
18107         * gcse.c: Move constant/copy propagation to cprop.c.
18108         (compute_local_properties): Only handle expression tables.
18109         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
18110         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
18111         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
18112         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
18113         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
18114         compute_cprop_data, find_used_regs, try_replace_reg,
18115         find_avail_set, cprop_jump, constprop_register, cprop_insn,
18116         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
18117         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
18118         find_bypass_set, reg_killed_on_edge, bypass_block,
18119         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
18120         execute_rtl_cprop, pass_rtl_cprop): Move to...
18121         * cprop.c: ...here.  New file, constant/copy propagation for RTL
18122         moved from gcse.c to here with minor cleanups in duplicated code.
18123
18124 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
18125
18126         * config/i386/i386.c (flag_opts): Fix a typo in
18127         -mavx256-split-unaligned-store.
18128
18129 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
18130
18131         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
18132         LIBCALL_VALUE): Remove macros.
18133         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18134         TARGET_FUNCTION_VALUE_REGNO_P): Define.
18135         (h8300_function_value, h8300_libcall_value,
18136         h8300_function_value_regno_p): New functions.
18137
18138 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
18139
18140         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
18141
18142 2011-03-28  Jeff Law  <law@redhat.com>
18143
18144         * tree-ssa-threadupdate.c (redirect_edges): Call
18145         create_edge_and_update_destination_phis as needed.
18146         (create_edge_and_update_destination_phis): Accept new BB argument.
18147         All callers updated.
18148         (thread_block): Do not update the profile when threading around
18149         intermediate blocks.
18150         (thread_single_edge): Likewise.
18151         (determine_bb_domination_status): If BB is not a successor of the
18152         loop header, return NONDOMINATING.
18153         (register_jump_thread): Note when we register a jump thread around
18154         an intermediate block.
18155         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
18156         (thread_across_edge): Use it.
18157
18158 2011-03-28  Tristan Gingold  <gingold@adacore.com>
18159
18160         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
18161         when for_return is 2.
18162
18163 2011-03-28  Jeff Law  <law@redhat.com>
18164
18165         * var-tracking.c (canonicalize_values_mark): Delete unused
18166         lhs assignment.
18167         (canonicalize_values_star, set_variable_part): Likewise.
18168         (clobber_variable_part, delete_variable_part): Likewise.
18169
18170 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
18171
18172         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
18173
18174 2011-03-28  Martin Jambor  <mjambor@suse.cz>
18175
18176         * tree-inline.c (expand_call_inline): Do not check that destination
18177         node is analyzed.
18178         (optimize_inline_calls): Assert that destination node is analyzed.
18179         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
18180         not call tree_lowering_passes.
18181         * cgraph.h (cgraph_analyze_function): Declare.
18182         * cgraphunit.c (cgraph_analyze_function): Make public.
18183
18184 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
18185
18186         * config/sparc/sparc-opts.h: New.
18187         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
18188         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
18189         (sparc_option_override): Store processor_type enumeration rather
18190         than string in cpu_default.  Remove name and enumeration from
18191         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
18192         without using sparc_select.  Use target_flags_explicit instead of
18193         fpu_option_set.
18194         * config/sparc/sparc.h (enum processor_type): Move to
18195         sparc-opts.h.
18196         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
18197         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
18198         HeaderInclude entry.
18199         (mcpu=, mtune=): Use Var and Enum.
18200         (sparc_processor_type): New Enum and EnumValue entries.
18201
18202 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18203             Iain Sandoe  <iains@gcc.gnu.org>
18204
18205         PR target/48245
18206         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
18207
18208 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
18209
18210         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
18211         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
18212         Insert new statements at it in lieu of STMT.
18213         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
18214         * tree-vect-stmts.c (vectorizable_store): Likewise.
18215         (vectorizable_load): Likewise.
18216
18217 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
18218
18219         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
18220         (divtf3): Ditto.
18221         (multf3): Ditto.
18222         (subtf3): Ditto.
18223
18224 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
18225
18226         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
18227         unaligned 256bit load/store.
18228         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
18229         (*avx_movdqu<avxmodesuffix>): Likewise.
18230
18231 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
18232
18233         PR target/48288
18234         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
18235         * config/pa/pa.md (iordi3): Use new predicate in expander.
18236         (iorsi3): Likewise.
18237
18238 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
18239
18240         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
18241         FUNCTION_VALUE_REGNO_P): Remove macros.
18242         * config/mips/mips-protos.h (mips_function_value): Remove.
18243         * config/mips/mips.c (mips_function_value): Rename to...
18244         (mips_function_value_1): ... this. Make static.  Handle receiving
18245         the function type in 'fn_decl_or_type' argument.
18246         (mips_function_value, mips_libcall_value,
18247         mips_function_value_regno_p): New function.
18248         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18249         TARGET_FUNCTION_VALUE_REGNO_P): Define.
18250
18251 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
18252
18253         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
18254         and -mavx256-split-unaligned-store.
18255         (ix86_option_override_internal): Split 32-byte AVX unaligned
18256         load/store by default.
18257         (ix86_avx256_split_vector_move_misalign): New.
18258         (ix86_expand_vector_move_misalign): Use it.
18259
18260         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
18261         -mavx256-split-unaligned-store.
18262
18263         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
18264         256bit load/store.  Generate unaligned store on misaligned memory
18265         operand.
18266         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
18267         256bit load/store.
18268         (*avx_movdqu<avxmodesuffix>): Likewise.
18269
18270         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
18271         -mavx256-split-unaligned-store.
18272
18273 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
18274
18275         PR target/38598
18276         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
18277         Update commentary.
18278
18279 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
18280
18281         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
18282         opno arguments with an expand_operand.  Use create_input_operand.
18283         (mips_prepare_builtin_target): Delete.
18284         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
18285         functions.
18286         (mips_expand_builtin_direct): Use create_output_operand and
18287         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
18288         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
18289         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
18290
18291 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
18292
18293         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
18294         function.
18295         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
18296
18297 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
18298
18299         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
18300         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
18301         basic blocks and call commit_edge_insertions directly.
18302         (fixup_abnormal_edges): Move from here to...
18303         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
18304         on the edges and return whether some have actually been inserted.
18305         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
18306         compensation code.
18307
18308 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
18309
18310         PR rtl-optimization/48144
18311         * sel-sched-ir.c (merge_history_vect): Factor out from ...
18312         (merge_expr_data): ... here.
18313         (av_set_intersect): Rename to av_set_code_motion_filter.
18314         Update all callers.  Call merge_history_vect when an expression
18315         is found in both sets.
18316         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
18317
18318 2011-03-26  Alan Modra  <amodra@gmail.com>
18319
18320         * config/rs6000/predicates.md (word_offset_memref_op): Handle
18321         cmodel medium addresses.
18322         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
18323         64-bit gpr loads and stores.
18324         (rs6000_secondary_reload_ppc64): New function.
18325         * config/rs6000/rs6000-protos.h: Declare it.
18326         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
18327
18328 2011-03-26  Alan Modra  <amodra@gmail.com>
18329
18330         PR target/47487
18331         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
18332         GNU Go in traceback table.
18333
18334 2011-03-25  Richard Henderson  <rth@redhat.com>
18335
18336         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
18337         if there are exactly 6 operands.
18338         (set_storage_via_setmem): Similarly.
18339
18340 2011-03-25  Kai Tietz  <ktietz@redhat.com>
18341
18342         * collect2.c (write_c_file_stat): Handle backslash
18343         as right-hand directory separator.
18344         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
18345         checking just for slash.
18346         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
18347         instead of checking for trailing slash.
18348         * gcc.c (record_temp_file): Use filename_cmp instead
18349         of strcmp.
18350         (do_spec_1): Likewise.
18351         (replace_outfile_spec_function): Likewise.
18352         (is_directory): Use filename_ncmp instead of strncmp.
18353         (print_multilib_info): Likewise.
18354         * gcov.c (find_source): Use filename_cmp instead
18355         instead of strcmp.
18356         (make_gcov_file_name): Fix order of slash/backslash
18357         checks.
18358         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
18359         (add_standard_paths): Likewise.
18360         * mips-tfile.c (saber_stop): Handle backslash.
18361         * prefix.c (update_path): Use filename_ncmp instead of
18362         strncmp.
18363         * profile.c (output_location): Use filename_cmp instead
18364         of strcmp.
18365         * read-md.c (handle_toplevel_file): Handle backslash.
18366         * tlink.c (frob_extension):  Likewise.
18367         * tree-cfg.c (same_line_p): Use filename_cmp instead of
18368         strcmp.
18369         * tree-dump.c (dequeue_and_dump): Handle backslash.
18370         * tree.c (get_file_function_name): Likewise.
18371         * gengtype.c (read_input_list): Likewise.
18372         (get_file_realbasename): Likewise.
18373         (get_output_file_with_visibility): Use filename_cmp
18374         instead of strcmp.
18375
18376 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
18377
18378         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
18379         case to VFPv1.
18380
18381 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
18382
18383         * fold-const.c (expr_location_or): New function.
18384         (fold_truth_not_expr): Call it.
18385
18386 2011-03-25  Jeff Law  <law@redhat.com>
18387
18388         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
18389         va_end.
18390         * c-family/c-common.c (def_fn_type): Likewise.
18391         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
18392         * emit-rtl.c (gen_rtvec): Likewise.
18393         * lto/lto-lang.c (def_fn_type): Likewise.
18394
18395 2011-03-25  Richard Guenther  <rguenther@suse.de>
18396
18397         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
18398         also generate copies.
18399         (fini_copy_prop): Handle constant values properly.
18400
18401 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
18402
18403         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
18404         mode size instead of bitsize with DWARF2_ADDR_SIZE.
18405         (hash_loc_operands, compare_loc_operands): Handle
18406         DW_OP_GNU_entry_value.
18407
18408 2011-03-25  Kai Tietz  <ktietz@redhat.com>
18409
18410         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
18411         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
18412         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
18413         comment and use macro TARGET_64BIT_MS_ABI instead.
18414         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
18415         and change default behavior for 32-bit MS_ABI.
18416         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
18417         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
18418         32-bit, too.
18419         (ix86_cfun_abi): Likewise.
18420         (ix86_maybe_switch_abi): Adjust comment.
18421         (init_cumulative_args): Check for bit-ness in MS_ABI case.
18422         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
18423         instead of checking for SYSV_ABI.
18424         (ix86_nsaved_sseregs): Likewise.
18425         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
18426         to 16 bytes.
18427         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
18428         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
18429         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
18430         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
18431         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
18432
18433 2011-03-25  Richard Guenther  <rguenther@suse.de>
18434
18435         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
18436         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
18437         (verify_gimple): Remove.
18438         * tree-cfg.c (verify_gimple_call): Merge verification
18439         from verify_stmts.
18440         (verify_gimple_phi): Merge verification from verify_stmts.
18441         (verify_gimple_label): New function.
18442         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
18443         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
18444         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
18445         (verify_stmts): Rename to verify_gimple_in_cfg.
18446         (verify_gimple_in_cfg): New function.
18447         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
18448         * tree-ssa.c (verify_ssa): Likewise.
18449         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
18450
18451 2011-03-25  Richard Guenther  <rguenther@suse.de>
18452
18453         * passes.c (init_optimization_passes): Add FRE pass after
18454         early SRA.
18455
18456 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
18457             Andrew Stubbs  <ams@codesourcery.com>
18458
18459         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
18460         for Cortex-A8.
18461         (arm_movdi_vfp_cortexa8): New pattern.
18462         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
18463         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
18464         instructions when tuning for Cortex-A8.  Set attribute "arch".
18465         * config/arm/arm.md: Move include arm-tune.md up a bit.
18466         (define_attr "arch"): Add "onlya8" and "nota8" values.
18467         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
18468
18469 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
18470
18471         PR bootstrap/48282
18472         Revert:
18473         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
18474
18475         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
18476         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
18477         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
18478         * passes.c (init_optimization_passes): Move
18479         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
18480
18481 2011-03-25  Kai Tietz  <ktietz@redhat.com>
18482
18483         * c-typeck.c (comptypes_internal): Replace target
18484         hook call of comp_type_attributes by version in tree.c file.
18485         * gimple.c (gimple_types_compatible_p_1): Likewise.
18486         * tree-ssa.c (useless_type_conversion_p): Likewise.
18487         * tree.c (build_type_attribute_qual_variant): Likewise.
18488         (attribute_value_equal): New static helper function.
18489         (comp_type_attributes): New function.
18490         (merge_attributes): Use attribute_value_equal for comparison.
18491         (attribute_list_contained): Likewise.
18492         * tree.h (comp_type_attributes): New prototype.
18493
18494 2011-03-25  Richard Guenther  <rguenther@suse.de>
18495
18496         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
18497         of complex types at -O0.
18498         (verify_gimple_assign_binary): Likewise.
18499         (verify_gimple_assign_ternary): Likewise.
18500
18501 2011-03-24  Mark Wielaard  <mjw@redhat.com>
18502
18503         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
18504         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
18505
18506 2011-03-24  Mark Wielaard  <mjw@redhat.com>
18507
18508         PR debug/48041
18509         * dwarf2out.c (output_abbrev_section): Only write table when
18510         abbrev_die_table_in_use > 1.
18511
18512 2011-02-24  Richard Henderson  <rth@redhat.com>
18513
18514         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
18515         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
18516         (alpha_expand_unaligned_load_words): Use extql.
18517         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
18518         (emit_insxl): Handle all modes for consistency.
18519
18520 2011-02-24  Richard Henderson  <rth@redhat.com>
18521
18522         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
18523         (alpha_expand_unaligned_load): Likewise.
18524         (alpha_expand_unaligned_store): Likewise.
18525         (alpha_expand_unaligned_load_words): Likewise.
18526         (alpha_expand_unaligned_store_words): Likewise.
18527         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
18528         (alpha_split_lock_test_and_set_12): Likewise.
18529         (print_operand, alpha_fold_builtin_extxx): Likewise.
18530         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
18531         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
18532         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
18533         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
18534         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
18535         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
18536         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
18537         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
18538         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
18539         (extwl, extll, extql): Similarly.
18540         (inswh, inslh, insqh): Similarly.
18541         (mskbl, mskwl, mskll, mskql): Similarly.
18542         (mskwh, msklh, mskqh): Similarly.
18543
18544 2011-02-24  Richard Henderson  <rth@redhat.com>
18545
18546         * config/alpha/alpha.md (attribute isa): Add er, ner.
18547         (attribute enabled): Handle them.
18548         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
18549
18550 2011-02-24  Richard Henderson  <rth@redhat.com>
18551
18552         * config/alpha/alpha.md (attribute isa): Add vms.
18553         (attribute enabled): Handle it.
18554         (*movsf): Merge *movsf_{nofix,fix,nofp}.
18555         (*movdf): Merge *movdf_{nofix,fix,nofp}.
18556         (*movtf): Rename from *movtf_internal for consistency.
18557         (*movsi): Merge with *movsi_nt_vms.
18558         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
18559         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
18560         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
18561         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
18562
18563 2011-02-24  Richard Henderson  <rth@redhat.com>
18564
18565         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
18566         (extendqisi2, extendhisi2): Likewise.
18567         (extendqidi2): Simplify BWX/non-BWX expansions.
18568         (extendhidi2): Similarly.
18569
18570 2011-02-24  Richard Henderson  <rth@redhat.com>
18571
18572         * config/alpha/alpha.md (attribute isa): New.
18573         (attribute enabled): New.
18574         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
18575         (zero_extendqisi2, zero_extendqidi2): Similarly.
18576         (zero_extendhisi2, zero_extendhidi2): Similarly.
18577         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
18578
18579 2011-02-24  Richard Henderson  <rth@redhat.com>
18580
18581         * config/alpha/predicates.md (input_operand): Revert last change;
18582         update comment to mention 32-bit VMS rather than Windows.
18583
18584 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
18585
18586         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
18587         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
18588         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
18589         * passes.c (init_optimization_passes): Move
18590         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
18591
18592 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
18593
18594         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
18595
18596 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
18597
18598         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
18599         correctly.
18600
18601 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
18602
18603         PR debug/48204
18604         * simplify-rtx.c (simplify_const_unary_operation): Call
18605         real_convert when changing mode class with FLOAT_EXTEND.
18606
18607 2011-03-24  Nick Clifton  <nickc@redhat.com>
18608
18609         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
18610         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
18611         * config/rx/rx.c (rx_option_override): Set align_jumps,
18612         align_loops and align_labels if not set by the user.
18613         (rx_align_for_label): New function.
18614         (rx_max_skip_for_label): New function.
18615         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
18616         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
18617         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
18618         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
18619         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
18620
18621 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
18622
18623         PR rtl-optimization/48263
18624         * optabs.c (expand_binop_directly): Reinstate convert_modes code
18625         and original commutative_p handling.  Use maybe_gen_insn.
18626
18627 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18628
18629         * reload.c (find_reloads_subreg_address): Add address_reloaded
18630         parameter and return true there if the full address has been
18631         reloaded.
18632         (find_reloads_toplev): Pass address_reloaded flag.
18633         (find_reloads_address_1): Don't use address_reloaded parameter.
18634
18635 2011-03-24  Jeff Law  <law@redhat.com>
18636
18637         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
18638         unused variable "ann".
18639         (remove_unused_locals): Likewise.
18640
18641         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
18642         statement.
18643
18644         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
18645         after it is freed.
18646
18647 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18648
18649         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
18650         for invalid symbolic addresses.
18651         (s390_secondary_reload): Don't use s390_check_symref_alignment for
18652         larl operands.
18653
18654 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
18655
18656         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
18657         the argument in calls to fold_truth_not_expr.
18658
18659 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
18660
18661         * tree.c (record_node_allocation_statistics): New function.
18662         (make_node_stat, copy_node_stat, build_string): Call it.
18663         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
18664         (build1_stat, build_omp_clause): Likewise.
18665
18666 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
18667
18668         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
18669         last commit.
18670
18671 2011-03-24  Richard Guenther  <rguenther@suse.de>
18672
18673         PR tree-optimization/48271
18674         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
18675         blocks that still exist.
18676
18677 2011-03-24  Richard Guenther  <rguenther@suse.de>
18678
18679         PR tree-optimization/48270
18680         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
18681         not free datarefs before ddrs.
18682
18683 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
18684
18685         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
18686         from the address built for a reference with variable offset.
18687
18688 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
18689
18690         PR target/48237
18691         * config/i386/i386.md (*movdf_internal_rex64): Do not split
18692         alternatives that can be handled with movq or movabsq insn.
18693         (*movdf_internal): Disable for !TARGET_64BIT.
18694         (*movdf_internal_nointeger): Ditto.
18695         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
18696
18697 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
18698
18699         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
18700         (FUNCTION_ARG_ADVANCE): Likewise.
18701         * tm.texi.in: Change references to them to hook references.
18702         * tm.texi: Regenerate.
18703         * targhooks.c (default_function_arg): Eliminate check for target macro.
18704         (default_function_incoming_arg): Likewise.
18705         (default_function_arg_advance): Likewise.
18706         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
18707         (function_arg_advance): Likewise.
18708         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
18709
18710 2011-03-24  Richard Guenther  <rguenther@suse.de>
18711
18712         PR middle-end/48269
18713         * tree-object-size.c (addr_object_size): Do not double-account
18714         for MEM_REF offsets.
18715
18716 2011-03-24  Diego Novillo  <dnovillo@google.com>
18717
18718         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
18719         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
18720         (lto_input_data_block): Move from lto-opts.c.  Make extern.
18721         Update all users.
18722         (lto_input_string): Rename from input_string.  Make extern.
18723         Update all users.
18724         * lto-streamer-out.c (lto_output_string_with_length): Rename from
18725         output_string_with_length.
18726         Output 0 to indicate a non-NULL string.  Update all callers to
18727         not emit 0.
18728         (lto_output_string): Rename from output_string.  Make extern.
18729         Update all users.
18730         (lto_output_decl_state_streams): Make extern.
18731         (lto_output_decl_state_refs): Make extern.
18732         * lto-streamer.h (lto_input_string): Declare.
18733         (lto_input_data_block): Declare.
18734         (lto_output_string): Declare.
18735         (lto_output_string_with_length): Declare.
18736         (lto_output_decl_state_streams): Declare.
18737         (lto_output_decl_state_refs): Declare.
18738
18739 2011-03-24  Richard Guenther  <rguenther@suse.de>
18740
18741         PR tree-optimization/46562
18742         * tree.c (build_invariant_address): New function.
18743         * tree.h (build_invariant_address): Declare.
18744         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
18745         a renamed function moved ...
18746         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
18747         Take valueization callback parameter.
18748         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
18749         * gimple-fold.h: New file.
18750         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
18751         (ccp_fold, fold_const_aggregate_ref,
18752         fold_ctor_reference, fold_nonarray_ctor_reference,
18753         fold_array_ctor_reference, fold_string_cst_ctor_reference,
18754         get_base_constructor): Move ...
18755         * gimple-fold.c: ... here.
18756         (gimple_fold_stmt_to_constant_1): New function
18757         split out from ccp_fold.  Take a valueization callback parameter.
18758         Valueize all operands.
18759         (gimple_fold_stmt_to_constant): New wrapper function.
18760         (fold_const_aggregate_ref_1): New function split out from
18761         fold_const_aggregate_ref.  Take a valueization callback parameter.
18762         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
18763         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
18764         invariant POINTER_PLUS_EXPRs to invariant form.
18765         (vn_valueize): New function.
18766         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
18767         * tree-vrp.c (vrp_valueize): New function.
18768         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
18769         to fold statements to constants.
18770         * tree-ssa-pre.c (eliminate): Properly guard propagation of
18771         function declarations.
18772         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
18773         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
18774
18775 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
18776
18777         * config/h8300/predicates.md (jump_address_operand): Fix register
18778         mode check.
18779
18780 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
18781
18782         * doc/invoke.texi (max-stores-to-sink): Document.
18783         * params.h (MAX_STORES_TO_SINK): Define.
18784         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
18785         if either vectorization or if-conversion is disabled.
18786         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
18787         tree-vect-data-refs.c vect_equal_offsets.
18788         (dr_equal_offsets_p): New function.
18789         (find_data_references_in_bb): Remove static.
18790         * tree-data-ref.h (find_data_references_in_bb): Declare.
18791         (dr_equal_offsets_p): Likewise.
18792         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
18793         (vect_drs_dependent_in_basic_block): Update calls to
18794         vect_equal_offsets.
18795         (vect_check_interleaving): Likewise.
18796         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
18797         (cond_if_else_store_replacement): Rename to...
18798         (cond_if_else_store_replacement_1): ... this.  Change arguments and
18799         documentation.
18800         (cond_if_else_store_replacement): New function.
18801         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
18802         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
18803
18804 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
18805
18806         PR target/46934
18807         * config/arm/arm.md (casesi): Use the gen_int_mode() function
18808         to subtract lower bound instead of GEN_INT().
18809
18810 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
18811
18812         PR other/48179
18813         PR other/48221
18814         PR other/48234
18815         * doc/extend.texi (Alignment): Move section to match order in TOC.
18816         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
18817         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
18818
18819 2011-03-23  Jeff Law  <law@redhat.com>
18820
18821         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
18822         before removing the edge.
18823
18824         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
18825         it may have been freed by redirect_branch_edge or
18826         redirect_edge_succ_nodup.
18827
18828 2011-03-23  Richard Guenther  <rguenther@suse.de>
18829
18830         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
18831         (check_va_list_escapes): Likewise.
18832         (check_all_va_list_escapes): Likewise.
18833
18834 2011-03-23  Richard Guenther  <rguenther@suse.de>
18835
18836         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
18837         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
18838         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
18839         (alias.o): Likewise.
18840         (ipa-type-escape.o): Remove.
18841         (ipa-struct-reorg.o): Likewise.
18842         (GTFILES): Remove ipa-struct-reorg.c.
18843         * alias.c: Do not include ipa-type-escape.h.
18844         * tree-ssa-alias.c: Likewise.
18845         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
18846         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
18847         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
18848         and ipa-type-escape passes.
18849         * tree-pass.h (pass_ipa_type_escape): Remove.
18850         (pass_ipa_struct_reorg): Likewise.
18851         * ipa-struct-reorg.h: Remove.
18852         * ipa-struct-reorg.c: Likewise.
18853         * ipa-type-escape.h: Likewise.
18854         * ipa-type-escape.c: Likewise.
18855         * doc/invoke.texi (-fipa-struct-reorg): Remove.
18856         (--param struct-reorg-cold-struct-ratio): Likewise.
18857         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
18858         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
18859         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
18860
18861 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18862
18863         * config/s390/2084.md: Enable all insn reservations also for z9_ec
18864         cpu attribute value.
18865         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
18866         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
18867         * config/s390/s390.c (processor_flags_table): New constant array.
18868         (s390_handle_arch_option): Remove.
18869         (s390_handle_option): Remove s390_handle_arch_option invocations
18870         and OPT_mwarn_framesize_ handling.
18871         (s390_option_override): Remove s390_handle_arch_option invocation.
18872         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
18873         warnings.
18874         * config/s390/s390.md (cpu attribute): Add z9_ec value.
18875         * config/s390/s390.opt (s390_tune, s390_arch)
18876         (march=): Replace s390_arch_option enum and values with
18877         processor_type.  Set variable name to s390_arch.  Set
18878         initialization value.
18879         (mtune=): Replace s390_arch_option with processor_type.  Set
18880         variable name to s390_tune.  Set initialization value.
18881
18882 2011-03-23  Julian Brown  <julian@codesourcery.com>
18883
18884         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
18885         accesses which are not naturally aligned.
18886
18887 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
18888
18889         PR target/47553
18890         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
18891
18892 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
18893
18894         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
18895         parameter from "int" to "enum insn_code".
18896         (expand_operand_type): New enum.
18897         (expand_operand): New structure.
18898         (create_expand_operand): New function.
18899         (create_fixed_operand, create_output_operand): Likewise
18900         (create_input_operand, create_convert_operand_to): Likewise.
18901         (create_convert_operand_from, create_address_operand): Likewise.
18902         (create_integer_operand): Likewise.
18903         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
18904         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
18905         (expand_insn, expand_jump_insn): Likewise.
18906         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
18907         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
18908         (expand_movstr, expand_builtin___clear_cache): Likewise.
18909         (expand_builtin_lock_release): Likewise.
18910         * explow.c (allocate_dynamic_stack_space): Likewise.
18911         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
18912         and use the default handling in that case.
18913         * expmed.c (check_predicate_volatile_ok): Delete.
18914         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
18915         (emit_cstore): Likewise.
18916         * expr.c (emit_block_move_via_movmem): Likewise.
18917         (set_storage_via_setmem, expand_assignment): Likewise.
18918         (emit_storent_insn, try_casesi): Likewise.
18919         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
18920         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
18921         (expand_vec_shift_expr, expand_binop_directly): Likewise.
18922         (expand_twoval_unop, expand_twoval_binop): Likewise.
18923         (expand_unop_direct, emit_indirect_jump): Likewise.
18924         (emit_conditional_move, vector_compare_rtx): Likewise.
18925         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
18926         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
18927         (expand_sync_lock_test_and_set): Likewise.
18928         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
18929         (emit_unop_insn): Likewise.
18930         (expand_copysign_absneg): Change icode to an insn_code.
18931         (create_convert_operand_from_type): New function.
18932         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
18933         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
18934         (expand_insn, expand_jump_insn): Likewise.
18935         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
18936         than const_int_operand for operand 2.
18937
18938 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18939
18940         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
18941         if possible.
18942
18943 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
18944
18945         * emit-rtl.c (emit_pattern_before_noloc): New function.
18946         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
18947         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
18948         (emit_pattern_after_noloc): New function.
18949         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
18950         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
18951
18952 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
18953
18954         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
18955         (__ffsDI2): Likewise.
18956
18957 2011-03-22  Richard Henderson  <rth@redhat.com>
18958
18959         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
18960         of !TARGET_ABI_OPEN_VMS.
18961         (alpha_trampoline_init, alpha_start_function): Likewise.
18962         (alpha_expand_epilogue, alpha_file_start): Likewise.
18963         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
18964         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
18965         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
18966         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
18967         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
18968
18969 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18970
18971         * config/s390/s390-opts.h: New.
18972         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
18973         s390_arch_flags, s390_warn_framesize, s390_stack_size,
18974         s390_stack_guard): Remove.
18975         (s390_handle_arch_option): Return void.  Take enum
18976         s390_arch_option value instead of string and searching array.
18977         (s390_handle_option): Don't assert that global structures are in
18978         use.  Access variables via opts pointer.  Use error_at.  Don't use
18979         sscanf for -mstack-guard= or -mstack-size=.  Update call to
18980         s390_handle_arch_option.
18981         (s390_option_override): Update call to s390_handle_arch_option.
18982         (s390_emit_prologue): Use %d format for s390_stack_size in
18983         diagnostic.  Use %wd for HOST_WIDE_INT.
18984         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
18985         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
18986         * config/s390/s390.opt (config/s390/s390-opts.h): New
18987         HeaderInclude entry.
18988         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
18989         s390_arch_flags, s390_warn_framesize): New Variable entries.
18990         (s390_arch_option): New Enum and EnumValue entries.
18991         (march=): Use Enum instead of Var.
18992         (mstack-guard=, mstack-size=): Use UInteger and Var.
18993         (mtune=): Use Enum.
18994
18995 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
18996
18997         * config/score/score.c (score_handle_option): Don't assert that
18998         global structures are in use.  Access target_flags via opts
18999         pointer.  Use value of -march= option to determine target_flags
19000         settings.
19001         * config/score/score.opt (march=): Use Enum.
19002         (score_arch): New Enum and EnumValue entries.
19003
19004 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19005
19006         * config/mep/mep.c (option_mtiny_specified): Remove.
19007         (mep_option_override): Move register handling for -mivc2 from
19008         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
19009         instead of option_mtiny_specified.
19010         (mep_handle_option): Access target_flags via opts pointer.  Don't
19011         assert that global structures are in use.  Defer part of -mivc2
19012         handling and move it to mep_option_override.
19013         * config/mep/mep.opt (IVC2): New Mask entry.
19014         (mivc2): Use Var and Defer instead of Mask.
19015
19016 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19017
19018         * config/v850/v850-opts.h: New.
19019         * config/v850/v850.c (small_memory): Replace with
19020         small_memory_physical_max array.  Make that array static const.
19021         (v850_handle_memory_option): Take integer value of argument.  Take
19022         gcc_options pointer, option text and location.  Return void.
19023         Update for changes to small memory structures.
19024         (v850_handle_option): Access target_flags via opts pointer.  Don't
19025         assert that global structures are in use.  Update calls to
19026         v850_handle_memory_option.
19027         (v850_encode_data_area): Update references to small memory settings.
19028         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
19029         (enum small_memory_type): Move to v850-opts.h.
19030         * config/v850/v850.opt (config/v850/v850-opts.h): New
19031         HeaderInclude entry.
19032         (small_memory_max): New Variable entry.
19033         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
19034         (mtda, mzda): Likewise.
19035
19036 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19037
19038         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
19039         pointer.  Don't assert that global structures are in use.
19040
19041 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19042
19043         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
19044         via opts pointer.  Don't assert that global structures are in use.
19045
19046 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19047
19048         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
19049         (munix=93): Use Var.
19050         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
19051         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
19052         * config/pa/pa-opts.h: New.
19053         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
19054         (pa_handle_option): Don't assert that global structures are in
19055         use.  Access target_flags via opts pointer.  Don't handle
19056         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
19057         OPT_munix_98 here.
19058         (pa_option_override): Handle deferred OPT_mfixed_range_.
19059
19060 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19061
19062         * config/mn10300/mn10300-opts.h: New.
19063         * config/mn10300/mn10300.c (mn10300_processor,
19064         mn10300_tune_string): Remove.
19065         (mn10300_handle_option): Don't assert that global structures are
19066         in use.  Access mn10300_processor via opts pointer.  Don't handle
19067         OPT_mtune_ here.
19068         * config/mn10300/mn10300.h (enum processor_type): Move to
19069         mn10300-opts.h.
19070         (mn10300_processor): Remove.
19071         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
19072         HeaderInclude entry.
19073         (mn10300_processor): New Variable entry.
19074         (mtune=): Use Var.
19075
19076 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19077
19078         * config/microblaze/microblaze.c: Don't include opts.h.
19079         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
19080         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
19081         (mno-clearbss): Use Var and Warn.
19082
19083 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19084
19085         * config/m32r/m32r-opts.h: New.
19086         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
19087         (m32r_handle_option): Don't assert that global structures are in
19088         use.  Access target_flags and m32r_cache_flush_func via opts
19089         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
19090         OPT_mno_flush_trap here.
19091         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
19092         include of m32r-opts.h.
19093         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
19094         HeaderInclude entry.
19095         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
19096         (mmodel=): Use Enum and Var.
19097         (m32r_model): New Enum and EnumValue entries.
19098         (mno-flush-trap): Use Var.
19099         (msdata=): Use Enum and Var.
19100         (m32r_sdata): New Enum and EnumValue entries.
19101
19102 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19103
19104         * config/m32c/m32c.c: Don't include opts.h.
19105         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
19106         m32c_handle_option): Remove.
19107         (m32c_option_override): Check global_options_set.x_target_memregs
19108         instead of target_memregs_set.
19109         * config/m32c/m32c.h (target_memregs): Remove.
19110         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
19111         variable.
19112
19113 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19114
19115         * config/iq2000/iq2000-opts.h: New.
19116         * config/iq2000/iq2000.c: Don't include opts.h.
19117         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
19118         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
19119         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
19120         HeaderInclude entry.
19121         (iq2000_tune): New Variable entry.
19122         (march=): Add comment.  Use Enum.
19123         (iq2000_arch): New Enum and EnumValue entries.
19124         (mcpu=): Use Enum and Var.
19125         (iq2000_tune): New Enum and EnumValue entries.
19126
19127 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19128
19129         * config/ia64/ia64-opts.h: New.
19130         * config/ia64/ia64.c (ia64_tune): Remove.
19131         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
19132         here.  Use error_at.
19133         (ia64_option_override): Handle deferred OPT_mfixed_range_.
19134         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
19135         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
19136         HeaderInclude entry.
19137         (ia64_tune): New Variable entry.
19138         (mfixed-range=): Use Defer and Var.
19139         (mtune=): Use Enum and Var.
19140         (ia64_tune): New Enum and EnumValue entries.
19141
19142 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19143
19144         * config/frv/frv-opts.h: New.
19145         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
19146         frv-opts.h.
19147         (frv_cpu_type): Remove.
19148         * config/frv/frv.c: Don't include opts.h.
19149         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
19150         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
19151         (frv_cpu_type): New Variable entry.
19152         (frv_cpu): New Enum and EnumValue entries.
19153
19154 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19155
19156         * config/cris/cris.c (cris_handle_option): Access target_flags via
19157         opts pointer.  Don't assert that global structures are in use.
19158         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
19159         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
19160
19161 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19162
19163         * config/bfin/bfin-opts.h: New.
19164         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
19165         bfin_si_revision, bfin_workarounds): Remove.
19166         (bfin_cpus): Make static const.
19167         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
19168         not bfin_lib_id_given.
19169         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
19170         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
19171         pointer. Use error_at.  Don't assert that global structures are in use.
19172         * config/bfin/bfin.h: Include bfin-opts.h.
19173         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
19174         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
19175         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
19176         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
19177         entries.
19178
19179 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19180
19181         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
19182         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
19183         or -msoft-float here.
19184         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
19185         -msoft-float and -mhard-float.
19186         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
19187         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
19188         msoft-float.
19189         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
19190         -msoft-float.
19191         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
19192         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
19193         not mhard-float.
19194         (LIBGCC_SPEC): Don't handle -msoft-float.
19195         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
19196         -mhard-float.
19197         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
19198         msoft-float.
19199         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
19200         -mfloat-abi=*, not -msoft-float and -mhard-float.
19201         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
19202         -msoft-float.
19203         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
19204         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
19205         mhard-float and msoft-float.
19206         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
19207         mfloat-abi=soft in comments, not mhard-float and msoft-float.
19208         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
19209         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
19210         mhard-float.
19211         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
19212         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
19213         msoft-float.
19214         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
19215         not mhard-float.
19216         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
19217         not msoft-float.
19218
19219 2011-03-22  Richard Henderson  <rth@redhat.com>
19220
19221         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
19222         TARGET_ABI_WINDOWS_NT.
19223         (alpha_output_function_end_prologue): Likewise.
19224         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
19225         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
19226         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
19227         (trap, *movsi_nt_vms): Likewise.
19228         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
19229         (*tablejump_osf_nt_internal): Remove.
19230         * config/alpha/predicates.md (input_operand): Only test Pmode.
19231
19232 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19233
19234         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
19235         via opts pointer.  Use error_at.  Don't assert that global
19236         structures are in use.
19237
19238 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19239
19240         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
19241         (ix86_handle_option): Access ix86_isa_flags and
19242         ix86_isa_flags_explicit via opts pointer.  Don't assert that
19243         global structures are in use.
19244         (ix86_function_specific_save, ix86_function_specific_restore):
19245         Update ix86_isa_flags_explicit field name.
19246         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
19247         (ix86_isa_flags_explicit): Rename TargetSave entry to
19248         x_ix86_isa_flags_explicit.
19249
19250 2011-03-22  Richard Henderson  <rth@redhat.com>
19251
19252         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
19253         (alpha_option_override, direct_return): Likewise.
19254         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
19255         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
19256         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
19257         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
19258         (alpha_expand_epilogue, alpha_end_function): Likewise.
19259         (alpha_init_libfuncs): Likewise.
19260         (struct machine_function): Remove unicosmk members.
19261         (print_operand) ['t']: Remove.
19262         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
19263         unicosmk_output_module_name, unicosmk_output_common,
19264         current_section_align, unicosmk_output_text_section_asm_op,
19265         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
19266         unicosmk_section_type_flags, unicosmk_unique_section,
19267         unicosmk_asm_named_section, unicosmk_insert_attributes,
19268         unicosmk_output_align, unicosmk_defer_case_vector,
19269         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
19270         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
19271         unicosmk_output_ssib, unicosmk_add_call_info_word,
19272         unicosmk_extern_head, unicosmk_output_default_externs,
19273         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
19274         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
19275         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
19276         * config/alpha/alpha-protos.h: Update.
19277         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
19278         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
19279         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
19280         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
19281         (*mulsi_se, mulvsi3): Likewise.
19282         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
19283         (*divmodsi_internal, call, call_value, realign): Likewise.
19284         (moddi3, umoddi3): Likewise; remove duplicate expander.
19285         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
19286         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
19287         (*movdi_nofix): Remove r/U alternative.
19288         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
19289         * config/alpha/constraints.md ("U"): Remove.
19290         * config/alpha/predicates.md (call_operand"): Don't test
19291         TARGET_ABI_UNICOSMK.
19292
19293 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19294
19295         * target.def (handle_option): Take gcc_options and
19296         cl_decoded_option pointers and location_t.
19297         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
19298         * doc/tm.texi: Regenerate.
19299         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
19300         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
19301         * lto-opts.c (lto_reissue_options): Generate option structure for
19302         targetm.handle_option call.
19303         * opts.c (target_handle_option): Update call to
19304         targetm.handle_option.  Remove assertions about values now passed
19305         down to hook.
19306         * targhooks.c (default_target_handle_option): New.
19307         * targhooks.h (default_target_handle_option): Declare.
19308         * config/alpha/alpha.c: Include opts.h.
19309         (alpha_handle_option): Update to new hook interface.
19310         * config/arm/arm.c: Include opts.h.
19311         (arm_handle_option): Update to new hook interface.
19312         * config/arm/t-arm (arm.o): Update dependencies.
19313         * config/bfin/bfin.c: Include opts.h.
19314         (bfin_handle_option): Update to new hook interface.
19315         * config/cris/cris.c: Include opts.h.
19316         (cris_handle_option): Update to new hook interface.
19317         * config/frv/frv.c: Include opts.h.
19318         (frv_handle_option): Update to new hook interface.
19319         * config/i386/i386.c: Include opts.h.
19320         (ix86_handle_option): Update to new hook interface.
19321         (ix86_valid_target_attribute_inner_p): Generate option structure
19322         for call to ix86_handle_option.
19323         * config/i386/t-i386 (i386.o): Update dependencies.
19324         * config/ia64/ia64.c: Include opts.h.
19325         (ia64_handle_option): Update to new hook interface.
19326         * config/ia64/t-ia64 (ia64.o): Update dependencies.
19327         * config/iq2000/iq2000.c: Include opts.h.
19328         (iq2000_handle_option): Update to new hook interface.
19329         * config/m32c/m32c.c: Include opts.h.
19330         (m32c_handle_option): Update to new hook interface.
19331         * config/m32r/m32r.c: Include opts.h.
19332         (m32r_handle_option): Update to new hook interface.
19333         * config/m68k/m68k.c: Include opts.h.
19334         (m68k_handle_option): Update to new hook interface.
19335         * config/mep/mep.c: Include opts.h.
19336         (mep_handle_option): Update to new hook interface.
19337         * config/microblaze/microblaze.c: Include opts.h.
19338         (microblaze_handle_option): Update to new hook interface.
19339         * config/mips/mips.c: Include opts.h.
19340         (mips_handle_option): Update to new hook interface.
19341         * config/mn10300/mn10300.c: Include opts.h.
19342         (mn10300_handle_option): Update to new hook interface.
19343         * config/pa/pa.c: Include opts.h.
19344         (pa_handle_option): Update to new hook interface.
19345         * config/pdp11/pdp11.c: Include opts.h.
19346         (pdp11_handle_option): Update to new hook interface.
19347         * config/rs6000/rs6000.c: Include opts.h.
19348         (rs6000_handle_option): Update to new hook interface.
19349         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
19350         * config/rx/rx.c: Include opts.h.
19351         (rx_handle_option): Update to new hook interface.
19352         * config/s390/s390.c: Include opts.h.
19353         (s390_handle_option): Update to new hook interface.
19354         * config/score/score.c: Include opts.h.
19355         (score_handle_option): Update to new hook interface.
19356         * config/sh/sh.c: Include opts.h.
19357         (sh_handle_option): Update to new hook interface.
19358         * config/sparc/sparc.c: Include opts.h.
19359         (sparc_handle_option): Update to new hook interface.
19360         * config/v850/v850.c: Include opts.h.
19361         (v850_handle_option): Update to new hook interface.
19362
19363 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19364
19365         * gcc.c (driver_unknown_option_callback): Only permit and save
19366         unknown -Wno- options.
19367         (driver_wrong_lang_callback): Save options directly instead of via
19368         driver_unknown_option_callback.
19369
19370 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
19371
19372         * combine.c (simplify_set): Try harder to find the best CC mode when
19373         simplifying a nested COMPARE on the RHS.
19374
19375 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
19376
19377         * config/alpha/gnu.h: Remove.
19378         * config/arc: Remove directory.
19379         * config/arm/netbsd.h: Remove.
19380         * config/arm/t-pe: Remove.
19381         * config/crx: Remove directory.
19382         * config/i386/netbsd.h: Remove.
19383         * config/m68hc11: Remove directory.
19384         * config/m68k/uclinux-oldabi.h: Remove.
19385         * config/mcore/mcore-pe.h: Remove.
19386         * config/mcore/t-mcore-pe: Remove.
19387         * config/netbsd-aout.h: Remove.
19388         * config/rs6000/gnu.h: Remove.
19389         * config/sh/sh-symbian.h: Remove.
19390         * config/sh/symbian-base.c: Remove.
19391         * config/sh/symbian-c.c: Remove.
19392         * config/sh/symbian-cxx.c: Remove.
19393         * config/sh/symbian-post.h: Remove.
19394         * config/sh/symbian-pre.h: Remove.
19395         * config/sh/t-symbian: Remove.
19396         * config/svr3.h: Remove.
19397         * config/vax/netbsd.h: Remove.
19398         * config.build: Don't handle i[34567]86-*-pe.
19399         * config.gcc: Remove handling of deprecations for most deprecated
19400         targets.
19401         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
19402         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
19403         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
19404         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
19405         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
19406         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
19407         Remove cases.
19408         * config.host: Don't handle i[34567]86-*-pe.
19409         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
19410         (ASM_SPEC32): Don't handle -mcall-gnu.
19411         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
19412         -mcall-gnu.
19413         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
19414         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
19415         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
19416         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
19417         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
19418         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
19419         conditional on SYMBIAN.
19420         * configure.ac: Don't handle powerpc*-*-gnu*.
19421         * configure: Regenerate.
19422         * doc/extend.texi (interrupt attribute): Don't mention CRX.
19423         * doc/install-old.texi (m6811, m6812): Don't mention.
19424         * doc/install.texi (arc-*-elf*): Don't document multilib option.
19425         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
19426         (m68k-uclinuxoldabi): Don't mention.
19427         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
19428         Remove.
19429         (-mcall-gnu): Remove.
19430         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
19431         families): Remove constraint documentation.
19432
19433 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
19434
19435         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
19436         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
19437         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
19438
19439 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
19440
19441         PR target/48226
19442         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
19443         vector when peeking at the next token for vector, don't expand the
19444         keywords.
19445
19446 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
19447
19448         * config/avr/avr-protos.h (expand_epilogue): Change prototype
19449         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
19450         * config/avr/avr.c (init_cumulative_args)
19451         (avr_function_arg_advance): Use it.
19452         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
19453         sibcall epilogues.
19454         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
19455         (avr_function_ok_for_sibcall): ...this new function.
19456         (avr_lookup_function_attribute1): New static Function.
19457         (avr_naked_function_p, interrupt_function_p)
19458         (signal_function_p, avr_OS_task_function_p)
19459         (avr_OS_main_function_p): Use it.
19460         * config/avr/avr.md ("sibcall", "sibcall_value")
19461         ("sibcall_epilogue"): New expander.
19462         ("*call_insn", "*call_value_insn"): New insn.
19463         ("call_insn", "call_value_insn"): Remove
19464         ("call", "call_value", "epilogue"): Change expander to handle
19465         sibling calls.
19466
19467 2011-03-21  Nick Clifton  <nickc@redhat.com>
19468
19469         * doc/invoke.texi (Overall Options): Move closing brace to end of
19470         options list.
19471         (Optimization Options): Add missing @gol.
19472         (Directory Options): Likewise.
19473         (i386 and x86-64 Options): Likewise.
19474         (RS6000 and PowerPC Options): Likewise.
19475         (i386 and x86-64 Windows Options): Likewise.
19476         (V850 Options): Add text missing from descriptions.
19477
19478 2011-03-22  Richard Henderson  <rth@redhat.com>
19479
19480         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
19481         (avr_incoming_return_addr_rtx): New.
19482         (emit_push_byte): New.
19483         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
19484         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
19485         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
19486         (emit_pop_byte): New.
19487         (expand_epilogue): Use it.  Pop frame pointer by bytes.
19488         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
19489         (INCOMING_RETURN_ADDR_RTX): New.
19490         (INCOMING_FRAME_SP_OFFSET): New.
19491         (ARG_POINTER_CFA_OFFSET): New.
19492         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
19493         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
19494         (pophi): Remove.
19495
19496         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
19497
19498 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
19499
19500         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
19501         (FUNCTION_ARG_ADVANCE): Likewise.
19502         * tm.texi.in: Change references to them to hook references.
19503         * tm.texi: Regenerate.
19504         * targhooks.c (default_function_arg): Eliminate check for target
19505         macro.
19506         (default_function_incoming_arg): Likewise.
19507         (default_function_arg_advance): Likewise.
19508         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
19509         (function_arg_advance): Likewise.
19510         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
19511
19512 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
19513
19514         * tree.c (build_call_1): New function.
19515         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
19516
19517 2011-03-22  Richard Guenther  <rguenther@suse.de>
19518
19519         PR tree-optimization/48228
19520         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
19521         for single-arg PHIs.
19522
19523 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
19524
19525         PR rtl-optimization/48143
19526         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
19527         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
19528         sse2_cvtps2pd): Likewise.
19529
19530 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19531
19532         * recog.c (canonicalize_change_group): Use validate_unshare_change.
19533
19534 2011-03-22  Richard Guenther  <rguenther@suse.de>
19535
19536         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
19537         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
19538         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
19539         and REALIGN_LOAD_EXPR.
19540         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
19541         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
19542         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
19543         DOT_PROD_EXPR case ...
19544         (expand_expr_real_2): ... here.
19545         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
19546         and REALIGN_LOAD_EXPR.
19547         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
19548         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
19549         (vect_create_epilog_for_reduction): Likewise.
19550         (vectorizable_reduction): Likewise.
19551         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
19552         * tree-vect-stmts.c (vectorizable_load): Likewise.
19553
19554 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
19555
19556         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
19557
19558 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19559
19560         * config/s390/s390.c (s390_delegitimize_address): Fix offset
19561         handling for PLTOFF/GOTOFF.
19562
19563 2011-03-22  Nick Clifton  <nickc@redhat.com>
19564
19565         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
19566         trailing backslash from the end of the macro definition.
19567
19568 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19569
19570         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
19571         and PLT unspecs.
19572
19573 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
19574
19575         * expr.h (prepare_operand): Move to...
19576         * optabs.h (prepare_operand): ...here and change the insn code
19577         parameter from "int" to "enum insn_code".
19578         (insn_operand_matches): Declare.
19579         * expr.c (init_expr_target): Use insn_operand_matches.
19580         (compress_float_constant): Likewise.
19581         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
19582         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
19583         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
19584         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
19585         Likewise.
19586         (gen_cond_trap): Likewise.
19587         (prepare_operand): Likewise.  Change icode to an insn_code.
19588         (insn_operand_matches): New function.
19589         * reload.c (find_reloads_address_1): Use insn_operand_matches.
19590         * reload1.c (gen_reload): Likewise.
19591         * targhooks.c (default_secondary_reload): Likewise.
19592
19593 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
19594
19595         * config/alpha/alpha.md (unspec): New define_c_enum.
19596         (unspecv): Ditto.
19597
19598 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
19599
19600         PR debug/48214
19601         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
19602         between a call and its CALL_ARG_LOCATION note.
19603
19604 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
19605
19606         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
19607
19608 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
19609
19610         PR c/42544
19611         PR c/48197
19612         * c-common.c (shorten_compare): If primopN is first sign-extended
19613         to opN and then zero-extended to result type, set primopN to opN.
19614
19615 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
19616
19617         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
19618         for barrier handlers.
19619
19620 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
19621
19622         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
19623         UNSPEC constants to be in the unspec enumeration, and redefine
19624         all UNSPECV constants to be in the unspecv enumeration, so that
19625         dumps print which unspec/unspec_volatile this is.
19626         * config/rs6000/vector.md (UNSPEC_*): Ditto.
19627         * config/rs6000/paired.md (UNSPEC_*): Ditto.
19628         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
19629         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
19630         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
19631
19632         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
19633         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
19634         UNSPECV_LWSYNC, since these are used as unspec_volatile.
19635         * config/rs6000/sync.md (isync, lwsync): Ditto.
19636
19637 2011-03-21  Richard Guenther  <rguenther@suse.de>
19638
19639         * params.def (lto-min-partition): Fix typo.
19640
19641 2011-03-21  Richard Guenther  <rguenther@suse.de>
19642
19643         PR c/47939
19644         * c-decl.c (grokdeclarator): Drop to the main variant only
19645         for array types.  Drop flag_gen_aux_info check.
19646
19647 2011-03-21  Richard Guenther  <rguenther@suse.de>
19648
19649         PR translation/47911
19650         * params.def (lto-partitions): Fix typo.
19651         (lto-min-partition): Fix wording.
19652
19653 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
19654
19655         * config/rs6000/t-freebsd: Remove duplication from file.
19656
19657 2011-03-21  Richard Guenther  <rguenther@suse.de>
19658
19659         PR middle-end/47661
19660         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
19661
19662 2011-03-21  Richard Guenther  <rguenther@suse.de>
19663
19664         PR lto/48210
19665         * params.def (lto-partitions): Require at least 1 partition.
19666
19667 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19668
19669         * gthr-solaris.h: Remove.
19670         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
19671         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
19672         (LIB_SPEC): Likewise.
19673         * config/sol2.opt (threads): Remove.
19674         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
19675         (sparc*-*-solaris2*): Likewise.
19676         * configure.ac (enable_threads): Enable solaris support.
19677         * configure: Regenerate.
19678         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
19679         * doc/install.texi (Configuration, --enable-threads=lib): Remove
19680         solaris.
19681
19682 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19683
19684         * config.gcc: Obsolete *-*-solaris2.8*.
19685         * doc/install.texi (Specific, *-*-solaris2*): Document it.
19686
19687 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19688
19689         PR bootstrap/48135
19690         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
19691         reference.  Solaris 8 perl works.
19692
19693 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19694
19695         PR bootstrap/48135
19696         * doc/install.texi (Prerequisites): Move jar etc. up.
19697         Explain support library version requirements.
19698
19699 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19700
19701         PR bootstrap/48135
19702         * doc/install.texi (Prerequisites): Move Perl to build
19703         requirements.  Always necessary on Solaris 2 with Sun ld.
19704
19705 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19706
19707         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
19708         binutils 2.21.
19709         (Specific, i?86-*-solaris2.[89]): Likewise.
19710         (Specific, i?86-*-solaris2.10): Likewise.
19711         (Specific, mips-sgi-irix6): Likewise.
19712         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
19713         Update for binutils 2.21.
19714
19715 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19716
19717         * configure.ac (gcc_cv_lto_plugin): Fix typo.
19718         Allow -fuse-linker-plugin for non-default plugin linker.
19719         * configure: Regenerate.
19720
19721 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
19722
19723         PR bootstrap/48167
19724         * gengtype.c (files_rules): Added rule for cp/parser.h.
19725
19726 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
19727
19728         PR target/48213
19729         * config/s390/s390.c (s390_delegitimize_address): Don't call
19730         lowpart_subreg if orig_x has BLKmode.
19731
19732 2011-03-21  Kai Tietz  <ktietz@redhat.com>
19733
19734         PR target/12171
19735         * doc/plugins.texi: Adjust documentation for plugin register_callback.
19736         * tree.h (attribute_spec): Add new member affects_type_identity.
19737         * attribs.c (empty_attribute_table): Adjust attribute_spec
19738         initializers.
19739         * config/alpha/alpha.c: Likewise.
19740         * config/arc/arc.c: Likewise.
19741         * config/arm/arm.c: Likewise.
19742         * config/avr/avr.c: Likewise.
19743         * config/bfin/bfin.c: Likewise.
19744         * config/crx/crx.c: Likewise.
19745         * config/darwin.h: Likewise.
19746         * config/h8300/h8300.c: Likewise.
19747         * config/i386/cygming.h: Likewise.
19748         * config/i386/i386.c: Likewise.
19749         * config/ia64/ia64.c: Likewise.
19750         * config/m32c/m32c.c: Likewise.
19751         * config/m32r/m32r.c: Likewise.
19752         * config/m68hc11/m68hc11.c: Likewise.
19753         * config/m68k/m68k.c: Likewise.
19754         * config/mcore/mcore.c: Likewise.
19755         * config/mep/mep.c: Likewise.
19756         * config/microblaze/microblaze.c: Likewise.
19757         * config/mips/mips.c: Likewise.
19758         * config/rs6000/rs6000.c: Likewise.
19759         * config/rx/rx.c: Likewise.
19760         * config/sh/sh.c: Likewise.
19761         * config/sol2.h: Likewise.
19762         * config/sparc/sparc.c: Likewise.
19763         * config/spu/spu.c: Likewise.
19764         * config/stormy16/stormy16.c: Likewise.
19765         * config/v850/v850.c: Likewise.
19766
19767 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
19768
19769         * simplify-rtx.c (simplify_binary_operation_1): Handle
19770         (xor (and A B) C) case when B and C are both constants.
19771
19772 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
19773
19774         * tree-dfa.c (add_referenced_var): Fix typo in comment.
19775
19776 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
19777
19778         PR bootstrap/48168
19779         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
19780
19781 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
19782
19783         PR rtl-optimization/48156
19784         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
19785         assume df and df_lr are not NULL.
19786
19787 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
19788
19789         PR debug/48023
19790         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
19791         between a call and its CALL_ARG_LOCATION note.
19792
19793 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
19794
19795         PR debug/48178
19796         * config/sh/sh.c (find_barrier): Don't emit a constant pool
19797         between a call and its corresponding CALL_ARG_LOCATION note.
19798
19799 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
19800
19801         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
19802         instead of loop. Use HARD_REGISTER_NUM_P predicate.
19803         * haifa-sched.c (setup_ref_regs): Ditto.
19804         * caller-save.c (add_used_regs_1): Ditto.
19805         * dse.c (look_for_hardregs): Ditto.
19806         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
19807         * sched-rgn.c (check_live_1): Ditto.
19808
19809 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
19810
19811         * c-decl.c (diagnose_mismatched_decls): Give an error for
19812         redefining a typedef with variably modified type.
19813
19814 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
19815
19816         * c-decl.c (grokfield): Don't allow typedefs for structures or
19817         unions with no tag by default.
19818         * doc/extend.texi (Unnamed Fields): Update.
19819
19820 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
19821
19822         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
19823         Rewrite using indirect functions.
19824         (lwp_slwpcb): Ditto.
19825         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
19826         (avx_vinsertf128<mode>): Ditto.
19827
19828 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19829
19830         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
19831         unspecs.
19832
19833 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19834
19835         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
19836         splitting between a call and its corresponding CALL_ARG_LOCATION note.
19837
19838 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
19839
19840         PR rtl-optimization/48170
19841         * gcse.c (hoist_code): Remove bogus asserts.
19842
19843 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
19844
19845         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
19846         computation for prologue/epilogue.
19847
19848 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19849
19850         * Makefile.in (check-consistency): Remove.
19851
19852 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
19853
19854         PR debug/48176
19855         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
19856         arange_table_in_use is 0, but either text_section_used or
19857         cold_text_section_used is true.  Don't call it if
19858         !info_section_emitted.
19859
19860 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
19861
19862         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
19863         FUNCTION_VALUE_REGNO_P): Remove.
19864         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
19865         Remove.
19866         * config/avr/avr.c (avr_ret_register): Make static inline.
19867         (avr_function_value_regno_p): New function.
19868         (avr_libcall_value): Make static. Add 'func' argument.
19869         (avr_function_value): Make static. Rename 'func' argument to
19870         'fn_decl_or_type', forward it to avr_libcall_value. Call
19871         avr_ret_register function instead of RET_REGISTER macro.
19872         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19873
19874 2011-03-18  Jason Merrill  <jason@redhat.com>
19875
19876         PR c++/23372
19877         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
19878
19879 2011-03-18  Richard Guenther  <rguenther@suse.de>
19880
19881         * doc/install.texi (--enable-gold): Remove.
19882         (--with-plugin-ld): Document.
19883         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
19884
19885 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
19886
19887         PR middle-end/47790
19888         * expr.c (optimize_bitfield_assignment_op): Revamp to work
19889         again after expansion changes.
19890
19891 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
19892
19893         * combine.c (try_combine): Do simplification only call of
19894         subst() on i2 even when i1 is present. Update comments.
19895
19896 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
19897
19898         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
19899         and UNSPEC_PCREL_SYMOFF.
19900
19901 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19902
19903         * config/s390/s390.md: Use define_c_enum for the unspec constant
19904         definitions.
19905
19906 2011-03-18  Richard Henderson  <rth@redhat.com>
19907             Jakub Jelinek  <jakub@redhat.com>
19908
19909         PR bootstrap/48161
19910         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
19911         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
19912
19913 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
19914
19915         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
19916         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
19917         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
19918         Change return type to bool.
19919         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
19920
19921 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
19922
19923         PR debug/48163
19924         * var-tracking.c (prepare_call_arguments): If CALL target
19925         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
19926         pc instead of looking it up using cselib_lookup and use
19927         Pmode for it if x has VOIDmode.
19928         * dwarf2out.c (gen_subprogram_die): If also both first and
19929         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
19930
19931         PR debug/48163
19932         * function.c (assign_parms): For data.passed_pointer parms
19933         use MEM of data.entry_parm instead of data.entry_parm itself
19934         as DECL_INCOMING_RTL.
19935         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
19936         also when passed and declared mode is the same, DECL_RTL
19937         is a MEM with pseudo as address and DECL_INCOMING_RTL is
19938         a MEM too.
19939
19940 2011-03-16  Jeff Law  <law@redhat.com>
19941
19942         PR rtl-optimization/37273
19943         * ira-costs.c (scan_one_insn): Detect constants living in memory and
19944         handle them like argument loads from stack slots.  Do not double
19945         count memory for memory constants and argument loads from stack slots.
19946
19947 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
19948
19949         PR debug/48160
19950         * var-tracking.c (prepare_call_arguments): Check SUBREG.
19951
19952 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
19953
19954         PR target/48171
19955         * config/i386/i386.opt: Add Save to -mavx and -mfma.
19956
19957 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
19958
19959         PR bootstrap/48153
19960         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
19961         if dwarf_strict.
19962         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
19963         Clear call_arg_locations and call_arg_loc_last always.
19964
19965         PR middle-end/48152
19966         * var-tracking.c (prepare_call_arguments): If argument needs to be
19967         passed by reference, adjust argtype and mode.
19968
19969 2011-03-17  Richard Guenther  <rguenther@suse.de>
19970
19971         PR middle-end/48134
19972         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
19973         a value make sure to fold the statement.
19974
19975 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
19976
19977         PR target/43872
19978         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
19979         return condition with !cfun->calls_alloca.
19980
19981 2011-03-17  Richard Guenther  <rguenther@suse.de>
19982
19983         PR bootstrap/48148
19984         * lto-cgraph.c (input_overwrite_node): Clear the abstract
19985         origin for decls in other ltrans units.
19986         (input_varpool_node): Likewise.
19987
19988 2011-03-17  Richard Guenther  <rguenther@suse.de>
19989
19990         PR middle-end/48165
19991         * tree-object-size.c (compute_object_offset): Properly return
19992         the offset operand of MEM_REFs as sizetype.
19993
19994 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
19995
19996         PR rtl-optimization/48141
19997         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
19998         * dse.c: Include params.h.
19999         (active_local_stores_len): New variable.
20000         (add_wild_read, dse_step1): Clear it when setting active_local_stores
20001         to NULL.
20002         (record_store, check_mem_read_rtx): Decrease it when removing
20003         from the chain.
20004         (scan_insn): Likewise.  Increase it when adding to chain, if it
20005         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
20006         set active_local_stores to NULL before the addition.
20007         * Makefile.in (dse.o): Depend on $(PARAMS_H).
20008
20009         PR rtl-optimization/48141
20010         * dse.c (record_store): If no positions are needed in an insn
20011         that cannot be deleted, at least unchain it from active_local_stores.
20012
20013 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
20014
20015         PR debug/47510
20016         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
20017         (lookup_type_die_strip_naming_typedef): ... here.
20018         (get_context_die): Use it.
20019         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
20020         the anonymous struct named by the naming typedef.
20021
20022 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
20023
20024         PR target/48154
20025         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
20026         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
20027
20028 2011-03-16  Jeff Law  <law@redhat.com>
20029
20030         * tree-vrp.c (identify_jump_threads): Slightly simplify type
20031         check for operands of conditional.  Allow type to be a pointer.
20032
20033 2011-03-16  Richard Guenther  <rguenther@suse.de>
20034
20035         PR tree-optimization/48149
20036         * fold-const.c (fold_binary_loc): Fold
20037         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
20038
20039 2011-03-16  Richard Guenther  <rguenther@suse.de>
20040
20041         PR tree-optimization/26134
20042         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
20043         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
20044         (non_rewritable_mem_ref_base): Handle complex type component
20045         accesses, constrain offsets for vector and complex extracts
20046         more properly.
20047
20048 2011-03-16  Richard Guenther  <rguenther@suse.de>
20049
20050         PR tree-optimization/48146
20051         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
20052         operands avoiding the need for renaming.
20053
20054 2011-03-16  Richard Guenther  <rguenther@suse.de>
20055
20056         * gimple-fold.c (maybe_fold_reference): Open-code relevant
20057         constant folding.  Move MEM_REF canonicalization first.
20058         Rely on fold_const_aggregate_ref for initializer folding.
20059         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
20060
20061 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
20062
20063         PR middle-end/48136
20064         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
20065         arg0/arg1 or their arguments are always fold converted to matching
20066         types.
20067
20068         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
20069         to nargs.
20070
20071 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20072
20073         PR lto/46944
20074         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
20075         Handle in-tree gold.
20076         (ld_vers): Extract binutils version for gold.
20077         (gcc_cv_ld_hidden): Handle gold here.
20078         (gcc_cv_lto_plugin): Determine level of linker plugin support.
20079         * configure: Regenerate.
20080         * config.in: Regenerate.
20081         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
20082         -fuse-linker-plugin otherwise.
20083         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
20084         (LINK_COMMAND_SPEC): Use it.
20085         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
20086
20087 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
20088
20089         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
20090         * calls.c: Remove debug.h include.
20091         (emit_call_1): Don't call virtual_call_token debug hook.
20092         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
20093         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
20094         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
20095         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
20096         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
20097         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
20098         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
20099         dwarf2out_virtual_call): Remove.
20100         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
20101         copy_call_info and virtual_call hooks.
20102         (dwarf2out_init): Don't initialize vcall_insn_table,
20103         debug_dcall_section and debug_vcall_section.
20104         (prune_unused_types): Don't mark nodes from dcall_table.
20105         (dwarf2out_finish): Don't output dcall or vcall tables.
20106         * final.c (final_scan_insn): Don't call direct_call or
20107         virtual_call debug hooks.
20108         * debug.h (struct gcc_debug_hooks): Remove direct_call,
20109         virtual_call_token, copy_call_info and virtual_call hooks.
20110         (debug_nothing_uid): Remove prototype.
20111         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
20112         copy_call_info and virtual_call hooks.
20113         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
20114         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
20115         * debug.c (do_nothing_debug_hooks): Likewise.
20116         (debug_nothing_uid): Remove.
20117         * doc/invoke.texi (-fenable-icf-debug): Remove.
20118         * common.opt (-fenable-icf-debug): Likewise.
20119
20120         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
20121         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
20122         call's MEM.  Handle functions returning aggregate through a hidden
20123         first pointer.  For virtual calls add clobbered pc to call arguments
20124         chain.
20125         * dwarf2out.c (gen_subprogram_die): Emit
20126         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
20127         can't be emitted.
20128
20129         PR debug/45882
20130         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
20131         * rtl.h (ENTRY_VALUE_EXP): Define.
20132         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
20133         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
20134         * print-rtl.c (print_rtx): Likewise.
20135         * gengtype.c (adjust_field_rtx_def): Likewise.
20136         * var-tracking.c (vt_add_function_parameter): Adjust
20137         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
20138         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
20139         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
20140         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
20141         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
20142
20143         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
20144         Call var_location debug hook even on CALL_INSNs.
20145         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
20146         * rtl.def (ENTRY_VALUE): New.
20147         * dwarf2out.c: Include cfglayout.h.
20148         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
20149         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
20150         (struct call_arg_loc_node): New type.
20151         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
20152         tail_call_site_count): New variables.
20153         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
20154         DW_TAG_GNU_call_site_parameter.
20155         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
20156         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
20157         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
20158         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
20159         and DW_AT_GNU_all_source_call_sites.
20160         (mem_loc_descriptor): Handle ENTRY_VALUE.
20161         (add_src_coords_attributes): Don't add enything if
20162         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
20163         (dwarf2out_abstract_function): Save and clear call_arg_location,
20164         call_site_count and tail_call_site_count around dwarf2out_decl call.
20165         (gen_call_site_die): New function.
20166         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
20167         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
20168         (dwarf2out_function_decl): Clear call_arg_locations,
20169         call_arg_loc_last, set call_site_count and tail_call_site_count
20170         to -1 and free block_map.
20171         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
20172         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
20173         followed by any real instructions.
20174         (dwarf2out_begin_function): Set call_site_count and
20175         tail_call_site_count to 0.
20176         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
20177         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
20178         attempt to force a DIE for it and worst case remove the attribute.
20179         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
20180         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
20181         the decl itself.
20182         * var-tracking.c: Include tm_p.h.
20183         (vt_stack_adjustments): For calls call note_register_arguments.
20184         (argument_reg_set): New variable.
20185         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
20186         ensure the VALUE is resolved.
20187         (call_arguments): New variable.
20188         (prepare_call_arguments): New function.
20189         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
20190         (struct expand_loc_callback_data): Add ignore_cur_loc field.
20191         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
20192         always use the best expression.
20193         (vt_expand_loc): Add ignore_cur_loc argument.
20194         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
20195         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
20196         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
20197         note for all calls.
20198         (vt_add_function_parameter): Use cselib_lookup_from_insn.
20199         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
20200         argument.  Don't call cselib_preserve_only_values and
20201         cselib_reset_table.
20202         (note_register_arguments): New function.
20203         (vt_initialize): Compute argument_reg_set.  Call
20204         vt_add_function_parameters before processing basic blocks instead of
20205         afterwards.  For calls call prepare_call_arguments before calling
20206         cselib_process_insn.
20207         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
20208         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
20209         (var-tracking.o): Depend on $(TM_P_H).
20210         * cfglayout.h (insn_scope): New prototype.
20211         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
20212         * cfglayout.c (insn_scope): No longer static.
20213         * insn-notes.def (CALL_ARG_LOCATION): New.
20214         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
20215         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
20216         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
20217         nothing for DECL_EXTERNAL BLOCK_VARS.
20218
20219 2011-03-16  Alan Modra  <amodra@gmail.com>
20220
20221         PR target/45844
20222         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
20223         create invalid offset address for vsx splat insn.
20224         * config/rs6000/predicates.md (splat_input_operand): New.
20225         * config/rs6000/vsx.md (vsx_splat_*): Use it.
20226
20227 2011-03-15  Xinliang David Li  <davidxl@google.com>
20228
20229         PR c/47837
20230         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
20231         (normalize_preds): New function.
20232         (is_use_properly_guarded): Normalize def predicates.
20233
20234 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
20235
20236         PR target/46788
20237         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
20238         in the output template.
20239
20240 2011-03-15  Richard Guenther  <rguenther@suse.de>
20241
20242         PR middle-end/47650
20243         * tree-pretty-print.c (dump_function_declaration): Properly
20244         dump unprototyped and varargs function types.
20245
20246 2011-03-15  Richard Guenther  <rguenther@suse.de>
20247
20248         PR tree-optimization/13954
20249         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
20250         and friends.
20251
20252 2011-03-15  Richard Guenther  <rguenther@suse.de>
20253
20254         PR tree-optimization/48037
20255         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
20256         selects into BIT_FIELD_REFs.
20257         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
20258         vector select.
20259
20260 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
20261
20262         PR tree-optimization/48129
20263         * builtins.c (fold_builtin_snprintf): Convert to type of
20264         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
20265         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
20266
20267 2011-03-15  Richard Guenther  <rguenther@suse.de>
20268
20269         PR tree-optimization/41490
20270         * tree-ssa-dce.c (propagate_necessity): Handle returns without
20271         value but with VUSE.
20272         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
20273         return statements.
20274         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
20275         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
20276         * tree-tailcall.c (find_tail_calls): Ignore returns.
20277
20278 2011-03-15  Richard Guenther  <rguenther@suse.de>
20279
20280         PR middle-end/48031
20281         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
20282         or variable-indexed array accesses when in gimple form.
20283
20284 2011-03-15  Richard Guenther  <rguenther@suse.de>
20285
20286         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
20287
20288 2011-03-15  Alan Modra  <amodra@gmail.com>
20289
20290         PR target/48032
20291         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
20292         presume symbol_refs without a symbol_ref_decl are suitably
20293         aligned, nor other trees we may see here.  Handle anchor symbols.
20294         (legitimate_constant_pool_address_p): Comment.  Add mode param.
20295         Check cmodel=medium addresses.  Adjust all calls.
20296         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
20297         creating cmodel=medium optimized access to locals.
20298         * config/rs6000/constraints.md (R): Pass QImode to
20299         legitimate_constant_pool_address_p.
20300         * config/rs6000/predicates.md (input_operand): Pass mode to
20301         legitimate_constant_pool_address_p.
20302         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
20303         Update prototype.
20304
20305 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
20306
20307         PR target/48053
20308         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
20309         64-bit constants being loaded into registers other than GPRs such
20310         as loading 0 into a VSX register.
20311
20312 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20313
20314         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
20315
20316 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
20317
20318         PR middle-end/47917
20319         * builtins.c (fold_builtin_snprintf): New function.
20320         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
20321         (fold_builtin_4): Likewise.
20322
20323         PR middle-end/38878
20324         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
20325         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
20326         and C - X == X also strip nops from +/-/p+ operand.
20327         When optimizing -X == C, fold C to arg0's type.
20328
20329         PR debug/47946
20330         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
20331         emit it as add_AT_int instead of add_AT_unsigned.
20332
20333 2011-03-14  Tom Tromey  <tromey@redhat.com>
20334
20335         * unwind-dw2.c: Include sys/sdt.h if it exists.
20336         (_Unwind_DebugHook): Use STAP_PROBE2.
20337         * config.in, configure: Rebuild.
20338         * configure.ac: Check for sys/sdt.h.
20339
20340 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
20341
20342         * config/i386/i386.md (ROUND_FLOOR): New constant.
20343         (ROUND_CEIL): Ditto.
20344         (ROUND_TRUNC): Ditto.
20345         (ROUND_MXCSR): Ditto.
20346         (ROUND_NO_EXC): Ditto.
20347         (rint<mode>2): Use new defines instead of numerical constants.
20348         (floor<mode>2): Ditto.
20349         (ceil<mode>2): Ditto.
20350         (btrunc<mode>2): Ditto.
20351         * config/i386/i386-builtin-types.def: Define ROUND function type
20352         aliases.
20353         * config/i386/i386.c (enum ix86_builtins): Add
20354         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
20355         (struct builtin_description): Add
20356         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
20357         (ix86_expand_sse_round): New static function.
20358         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
20359         function types.
20360         (ix86_builtin_vectorized_function): Handle
20361         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
20362
20363 2011-03-14  Tom Tromey  <tromey@redhat.com>
20364
20365         * c-parser.c (c_parser_asm_string_literal): Clear
20366         warn_overlength_strings.
20367
20368 2011-03-14  Tom Tromey  <tromey@redhat.com>
20369
20370         * c-parser.c (disable_extension_diagnostics): Save
20371         warn_overlength_strings.
20372         (restore_extension_diagnostics): Restore warn_overlength_strings.
20373
20374 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
20375
20376         * BASE-VER: Change to 4.7.0.
20377
20378 2011-03-14  Richard Guenther  <rguenther@suse.de>
20379
20380         PR middle-end/48098
20381         * tree.c (build_vector_from_val): Adjust assert to requirements
20382         and reality.
20383
20384 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
20385
20386         PR bootstrap/48102
20387         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
20388
20389 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
20390
20391         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
20392         terms of target_flags_explicit. Adjust copyright year.
20393
20394         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
20395         * config/rs6000/t-freebsd: New file. Add override for
20396         LIB2FUNCS_EXTRA.
20397
20398 2011-03-13  Chris Demetriou  <cgd@google.com>
20399
20400         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
20401         (-fno-diagnostics-show-option): this, to reflect current default.
20402         (-Werror=): Update text about -fno-diagnostics-show-option.
20403
20404 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
20405
20406         PR target/48053
20407         * config/rs6000/predicates.md (easy_vector_constant_add_self,
20408         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
20409         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
20410         mode is not V2DImode or V2DFmode.
20411         (vspltis_constant): Do not handle V2DImode and V2DFmode.
20412         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
20413         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
20414         registers to 0.
20415         (movdi_internal64): Likewise.
20416
20417 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
20418
20419         PR tree-optimization/47127
20420         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
20421         parameter.
20422         (set_cloog_options): Same.
20423         (scop_to_clast): Same.
20424         (print_clast_stmt): Do not call cloog_state_malloc and
20425         cloog_state_free.
20426         (print_generated_program): Same.
20427         (gloog): Same.
20428         * graphite-clast-to-gimple.h (cloog_state): Declared.
20429         (scop_to_clast): Adjust declaration.
20430         * graphite.c (cloog_state): Defined here.
20431         (graphite_initialize): Call cloog_state_malloc.
20432         (graphite_finalize): Call cloog_state_free.
20433
20434 2011-03-11  Jason Merrill  <jason@redhat.com>
20435
20436         * attribs.c (lookup_attribute_spec): Take const_tree.
20437         * tree.h: Adjust.
20438
20439 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
20440
20441         * config/sparc/sparc.c (sparc_option_override): Use
20442         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
20443
20444 2011-03-11  Richard Guenther  <rguenther@suse.de>
20445
20446         PR tree-optimization/48067
20447         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
20448         multiplication result will be only used once on the target
20449         stmt.
20450
20451 2011-03-11  Richard Guenther  <rguenther@suse.de>
20452
20453         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
20454
20455 2011-03-11  Richard Guenther  <rguenther@suse.de>
20456
20457         PR lto/48073
20458         * tree.c (find_decls_types_r): Do not walk types only reachable
20459         from IDENTIFIER_NODEs.
20460
20461 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
20462
20463         PR middle-end/48044
20464         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
20465         all vnode->force_output nodes as needed.
20466
20467 2011-03-11  Jason Merrill  <jason@redhat.com>
20468
20469         PR c++/48069
20470         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
20471         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
20472
20473 2011-03-11  Martin Jambor  <mjambor@suse.cz>
20474
20475         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
20476         cgraph_node.
20477
20478 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
20479
20480         PR tree-optimization/48063
20481         * ipa-inline.c (cgraph_decide_inlining): Don't try to
20482         inline functions called once if !tree_can_inline_p (node->callers).
20483
20484 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
20485
20486         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
20487         extra_objs.
20488         * config/score/score3.c: Delete.
20489         * config/score/score3.h: Delete.
20490         * config/score/mul-div.S: Delete.
20491         * config/score/sfp-machine.h: Add new file.
20492         * config/score/constraints.md: Add new file.
20493         * config/score/t-score-softfp: Add new file.
20494         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
20495         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
20496         (score7_extra_constraint): Delete.
20497         (score7_option_override): Remove unused code.
20498         * config/score/score.c: Remove score3 and score5 define and code.
20499         * config/score/score.h: Remove score3 and score5 define and code.
20500         * config/score/score.md: Remove score3 template and unusual insn.
20501         * config/score/score.opt: Remove score3 and score5 options.
20502
20503 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
20504
20505         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
20506         when _HPUX_SOURCE is defined.
20507         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
20508
20509 2011-03-10  Jason Merrill  <jason@redhat.com>
20510
20511         PR c++/48029
20512         * stor-layout.c (layout_type): Don't set structural equality
20513         on arrays of incomplete type.
20514         * tree.c (type_hash_eq): Handle comparing them properly.
20515
20516 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
20517
20518         PR debug/48043
20519         * config/s390/s390.c (s390_delegitimize_address): Make sure the
20520         result mode matches original rtl mode.
20521
20522 2011-03-10  Nick Clifton  <nickc@redhat.com>
20523
20524         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
20525         (andsi3, andsi3_flags): Fix timings for three operand alternative.
20526
20527 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
20528
20529         PR rtl-optimization/47866
20530         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
20531         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
20532         if target wasn't scalar.
20533         * function.c (assign_stack_temp_for_type): Assert that neither
20534         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
20535         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
20536         macro.
20537         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
20538
20539 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20540
20541         * config/s390/s390-protos.h (s390_label_align): New prototype.
20542         * config/s390/s390.c (s390_label_align): New function.
20543         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
20544
20545 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
20546
20547         PR target/47755
20548         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
20549         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
20550         (output_vec_const_move): Ditto.
20551
20552 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
20553
20554         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
20555         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
20556         * config/mips/mips.c (mips_preferred_reload_class): Make static.
20557         Change 'rclass' argument and result type to reg_class_t.
20558         (TARGET_PREFERRED_RELOAD_CLASS): Define.
20559
20560 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
20561
20562         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
20563         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
20564         (TARGET_MEMORY_MOVE_COST): Define.
20565         (avr_register_move_cost, avr_memory_move_cost): New Functions.
20566
20567 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
20568
20569         PR debug/47881
20570         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
20571         removed anything.
20572
20573         PR tree-optimization/48022
20574         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
20575         for EQ/NE_EXPR.
20576
20577 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
20578
20579         PR debug/47991
20580         * var-tracking.c (find_use_val): Return NULL for
20581         cui->sets && cui->store_p BLKmode MEMs.
20582
20583 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
20584
20585         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
20586         Remove.
20587         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
20588         xstormy16_print_operand_address): Remove.
20589         * config/stormy16/stormy16.c (xstormy16_print_operand,
20590         xstormy16_print_operand_address): Make static.
20591         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20592
20593 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
20594
20595         PR target/47862
20596         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
20597         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
20598         before definition.
20599
20600 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
20601
20602         PR bootstrap/48000
20603         * cfgloopmanip.c (fix_bb_placements): Return immediately
20604         if FROM is BASE_LOOP's header.
20605
20606 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
20607
20608         * gimplify.c (gimplify_function_tree): Fix building calls
20609         to __builtin_return_address.
20610
20611 2011-03-07  Alan Modra  <amodra@gmail.com>
20612
20613         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
20614         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
20615         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
20616         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
20617         return_mode args.
20618         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
20619         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
20620         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
20621         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
20622         * config/rs6000/rs6000.c
20623         (rs6000_elf_end_indicate_exec_stack): Rename to..
20624         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
20625         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
20626         (rs6000_file_start): ..here.
20627         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
20628         file scope variables.
20629         (call_ABI_of_interest): New function.
20630         (init_cumulative_args): Set above vars when function return value
20631         is a float, vector, or small struct.
20632         (rs6000_function_arg_advance_1): Likewise for function args.
20633         (rs6000_va_start): Set rs6000_passes_float if variable arg function
20634         references float args.
20635
20636 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
20637
20638         * doc/cfg.texi: Remove "See" before @ref.
20639         * doc/invoke.texi: Likewise.
20640
20641 2011-03-05  Jason Merrill  <jason@redhat.com>
20642
20643         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
20644
20645 2011-03-05  Anthony Green  <green@moxielogic.com>
20646
20647         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
20648
20649 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
20650
20651         PR rtl-optimization/47899
20652         * cfgloopmanip.c (fix_bb_placements): Fix first argument
20653         to flow_loop_nested_p when moving the loop upward.
20654
20655 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
20656
20657         PR target/47719
20658         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
20659
20660 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
20661
20662         PR tree-optimization/47967
20663         * ipa-cp.c (build_const_val): Return NULL instead of creating
20664         VIEW_CONVERT_EXPR for mismatching sizes.
20665         (ipcp_create_replace_map): Return NULL if build_const_val failed.
20666         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
20667         give up on versioning.
20668
20669 2011-03-05  Alan Modra  <amodra@gmail.com>
20670
20671         PR target/47986
20672         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
20673         full cmodel medium/large lo_sum + high addresses.
20674
20675 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20676
20677         * config/s390/s390.c (s390_decompose_address): Reject non-literal
20678         pool references in UNSPEC_LTREL_OFFSET.
20679
20680 2011-03-04  Jan Hubicka  <jh@suse.cz>
20681
20682         PR lto/47497
20683         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
20684         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
20685         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
20686         Add node pointers.
20687         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
20688         cgraph_add_thunk): Add node pointers.
20689         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
20690         associated to right node.
20691         (input_node): Update use of cgraph_same_body_alias
20692         and cgraph_add_thunk.
20693
20694 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
20695
20696         * config/i386/i386.opt (mprefer-avx128): New flag.
20697         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
20698         modes when the flag -mprefer-avx128 is on.
20699
20700 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
20701
20702         * dwarf2out.c (compare_loc_operands): Fix address handling.
20703
20704 2011-03-04  Alan Modra  <amodra@gmail.com>
20705
20706         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
20707
20708 2011-03-04  Richard Guenther  <rguenther@suse.de>
20709
20710         PR middle-end/47968
20711         * expmed.c (extract_bit_field_1): Prefer vector modes that
20712         vec_extract patterns can handle.
20713
20714 2011-03-04  Richard Guenther  <rguenther@suse.de>
20715
20716         PR middle-end/47975
20717         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
20718
20719 2011-03-04  Richard Henderson  <rth@redhat.com>
20720
20721         * explow.c (emit_stack_save): Remove 'after' parameter.
20722         (emit_stack_restore): Likewise.
20723         * expr.h: Update to match.
20724         * builtins.c, calls.c, stmt.c: Likewise.
20725         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
20726         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
20727         * function.c (expand_function_end): Insert the emit_stack_save
20728         sequence before parm_birth_insn instead of after.
20729
20730 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
20731
20732         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
20733         (ssse3_pmaddubsw128): Ditto.
20734         (ssse3_pmaddubsw): Ditto.
20735
20736 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
20737
20738         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
20739
20740 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
20741
20742         PR c/47963
20743         * gimplify.c (omp_add_variable): Only call omp_notice_variable
20744         on TYPE_SIZE_UNIT if it is a DECL.
20745
20746         PR debug/47283
20747         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
20748         first operand is not is_gimple_mem_ref_addr, try to fold it.
20749         If the operand still isn't is_gimple_mem_ref_addr, clear
20750         MEM_EXPR on op0.
20751
20752 2011-03-03  Richard Guenther  <rguenther@suse.de>
20753
20754         PR middle-end/47283
20755         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
20756         match comment.
20757         (refs_may_alias_p_1): For release branches return true if
20758         we are confused by our input.
20759
20760 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20761
20762         * config/s390/s390.c (s390_function_value): Rename to ...
20763         (s390_function_and_libcall_value): ... this.
20764         (s390_function_value): New function.
20765         (s390_libcall_value): New function.
20766         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
20767         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
20768         target macro definitions.
20769         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
20770
20771 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
20772
20773         * config/i386/freebsd64.h (CC1_SPEC): Define.
20774         * config/i386/linux64.h (CC1_SPEC): Define.
20775         * config/i386/x86-64.h (CC1_SPEC): Don't define.
20776
20777 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
20778
20779         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
20780         Remove.
20781         * config/stormy16/stormy16.c: Include reload.h.
20782         (xstormy16_memory_move_cost): New function.
20783         (TARGET_MEMORY_MOVE_COST): Define.
20784
20785 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
20786
20787         PR rtl-optimization/47925
20788         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
20789         with side effects.  Remove the more-specific check for volatile asms.
20790
20791 2011-03-02  Alan Modra  <amodra@gmail.com>
20792
20793         PR target/47935
20794         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
20795         toc relative addresses for valid offsets.
20796
20797 2011-03-01  Richard Guenther  <rguenther@suse.de>
20798
20799         PR tree-optimization/47890
20800         * tree-vect-loop.c (get_initial_def_for_induction): Set
20801         related stmt properly.
20802
20803 2011-03-01  Richard Guenther  <rguenther@suse.de>
20804
20805         PR lto/47924
20806         * lto-streamer.c (lto_record_common_node): Also register
20807         the canonical type.
20808
20809 2011-03-01  Richard Guenther  <rguenther@suse.de>
20810
20811         PR lto/46911
20812         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
20813         Do not stream DECL_ABSTRACT_ORIGIN.
20814         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
20815         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
20816         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
20817         Do not stream DECL_ABSTRACT_ORIGIN.
20818         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
20819         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
20820
20821 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
20822
20823         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
20824         FUNCTION_VALUE_REGNO_P): Remove.
20825         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
20826         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
20827         Add 'outgoing' argument.
20828         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
20829         function.
20830         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20831         TARGET_FUNCTION_VALUE_REGNO_P): Define.
20832
20833 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
20834
20835         PR debug/28047
20836         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
20837         (lookup_filename): Likewise.
20838         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
20839
20840 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
20841             Jakub Jelinek  <jakub@redhat.com>
20842
20843         PR middle-end/47893
20844         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
20845         (assign_stack_local_1): Change last argument type to int.
20846         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
20847         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
20848         don't record padding space into frame_space_list nor use those areas.
20849         (assign_stack_local): Adjust caller.
20850         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
20851         of assign_stack_local, pass 0 as last argument.
20852         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
20853         callers.
20854
20855 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
20856
20857         PR debug/47283
20858         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
20859         Use target address_mode and pointer_mode hooks instead of hardcoded
20860         Pmode and ptr_mode.  Handle some simple cases of extending if
20861         POINTERS_EXTEND_UNSIGNED < 0.
20862         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
20863         Call convert_debug_memory_address.
20864         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
20865         convert_debug_memory_address.
20866
20867         PR middle-end/46790
20868         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
20869         * configure: Regenerated.
20870         * config.in: Regenerated.
20871         * varasm.c (default_function_section): Return NULL
20872         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
20873
20874 2011-02-28  Martin Jambor  <mjambor@suse.cz>
20875
20876         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
20877         the description to match the printed values.
20878
20879 2011-02-28  Richard Guenther  <rguenther@suse.de>
20880
20881         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
20882         of the copied scope tree.
20883
20884 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20885
20886         * doc/extend.texi (Function Attributes): Avoid deeply (and
20887         wrongly) nested tables.
20888
20889 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
20890
20891         PR middle-end/47903
20892         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
20893         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
20894         r isn't op0 nor op1.
20895
20896 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
20897
20898         * config/avr/avr.md: Remove magic comment for emacs.
20899
20900 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
20901
20902         PR target/45261
20903         * config/avr/avr.c (avr_option_override): Use error on bad options.
20904         (avr_help): New function.
20905         (TARGET_HELP): Define.
20906
20907 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
20908
20909         PR target/42240
20910         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
20911         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
20912
20913 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
20914
20915         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
20916         (ARM Options): Ditto.
20917         (i386 and x86-64 Options): Ditto.
20918         (RX Options): Ditto.
20919         (SPARC Options): Ditto.
20920
20921 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
20922
20923         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
20924         FreeBSD 6 and later.  Generally use cpu generic.
20925
20926 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
20927
20928         * doc/cpp.texi: Update copyright years.
20929
20930 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
20931
20932         PR target/46898
20933         * config/lm32/lm32.md (ashrsi3): Added needed variable.
20934
20935 2011-02-25  Jon Beniston  <jon@beniston.com>
20936
20937         PR target/46898
20938         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
20939         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
20940         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
20941         (lm32_block_move_inline): Add type cast to remove warning.
20942         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
20943         (gen_int_relational): Move declarations to start of function.
20944
20945 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
20946
20947         PR tree-optimization/45470
20948         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
20949         can throw internally only.
20950         * tree-vect-stmts.c (vectorizable_call): Likewise.
20951
20952 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
20953
20954         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
20955         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
20956         * config/stormy16/stormy16-protos.h
20957         (xstormy16_preferred_reload_class): Remove.
20958         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
20959         static. Change 'rclass' argument and return type to reg_class_t.
20960         (TARGET_PREFERRED_RELOAD_CLASS,
20961         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
20962
20963 2011-02-24  Richard Guenther  <rguenther@suse.de>
20964
20965         * lto-streamer-in.c (input_bb): Do not find referenced vars
20966         in debug statements.
20967
20968 2011-02-23  Jason Merrill  <jason@redhat.com>
20969
20970         * common.opt (fabi-version): Document v5 and v6.
20971
20972 2011-02-23  Richard Guenther  <rguenther@suse.de>
20973
20974         PR tree-optimization/47849
20975         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
20976
20977 2011-02-23  Jie Zhang  <jie@codesourcery.com>
20978
20979         * opts-common.c (decode_cmdline_option): Print empty string
20980         argument as "" in decoded->orig_option_with_args_text.
20981         * gcc.c (execute): Print empty string argument as ""
20982         in the verbose output.
20983         (do_spec_1): Keep empty string argument.
20984
20985 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
20986
20987         * config.gcc: Declare score-* and crx-* obsolete.
20988
20989 2011-02-23  Jie Zhang  <jie@codesourcery.com>
20990
20991         PR rtl-optimization/47763
20992         * web.c (web_main): Ignore naked clobber when replacing register.
20993
20994 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
20995
20996         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
20997         Remove.
20998
20999 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
21000
21001         PR doc/47848
21002         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
21003
21004 2011-02-22  Mike Stump  <mikestump@comcast.net>
21005
21006         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
21007         assembler.
21008         * configure: Regenerate.
21009
21010 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
21011
21012         PR rtl-optimization/46002
21013         * ira-color.c (update_copy_costs): Change class intersection
21014         test to reg_class_contents[] test of 'hard_regno'.
21015
21016 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
21017
21018         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
21019         than Driver option.
21020         * config/hpux11.opt (mt): Likewise.
21021         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
21022         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
21023         * config/vax/elf.opt (mno-asm-pic): Likewise.
21024         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
21025
21026 2011-02-21  Mike Stump  <mikestump@comcast.net>
21027
21028         PR target/47822
21029         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
21030         tree so we can get save the type.
21031         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
21032         for CFString instead of trying to use past the end of the builtins.
21033         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
21034         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
21035         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
21036         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
21037         Rename to darwin_builtin_cfstring.
21038         (darwin_init_cfstring_builtins): Return the built type.
21039
21040 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
21041
21042         PR target/47840
21043         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
21044         (_mm256_insert_epi64): Use _mm_insert_epi64.
21045
21046 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
21047
21048         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21049         * config/stormy16/stormy16-protos.h
21050         (xstormy16_mode_dependent_address_p): Remove.
21051         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
21052         Make static. Change return type to bool. Change argument type to
21053         const_rtx. Remove dead code.
21054         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21055
21056 2011-02-21  Richard Guenther  <rguenther@suse.de>
21057
21058         PR lto/47820
21059         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
21060         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
21061         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
21062         TUs context.
21063         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
21064         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
21065
21066 2011-02-20  Richard Guenther  <rguenther@suse.de>
21067
21068         PR lto/47822
21069         * tree.c (free_lang_data_in_decl): Clean builtins from
21070         the TU decl BLOCK_VARS.
21071
21072 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
21073
21074         PR debug/47620
21075         PR debug/47630
21076         * haifa-sched.c (fix_tick_ready): Skip tick computation
21077         for debug insns.
21078
21079 2011-02-19  Richard Guenther  <rguenther@suse.de>
21080
21081         PR lto/47647
21082         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
21083         Remove lazy BLOCK_VARS streaming.
21084         (lto_input_ts_block_tree_pointers): Likewise.
21085         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
21086
21087 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
21088
21089         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
21090
21091 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
21092
21093         * config/i386/biarch32.h, config/i386/mach.h,
21094         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
21095
21096 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
21097
21098         PR target/47800
21099         * config/i386/i386.md (peephole2 for shift and plus): Use
21100         operands[1] original mode in the first insn.
21101
21102 2011-02-18  Mike Stump  <mikestump@comcast.net>
21103
21104         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
21105
21106 2011-02-18  Jan Hubicka  <jh@suse.cz>
21107
21108         PR middle-end/47788
21109         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
21110         to zero when the function is not inlinable at all.
21111
21112 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21113
21114         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
21115         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
21116         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
21117         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
21118         * config/pa/t-pa64: Likewise.
21119         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
21120
21121 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
21122
21123         PR driver/47787
21124         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
21125
21126 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21127
21128         PR target/47792
21129         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
21130
21131 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
21132
21133         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
21134         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
21135         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
21136         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21137         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
21138         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
21139         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
21140         m32r_load_postinc_p, m32r_store_preinc_predec_p,
21141         m32r_legitimate_address_p): New functions.
21142         * config/m32r/constraints.md (constraint "S"): Don't use
21143         STORE_PREINC_PREDEC_P.
21144         (constraint "U"): Don't use LOAD_POSTINC_P.
21145
21146 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
21147
21148         PR rtl-optimization/46178
21149         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
21150         compute ira_hard_regno_cover_class[].
21151
21152 2011-02-18  Richard Guenther  <rguenther@suse.de>
21153
21154         PR lto/47798
21155         * lto-streamer.h (lto_global_var_decls): Declare.
21156         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
21157         statics for global var processing.
21158
21159 2011-02-18  Richard Guenther  <rguenther@suse.de>
21160
21161         PR tree-optimization/47737
21162         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
21163         edge dominance check.
21164
21165 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
21166
21167         PR debug/47780
21168         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
21169         avoid invalid rtx sharing.
21170
21171 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
21172
21173         * doc/cpp.texi (Obsolete Features): Add background on the
21174         origin of assertions.
21175
21176 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
21177
21178         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
21179         objc_abi == 2.
21180         * config/darwin.c (output_objc_section_asm_op): Added support for
21181         ABI v1 and v2.
21182         (is_objc_metadata): New.
21183         (darwin_objc2_section): New.
21184         (darwin_objc1_section): New.
21185         (machopic_select_section): Added support for ABI v1 and v2.
21186         (darwin_emit_objc_zeroed): New.
21187         (darwin_output_aligned_bss): Detect objc metadata and treat it
21188         appropriately.
21189         (darwin_asm_output_aligned_decl_common): Same.
21190         (darwin_asm_output_aligned_decl_local): Same.
21191         * config/darwin-sections.def: Updated for ABI v1 and v2.
21192         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
21193         compiling Objective-C code for the NeXT runtime, default to using
21194         ABI version 0 for 32-bit, and version 2 for 64-bit.
21195
21196 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
21197
21198         * common.opt (optimize_fast): New Variable.
21199         * opts.c (default_options_optimization): Use opts->x_optimize_fast
21200         instead of local variable ofast.
21201
21202 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
21203
21204         * doc/invoke.texi (fobjc-abi-version): Documented.
21205         (fobjc-nilcheck): Documented.
21206         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
21207         version.
21208
21209 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
21210
21211         PR driver/47390
21212         * common.opt (export-dynamic): New Driver option.
21213         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
21214
21215 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
21216
21217         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
21218
21219 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
21220             Jan Hubicka  <jh@suse.cz>
21221
21222         PR debug/47106
21223         PR debug/47402
21224         * cfgexpand.c (account_used_vars_for_block): Remove.
21225         (estimated_stack_frame_size): Use referenced vars.
21226         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
21227         that were referenced in the original function.  Test src_fn
21228         rather than cfun.  Drop redundant get_var_ann.
21229         (setup_one_parameter): Drop redundant get_var_ann.
21230         (declare_return_variable): Likewise.
21231         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
21232         (copy_arguments_for_versioning): Drop redundant get_var_ann.
21233         * ipa-inline.c (compute_inline_parameters): Do not compute
21234         disregard_inline_limits here.
21235         (compute_inlinable_for_current, pass_inlinable): New.
21236         (pass_inline_parameters): Require PROP_referenced_vars.
21237         * cgraphunit.c (cgraph_process_new_functions): Don't run
21238         compute_inline_parameters explicitly unless function is in SSA form.
21239         (cgraph_analyze_function): Set .disregard_inline_limits.
21240         * tree-sra.c (convert_callers): Compute inliner parameters
21241         only for functions already in SSA form.
21242
21243 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
21244
21245         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
21246         -mlittle-endian-data.
21247
21248 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
21249
21250         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
21251         -mno-fpu, not -fpu and -no-fpu.
21252         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
21253         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
21254
21255 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
21256
21257         PR target/43653
21258         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
21259         input reload with PLUS RTX.
21260
21261 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
21262
21263         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
21264         of InverseVar(MDMX).
21265
21266 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
21267
21268         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
21269         --m4-340.
21270
21271 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
21272
21273         * config/mn10300/mn10300.opt (mno-crt0): New.
21274
21275 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
21276
21277         * config/m68k/uclinux.opt (static-libc): New Driver option.
21278
21279 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
21280
21281         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
21282
21283 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
21284
21285         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
21286         %{muser-extend-enabled}.
21287
21288 2011-02-16  Richard Guenther  <rguenther@suse.de>
21289
21290         PR tree-optimization/47738
21291         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
21292         the TODO from tree_predictive_commoning.
21293
21294 2011-02-15  Jeff Law  <law@redhat.com>
21295
21296         Revert
21297         2011-01-25  Jeff Law  <law@redhat.com>
21298
21299         PR rtl-optimization/37273
21300         * ira-costs.c (scan_one_insn): Detect constants living in memory and
21301         handle them like argument loads from stack slots.  Do not double
21302         count memory for memory constants and argument loads from stack slots.
21303
21304 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
21305
21306         PR target/47755
21307         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
21308         mode for vector constants.  Remove code that checks for TImode.
21309
21310 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
21311
21312         PR debug/47106
21313         PR debug/47402
21314         * cgraph.h (compute_inline_parameters): Return void.
21315         * ipa-inline.c (compute_inline_parameters): Adjust.
21316
21317 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
21318
21319         PR debug/47106
21320         PR debug/47402
21321         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
21322         rather than decl.
21323         * cfgexpand.c (estimated_stack_frame_size): Likewise.
21324         * ipa-inline.c (compute_inline_parameters): Adjust.
21325
21326 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
21327
21328         PR debug/47106
21329         PR debug/47402
21330         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
21331         Adjust all users.  Pass FN to...
21332         * tree-flow-inline.h (first_referenced_var): ... this.  Add
21333         fn argument.
21334         * ipa-struct-reorg.c: Adjust.
21335         * tree-dfa.c: Adjust.
21336         * tree-into-ssa.c: Adjust.
21337         * tree-sra.c: Adjust.
21338         * tree-ssa-alias.c: Adjust.
21339         * tree-ssa-live.c: Adjust.
21340         * tree-ssa.c: Adjust.
21341         * tree-ssanames.c: Adjust.
21342         * tree-tailcall.c: Adjust.
21343
21344 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
21345
21346         PR debug/47106
21347         PR debug/47402
21348         * tree-flow.h (referenced_var_lookup): Add fn parameter.
21349         Adjust all callers.
21350         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
21351         * tree-flow-inline.h: Adjust.
21352         * gimple-pretty-print.c: Adjust.
21353         * tree-into-ssa.c: Adjust.
21354         * tree-ssa.c: Adjust.
21355         * cfgexpand.c: Adjust.
21356
21357 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
21358
21359         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
21360         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21361         (EXTRA_CONSTRAINT): Delete.
21362         * config/iq2000/constraints.md: New file.
21363         * config/iq2000/iq2000.md: Include it.
21364         (define_insn ""): Delete.
21365         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
21366         unsupported constraint letters from patterns.
21367         (call_value, call_value_internal1): Likewise.
21368         (call_value_multiple_internal1): Likewise.
21369
21370 2011-02-15  Nick Clifton  <nickc@redhat.com>
21371
21372         * config/mn10300/mn10300.c: Include tm-constrs.h.
21373         (struct liw_data): New data structure describing an LIW candidate
21374         instruction.
21375         (extract_bundle): Use struct liw_data.  Allow small integer
21376         operands for some instructions.
21377         (check_liw_constraints): Use struct liw_data.  Remove swapped
21378         parameter.  Add comments describing the checks.  Fix bug when
21379         assigning the source of liw1 to the source of liw2.
21380         (liw_candidate): Delete.  Code moved into extract_bundle.
21381         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
21382         before swapping.
21383         * config/mn10300/predicates.md (liw_operand): New predicate.
21384         Allows registers and small integer constants.
21385         * config/mn10300/constraints.md (O): New constraint.  Accetps
21386         integers in the range -8 to +7 inclusive.
21387         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
21388         for moving a small integer into a register.  Give this alternative
21389         LIW attributes.
21390         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
21391         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
21392         using the J,K,L and M constraints,
21393         (liw): Remove SI mode on second operands to allow for HI and QI
21394         mode values.
21395         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
21396         instruction.
21397
21398 2011-02-15  Richard Guenther  <rguenther@suse.de>
21399
21400         PR tree-optimization/47743
21401         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
21402         for a non-type-compatible VN lookup bail out.
21403
21404 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
21405
21406         * config/fr30/constraints.md: New file.
21407         * config/fr30/fr30.md: Include it.
21408         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
21409         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21410         (EXTRA_CONSTRAINT): Delete.
21411
21412 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
21413
21414         * config/frv/constraints.md: New file.
21415         * config/frv/predicates.md: Include it.
21416         * config/frv/frv.c (reg_class_from_letter): Delete.
21417         (frv_option_override): Don't initialize it.
21418         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
21419         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
21420         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
21421         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
21422         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
21423         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21424         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
21425         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
21426         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
21427         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
21428         (REG_CLASS_FROM_CONSTRAINT): Delete.
21429
21430 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
21431
21432         PR middle-end/47581
21433         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
21434         if frame size is 0 in a leaf function.
21435
21436 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21437
21438         PR pch/14940
21439         * config/alpha/host-osf.c: New file.
21440         * config/alpha/x-osf: New file.
21441         * config.host (alpha*-dec-osf*): Use it.
21442
21443 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
21444
21445         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
21446         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
21447         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
21448         (rx_mode_dependent_address_p): ...this. Make static. Change argument
21449         type to const_rtx.
21450         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
21451
21452 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
21453
21454         * config/stormy16/constraints.md: New file.
21455         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
21456         Use satisfies_constraint_Q and satisfies_constraint_R.
21457         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
21458         Delete.
21459         (xstormy16_legitiamte_address_p): Declare.
21460         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
21461         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21462         (EXTRA_CONSTRAINT): Delete.
21463         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
21464         Un-staticize.
21465         (xstormy16_extra_constraint_p): Delete.
21466
21467 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
21468
21469         PR tree-optimization/46494
21470         * loop-unroll.c (split_edge_and_insert): Adjust comment.
21471         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
21472         (pass_rtl_loop_done): Add TODO_verify_flow.
21473         * fwprop.c (pass_rtl_fwprop): Likewise.
21474         * modulo-sched.c (pass_sms): Likewise.
21475         * tree-ssa-dom.c (pass_dominator): Likewise.
21476         * tree-ssa-loop-ch.c (pass_ch): Likewise.
21477         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
21478         (pass_tree_loop_done): Likewise.
21479         * tree-ssa-pre.c (execute_pre): Likewise.
21480         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
21481         * tree-ssa-sink.c (pass_sink_code): Likewise.
21482         * tree-vrp.c (pass_vrp): Likewise.
21483
21484 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
21485
21486         * config/v850/constraints.md: New file.
21487         * config/v850/v850.md: Include it.
21488         * config/v850/predicates.md (reg_or_0_operand): Use
21489         satisfies_constraint_G.
21490         (special_symbolref_operand): Use satisfies_constraint_K.
21491         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
21492         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
21493         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
21494         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
21495         (EXTRA_CONSTRAINT): Delete.
21496         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
21497         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
21498         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
21499
21500 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
21501
21502         PR target/47696
21503         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
21504         description.
21505
21506 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
21507
21508         * config/mcore/constraints.md: New file.
21509         * config/mcore/mcore.md: Include it.
21510         * config/mcore/mcore.c (reg_class_from_letter): Delete.
21511         * config/mcore/mcore.h (reg_class_from_letter): Delete.
21512         (REG_CLASS_FROM_LETTER): Delete.
21513         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
21514         insn_const_int_ok_for_constraint.
21515         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
21516         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
21517         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
21518         (EXTRA_CONSTRAINT): Delete.
21519
21520 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21521
21522         PR ada/41929
21523         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
21524         (IS_SIGHANDLER): Define.
21525         (sparc64_is_sighandler): New function, split off from
21526         sparc64_fallback_frame_state.
21527         (sparc_is_sighandler): New function, split off from
21528         sparc_fallback_frame_state.
21529         (sparc64_fallback_frame_state): Merge with ...
21530         (sparc_fallback_frame_state): ... this into ...
21531         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
21532         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
21533         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
21534         stack instead of hardcoded offsets.
21535
21536 2011-02-14  Andriy Gapon  <avg@freebsd.org>
21537
21538         PR target/45808
21539         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
21540
21541 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21542
21543         * configure: Regenerate.
21544
21545 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
21546
21547         PR driver/45731
21548         * gcc.c (asm_options): Correct spec matching --target-help.
21549
21550 2011-02-12  Martin Jambor  <mjambor@suse.cz>
21551
21552         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
21553         to gimple call error.
21554
21555 2011-02-12  Mike Stump  <mikestump@comcast.net>
21556
21557         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
21558         comments in backslash regions.
21559
21560 2011-02-12  Mike Stump  <mikestump@comcast.net>
21561             Jakub Jelinek  <jakub@redhat.com>
21562             Iain Sandoe  <iains@gcc.gnu.org>
21563
21564         PR target/47324
21565         * dwarf2out.c (output_cfa_loc): When required, apply the
21566         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
21567         (output_loc_sequence): Likewise.
21568         (output_loc_operands_raw): Likewise.
21569         (output_loc_sequence_raw): Likewise.
21570         (output_cfa_loc): Likewise.
21571         (output_loc_list): Suppress register number adjustment when
21572         calling output_loc_sequence()
21573         (output_die): Likewise.
21574
21575 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
21576
21577         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
21578         Remove macros.
21579         * config/xtensa/xtensa.c (xtensa_register_move_cost,
21580         xtensa_memory_move_cost): New functions.
21581         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
21582
21583 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
21584
21585         PR lto/47225
21586         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
21587         in the current directory.
21588         * configure: Rebuilt.
21589
21590 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
21591
21592         * config/darwin.c (darwin_override_options): Add a hunk missed
21593         from the commit of r168571.  Trim comment line lengths and
21594         correct indents of the preceding block.
21595
21596 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
21597
21598         * gcc.c (driver_handle_option): Concatenate the argument to -F with
21599         the switch.
21600
21601 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
21602
21603         * common.opt (nostartfiles): New Driver option.
21604
21605 2011-02-11  Xinliang David Li  <davidxl@google.com>
21606
21607         PR tree-optimization/47707
21608         * tree-chrec.c (convert_affine_scev): Keep type precision.
21609
21610 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
21611
21612         PR tree-optimization/47420
21613         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
21614
21615 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
21616
21617         PR rtl-optimization/47614
21618         * rtl.h (check_for_inc_dec): Declare.
21619         * dse.c (check_for_inc_dec): Externalize...
21620         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
21621         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
21622
21623 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
21624
21625         PR driver/47678
21626         * gcc.c (main): Do not compile inputs if there were errors in
21627         option handling.
21628         * opts-common.c (read_cmdline_option): Check for wrong language
21629         after other error checks.
21630
21631 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
21632
21633         * cgraph.c: Fix comment typos.
21634         * cgraph.h: Likewise.
21635         * cgraphunit.c: Likewise.
21636         * ipa-cp.c: Likewise.
21637         * ipa-inline.c: Likewise.
21638         * ipa-prop.c: Likewise.
21639         * ipa-pure-const.c: Likewise.
21640         * ipa-ref.c: Likewise.
21641         * ipa-reference.c: Likewise.
21642
21643 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
21644
21645         PR debug/47684
21646         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
21647
21648 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21649
21650         PR testsuite/47400
21651         * doc/sourcebuild.texi (Require Support): Document
21652         dg-require-ascii-locale.
21653
21654 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
21655
21656         * doc/lto.texi (Write summary): Fix missing parentheses.
21657
21658 2011-02-10  DJ Delorie  <dj@redhat.com>
21659
21660         * config/m32c/m32c.c (m32c_option_override): Disable
21661         -fcombine-stack-adjustments until flag value tracking and compare
21662         optimization can be rewritten.
21663
21664 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
21665
21666         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
21667         PROCESSOR_POWER7.
21668         (PROCESSOR_DEFAULT64): Likewise.
21669
21670 2011-02-10  Richard Henderson  <rth@redhat.com>
21671
21672         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
21673         change from 2011-02-03.
21674         * config/rx/rx.c (flags_from_code): Likewise.
21675         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
21676         is valid, n/pz otherwise.
21677         (rx_select_cc_mode): Return CCmode if Y is not zero.
21678
21679 2011-02-10  Richard Guenther  <rguenther@suse.de>
21680
21681         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
21682
21683 2011-02-10  Richard Guenther  <rguenther@suse.de>
21684
21685         PR tree-optimization/47677
21686         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
21687
21688 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
21689
21690         PR target/47665
21691         * combine.c (make_compound_operation): Only change shifts into
21692         multiplication for SCALAR_INT_MODE_P.
21693
21694 2011-02-10  Jie Zhang  <jie@codesourcery.com>
21695
21696         PR testsuite/47622
21697         Revert
21698         2011-02-05  Jie Zhang  <jie@codesourcery.com>
21699         PR debug/42631
21700         * web.c (entry_register): Don't clobber the number of the
21701         first uninitialized reference in used[].
21702
21703 2011-02-09  Richard Guenther  <rguenther@suse.de>
21704
21705         PR tree-optimization/47664
21706         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
21707         all edges again.
21708
21709 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
21710
21711         PR target/46481
21712         PR target/47032
21713         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
21714         PROCESSOR_POWER7.
21715         (PROCESSOR_DEFAULT64): Same.
21716         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
21717
21718 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
21719
21720         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
21721
21722 2011-02-09  Martin Jambor  <mjambor@suse.cz>
21723
21724         PR middle-end/45505
21725         * tree-sra.c (struct access): New flags grp_scalar_read and
21726         grp_scalar_write.  Changed description of assignment read and write
21727         flags.
21728         (dump_access): Dump new flags, reorder all of them.
21729         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
21730         to detect multiple scalar reads.
21731         (analyze_access_subtree): Use the new scalar read write flags instead
21732         of the old flags.  Adjusted comments.
21733
21734 2011-02-08  DJ Delorie  <dj@redhat.com>
21735
21736         PR target/47548
21737         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
21738         patterns.
21739
21740 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
21741
21742         * config/m68k/uclinux.opt: New.
21743         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
21744
21745 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
21746
21747         * config/cris/elf.opt (sim): New Driver option.
21748
21749 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
21750
21751         * config/xtensa/elf.opt: New.
21752         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
21753
21754 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
21755
21756         * config/vax/elf.opt: New.
21757         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
21758
21759 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
21760
21761         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
21762
21763 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
21764
21765         * config/gnu-user.opt: New.
21766         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
21767         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
21768         *-*-uclinux*): Use gnu-user.opt.
21769
21770 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
21771
21772         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
21773         * config/i386/gnu.h (CPP_SPEC): Likewise.
21774
21775 2011-02-08  Ian Lance Taylor  <iant@google.com>
21776
21777         * common.opt (fcx-limited-range): Add SetByCombined flag.
21778         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
21779         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
21780         (fassociative-math, freciprocal-math): Likewise.
21781         (funsafe-math-optimizations): Likewise.
21782         * opth-gen.awk: Handle SetByCombined.
21783         * optc-gen.awk: Likewise.
21784         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
21785         (set_unsafe_math_optimizations_flags): Likewise.
21786         * doc/options.texi (Option properties): Document SetByCombined.
21787
21788 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
21789
21790         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
21791         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
21792         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
21793         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
21794         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
21795
21796 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
21797
21798         PR tree-optimization/46834
21799         PR tree-optimization/46994
21800         PR tree-optimization/46995
21801         * graphite-sese-to-poly.c (used_outside_reduction): New.
21802         (detect_commutative_reduction): Call used_outside_reduction.
21803         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
21804         translate_scalar_reduction_to_array only when at least one
21805         loop-phi/close-phi tuple has been detected.
21806
21807 2011-02-08  Richard Guenther  <rguenther@suse.de>
21808
21809         PR middle-end/47639
21810         * tree-vect-generic.c (expand_vector_operations_1): Update
21811         stmts here ...
21812         (expand_vector_operations): ... not here.  Cleanup EH info
21813         and the CFG if required.
21814
21815 2011-02-08  Richard Guenther  <rguenther@suse.de>
21816
21817         PR tree-optimization/47641
21818         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
21819         require type compatibility.
21820
21821 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21822
21823         * gimple-low.c (lower_function_body): Don't remove the location of
21824         the return statement here.
21825         (lower_gimple_return): Do it here instead but only if the return
21826         statement is actually used twice.
21827
21828 2011-02-08  Richard Guenther  <rguenther@suse.de>
21829
21830         PR tree-optimization/47632
21831         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
21832         unused up_to_stmt parameter, return whether cfg-cleanup is
21833         necessary, remove EH info properly.
21834         (forward_propagate_into_gimple_cond): Adjust caller.
21835         (forward_propagate_into_cond): Likewise.
21836         (forward_propagate_comparison): Likewise.
21837         (tree_ssa_forward_propagate_single_use_vars): Make
21838         forward_propagate_comparison case similar to the two others.
21839
21840 2011-02-08  Nick Clifton  <nickc@redhat.com>
21841
21842         * config/mn10300/mn10300.opt (mliw): New command line option.
21843         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
21844         (liw_bundling): New automaton.
21845         (liw): New attribute.
21846         (liw_op): New attribute.
21847         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
21848         (movsi_internal): Add LIW attributes.
21849         (andsi3): Likewise.
21850         (iorsi3): Likewise.
21851         (xorsi3): Likewise.
21852         (addsi3): Separate register and immediate alternatives.
21853         Add LIW attributes.
21854         (subsi3): Likewise.
21855         (cmpsi): Likewise.
21856         (aslsi3): Likewise.
21857         (lshrsi3): Likewise.
21858         (ashrsi3): Likewise.
21859         (liw): New pattern.
21860         * config/mn10300/mn10300.c (liw_op_names): New
21861         (mn10300_print_operand): Handle 'W' operand descriptor.
21862         (extract_bundle): New function.
21863         (check_liw_constraints): New function.
21864         (liw_candidate): New function.
21865         (mn10300_bundle_liw): New function.
21866         (mn10300_reorg): New function.
21867         (TARGET_MACHINE_DEPENDENT_REORG): Define.
21868         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
21869         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
21870         __LIW__ or __NO_LIW__.
21871         * doc/invoke.texi: Describe the -mliw command line option.
21872
21873 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
21874
21875         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
21876         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
21877         pthread_mutex_unlock): Remove.
21878         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
21879         * config/pa/t-pa64: Likewise.
21880         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
21881         shared libc if not linking against libpthread.
21882         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
21883
21884 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
21885
21886         PR target/47558
21887         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
21888         on 10.6 and later to ensure that we always use the unwinder from
21889         the system.  Only add -no_compact_unwind when tarteting darwin
21890         10.6 or later.
21891
21892 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
21893
21894         PR target/46997
21895         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
21896         (vec_interleave_lowv2sf): Ditto.
21897         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
21898         (vec_extract_oddv2sf): Ditto.
21899
21900 2011-02-07  Mike Stump  <mikestump@comcast.net>
21901
21902         PR target/42333
21903         Add __ieee_divdc3 entry point.
21904         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
21905         entry point.
21906         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
21907         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
21908         * config/darwin.c (darwin_rename_builtins): Add.
21909         * config/darwin-protos.h (darwin_rename_builtins): Add.
21910
21911 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
21912
21913         PR target/47636
21914         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
21915         for the condition.
21916
21917 2011-02-07  Mike Stump  <mikestump@comcast.net>
21918
21919         * config/darwin.opt (mmacosx-version-min): Update default OS version.
21920
21921 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
21922
21923         PR target/47534
21924         * config/avr/libgcc.S (exit): Move .endfunc
21925
21926 2011-02-07  Richard Guenther  <rguenther@suse.de>
21927
21928         PR tree-optimization/47615
21929         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
21930         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
21931         (run_scc_vn): Initialize it.
21932         (visit_reference_op_load): Use it.
21933         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
21934
21935 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
21936
21937         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
21938         DImode trapping arithmetic libfuncs.
21939
21940 2011-02-07  Richard Guenther  <rguenther@suse.de>
21941
21942         PR tree-optimization/47621
21943         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
21944         two duplicates ...
21945         (execute_update_addresses_taken): ... here.  Make it more
21946         conservative in what we accept.
21947
21948 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
21949
21950         * config/sparc/freebsd.h (ASM_SPEC): Define.
21951         * config/sparc/vxworks.h (ASM_SPEC): Define.
21952
21953 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
21954
21955         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
21956
21957 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
21958
21959         * doc/invoke.texi: Remove reference to compiler internals from
21960         user documentation.
21961
21962         * reg-notes.def: Remove REG_VALUE_PROFILE.
21963         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
21964
21965 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
21966
21967         PR middle-end/47610
21968         * varasm.c (default_section_type_flags): If decl is NULL,
21969         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
21970
21971 2011-02-05  Jie Zhang  <jie@codesourcery.com>
21972
21973         PR debug/42631
21974         * web.c (entry_register): Don't clobber the number of the
21975         first uninitialized reference in used[].
21976
21977 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
21978
21979         PR tree-optimization/46194
21980         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
21981         (build_classic_dist_vector_1): Do not represent classic distance
21982         vectors when the access functions are variating in different loops.
21983
21984 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
21985
21986         * config/mips/iris6.opt: New.
21987         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
21988
21989 2011-02-04  Richard Henderson  <rth@redhat.com>
21990             Steve Ellcey  <sje@cup.hp.com>
21991
21992         PR target/46997
21993         * config/ia64/predicates.md (mux1_brcst_element): New.
21994         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
21995         * config/ia64/ia64.c (ia64_unpack_assemble): New.
21996         (ia64_unpack_sign): New.
21997         (ia64_expand_unpack): Rewrite using new routines.
21998         (ia64_expand_widen_sum): Ditto.
21999         (ia64_expand_dot_prod_v8qi): Ditto.
22000         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
22001         routines, add endian check.
22002         (pmpy2_even): Rename from pmpy2_r, add endian check.
22003         (pmpy2_odd): Rename from pmpy2_l, add endian check.
22004         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
22005         (vec_widen_smult_hi_v4hi): Ditto.
22006         (vec_widen_umult_lo_v4hi): Ditto.
22007         (vec_widen_umult_hi_v4hi): Ditto.
22008         (mulv2si3): Change endian checks.
22009         (sdot_prodv4hi): Rewrite with new calls.
22010         (udot_prodv4hi): New.
22011         (vec_pack_ssat_v4hi): Add endian check.
22012         (vec_pack_usat_v4hi): Ditto.
22013         (vec_pack_ssat_v2si): Ditto.
22014         (max1_even): Rename from max1_r, add endian check.
22015         (max1_odd): Rename from max1_l, add endian check.
22016         (*mux1_rev): Format change.
22017         (*mux1_mix): Ditto.
22018         (*mux1_shuf): Ditto.
22019         (*mux1_alt): Ditto.
22020         (*mux1_brcst_v8qi): Use new predicate.
22021         (vec_extract_evenv8qi): Remove endian check.
22022         (vec_extract_oddv8qi): Ditto.
22023         (vec_interleave_lowv4hi): Format change.
22024         (vec_interleave_highv4hi): Ditto.
22025         (mix2_even): Rename from mix2_r, add endian check.
22026         (mix2_odd): Rename from mux2_l, add endian check.
22027         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
22028         (vec_extract_evenodd_helper): Format change.
22029         (vec_extract_evenv4hi): Remove endian check.
22030         (vec_extract_oddv4hi): Remove endian check.
22031         (vec_interleave_lowv2si): Format change.
22032         (vec_interleave_highv2si): Format change.
22033         (vec_initv2si): Remove endian check.
22034         (vecinit_v2si): Add endian check.
22035         (reduc_splus_v2sf): Add endian check.
22036         (reduc_smax_v2sf): Ditto.
22037         (reduc_smin_v2sf): Ditto.
22038         (vec_initv2sf): Remove endian check.
22039         (fpack): Add endian check.
22040         (fswap): Add endian check.
22041         (vec_interleave_highv2sf): Add endian check.
22042         (vec_interleave_lowv2sf): Add endian check.
22043         (fmix_lr): Add endian check.
22044         (vec_setv2sf): Format change.
22045         (*vec_extractv2sf_0_be): Use shift to extract operand.
22046         (*vec_extractv2sf_1_be): New.
22047         (vec_pack_trunc_v4hi): Add endian check.
22048         (vec_pack_trunc_v2si): Format change.
22049
22050 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
22051
22052         PR inline-asm/23200
22053         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
22054         do bb, locus and block comparison and disallow loads if it is not set.
22055         (stmt_is_replaceable_p): New function.
22056         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
22057         callers.
22058         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
22059         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
22060         SSA_NAME_DEF_STMT.
22061         * tree-flow.h (stmt_is_replaceable_p): New prototype.
22062
22063 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
22064
22065         * config/rs6000/xilinx.opt: New.
22066         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
22067
22068 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
22069
22070         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
22071
22072 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
22073
22074         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
22075         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
22076         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
22077         secondary_reload_info, xtensa_secondary_reload): Remove.
22078         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
22079         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
22080         (xtensa_preferred_reload_class): Make static. Change return and
22081         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
22082         Use CONST_DOUBLE_P predicate.
22083         (xtensa_preferred_output_reload_class): New function.
22084         (xtensa_secondary_reload): Make static.
22085
22086 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
22087
22088         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
22089         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
22090         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
22091
22092 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
22093
22094         PR middle-end/31490
22095         * output.h (SECTION_RELRO): Define.
22096         (SECTION_MACH_DEP): Adjust.
22097         (get_variable_section): New prototype.
22098         * varpool.c (varpool_finalize_named_section_flags): New function.
22099         (varpool_assemble_pending_decls): Call it.
22100         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
22101         * cgraphunit.c (cgraph_output_in_order): Call
22102         varpool_finalize_named_section_flags.
22103         * varasm.c (get_section): Allow section flags conflicts between
22104         relro and read-only sections if the section hasn't been declared yet.
22105         Set SECTION_OVERRIDE after diagnosing section type conflict.
22106         (get_variable_section): No longer static.
22107         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
22108         readonly sections that need relocations.
22109         (decl_readonly_section_1): New function.
22110         (decl_readonly_section): Use it.
22111
22112         Revert:
22113         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
22114                     Steve Ellcey  <sje@cup.hp.com>
22115
22116         PR middle-end/31490
22117         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
22118         if section attribute used.
22119
22120 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
22121
22122         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
22123         * config/darwin.c (SECTION_NO_ANCHOR): Define.
22124         (darwin_init_sections): Remove assertion.
22125
22126 2011-02-03  Nick Clifton  <nickc@redhat.com>
22127
22128         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
22129         lt and ge.
22130         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
22131         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
22132         instead of "n" and "pz".
22133         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
22134         CC_FLAG_S.
22135
22136 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
22137
22138         PR target/47312
22139         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
22140         fma, expand FMA_EXPR as fma{,f,l} call.
22141
22142         PR lto/47274
22143         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
22144         copy them into a unsigned char variable and pass address of it to
22145         lto_output_data_stream.
22146
22147         PR target/47564
22148         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
22149         around backend_init_target and lang_dependent_init_target calls.
22150         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
22151         (verify_cgraph_node): Don't call set_cfun here.  Use
22152         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
22153         Set error_found for incorrectly represented calls to thunks.
22154
22155 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
22156
22157         PR debug/43092
22158         PR rtl-optimization/43494
22159         * rtl.h (for_each_inc_dec_fn): New type.
22160         (for_each_inc_dec): Declare.
22161         * rtlanal.c (struct for_each_inc_dec_ops): New type.
22162         (for_each_inc_dec_find_inc_dec): New fn.
22163         (for_each_inc_dec_find_mem): New fn.
22164         (for_each_inc_dec): New fn.
22165         * dse.c (struct insn_size): Remove.
22166         (replace_inc_dec, replace_inc_dec_mem): Remove.
22167         (emit_inc_dec_insn_before): New fn.
22168         (check_for_inc_dec): Use it, along with for_each_inc_dec.
22169         (canon_address): Pass mem modes to cselib_lookup.
22170         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
22171         (cselib_lookup_from_insn): Likewise.
22172         (cselib_subst_to_values): Likewise.
22173         * cselib.c (find_slot_memmode): New var.
22174         (cselib_find_slot): New fn.  Use it instead of
22175         htab_find_slot_with_hash everywhere.
22176         (entry_and_rtx_equal_p): Use find_slot_memmode.
22177         (autoinc_split): New fn.
22178         (rtx_equal_for_cselib_p): Rename and implement in terms of...
22179         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
22180         Deal with autoinc.  Special-case recursion into MEMs.
22181         (cselib_hash_rtx): Likewise.
22182         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
22183         address and MEM modes.
22184         (cselib_subst_to_values): Add memmode, pass it on.
22185         Deal with autoinc.
22186         (cselib_lookup): Add memmode argument, pass it on.
22187         (cselib_lookup_from_insn): Add memmode.
22188         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
22189         (struct cselib_record_autoinc_data): New.
22190         (cselib_record_autoinc_cb): New fn.
22191         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
22192         mode to cselib_lookup.  Reset autoinced REGs here instead of...
22193         (cselib_process_insn): ... here.
22194         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
22195         to cselib_lookup.
22196         (add_uses): Likewise, also to cselib_subst_to_values.
22197         (add_stores): Likewise.
22198         * sched-deps.c (add_insn_mem_dependence): Pass mode to
22199         cselib_subst_to_values.
22200         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
22201         * gcse.c (do_local_cprop): Adjusted.
22202         * postreload.c (reload_cse_simplify_set): Adjusted.
22203         (reload_cse_simplify_operands): Adjusted.
22204         * sel-sched-dump (debug_mem_addr_value): Pass mode.
22205
22206 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
22207
22208         PR tree-optimization/45122
22209         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
22210         unsafe assumptions when there's more than one loop exit.
22211
22212 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
22213
22214         PR target/47272
22215         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
22216         Document using vector double with the load/store builtins, and
22217         that the load/store builtins always use Altivec instructions.
22218
22219         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
22220         to use altivec memory instructions, even on VSX.
22221         (vector_altivec_store_<mode>): Ditto.
22222
22223         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
22224         function.
22225
22226         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
22227         V2DF, V2DI support to load/store overloaded builtins.
22228
22229         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
22230         altivec load/store builtins for V2DF/V2DI types.
22231
22232         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
22233         set avoid indexed addresses on power6 if -maltivec.
22234         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
22235         vector_altivec_load/vector_altivec_store builtins.
22236         (altivec_expand_st_builtin): Ditto.
22237         (altivec_expand_builtin): Add VSX memory builtins.
22238         (rs6000_init_builtins): Add V2DI types to internal types.
22239         (altivec_init_builtins): Add support for V2DF/V2DI altivec
22240         load/store builtins.
22241         (rs6000_address_for_altivec): Insure memory address is appropriate
22242         for Altivec.
22243
22244         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
22245         vec_vsx_ld and vec_vsx_st.
22246         (vsx_store_<mode>): Ditto.
22247
22248         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
22249         variables to hold long long types for VSX vector memory builtins.
22250         (RS6000_BTI_unsigned_long_long): Ditto.
22251         (long_long_integer_type_internal_node): Ditti.
22252         (long_long_unsigned_type_internal_node): Ditti.
22253
22254         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
22255         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
22256         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
22257
22258         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
22259         short cuts.
22260         (vec_vsx_st): Ditto.
22261
22262 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
22263
22264         * config/pa/pa-hpux10.opt: New.
22265         * config/hpux11.opt (pthread): New Driver option.
22266         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
22267         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
22268
22269 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
22270
22271         * config/ia64/vms.opt: New.
22272         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
22273
22274 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
22275
22276         PR target/47580
22277         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
22278         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
22279         generator functions.
22280         (vsx_floatuns<VSi><mode>2): Ditto.
22281         (vsx_fix_trunc<mode><VSi>2): Ditto.
22282         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
22283
22284 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
22285
22286         * config/i386/djgpp.opt (posix): New Driver option.
22287
22288 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
22289
22290         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
22291         Move to the unsupported targets list.
22292
22293 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
22294
22295         PR rtl-optimization/47525
22296         * df-scan.c: Update copyright years.
22297         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
22298         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
22299
22300 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22301
22302         * config/i386/sysv4.h (TARGET_VERSION): Remove.
22303         (SUBTARGET_RETURN_IN_MEMORY): Remove.
22304         (ASM_OUTPUT_ASCII): Remove.
22305         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
22306
22307 2011-02-02  Jeff Law  <law@redhat.com>
22308
22309         PR middle-end/47543
22310         * reload.c (find_reloads_address): Handle reg+d address where both
22311         components are invalid by reloading the entire address.
22312
22313 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
22314             Richard Guenther  <rguenther@suse.de>
22315
22316         PR tree-optimization/40979
22317         PR bootstrap/47044
22318         * passes.c (init_optimization_passes): After LIM call copy_prop
22319         and DCE to clean up.
22320         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
22321
22322 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
22323
22324         PR tree-optimization/47576
22325         PR tree-optimization/47555
22326         * doc/invoke.texi (scev-max-expr-complexity): Documented.
22327         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
22328         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
22329         * tree-scalar-evolution.c (follow_ssa_edge): Use
22330         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
22331
22332 2011-02-02  Richard Guenther  <rguenther@suse.de>
22333
22334         PR tree-optimization/47566
22335         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
22336
22337 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
22338
22339         PR debug/47106
22340         PR debug/47402
22341         * tree-inline.c (declare_return_variable): Remove unused caller
22342         variable.
22343
22344         PR debug/47106
22345         PR debug/47402
22346         * tree-flow-inline.h (clear_is_used, is_used_p): New.
22347         * cfgexpand.c (account_used_vars_for_block): Use them.
22348         * tree-nrv.c (tree_nrv): Likewise.
22349         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
22350         (dump_scope_block): Likewise.
22351         (remove_unused_locals): Likewise.
22352
22353         PR debug/47106
22354         PR debug/47402
22355         * tree-inline.c (declare_return_variable): Add result decl to
22356         local decls only once.
22357         * gimple-low.c (record_vars_into): Mark newly-created variables
22358         as referenced.
22359
22360 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
22361
22362         PR debug/47498
22363         PR debug/47501
22364         PR debug/45136
22365         PR debug/45130
22366         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
22367         debug insns.
22368         (no_real_insns_p, schedule_block, set_priorities): Drop special
22369         treatment of boundary debug insns.
22370         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
22371         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
22372         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
22373         (BOUNDARY_DEBUG_INSN_P): Likewise.
22374         (SCHEDULE_DEBUG_INSN_P): Likewise.
22375         * sched-rgn.c (init_ready_list): Drop special treatment of
22376         boundary debug insns.
22377         * final.c (rest_of_clean_state): Clear notes' BB.
22378
22379 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
22380
22381         * config/openbsd.opt (assert=): New Driver option.
22382
22383 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
22384
22385         * config/i386/nto.opt: New.
22386         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
22387
22388 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
22389
22390         * config/i386/netware.opt: New.
22391         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
22392
22393 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
22394
22395         * config/interix.opt (posix): New Driver option.
22396
22397 2011-02-01  DJ Delorie  <dj@redhat.com>
22398
22399         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
22400
22401         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
22402         class for A0/A1.
22403
22404 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
22405
22406         PR tree-optimization/47561
22407         * toplev.c (process_options): Print the Graphite flags.  Add
22408         flag_loop_flatten to the list of options requiring Graphite.
22409
22410 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
22411
22412         * config/i386/cygming.opt (posix): New Driver option.
22413
22414 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
22415
22416         * config/arm/vxworks.opt: New.
22417         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
22418
22419 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
22420
22421         * config/alpha/elf.opt: New.
22422         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
22423         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
22424
22425 2011-02-01  Richard Guenther  <rguenther@suse.de>
22426
22427         PR tree-optimization/47559
22428         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
22429         store-motion on references that can throw.
22430
22431 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
22432
22433         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
22434         * tree-pass.h (TDF_CSELIB): New macro.
22435         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
22436         cselib_lookup): Check for it rather than for TDF_DETAILS.
22437
22438 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
22439
22440         PR driver/47547
22441         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
22442         is HOST_BIT_BUCKET.
22443
22444         * opts.c (finish_options): Don't add x_aux_base_name if it is
22445         HOST_BIT_BUCKET.
22446
22447 2011-02-01  Richard Guenther  <rguenther@suse.de>
22448
22449         PR tree-optimization/47555
22450         Revert
22451         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
22452
22453         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
22454
22455 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
22456
22457         PR gcc/46692
22458         * config/lm32/t-lm32: Add multilib for all CPU options.
22459
22460 2011-02-01  Richard Guenther  <rguenther@suse.de>
22461
22462         PR tree-optimization/47541
22463         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
22464         sure to have a field at offset zero.
22465
22466 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
22467
22468         * config/arc/arc.opt (EB, EL): New Driver options.
22469
22470 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
22471
22472         * config/alpha/osf5.opt: New.
22473         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
22474
22475 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
22476
22477         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
22478
22479 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
22480
22481         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
22482         -floop-interchange.
22483         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
22484         is an alias of -floop-interchange and that it requires the
22485         Graphite infrastructure.
22486         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
22487         flag_loop_interchange based on the value of flag_tree_loop_linear.
22488
22489 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
22490             Richard Guenther  <rguenther@suse.de>
22491
22492         PR tree-optimization/47538
22493         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
22494         type instead of r1type, except for comparisons.  For right
22495         shifts and comparisons punt if there are mismatches in
22496         sizetype vs. non-sizetype types.
22497
22498 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22499
22500         * doc/sourcebuild.texi (Effective-Target Keywords): Document
22501         avx_runtime.
22502
22503 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22504
22505         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
22506         version number.
22507         * configure: Regenerate.
22508
22509 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22510
22511         * configure.ac (gcc_cv_ld_static_option): Define.
22512         (gcc_cv_ld_dynamic_option): Define.
22513         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
22514         instead.
22515         (HAVE_LD_STATIC_DYNAMIC): Update message.
22516         (LD_STATIC_OPTION): Define.
22517         (LD_DYNAMIC_OPTION): Define.
22518         * configure: Regenerate.
22519         * config.in: Regenerate.
22520         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
22521         HAVE_LD_STATIC_DYNAMIC]: Use them.
22522
22523 2011-01-31  Nick Clifton  <nickc@redhat.com>
22524
22525         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
22526         registers inside interrupt handlers if the handler is not a leaf
22527         function.
22528
22529 2011-01-31  Nick Clifton  <nickc@redhat.com>
22530
22531         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
22532         reg_renumber returning an INVALID_REGNUM.
22533
22534 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
22535
22536         PR libgcj/44341
22537         * doc/install.texi: Document host options discarded when cross
22538         configuring target libraries.
22539
22540 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
22541
22542         Reverted:
22543         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
22544         PR debug/45136
22545         PR debug/45130
22546         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
22547         debug insns.
22548         (no_real_insns_p, schedule_block, set_priorities): Drop special
22549         treatment of boundary debug insns.
22550         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
22551         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
22552         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
22553         (BOUNDARY_DEBUG_INSN_P): Likewise.
22554         (SCHEDULE_DEBUG_INSN_P): Likewise.
22555         * sched-rgn.c (init_ready_list): Drop special treatment of
22556         boundary debug insns.
22557         * final.c (rest_of_clean-state): Clear notes' BB.
22558
22559 2011-01-31  Alan Modra  <amodra@gmail.com>
22560
22561         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
22562         toc relative expressions as we do in print_operand_address.
22563
22564 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
22565
22566         * doc/extend.texi: Follow spelling conventions.
22567         * doc/invoke.texi: Fix a typo.
22568
22569 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
22570
22571         * config/hpux11.opt: New.
22572         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
22573         ia64*-*-hpux*): Use hpux11.opt.
22574
22575 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
22576
22577         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
22578         to tmake_file.
22579
22580 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
22581
22582         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
22583         support sites.
22584
22585 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
22586
22587         * doc/install.texi (Binaries): Remove outdated reference for
22588         Motorola 68HC11/68HC12 downloads.
22589
22590 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
22591
22592         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
22593         Drepper's paper.
22594
22595 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
22596
22597         PR bootstrap/47147
22598         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
22599         used by NetBSD.
22600
22601 2011-01-28  Ahmad Sharif  <asharif@google.com>
22602
22603         * value-prof.c (check_counter): Corrected error message.
22604
22605 2011-01-29  Jie Zhang  <jie@codesourcery.com>
22606
22607         * config/arm/arm.c (arm_legitimize_reload_address): New.
22608         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
22609         arm_legitimize_reload_address.
22610         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
22611
22612 2011-01-28  Ian Lance Taylor  <iant@google.com>
22613
22614         * godump.c (go_define): Ignore macros whose definitions include
22615         two adjacent operands.
22616
22617 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
22618
22619         PR target/42894
22620         * varasm.c (force_const_mem): Store copy of x in desc->constant
22621         instead of x itself.
22622         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
22623         itself into REG_EQUAL note.
22624
22625 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
22626
22627         * config/freebsd.opt (posix, rdynamic): New Driver options.
22628
22629 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22630
22631         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
22632         -Bstatic/-Bdynamic.
22633         * configure: Regenerate.
22634
22635 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
22636
22637         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
22638         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
22639
22640 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
22641
22642         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
22643         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
22644         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
22645         (s390_preferred_reload_class): Make static. Change return and
22646         'rclass' argument type to reg_class_t.
22647
22648 2011-01-27  Jan Hubicka  <jh@suse.cz>
22649
22650         PR middle-end/46949
22651         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
22652         (process_function_and_variable_attributes): Check defined weakrefs.
22653
22654 2011-01-27  Martin Jambor  <mjambor@suse.cz>
22655
22656         PR tree-optimization/47228
22657         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
22658         build_ref_for_offset.
22659
22660 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
22661
22662         * config/spu/spu-elf.h (ASM_SPEC): Remove.
22663
22664 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
22665
22666         PR rtl-optimization/46856
22667         * postreload.c (reload_combine_recognize_const_pattern): Do not
22668         separate cc0 setter and user on cc0 targets.
22669
22670 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
22671
22672         PR c/43082
22673         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
22674         passed a VOID_TYPE expression, immediately emit an error and
22675         return error_mark_node.
22676
22677 2011-01-26  Jeff Law  <law@redhat.com>
22678
22679         PR rtl-optimization/47464
22680         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
22681         rather than may_trap_p as needed.
22682
22683 2011-01-26  DJ Delorie  <dj@redhat.com>
22684
22685         PR rtl-optimization/46878
22686         * combine.c (insn_a_feeds_b): Check for the implicit cc0
22687         setter/user dependency as well.
22688
22689 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
22690
22691         PR rtl-optimization/44469
22692         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
22693         after removing trivially dead basic blocks.
22694
22695 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
22696
22697         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
22698         * config/frv/frv.h (LINK_SPEC): Likewise.
22699         * config/i386/netware.h (LINK_SPEC): Likewise.
22700         * config/m68k/linux.h (ASM_SPEC): Likewise.
22701         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
22702         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
22703         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22704         * config/sparc/linux.h (ASM_SPEC): Likewise.
22705         * config/sparc/linux64.h (ASM_SPEC): Likewise.
22706         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22707
22708 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
22709
22710         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
22711         * config/frv/frv.h (ASM_SPEC): Likewise.
22712         * config/m68k/linux.h (ASM_SPEC): Likewise.
22713         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
22714         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
22715         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22716         * config/sparc/linux.h (ASM_SPEC): Likewise.
22717         * config/sparc/linux64.h (ASM_SPEC): Likewise.
22718         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22719
22720 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
22721
22722         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
22723         * config/frv/frv.h (LINK_SPEC): Likewise.
22724         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
22725
22726 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
22727
22728         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
22729         * config/frv/frv.h (ASM_SPEC): Likewise.
22730         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
22731         * config/m68k/linux.h (ASM_SPEC): Likewise.
22732         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
22733         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
22734         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
22735         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
22736         * config/sparc/linux.h (ASM_SPEC): Likewise.
22737         * config/sparc/linux64.h (ASM_SPEC): Likewise.
22738         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
22739         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
22740
22741 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
22742
22743         PR target/46997
22744         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
22745         (*mux2): Ditto.
22746         (vec_extract_evenodd_help): Ditto.
22747         (vec_extract_evenv4hi): Ditto.
22748         (vec_extract_oddv4hi): Ditto.
22749         (vec_interleave_lowv2si): Ditto.
22750         (vec_interleave_highv2si): Ditto.
22751         (vec_extract_evenv2si): Ditto.
22752         (vec_extract_oddv2si: Ditto.
22753         (vec_pack_trunc_v2si): Ditto.
22754
22755 2011-01-22  Jan Hubicka  <jh@suse.cz>
22756
22757         PR target/47237
22758         * cgraph.h (cgraph_local_info): New field can_change_signature.
22759         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
22760         signature can change.
22761         (ipcp_estimate_growth): Call sequence simplify only if calle signature
22762         can change.
22763         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
22764         (cgraph_function_versioning): We can not change signature of functions
22765         that don't allow that.
22766         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
22767         (lto_input_node): Likewise.
22768         * ipa-inline.c (compute_inline_parameters): Compute
22769         local.can_change_signature.
22770         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
22771         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
22772         functions that can not change signature.
22773         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
22774         init_cumulative_args): Do not use local calling conventions
22775         for functions that can not change signature.
22776
22777 2011-01-22  Jan Hubicka  <jh@suse.cz>
22778
22779         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
22780
22781 2011-01-26  Richard Guenther  <rguenther@suse.de>
22782
22783         PR tree-optimization/47190
22784         * cgraphunit.c (process_common_attributes): New function.
22785         (process_function_and_variable_attributes): Use it.
22786
22787 2011-01-26  Richard Guenther  <rguenther@suse.de>
22788
22789         PR lto/47423
22790         * cgraphbuild.c (record_eh_tables): Record reference to personality
22791         function.
22792
22793 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
22794
22795         PR debug/45454
22796         * sel-sched.c (moveup_expr): Don't let debug insns prevent
22797         non-debug insns from moving up.
22798
22799 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
22800
22801         PR target/40125
22802         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
22803         t-dlldir{,-x} fragment for build and add it to tmake_file.
22804         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
22805         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
22806         * config/i386/t-dlldir: New file.
22807         (SHLIB_DLLDIR): Define.
22808         * config/i386/t-dlldir-x: New file.
22809         (SHLIB_DLLDIR): Define.
22810         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
22811         (SHLIB_INSTALL): Use it.
22812
22813 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
22814
22815         PR target/47246
22816         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
22817         lower bound of the allowed Thumb-2 coprocessor load/store
22818         index range to -256. Add explaining comment.
22819
22820 2011-01-25  Ian Lance Taylor  <iant@google.com>
22821
22822         * godump.c (go_define): Improve lexing of macro expansion to only
22823         accept expressions which match Go spec.
22824
22825 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
22826
22827         PR c++/43601
22828         * tree.c (handle_dll_attribute): Handle it.
22829         * doc/extend.texi (@item dllexport): Mention it.
22830         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
22831
22832 2011-01-25  Ian Lance Taylor  <iant@google.com>
22833
22834         PR tree-optimization/26854
22835         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
22836         (decl_jump_unsafe): Move higher in file, with no other change.
22837         (bind): Set has_jump_unsafe_decl if appropriate.
22838         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
22839         (check_earlier_gotos): Likewise.
22840         (c_check_switch_jump_warnings): Likewise.
22841
22842 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
22843
22844         * doc/invoke.texi (Warning Options): Add missing hyphen.
22845         (-fprofile-dir): Minor grammatical fixes.
22846         (-fbranch-probabilities): Likewise.
22847
22848 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
22849
22850         PR debug/45136
22851         PR debug/45130
22852         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
22853         debug insns.
22854         (no_real_insns_p, schedule_block, set_priorities): Drop special
22855         treatment of boundary debug insns.
22856         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
22857         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
22858         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
22859         (BOUNDARY_DEBUG_INSN_P): Likewise.
22860         (SCHEDULE_DEBUG_INSN_P): Likewise.
22861         * sched-rgn.c (init_ready_list): Drop special treatment of
22862         boundary debug insns.
22863         * final.c (rest_of_clean-state): Clear notes' BB.
22864
22865 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22866
22867         * Makefile.in (LAMBDA_H): Removed.
22868         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
22869         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
22870         lambda-trans.o, and tree-loop-linear.o.
22871         (lto-symtab.o): Remove dependence on LAMBDA_H.
22872         (tree-loop-linear.o): Remove rule.
22873         (lambda-mat.o): Same.
22874         (lambda-trans.o): Same.
22875         (lambda-code.o): Same.
22876         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
22877         (tree-vect-slp.o): Same.
22878         * hwint.h (gcd): Moved here.
22879         (least_common_multiple): Same.
22880         * lambda-code.c: Removed.
22881         * lambda-mat.c: Removed.
22882         * lambda-trans.c: Removed.
22883         * lambda.h: Removed.
22884         * tree-loop-linear.c: Removed.
22885         * lto-symtab.c: Do not include lambda.h.
22886         * omega.c (gcd): Removed.
22887         * passes.c (init_optimization_passes): Remove pass_linear_transform.
22888         * tree-data-ref.c (print_lambda_vector): Moved here.
22889         (lambda_vector_copy): Same.
22890         (lambda_matrix_copy): Same.
22891         (lambda_matrix_id): Same.
22892         (lambda_vector_first_nz): Same.
22893         (lambda_matrix_row_add): Same.
22894         (lambda_matrix_row_exchange): Same.
22895         (lambda_vector_mult_const): Same.
22896         (lambda_vector_negate): Same.
22897         (lambda_matrix_row_negate): Same.
22898         (lambda_vector_equal): Same.
22899         (lambda_matrix_right_hermite): Same.
22900         * tree-data-ref.h: Do not include lambda.h.
22901         (lambda_vector): Moved here.
22902         (lambda_matrix): Same.
22903         (dependence_level): Same.
22904         (lambda_transform_legal_p): Removed declaration.
22905         (lambda_collect_parameters): Same.
22906         (lambda_compute_access_matrices): Same.
22907         (lambda_vector_gcd): Same.
22908         (lambda_vector_new): Same.
22909         (lambda_vector_clear): Same.
22910         (lambda_vector_lexico_pos): Same.
22911         (lambda_vector_zerop): Same.
22912         (lambda_matrix_new): Same.
22913         * tree-flow.h (least_common_multiple): Removed declaration.
22914         * tree-parloops.c (lambda_trans_matrix): Moved here.
22915         (LTM_MATRIX): Same.
22916         (LTM_ROWSIZE): Same.
22917         (LTM_COLSIZE): Same.
22918         (LTM_DENOMINATOR): Same.
22919         (lambda_trans_matrix_new): Same.
22920         (lambda_matrix_vector_mult): Same.
22921         (lambda_transform_legal_p): Same.
22922         * tree-pass.h (pass_linear_transform): Removed declaration.
22923         * tree-ssa-loop.c (tree_linear_transform): Removed.
22924         (gate_tree_linear_transform): Removed.
22925         (pass_linear_transform): Removed.
22926         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
22927         flag_loop_interchange.
22928
22929 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
22930
22931         PR tree-optimization/47265
22932         PR tree-optimization/47443
22933         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
22934         if name still has some uses.
22935
22936 2011-01-25  Martin Jambor  <mjambor@suse.cz>
22937
22938         PR tree-optimization/47382
22939         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
22940         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
22941
22942 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
22943
22944         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
22945         sjlj_except_unwind_info.
22946
22947 2011-01-25  Richard Guenther  <rguenther@suse.de>
22948
22949         PR tree-optimization/47426
22950         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
22951         visible functions results escape.
22952
22953 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
22954
22955         PR target/45701
22956         * config/arm/arm.c (any_sibcall_uses_r3): New function.
22957         (arm_get_frame_offsets): Use it.
22958
22959 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
22960             Jakub Jelinek  <jakub@redhat.com>
22961
22962         PR tree-optimization/47271
22963         * tree-if-conv.c (bb_postdominates_preds): New.
22964         (if_convertible_bb_p): Call bb_postdominates_preds.
22965         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
22966         (predicate_scalar_phi): Call bb_postdominates_preds.
22967
22968 2011-01-25  Nick Clifton  <nickc@redhat.com>
22969
22970         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
22971         * config/rx/rx.c (rx_function_value): Likewise.
22972         (rx_promote_function_mode): Likewise.
22973         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
22974         in order to make it legitimate.
22975         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
22976         make sure that the first operand is the same as the result register.
22977         (addsi3_unspec): Delete.
22978         (subdi3): Do not accept immediate operands.
22979         (subdi3_internal): Likewise.
22980
22981 2011-01-25  Jeff Law  <law@redhat.com>
22982
22983         PR rtl-optimization/37273
22984         * ira-costs.c (scan_one_insn): Detect constants living in memory and
22985         handle them like argument loads from stack slots.  Do not double
22986         count memory for memory constants and argument loads from stack slots.
22987
22988 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
22989
22990         PR tree-optimization/47427
22991         PR tree-optimization/47428
22992         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
22993         coalesce if the new root var would be TREE_READONLY.
22994
22995 2011-01-25  Richard Guenther  <rguenther@suse.de>
22996
22997         PR middle-end/47414
22998         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
22999         correct type for TBAA.
23000
23001 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23002
23003         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
23004         (close_phi_written_to_memory): Call for_each_index with
23005         dr_indices_valid_in_loop.
23006
23007 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23008
23009         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
23010         when it is initialized.
23011
23012 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23013
23014         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
23015         call to graphite_find_data_references_in_stmt.
23016         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
23017         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
23018         call to graphite_find_data_references_in_stmt.
23019         (analyze_drs_in_stmts): Same.
23020         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
23021         in which the scalar analysis of indices is performed.
23022         (create_data_ref): Same.  Update call to dr_analyze_indices.
23023         (find_data_references_in_stmt): Update call to create_data_ref.
23024         (graphite_find_data_references_in_stmt): Same.
23025         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
23026         declaration.
23027         (create_data_ref): Same.
23028         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
23029         call to create_data_ref.
23030
23031 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23032
23033         * graphite-sese-to-poly.c (build_poly_scop): Move
23034         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
23035
23036 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23037
23038         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
23039         VAR_DECL, PARM_DECL, and RESULT_DECL.
23040
23041 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23042
23043         * graphite-dependences.c (reduction_dr_1): Allow several reductions
23044         in a reduction PBB.
23045         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
23046         that have already been marked as PBB_IS_REDUCTION.
23047
23048 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23049
23050         * graphite-scop-detection.c (same_close_phi_node): New.
23051         (remove_duplicate_close_phi): New.
23052         (make_close_phi_nodes_unique): New.
23053         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
23054
23055 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23056
23057         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
23058         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
23059         of both data references to be the same.
23060
23061 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23062
23063         * graphite-dependences.c (build_lexicographical_constraint): Remove
23064         the gdim parameter.
23065         (build_lexicographical_constraint): Adjust call to
23066         ppl_powerset_is_empty.
23067         (dependence_polyhedron): Same.
23068         (graphite_legal_transform_dr): Same.
23069         (graphite_carried_dependence_level_k): Same.
23070         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
23071         parameter.
23072         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
23073
23074 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23075
23076         * graphite-sese-to-poly.c
23077         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
23078         (close_phi_written_to_memory): New.
23079         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
23080         and unshare_expr.
23081
23082 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23083
23084         * doc/install.texi: Update the expected version number of PPL to 0.11.
23085         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
23086         #if PPL_VERSION_MINOR < 11.
23087
23088 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23089
23090         * graphite-dependences.c: Include graphite-cloog-util.h.
23091         (new_poly_ddr): Inlined into dependence_polyhedron.
23092         (free_poly_ddr): Moved close by new_poly_ddr.
23093         (dependence_polyhedron_1): Renamed dependence_polyhedron.
23094         Early return NULL when ppl_powerset_is_empty returns true.
23095         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
23096         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
23097         (graphite_legal_transform_dr): Call new_poly_ddr.
23098         (graphite_carried_dependence_level_k): Same.
23099         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
23100         (dot_transformed_deps_stmt_1): Removed.
23101         (dot_deps_stmt_1): Call dot_deps_stmt_2.
23102         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
23103         (dot_deps_1): Call dot_deps_2.
23104         * Makefile.in (graphite-dependences.o): Add missing dependence on
23105         graphite-cloog-util.h.
23106
23107 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23108
23109         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
23110         (build_lexicographical_constraint): Same.
23111         (dependence_polyhedron_1): Same.
23112         (graphite_legal_transform_dr): Same.
23113         (graphite_carried_dependence_level_k): Same.
23114         * graphite-ppl.c (ppl_powerset_is_empty): New.
23115         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
23116         * tree-data-ref.c (dump_data_reference): Print the basic block index.
23117
23118 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23119
23120         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
23121         the "a followed by b" relation and document it.
23122
23123 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23124
23125         * graphite-dependences.c (build_lexicographical_constraint): Stop the
23126         iteration when the bag of constraints is empty.
23127
23128 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23129
23130         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
23131
23132 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23133
23134         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
23135         nest and two loop depths as parameters.
23136         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
23137         lst_perfect_nestify.
23138
23139 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23140
23141         * graphite-dependences.c (print_pddr): Call
23142         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
23143
23144 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
23145
23146         * graphite-ppl.c (debug_gmp_value): New.
23147         * graphite-ppl.h (debug_gmp_value): Declared.
23148
23149 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
23150
23151         * doc/install.texi: Document availability of cloog-0.16.
23152
23153 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
23154
23155         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
23156         invalid postdominance info.
23157
23158 2011-01-24  Jan Hubicka  <jh@suse.cz>
23159
23160         PR c/21659
23161         * doc/extend.texi (weak pragma): Drop claim that it must
23162         appear before definition.
23163         * varasm.c (merge_weak, declare_weak): Only sanity check
23164         that DECL is not output at a time it is declared weak.
23165
23166 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
23167
23168         * machmode.def: Fixed comments.
23169
23170 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
23171
23172         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
23173
23174 2011-01-24  Paul Koning  <ni1d@arrl.net>
23175
23176         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
23177         WORDS_BIG_ENDIAN.
23178
23179 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
23180
23181         PR target/46519
23182         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
23183         (block_info): Add scanned and prev.
23184         (move_or_delete_vzeroupper_2): Return if the basic block
23185         has been scanned and the upper 128bit state is unchanged
23186         from the last scan.
23187         (move_or_delete_vzeroupper_1): Return true if the exit
23188         state is changed.
23189         (move_or_delete_vzeroupper): Visit basic blocks using the
23190         work-list based algorithm based on vt_find_locations in
23191         var-tracking.c.
23192
23193         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
23194
23195 2011-01-24  Nick Clifton  <nickc@redhat.com>
23196
23197         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
23198         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
23199         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
23200         then define __v850e1__.
23201         * doc/invoke.texi: Document -mv850es.
23202
23203 2011-01-24  Richard Henderson  <rth@redhat.com>
23204
23205         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
23206         compound unordered comparisons.
23207         * config/rx/rx.c (rx_split_fp_compare): Remove.
23208         * config/rx/rx-protos.h: Update.
23209         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
23210         (cbranchsf4): Don't call rx_split_fp_compare.
23211         (*cbranchsf4): Use rx_split_cbranch.
23212         (*cmpsf): Don't accept "i" constraint.
23213         (*conditional_branch): Only valid after reload.
23214         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
23215
23216 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
23217
23218         PR target/47385
23219         * config/rs6000/altivec.md (vector constant splitters): Add
23220         support for creating vector single precision constants if -mvsx is
23221         used and we would create the constant using Altivec primitives.
23222
23223 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
23224             Richard Sandiford  <rdsandiford@googlemail.com>
23225
23226         PR rtl-optimization/47166
23227         * reload1.c (emit_reload_insns): Disable the spill_reg_store
23228         mechanism for PRE_MODIFY and POST_MODIFY.
23229         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
23230         reloadreg.
23231
23232 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
23233
23234         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
23235
23236 2011-01-22  Jan Hubicka  <jh@suse.cz>
23237
23238         PR lto/47333
23239         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
23240
23241 2011-01-22  Jan Hubicka  <jh@suse.cz>
23242
23243         PR tree-optimization/43884
23244         PR lto/44334
23245         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
23246         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
23247
23248 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
23249
23250         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
23251         * config/s390/s390.c (s390_register_move_cost,
23252         s390_memory_move_cost): New.
23253         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
23254
23255 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23256
23257         PR middle-end/47401
23258         * except.c (sjlj_assign_call_site_values): Move setting the
23259         crtl->uses_eh_lsda flag to ...
23260         (sjlj_mark_call_sites): ... here.
23261         (sjlj_emit_function_enter): Support NULL dispatch label.
23262         (sjlj_build_landing_pads): In a function with no landing pads
23263         that still has must-not-throw regions, generate code to register
23264         a personality function with empty LSDA.
23265
23266 2011-01-21  Richard Henderson  <rth@redhat.com>
23267
23268         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
23269
23270         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
23271
23272         * compare-elim.c: New file.
23273         * Makefile.in (OBJS-common): Add it.
23274         (compare-elim.o): New.
23275         * common.opt (fcompare-elim): New.
23276         * opts.c (default_options_table): Add OPT_fcompare_elim.
23277         * tree-pass.h (pass_compare_elim_after_reload): New.
23278         * passes.c (init_optimization_passes): Add it.
23279         * recog.h: Protect against re-inclusion.
23280         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
23281         * doc/invoke.texi (-fcompare-elim): Document it.
23282         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
23283         * doc/tm.texi: Rebuild.
23284
23285 2011-01-22  Nick Clifton  <nickc@redhat.com>
23286
23287         * config/rx/rx.md (cstoresf4): Pass comparison operator to
23288         rx_split_fp_compare.
23289
23290 2011-01-22  Nick Clifton  <nickc@redhat.com>
23291
23292         * config/rx/rx.md (UNSPEC_CONST): New.
23293         (deallocate_and_return): Wrap the amount popped off the stack in
23294         an UNSPEC_CONST in order to stop it being rejected by
23295         -mmax-constant-size.
23296         (pop_and_return): Add a "(return)" rtx.
23297         (call): Drop the immediate operand.
23298         (call_internal): Likewise.
23299         (call_value): Likewise.
23300         (call_value_internal): Likewise.
23301         (sibcall_internal): Likewise.
23302         (sibcall_value_internal): Likewise.
23303         (sibcall): Likewise.  Generate an explicit call using
23304         sibcall_internal.
23305         (sibcall_value): Likewise.
23306         (mov<>): FAIL if a constant operand is not legitimate.
23307         (addsi3_unpsec): New pattern.
23308
23309         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
23310         (ok_for_max_constant): New function.
23311         (gen_safe_add): New function.
23312         (rx_expand_prologue): Use gen_safe_add.
23313         (rx_expand_epilogue): Likewise.
23314         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
23315         UNSPEC CONSTs.
23316
23317 2011-01-21  Jeff Law  <law@redhat.com>
23318
23319         PR tree-optimization/47053
23320         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
23321         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
23322         statements are deleted.
23323         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
23324         is nonempty, then purge dead edges and cleanup the CFG.
23325
23326 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
23327
23328         PR debug/47402
23329         Temporarily revert:
23330         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
23331         PR debug/47106
23332         * tree-dfa.c (create_var_ann): Mark variable as used.
23333
23334 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
23335
23336         PR middle-end/45566
23337         * except.c (convert_to_eh_region_ranges): Emit queued no-region
23338         notes from other section in hot/cold partitioning even if
23339         last_action is -3.  Increment call_site_base.
23340
23341         PR rtl-optimization/47366
23342         * fwprop.c (forward_propagate_into): Return bool.  If
23343         any changes are made, -fnon-call-exceptions is used and
23344         REG_EH_REGION note is present, call purge_dead_edges
23345         and return true if it purged anything.
23346         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
23347         any EH edges were purged.
23348
23349 2011-01-21  Jeff Law  <law@redhat.com>
23350
23351         PR rtl-optimization/41619
23352         * caller-save.c (setup_save_areas): Break out code to determine
23353         which hard regs are live across calls by examining the reload chains
23354         so that it is always used.
23355         Eliminate code which checked REG_N_CALLS_CROSSED.
23356
23357 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
23358
23359         PR tree-optimization/47355
23360         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
23361         NOP has non-debug uses beyond PHIs in new_bb.
23362
23363 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
23364
23365         PR debug/47106
23366         * cfgexpand.c (account_used_vars_for_block): Only account vars
23367         that are annotated as used.
23368         (estimated_stack_frame_size): Don't set TREE_USED.
23369         * tree-dfa.c (create_var_ann): Mark variable as used.
23370
23371 2011-01-21  Richard Guenther  <rguenther@suse.de>
23372
23373         PR middle-end/47395
23374         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
23375
23376 2011-01-21  Richard Guenther  <rguenther@suse.de>
23377
23378         PR tree-optimization/47365
23379         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
23380         (vn_reference_lookup_pieces): Adjust.
23381         (vn_reference_lookup): Likewise.
23382         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
23383         (vn_reference_lookup_3): Only look through kills if in
23384         VN_WALKREWRITE mode.
23385         (vn_reference_lookup_pieces): Adjust.
23386         (vn_reference_lookup): Likewise.
23387         (visit_reference_op_load): Likewise.
23388         (visit_reference_op_store): Likewise.
23389         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
23390         (compute_avail): Likewise.
23391         (eliminate): Likewise.
23392
23393 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
23394
23395         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
23396         DECL_IGNORED_P non-reg vars if they are used.
23397
23398         PR tree-optimization/47391
23399         * varpool.c (const_value_known_p): Return false if
23400         decl is volatile.
23401
23402 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
23403
23404         PR bootstrap/47215
23405         * config/i386/i386.c (ix86_local_alignment): Handle
23406         case for va_list_type_node is nil.
23407         (ix86_canonical_va_list_type): Likewise.
23408
23409 2011-01-21  Alan Modra  <amodra@gmail.com>
23410
23411         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
23412         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
23413
23414 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23415
23416         * config/arm/arm.md (define_attr type): Rename f_load
23417         and f_store to f_fpa_load and f_fpa_store. Update.
23418         (write_conflict): Deal with rename fallout.
23419         (*push_fp_multi): Likewise.
23420         * config/arm/fpa.md (f_load): Use f_fpa_load.
23421         (f_store): Use f_fpa_store.
23422         (*movsf_fpa): Likewise.
23423         (*movdf_fpa): Likewise.
23424         (*movxf_fpa): Likewise.
23425         (*thumb2_movsf_fpa): Likewise.
23426         (*thumb2_movdf_fpa): Likewise.
23427         (*thumb2_movxf_fpa): Likewise.
23428         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
23429         f_loadd and f_stored.
23430         (*thumb2_movdi_vfp): Likewise.
23431         (*thumb2_movsf_vfp): Fix attribute to f_loads.
23432         (*thumb2_movsi_vfp): Likewise.
23433         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
23434         Use f_loads instead of f_load.
23435         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
23436
23437 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
23438
23439         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23440         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
23441         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23442         (xtensa_mode_dependent_address_p): New function.
23443         (constantpool_address_p): Make static. Change return type to bool.
23444         Change argument type to const_rtx. Use CONST_INT_P predicate.
23445
23446 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
23447
23448         PR debug/46583
23449         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
23450
23451 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
23452
23453         PR debug/47283
23454         * cfgexpand.c (expand_debug_expr): Instead of generating
23455         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
23456         etc. handling.
23457
23458 2011-01-20  Richard Guenther  <rguenther@suse.de>
23459
23460         PR middle-end/47370
23461         * tree-inline.c (remap_gimple_op_r): Recurse manually for
23462         the pointer operand of MEM_REFs.
23463
23464 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
23465
23466         PR tree-optimization/46130
23467         * ipa-split.c (consider_split): If return_bb contains non-virtual
23468         PHIs other than for retval or if split_function would not adjust it,
23469         refuse to split.
23470
23471 2011-01-20  Richard Guenther  <rguenther@suse.de>
23472
23473         PR tree-optimization/47167
23474         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
23475         Revert previous change, only avoid enumeral type changes.
23476
23477 2011-01-19  Mike Stump  <mikestump@comcast.net>
23478
23479         * doc/tm.texi.in (BRANCH_COST): Englishify.
23480         * doc/tm.texi (BRANCH_COST): Likewise.
23481
23482 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
23483
23484         PR c++/47291
23485         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
23486         (gen_scheduled_generic_parms_dies): New functions.
23487         (gen_struct_or_union_type_die): Schedule template parameters DIEs
23488         generation for the end of CU compilation.
23489         (dwarf2out_finish): Generate template parameters DIEs here.
23490
23491 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
23492
23493         PR debug/46240
23494         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
23495         debug bind stmt on merge edges.
23496
23497 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
23498
23499         PR debug/47079
23500         PR debug/46724
23501         * function.c (instantiate_expr): Instantiate incoming rtl of
23502         implicit arguments, and recurse on VALUE_EXPRs.
23503         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
23504         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
23505
23506 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
23507
23508         * c-parser.c (c_parser_for_statement): Initialize
23509         collection_expression.
23510
23511 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
23512
23513         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
23514
23515 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
23516
23517         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
23518         (LINK_SHLIB_SPEC): Don't use %(link_path).
23519         (SUBTARGET_EXTRA_SPECS): Remove link_path.
23520
23521 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
23522
23523         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
23524         (NO_SHARED_LIB_SUPPORT): Remove.
23525         (LINK_SHLIB_SPEC): Remove one conditional definition.
23526
23527 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
23528
23529         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
23530         %{call_shared}.
23531         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
23532         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
23533         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
23534         %{call_shared} and conditionals on these options not being passed.
23535         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
23536         %{call_shared}.
23537
23538 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
23539
23540         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
23541         simplify.
23542
23543         * ipa-split.c: Spelling fixes.
23544
23545 2011-01-19  Richard Henderson  <rth@redhat.com>
23546
23547         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
23548         (*mulsi3): Likewise.
23549
23550         * longlong.h [__mn10300__] (count_leading_zeros): New.
23551         [__mn10300__] (umul_ppmm, smul_ppmm): New.
23552         [__mn10300__] (add_ssaaaa, subddmmss): New.
23553         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
23554         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
23555
23556 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23557
23558         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
23559
23560 2011-01-19  Richard Henderson  <rth@redhat.com>
23561
23562         * config/mn10300/mn10300.md (addsi3_flags): New.
23563         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
23564         (subsi3_flags, subc_internal, subdi3): New.
23565         (subdi3_internal, *subdi3_degenerate): New.
23566         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
23567
23568         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
23569         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
23570         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
23571         * config/mn10300/mn10300-protos.h: Update.
23572         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
23573         (return_ret): Likewise.  Rename from return_internal_regs.
23574         (return_internal): Remove.
23575
23576         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
23577         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
23578         (mn10300_legitimate_constant_p): Likewise.
23579         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
23580         (mn10300_frame_size): New.
23581         (mn10300_expand_prologue): Use it.
23582         (mn10300_expand_epilogue): Likewise.
23583         (mn10300_initial_offset): Likewise.
23584         * config/mn10300/mn10300-protos.h: Update.
23585         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
23586         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
23587         (prologue, epilogue, return_internal): Tidy output code.
23588         (mn10300_store_multiple_operation, return): Likewise.
23589         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
23590         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
23591         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
23592         (load_pic, am33_load_pic): New.
23593         (mn10300_load_pic0, mn10300_load_pic1): New.
23594
23595         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
23596         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
23597         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
23598         (cc_flags_for_mode, cc_flags_for_code): New.
23599         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
23600         overflow flag is not valid.  Validate that the flags we need
23601         for the comparison are valid.
23602         (mn10300_output_cmp): Remove.
23603         (mn10300_output_add): New.
23604         (mn10300_select_cc_mode): Use cc_flags_for_code.
23605         (mn10300_split_cbranch): New.
23606         (mn10300_match_ccmode): New.
23607         (mn10300_split_and_operand_count): New.
23608         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
23609         to the function.
23610         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
23611         (addsi3): ... here.  Use mn10300_output_add.
23612         (*addsi3_flags): New.
23613         (*am33_subsi3, *mn10300_subsi3): Merge...
23614         (subsi3): ... here.  Use attribute isa.
23615         (*subsi3_flags): New.
23616         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
23617         when possible.
23618         (*am33_andsi3, *mn10300_andsi3): Merge...
23619         (andsi3): ... here.
23620         (*andsi3_flags): New.
23621         (andsi3 splitters): New.
23622         (*am33_iorsi3, *mn10300_iorsi3): Merge...
23623         (iorsi3): ... here.
23624         (*iorsi3_flags): New.
23625         (*am33_xorsi3, *mn10300_xorsi3): Merge...
23626         (xorsi3): ... here.
23627         (*xorsi3_flags): New.
23628         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
23629         (one_cmplsi2): ... here.
23630         (*one_cmplsi2_flags): New.
23631         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
23632         instead of "dax" in constraints.  Use mn10300_split_cbranch.
23633         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
23634         use matching constraints to eliminate a self-comparison.
23635         (*integer_conditional_branch): Rename from integer_conditional_branch.
23636         Use int_mode_flags to match CC_REG.
23637         (*cbranchsi4_btst, *btstsi): New.
23638         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
23639         mn10300_split_cbranch.
23640         (*am33_cmpsf): Rename from am33_cmpsf.
23641         (*float_conditional_branch): Rename from float_conditional_branch.
23642         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
23643         (zero_extendqisi2): ... here.
23644         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
23645         (zero_extendhisi2): ... here.
23646         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
23647         (extendqisi2): ... here.
23648         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
23649         (extendhisi2): ... here.
23650         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
23651         (ashlsi3): ... here.
23652         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
23653         (lshrsi3): ... here.
23654         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
23655         (ashrsi3): ... here.
23656         (consecutive add peephole): Remove.
23657         * config/mn10300/predicates.md (label_ref_operand): New.
23658         (int_mode_flags): New.
23659         (CCZN_comparison_operator): New.
23660
23661         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
23662         (throughput_42_latency_43): New reservation.
23663         (mulsidi3, umulsidi3): New expanders.
23664         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
23665         the MDR register to allocation; separately allocate the low and
23666         high parts of the DImode result.
23667         (umulsidi3_internal): Similarly.
23668         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
23669         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
23670         (udivsi3, umodsi3): Remove.
23671         (udivmodsi4, divmodsi4): New expanders.
23672         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
23673         (*divmodsi4): Simiarly.
23674         (ext_internal): New.
23675
23676         * config/mn10300/constraints.md ("z"): New constraint.
23677         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
23678         (FIXED_REGISTERS): Don't fix MDR.
23679         (CALL_USED_REGSITERS): Reformat nicely.
23680         (REG_ALLOC_ORDER): Add MDR.
23681         (enum regclass): Add MDR_REGS.
23682         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
23683         (IRA_COVER_CLASSES): Add MDR_REGS.
23684         (REGNO_REG_CLASS): Handle MDR_REG.
23685         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
23686         (mn10300_register_move_cost): Likewise.
23687         * config/mn10300/mn10300.md (MDR_REG): New.
23688         (*movsi_internal): Handle moves to/from MDR_REGS.
23689
23690         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
23691         POST_MODIFY.
23692         (mn10300_secondary_reload): Tidy combination reload classes.
23693         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
23694         addresses for AM33.  Allow symbolic offsets for reg+imm.
23695         (mn10300_regno_in_class_p): New.
23696         (mn10300_legitimize_reload_address): New.
23697         * config/mn10300/mn10300.h (enum reg_class): Remove
23698         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
23699         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
23700         SP_OR_GENERAL_REGS.
23701         (REG_CLASS_NAMES): Update to match.
23702         (REG_CLASS_CONTENTS): Likewise.
23703         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
23704         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
23705         (REGNO_IN_RANGE_P): Remove.
23706         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
23707         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
23708         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
23709         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
23710         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
23711         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
23712         (REGNO_GENERAL_P): New.
23713         (HAVE_POST_MODIFY_DISP): New.
23714         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
23715         (LEGITIMIZE_RELOAD_ADDRESS): New.
23716         * config/mn10300/mn10300-protos.h: Update.
23717
23718         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
23719         DATA_REGS for AM33 stack-pointer destination.
23720         (mn10300_preferred_output_reload_class): Likewise.
23721         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
23722         into a form appropriate for ...
23723         (TARGET_SECONDARY_RELOAD): New.
23724         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
23725         * config/mn10300/mn10300-protos.h: Update.
23726         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
23727         reload_insi; use the "A" constraint for the scratch; handle AM33
23728         moves of sp to non-address registers.
23729
23730         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
23731         (*movqi_internal): ... here.
23732         (*am33_movhi, *mn10300_movhi): Merge into...
23733         (*movhi_internal): ... here.
23734         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
23735         as the source/destination of moves from/to SP.
23736         (movsf): Only allow for AM33-2.
23737         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
23738         any integer constant constraint.  Only allow for AM33-2.  Tidy
23739         all of the alternative outputs.
23740         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
23741         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
23742         for MN103.
23743         (udivsi3, umodsi3): New patterns for MN103 only.
23744
23745 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
23746
23747         * doc/tm.texi.in: Spell out that a lack of register class unions
23748         can lead to ICEs.
23749         * doc/tm.texi: Regenerate.
23750
23751 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
23752
23753         PR rtl-optimization/47337
23754         * dce.c (check_argument_store): New function.
23755         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
23756
23757         PR tree-optimization/47290
23758         * tree-eh.c (infinite_empty_loop_p): New function.
23759         (cleanup_empty_eh): Use it.
23760
23761 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
23762
23763         PR target/46997
23764         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
23765         (a64_expand_widen_sum): Ditto.
23766         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
23767         (vec_extract_evenodd_help): Ditto.
23768         (vec_extract_evenv4hi): Ditto.
23769         (vec_extract_oddv4hi): Ditto.
23770         (vec_extract_evenv2si): Ditto.
23771         (vec_extract_oddv2si): Ditto.
23772         (vec_extract_evenv2sf): Ditto.
23773         (vec_extract_oddv2sf): Ditto.
23774         (vec_pack_trunc_v4hi: Ditto.
23775         (vec_pack_trunc_v2si): Ditto.
23776         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
23777         (vec_interleave_highv8qi): Ditto.
23778         (mix1_r): Ditto.
23779         (vec_extract_oddv8qi): Ditto.
23780         (vec_interleave_lowv4hi): Ditto.
23781         (vec_interleave_highv4hi): Ditto.
23782         (vec_interleave_lowv2si): Ditto.
23783         (vec_interleave_highv2si): Ditto.
23784
23785 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
23786
23787         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
23788         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
23789         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
23790         (pa_c_mode_for_suffix): New.
23791         (TARGET_EXPAND_BUILTIN): Define.
23792         (TARGET_C_MODE_FOR_SUFFIX): Define.
23793         (pa_builtins): Define.
23794         (pa_init_builtins): Register __float128 type and init new support
23795         builtins.
23796         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
23797         * config/pa/quadlib.c (_U_Qfcopysign): New.
23798
23799 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
23800
23801         PR middle-end/46894
23802         * explow.c (allocate_dynamic_stack_space): Do not assume more than
23803         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
23804         are defined.
23805
23806 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
23807
23808         PR tree-optimization/47179
23809         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
23810         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
23811
23812 2011-01-18  Richard Guenther  <rguenther@suse.de>
23813
23814         PR rtl-optimization/47216
23815         * emit-rtl.c: Include tree-flow.h.
23816         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
23817         of replicating it with different semantics.
23818         * Makefile.in (emit-rtl.o): Adjust.
23819
23820 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23821
23822         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
23823         (cortex_a9_dp): Handle neon types correctly.
23824
23825 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
23826
23827         PR rtl-optimization/47299
23828         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
23829         subtarget.  Use normal multiplication if both operands are constants.
23830         * expmed.c (expand_widening_mult): Don't try to optimize constant
23831         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
23832         before using it.
23833
23834 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23835
23836         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
23837         spacing after 'e.g.', typos, comma, hyphenation.
23838
23839 2011-01-17  Richard Henderson  <rth@redhat.com>
23840
23841         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
23842         (rx_restricted_mem_operand): New.
23843         (rx_shift_operand): Use register_operand.
23844         (rx_source_operand, rx_compare_operand): Likewise.
23845         * config/rx/rx.md (addsi3_flags): New expander.
23846         (adddi3): Rewrite as expander.
23847         (adc_internal, *adc_flags, adddi3_internal): New patterns.
23848         (subsi3_flags): New expander.
23849         (subdi3): Rewrite as expander.
23850         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
23851
23852         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
23853         (rx_init_builtins): Remove sat builtin.
23854         (rx_expand_builtin): Likewise.
23855         * config/rx/rx.md (ssaddsi3): New.
23856         (*sat): Rename from sat.  Represent the CC_REG input.
23857
23858         * config/rx/predicates.md (rshift_operator): New.
23859         * config/rx/rx.c (rx_expand_insv): Remove.
23860         * config/rx/rx-protos.h: Update.
23861         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
23862         operand to the canonical position.
23863         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
23864         (*bitclr, *bitclr_in_memory): Similarly.
23865         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
23866         (insv): Retain the zero_extract in the expansion.
23867
23868         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
23869         (bswaphi2, bitinvert, revw): Likewise.
23870
23871         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
23872         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
23873         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
23874         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
23875         (bitset, bitset_in_memory): Likewise.
23876         (bitinvert, bitinvert_in_memory): Likewise.
23877         (bitclr, bitclr_in_memory): Likewise.
23878         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
23879         (rx_strend, rx_cmpstrn): Likewise.
23880         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
23881         (bitop peep2 patterns): Remove.
23882
23883         * config/rx/rx.c (rx_match_ccmode): New.
23884         * config/rx/rx-protos.h: Update.
23885         * config/rx/rx.md (abssi2): Clobber, don't set flags.
23886         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
23887         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
23888         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
23889         (fix_truncsfsi2, floatsisf2): Likewise.
23890         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
23891         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
23892         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
23893         (*subsi3_flags, *xorsi3_flags): New.
23894
23895         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
23896
23897         * config/rx/rx.c (rx_print_operand): Remove workaround for
23898         unsplit comparison operations.
23899
23900         * config/rx/rx.md (movsicc): Split after reload.
23901         (*movsicc): Merge *movsieq and *movsine via match_operator.
23902         (*stcc): New pattern.
23903
23904         * config/rx/rx.c (rx_float_compare_mode): Remove.
23905         * config/rx/rx.h (rx_float_compare_mode): Remove.
23906         * config/rx/rx.md (cstoresi4): Split after reload.
23907         (*sccc): New pattern.
23908
23909         * config/rx/predicates.md (label_ref_operand): New.
23910         (rx_z_comparison_operator): New.
23911         (rx_zs_comparison_operator): New.
23912         (rx_fp_comparison_operator): New.
23913         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
23914         Validate that the flags are set properly for the comparison.
23915         (rx_gen_cond_branch_template): Remove.
23916         (rx_cc_modes_compatible): Remove.
23917         (mode_from_flags): New.
23918         (flags_from_code): Rename from flags_needed_for_conditional.
23919         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
23920         (rx_select_cc_mode): Likewise.
23921         (rx_split_fp_compare): New.
23922         (rx_split_cbranch): New.
23923         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
23924         (*cbranchsi4): Use match_operator and rx_split_cbranch.
23925         (*cbranchsf4): Similarly.
23926         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
23927         match_operator and rx_split_cbranch.
23928         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
23929         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
23930         (*cmpsi): Rename from cmpsi.
23931         (*tstsi): Rename from tstsi.
23932         (*cmpsf): Rename from cmpsf; use CC_Fmode.
23933         (*conditional_branch): Rename from conditional_branch.
23934         (*reveresed_conditional_branch): Remove.
23935         (b<code>): Remove expander.
23936         * config/rx/rx-protos.h: Update.
23937
23938         * config/rx/rx.c (rx_compare_redundant): Remove.
23939         * config/rx/rx.md (cmpsi): Don't use it.
23940         * config/rx/rx-protos.h: Update.
23941
23942         * config/rx/rx-modes.def (CC_F): New mode.
23943         * config/rx/rx.c (rx_select_cc_mode): New.
23944         * config/rx/rx.h (SELECT_CC_MODE): Use it.
23945         * config/rx/rx-protos.h: Update.
23946
23947 2011-01-17  Richard Henderson  <rth@redhat.com>
23948
23949         * except.c (dump_eh_tree): Fix stray ; after for statement.
23950
23951 2011-01-17  Richard Guenther  <rguenther@suse.de>
23952
23953         PR tree-optimization/47313
23954         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
23955         handling before copying the body.  Properly deal with
23956         by-reference result in SSA form.
23957
23958 2011-01-17  Ian Lance Taylor  <iant@google.com>
23959
23960         PR target/47219
23961         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
23962         (struct_value_alias_set): Don't define.
23963         (sparc_option_override): Don't set sparc_sr_alias_set and
23964         struct_value_alias_set.
23965         (save_or_restore_regs): Use gen_frame_mem rather than calling
23966         set_mem_alias_set.
23967         (sparc_struct_value_rtx): Likewise.
23968
23969 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
23970
23971         PR target/47318
23972         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
23973         (_mm_maskstore_pd): Likewise.
23974         (_mm_maskload_ps): Likewise.
23975         (_mm_maskstore_ps): Likewise.
23976         (_mm256_maskload_pd): Change mask to __m256i.
23977         (_mm256_maskstore_pd): Likewise.
23978         (_mm256_maskload_ps): Likewise.
23979         (_mm256_maskstore_ps): Likewise.
23980
23981         * config/i386/i386-builtin-types.def: Updated.
23982         (ix86_expand_special_args_builtin): Likewise.
23983
23984         * config/i386/i386.c (bdesc_special_args): Update
23985         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
23986         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
23987         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
23988         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
23989
23990         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
23991         Use <avxpermvecmode> on mask register.
23992         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
23993
23994 2011-01-17  Olivier Hainque  <hainque@adacore.com>
23995             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
23996             Eric Botcazou  <ebotcazou@adacore.com>
23997
23998         PR target/46655
23999         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
24000         if <= USHRT_MAX in 32-bit mode.
24001
24002 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24003
24004         * doc/install.texi (Configuration, Specific): Wrap long
24005         lines in examples.  Allow line wrapping in long options
24006         and URLs where beneficial for PDF output.
24007
24008 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
24009
24010         * config/mips/mips.c (mips_classify_symbol): Don't return
24011         SYMBOL_PC_RELATIVE for nonlocal labels.
24012
24013 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
24014
24015         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
24016
24017 2011-01-15  Jan Hubicka  <jh@suse.cz>
24018
24019         PR tree-optimization/47276
24020         * ipa.c (function_and_variable_visibility): Do not try to mark alias
24021         declarations as needed.
24022
24023 2011-01-15  Martin Jambor  <mjambor@suse.cz>
24024
24025         * common.opt (fdevirtualize): New flag.
24026         * doc/invoke.texi (Option Summary): Document it.
24027         * opts.c (default_options_table): Add devirtualize flag.
24028         * ipa-prop.c (detect_type_change): Return immediately if
24029         devirtualize flag is not set.
24030         (detect_type_change_ssa): Likewise.
24031         (compute_known_type_jump_func): Likewise.
24032         (ipa_analyze_virtual_call_uses): Likewise.
24033
24034 2011-01-14  Martin Jambor  <mjambor@suse.cz>
24035
24036         PR tree-optimization/45934
24037         PR tree-optimization/46302
24038         * ipa-prop.c (type_change_info): New type.
24039         (stmt_may_be_vtbl_ptr_store): New function.
24040         (check_stmt_for_type_change): Likewise.
24041         (detect_type_change): Likewise.
24042         (detect_type_change_ssa): Likewise.
24043         (compute_complex_assign_jump_func): Check for dynamic type change.
24044         (compute_complex_ancestor_jump_func): Likewise.
24045         (compute_known_type_jump_func): Likewise.
24046         (compute_scalar_jump_functions): Likewise.
24047         (ipa_analyze_virtual_call_uses): Likewise.
24048         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
24049
24050 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24051
24052         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
24053         * config/i386/i386.opt (msse5): New Alias.
24054
24055 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24056
24057         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
24058         * config/sparc/linux64.h (CC1_SPEC): Likewise.
24059         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
24060         * config/sparc/sparc.h (CC1_SPEC): Likewise.
24061
24062 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24063
24064         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
24065         -mcpu options.
24066         * config/sparc/linux64.h (CC1_SPEC): Likewise.
24067         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
24068         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
24069         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
24070         Likewise.
24071         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
24072
24073 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24074
24075         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
24076
24077 2011-01-14  Mike Stump  <mikestump@comcast.net>
24078
24079         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
24080         * config/fr30/fr30.md: Likweise
24081         (movsi_push): Likewise.
24082         (movsi_pop): Likewise.
24083         (enter_func): Likewise.
24084         * config/moxie/moxie.md (movsi_push): Likewise.
24085         (movsi_pop): Likewise.
24086
24087 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24088
24089         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
24090         %{no_archive} %{exact_version}.
24091         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
24092         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
24093         %{no_archive} %{exact_version}.
24094         * config/mips/openbsd.h (LINK_SPEC): Likewise.
24095         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
24096         * config/mips/vxworks.h: Likewise.
24097
24098 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24099
24100         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
24101
24102 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24103
24104         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
24105         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
24106
24107 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24108
24109         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
24110         -nodefaultlib.
24111
24112 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24113
24114         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
24115         for mcpu not cpu.
24116         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
24117         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
24118         not cpu.
24119         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
24120         Don't handle -shlib.
24121
24122 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24123
24124         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
24125         (CC1_SPEC): Don't handle -profile.
24126
24127 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24128
24129         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
24130         * config/mips/mips.h (CC1_SPEC): Likewise.
24131
24132 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24133
24134         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
24135         * config/mips/mips.h (CC1_SPEC): Likewise.
24136
24137 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24138
24139         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
24140         * config/m32r/linux.h (LINK_SPEC): Likewise.
24141         * config/mips/linux.h (LINK_SPEC): Likewise.
24142         * config/mips/linux64.h (LINK_SPEC): Likewise.
24143         * config/sparc/linux.h (LINK_SPEC): Likewise.
24144         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
24145         LINK_SPEC): Likewise.
24146         * config/xtensa/linux.h (LINK_SPEC): Likewise.
24147
24148 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24149
24150         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
24151         %{version:-v}.
24152         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
24153
24154 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24155
24156         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
24157         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
24158
24159 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
24160
24161         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
24162
24163 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24164
24165         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
24166         supports -Bstatic/-Bdynamic.
24167         * configure: Regenerate.
24168
24169 2011-01-14  Jan Hubicka  <jh@suse.cz>
24170             Jack Howarth  <howarth@bromo.med.uc.edu>
24171
24172         PR target/46037
24173         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
24174         when checking debug_info_level. Test write_symbols instead of
24175         debug_hooks->var_location when setting flag_var_tracking_uninit.
24176
24177 2011-01-14  Richard Guenther  <rguenther@suse.de>
24178
24179         PR tree-optimization/47179
24180         * target.def (ref_may_alias_errno): New target hook.
24181         * targhooks.h (default_ref_may_alias_errno): Declare.
24182         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
24183         (default_ref_may_alias_errno): New function.
24184         * target.h (struct ao_ref_s): Declare.
24185         * tree-ssa-alias.c: Include target.h.
24186         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
24187         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
24188         (targhooks.o): Likewise.
24189         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
24190         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
24191
24192 2011-01-14  Richard Guenther  <rguenther@suse.de>
24193
24194         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
24195
24196 2011-01-14  Richard Guenther  <rguenther@suse.de>
24197
24198         PR tree-optimization/47280
24199         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
24200         return CFG changes.
24201         (tree_ssa_forward_propagate_single_use_vars): Deal with
24202         CFG changes from associate_plusminus.
24203
24204 2011-01-14  Richard Guenther  <rguenther@suse.de>
24205
24206         PR middle-end/47281
24207         Revert
24208         2011-01-11  Richard Guenther  <rguenther@suse.de>
24209
24210         PR tree-optimization/46076
24211         * tree-ssa.c (useless_type_conversion_p): Conversions from
24212         unprototyped to empty argument list function types are useless.
24213
24214 2011-01-14  Richard Guenther  <rguenther@suse.de>
24215
24216         PR tree-optimization/47286
24217         * tree-ssa-structalias.c (new_var_info): Register variables are global.
24218
24219 2011-01-14  Martin Jambor  <mjambor@suse.cz>
24220
24221         PR middle-end/46823
24222         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
24223
24224 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
24225
24226         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
24227         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24228         * config/xtensa/xtensa.c (xtensa_libcall_value,
24229         xtensa_function_value_regno_p): New functions.
24230         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
24231
24232 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
24233
24234         PR c++/47213
24235         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
24236         PE specific hook.
24237         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
24238         New function prototype.
24239         * config/i386/winnt.c (i386_pe_assemble_visibility):
24240         Warn only if attribute was specified by user.
24241
24242 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
24243
24244         PR target/47251
24245         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
24246         floating point.
24247         (floatunsdidf2_fcfidu): Ditto.
24248
24249 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24250
24251         * config/s390/s390.c (print_operand_address): Replace 'error' with
24252         'output_operand_lossage'.
24253         (print_operand): Likewise.
24254
24255 2011-01-13  Jeff Law  <law@redhat.com>
24256
24257         PR rtl-optimization/39077
24258         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
24259         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
24260         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
24261         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
24262         * gcse.c (prune_insertions_deletions): New function.
24263         (compute_pre_data): Use it.
24264
24265 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
24266
24267         PR debug/PR46973
24268         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
24269         static function.
24270         (prune_unused_types_mark): Use it.
24271
24272 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
24273
24274         PR rtl-optimization/45352
24275         * sel-sched.c: Update copyright years.
24276         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
24277         in the advancing loop when we have issued issue_rate insns.
24278
24279 2011-01-12  Richard Henderson  <rth@redhat.com>
24280
24281         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
24282         (TARGET_MD_ASM_CLOBBERS): New.
24283
24284         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
24285         (TARGET_DELEGITIMIZE_ADDRESS): New.
24286
24287         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
24288         (clzsi2, *bsch): New patterns.
24289
24290         * config/mn10300/mn10300.md (INT): New mode iterator.
24291         (*mov<INT>_clr): New pattern, and peep2 to generate it.
24292
24293         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
24294         flag_split_wide_types.
24295
24296         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
24297         (mn10300_trampoline_init): Rewrite without a template, an immediate
24298         load and a direct branch.
24299         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
24300
24301 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
24302
24303         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
24304         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
24305         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
24306         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
24307
24308 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
24309
24310         PR debug/47209
24311         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
24312         of type.
24313
24314 2011-01-12  Jan Hubicka  <jh@suse.cz>
24315
24316         PR driver/47244
24317         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
24318         (PLUGIN_COND_CLOSE): New macro.
24319         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
24320
24321 2011-01-12  Richard Guenther  <rguenther@suse.de>
24322
24323         PR lto/47259
24324         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
24325         register variables in a MEM_REF.
24326
24327 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
24328
24329         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
24330         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
24331         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
24332         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
24333         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
24334         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
24335         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
24336         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
24337         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
24338         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
24339         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
24340         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
24341         * config/gnu-user.h: New.  Copied from linux.h.
24342         (LINUX_TARGET_STARTFILE_SPEC): Rename to
24343         GNU_USER_TARGET_STARTFILE_SPEC.
24344         (LINUX_TARGET_ENDFILE_SPEC): Rename to
24345         GNU_USER_TARGET_ENDFILE_SPEC.
24346         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
24347         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
24348         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
24349         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
24350         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
24351         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
24352         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
24353         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
24354         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
24355         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
24356         * config/arm/linux-eabi.h (CC1_SPEC): Use
24357         GNU_USER_TARGET_CC1_SPEC.
24358         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
24359         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
24360         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
24361         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
24362         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
24363         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
24364         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
24365         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
24366
24367 2011-01-12  Richard Guenther  <rguenther@suse.de>
24368
24369         PR other/46946
24370         * doc/invoke.texi (ffast-math): Document it is turned on
24371         with -Ofast.
24372
24373 2011-01-12  Jan Hubicka  <jh@suse.cz>
24374
24375         PR tree-optimization/47233
24376         * opts.c (common_handle_option): Disable ipa-reference with profile
24377         feedback.
24378
24379 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
24380
24381         * c-parser.c (c_parser_objc_at_property_declaration): Improved
24382         error message.
24383
24384 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
24385
24386         * c-parser.c (c_lex_one_token): Updated and reindented some
24387         comments.  No changes in code.
24388
24389 2011-01-11  Ian Lance Taylor  <iant@google.com>
24390
24391         * godump.c (go_output_var): Don't output the variable if there is
24392         already a type with the same name.
24393
24394 2011-01-11  Ian Lance Taylor  <iant@google.com>
24395
24396         * godump.c (go_format_type): Don't generate float80.
24397
24398 2011-01-11  Richard Henderson  <rth@redhat.com>
24399
24400         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
24401         declaration.  Rewrite for both speed and size.
24402         (mn10300_address_cost_1): Remove.
24403         (mn10300_register_move_cost): New.
24404         (mn10300_memory_move_cost): New.
24405         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
24406         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
24407         extensions, shifts, BSWAP, CLZ.
24408         (mn10300_wide_const_load_uses_clr): Remove.
24409         (TARGET_REGISTER_MOVE_COST): New.
24410         (TARGET_MEMORY_MOVE_COST): New.
24411         * config/mn10300/mn10300-protos.h: Update.
24412         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
24413
24414         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
24415         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
24416         * config/mn10300/mn10300-protos.h: Update.
24417         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
24418         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
24419         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
24420         (*test_int_bitfield, *test_byte_bitfield): Remove.
24421         (*bit_test, *subreg_bit_test): Remove.
24422         * config/mn10300/predicates.md (const_8bit_operand): Remove.
24423
24424         * config/mn10300/constraints.md ("c"): Rename from "A".
24425         ("A", "D"): New constraint letters.
24426         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
24427         (fmssf4, fnmasf4, fnmssf4): Likewise.
24428
24429         * config/mn10300/mn10300.md (isa): New attribute.
24430         (enabled): New attribute.
24431
24432         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
24433         (abssf2, negsf2): Define only for hardware fp.
24434         (sqrtsf2): Reformat.
24435         (addsf3, subsf3, mulsf3): Merge expander and insn.
24436
24437         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
24438         (DEBUGGER_AUTO_OFFSET): Remove.
24439         (DEBUGGER_ARG_OFFSET): Remove.
24440
24441         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
24442         Emit register stores with the same offsets as the hardware.
24443         (mn10300_store_multiple_operation): Don't check that the register
24444         save offsets are monotonic.
24445         * config/mn10300/mn10300-protos.h: Update.
24446
24447         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
24448
24449         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
24450         in terms of the value on the stack, not the MDR register.
24451
24452 2011-01-11  Jan Hubicka  <jh@suse.cz>
24453
24454         PR lto/45721
24455         PR lto/45375
24456         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
24457         (symbol_alias_set_destroy, symbol_alias_set_contains,
24458         propagate_aliases_backward): Declare.
24459         * lto-streamer-out.c (struct sets): New sturcture.
24460         (trivally_defined_alias): New function.
24461         (output_alias_pair_p): Rewrite.
24462         (output_unreferenced_globals): Fix output of alias pairs.
24463         (produce_symtab): Likewise.
24464         * ipa.c (function_and_variable_visibility): Set weak alias destination
24465         as needed in lto.
24466         * varasm.c (symbol_alias_set_t): Remove.
24467         (symbol_alias_set_destroy): Export.
24468         (propagate_aliases_forward, propagate_aliases_backward): New functions
24469         based on ...
24470         (compute_visible_aliases): ... this one; remove.
24471         (trivially_visible_alias): New
24472         (trivially_defined_alias): New.
24473         (remove_unreachable_alias_pairs): Rewrite.
24474         (finish_aliases_1): Reorganize code checking if alias is defined.
24475         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
24476         in LTO mode.
24477
24478 2011-01-11  Richard Guenther  <rguenther@suse.de>
24479
24480         PR tree-optimization/46076
24481         * tree-ssa.c (useless_type_conversion_p): Conversions from
24482         unprototyped to empty argument list function types are useless.
24483
24484 2011-01-11  Richard Guenther  <rguenther@suse.de>
24485
24486         PR middle-end/45235
24487         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
24488         volatile MEMs as MEM_READONLY_P.
24489
24490 2011-01-11  Richard Guenther  <rguenther@suse.de>
24491
24492         PR tree-optimization/47239
24493         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
24494
24495 2011-01-11  Jeff Law  <law@redhat.com>
24496
24497         PR tree-optimization/47086
24498         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
24499         IVs from statements that might throw.
24500
24501 2011-01-10  Jan Hubicka  <jh@suse.cz>
24502
24503         PR lto/45375
24504         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
24505
24506 2011-01-10  Jan Hubicka  <jh@suse.cz>
24507
24508         PR lto/45375
24509         * profile.c (read_profile_edge_counts): Ignore profile inconistency
24510         when correcting profile.
24511
24512 2011-01-10  Jan Hubicka  <jh@suse.cz>
24513
24514         PR lto/46083
24515         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
24516         DECL_FINI_PRIORITY.
24517         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
24518         Restore DECL_FINI_PRIORITY.
24519
24520 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24521
24522         * doc/gimple.texi: Fix quoting of multi-word return values in
24523         @deftypefn statements.  Ensure presence of return value.  Wrap
24524         overlong @deftypefn lines.
24525         (is_gimple_operand, is_gimple_min_invariant_address): Remove
24526         descriptions of removed functions.
24527         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
24528         of multi-word return value in @deftypefn statement.
24529
24530 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24531
24532         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
24533         (Conditional Expressions, Logical Operators)
24534         (Statement and operand traversals): Do not indent smallexample
24535         code.  Fix duplicate function argument in example.
24536
24537 2011-01-10  Jeff Law  <law@redhat.com>
24538
24539         PR tree-optimization/47141
24540         * ipa-split.c (split_function): Handle case where we are
24541         returning a value and the return block has a virtual operand phi.
24542
24543 2011-01-10  Jan Hubicka  <jh@suse.cz>
24544
24545         PR tree-optimization/47234
24546         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
24547         (pass_feedback_split_functions): Declare.
24548         * passes.c (init_optimization_passes): Add ipa-split as subpass of
24549         tree-profile.
24550         * ipa-split.c (gate_split_functions): Update comments; disable
24551         split-functions for profile_arc_flag and branch_probabilities.
24552         (gate_feedback_split_functions): New function.
24553         (execute_feedback_split_functions): New function.
24554         (pass_feedback_split_functions): New global var.
24555
24556 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
24557
24558         PR lto/46760
24559         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
24560         calling gimple_call_set_cannot_inline.
24561
24562 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
24563
24564         * config/darwin-sections.def: Remove unused section.
24565
24566 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
24567
24568         PR c++/47218
24569         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
24570
24571 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
24572
24573         PR objc/47232
24574         * c-parser.c (c_parser_declaration_or_fndef): Improved
24575         error message.
24576
24577 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
24578
24579         * config/i386/winnt.c (i386_pe_start_function): Make sure
24580         to switch back to function's section.
24581
24582 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
24583
24584         PR gcc/46902
24585         PR testsuite/46912
24586         * plugin.c: Move include of dlfcn.h from here...
24587         * system.h: ... to here.
24588
24589 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24590
24591         * doc/cpp.texi (C++ Named Operators): Fix markup for header
24592         file name.
24593         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
24594         two extra empty pages in PDF output.
24595
24596 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
24597
24598         PR objc/47078
24599         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
24600         for error recovery purposes behave as if it was not specified so
24601         that the default type is usd.
24602
24603 2011-01-07  Jan Hubicka  <jh@suse.cz>
24604
24605         PR tree-optmization/46469
24606         * ipa.c (function_and_variable_visibility): Clear needed flags on
24607         nodes with external decls; handle weakrefs merging correctly.
24608
24609 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
24610
24611         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
24612         not false.
24613
24614 2011-01-07  Jan Hubicka  <jh@suse.cz>
24615
24616         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
24617         and no longer claim that gold is required for linker plugin.
24618         * configure: Regenerate.
24619         * gcc.c (PLUGIN_COND): New macro.
24620         (LINK_COMMAND_SPEC): Use it.
24621         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
24622         * config.in (HAVE_LTO_PLUGIN): New.
24623         * configure.ac (--with-lto-plugin): New parameter; autodetect
24624         HAVE_LTO_PLUGIN.
24625
24626 2011-01-07  Jan Hubicka  <jh@suse.cz>
24627
24628         PR tree-optimization/46367
24629         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
24630         when we can update original.
24631         (cgraph_mark_inline_edge): Sanity check.
24632         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
24633
24634 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24635
24636         * config/spu/spu.h (ASM_COMMENT_START): Define.
24637
24638 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
24639
24640         PR driver/42445
24641         * gcc.c (%>S): New.
24642         (SWITCH_KEEP_FOR_GCC): Likewise.
24643         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
24644         (do_spec_1): Handle "%>".
24645
24646         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
24647
24648 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
24649
24650         PR target/47201
24651         * config/i386/i386.c (ix86_delegitimize_address): If
24652         simplify_gen_subreg fails, return orig_x.
24653
24654         PR bootstrap/47187
24655         * value-prof.c (gimple_stringop_fixed_value): Handle
24656         lhs of the call properly.
24657
24658 2011-01-07  Jan Hubicka  <jh@suse.cz>
24659
24660         PR lto/45375
24661         * lto-opt.c (lto_reissue_options): Set flag_shlib.
24662
24663 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
24664
24665         * target.def (function_switched_text_sections): New hook.
24666         * doc/tm.texi: Regenerated.
24667         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
24668         * final.c (default_function_switched_text_sections): New.
24669         (final_scan_insn): Call function_switched_text_sections when a
24670         mid-function section change occurs.
24671         * output.h (default_function_switched_text_sections): Declare.
24672         * config/darwin-protos.h (darwin_function_switched_text_sections):
24673         Likewise.
24674         * config/darwin.c (darwin_function_switched_text_sections): New.
24675         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
24676
24677 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
24678
24679         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
24680         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
24681         the secondary code fragment when outputting for DWARF == 2.
24682
24683 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
24684
24685         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
24686         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
24687         Remove.
24688         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
24689         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
24690
24691 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
24692
24693         PR debug/46704
24694         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
24695         when it is not empty.
24696
24697 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
24698
24699         Bobcat Enablement
24700         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
24701         (case ${target}): Add btver1.
24702         * config/i386/driver-i386.c (host_detect_local_cpu): Let
24703         -march=native recognize btver1 processors.
24704         * config/i386/i386-c.c (ix86_target_macros_internal): Add
24705         btver1 def_and_undef
24706         * config/i386/i386.c (struct processor_costs btver1_cost): New
24707         btver1 cost table.
24708         (m_BTVER1): New definition.
24709         (m_AMD_MULTIPLE): Includes m_BTVER1.
24710         (initial_ix86_tune_features): Add btver1 tune.
24711         (processor_target_table): Add btver1 entry.
24712         (static const char *const cpu_names): Add btver1 entry.
24713         (software_prefetching_beneficial_p): Add btver1.
24714         (ix86_option_override_internal): Add btver1 instruction sets.
24715         (ix86_issue_rate): Add btver1.
24716         (ix86_adjust_cost): Add btver1.
24717         * config/i386/i386.h (TARGET_BTVER1): New definition.
24718         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
24719         (enum processor_type): Add PROCESSOR_BTVER1.
24720         * config/i386/i386.md (define_attr "cpu"): Add btver1.
24721
24722 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24723
24724         PR target/43309
24725         * config/i386/i386.c (legitimize_tls_address)
24726         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
24727         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
24728         (tls_initial_exec_64_sun): New pattern.
24729
24730 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
24731
24732         * doc/invoke.texi (Overall Options): Improve wording and markup
24733         of the description of -wrapper.
24734
24735 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
24736
24737         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
24738         rdynamic, threads): New Driver options.
24739
24740 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24741
24742         PR target/38118
24743         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
24744         if coming from .tdata.
24745         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
24746
24747 2011-01-06  Jan Hubicka  <jh@suse.cz>
24748
24749         PR lto/47188
24750         * collect2.c (main): Do not enable LTOmode when plugin is active.
24751
24752 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
24753
24754         PR other/45915
24755         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
24756         --version output if supported.
24757         * configure: Regenerate.
24758
24759 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
24760
24761         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
24762         Driver options.
24763
24764 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
24765
24766         PR c/47150
24767         * c-convert.c (convert): When converting a complex expression
24768         other than COMPLEX_EXPR to a different complex type, ensure
24769         c_save_expr is called instead of save_expr, unless in_late_binary_op.
24770         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
24771         when converting COMPLEX_TYPE.
24772
24773 2011-01-06  Ira Rosen  <irar@il.ibm.com>
24774
24775         PR tree-optimization/47139
24776         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
24777         only the last reduction value is used outside the loop.  Update
24778         documentation.
24779
24780 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
24781
24782         * config/rtems.opt: New.
24783         * config.gcc (*-*-rtems*): Use rtems.opt.
24784
24785 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
24786
24787         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
24788         processors do not support 3DNow instructions.
24789
24790 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24791
24792         * config/spu/spu.c (spu_option_override): Set parameter
24793         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
24794
24795 2011-01-05  Jan Hubicka  <jh@suse.cz>
24796
24797         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
24798         at the command line.
24799
24800 2011-01-05  Martin Jambor  <mjambor@suse.cz>
24801
24802         PR lto/47162
24803         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
24804         deltas on streamed outgoing edges.
24805         (output_node_opt_summary): Output info for outgoing edges only when
24806         the node is in new parameter set.
24807         (output_cgraph_opt_summary): New parameter set, passed to the two
24808         aforementioned functions.  Update its forward declaration and its
24809         callee too.
24810
24811 2011-01-05  Tom Tromey  <tromey@redhat.com>
24812
24813         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
24814         operator to c_finish_omp_atomic.
24815         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
24816         (build_unary_op): Update.
24817         (build_modify_expr): Update.
24818         (build_asm_expr): Update.
24819
24820 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24821
24822         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
24823         newly inserted insns.
24824         (pad_bb): Likewise.
24825         (spu_emit_branch_hint): Likewise.
24826         (insert_hbrp_for_ilb_runout): Likewise.
24827         (spu_machine_dependent_reorg): Call df_finish_pass after
24828         schedule_insns returns.
24829
24830 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24831
24832         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
24833
24834 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
24835
24836         PR tree-optimization/47005
24837         * tree-sra.c (struct access): Add 'non_addressable' bit.
24838         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
24839         (decide_one_param_reduction): Return 0 if the parameter is passed by
24840         reference and one of the accesses in the group is non_addressable.
24841
24842 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24843
24844         PR tree-optimization/47056
24845         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
24846         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
24847         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
24848
24849 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
24850
24851         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
24852         initializer.  Skip view conversions from aggregate types.
24853
24854 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
24855
24856         PR bootstrap/47055
24857         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
24858
24859 2011-01-04  Philipp Thomas  <pth@suse.de>
24860
24861         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
24862         obvious typo.
24863
24864 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24865
24866         * function.c (thread_prologue_and_epilogue_insns): Do not crash
24867         on empty epilogue sequences.
24868
24869 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
24870
24871         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
24872         non-static): New Driver options.
24873
24874 2011-01-04  Jie Zhang  <jie@codesourcery.com>
24875
24876         PR driver/47137
24877         * gcc.c (default_compilers[]): Set combinable field to 0
24878         for all assembly languages.
24879
24880 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
24881
24882         * config/mips/loongson3a.md: New file.
24883         * config/mips/mips.md: Include loongson3a.md.
24884         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
24885         TUNE_LOONGSON_3A.
24886
24887 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
24888
24889         PR middle-end/47017
24890         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
24891         instead of convert_memory_address_addr_space on the base expression.
24892
24893 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24894
24895         * config/spu/spu.c (spu_option_override): Update error text
24896         for bad -march= / -mtune= values.
24897
24898 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24899
24900         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
24901         if branch-hint optimization will be performed.
24902
24903 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
24904
24905         PR tree-optimization/47148
24906         * ipa-split.c (split_function): Convert arguments to
24907         DECL_ARG_TYPE if possible.
24908
24909         PR tree-optimization/47155
24910         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
24911         when computing uns.
24912
24913         PR rtl-optimization/47157
24914         * combine.c (try_combine): If undobuf.other_insn becomes
24915         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
24916         and set *new_direct_jump_p too.
24917
24918 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
24919
24920         PR tree-optimization/47021
24921         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
24922
24923 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
24924
24925         * gcc.c (process_command): Update copyright notice dates.
24926         * gcov.c (print_version): Likewise.
24927         * gcov-dump.c (print_version): Likewise.
24928         * mips-tfile.c (main): Likewise.
24929         * mips-tdump.c (main): Likewise.
24930
24931 2011-01-03  Martin Jambor  <mjambor@suse.cz>
24932
24933         PR tree-optimization/46801
24934         * tree-sra.c (type_internals_preclude_sra_p): Check whether
24935         aggregate fields start at byte boundary instead of the bit-field flag.
24936
24937 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
24938
24939         PR driver/47137
24940         * gcc.c (main): Revert revision 168407.
24941
24942 2011-01-03  Martin Jambor  <mjambor@suse.cz>
24943
24944         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
24945
24946 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
24947
24948         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
24949         vector optab to expand vector/scalar shift, update gimple to vector.
24950
24951 2011-01-03  Martin Jambor  <mjambor@suse.cz>
24952
24953         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
24954         a thunk.
24955
24956 2011-01-03  Martin Jambor  <mjambor@suse.cz>
24957
24958         PR tree-optimization/46984
24959         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
24960         HOST_WIDE_INT.
24961         (cgraph_create_indirect_edge): Fixed line length.
24962         (cgraph_indirect_call_info): Declare.
24963         (cgraph_make_edge_direct) Update declaration.
24964         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
24965         (cgraph_create_indirect_edge): Use it.
24966         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
24967         callees.
24968         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
24969         the new thunk_delta representation.
24970         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
24971         HOST_WIDE_INT.
24972         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
24973         (ipa_read_indirect_edge_info): Likewise.
24974         * lto-cgraph.c (output_edge_opt_summary): New function.
24975         (output_node_opt_summary): Call it on all outgoing edges.
24976         (input_edge_opt_summary): New function.
24977         (input_node_opt_summary): Call it on all outgoing edges.
24978
24979 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
24980
24981         PR driver/47137
24982         * gcc.c (main): Don't check have_o when settting combine_inputs.
24983
24984 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
24985
24986         * regrename.c: Add general comment describing the pass.
24987         (struct du_head): Remove 'length' field.
24988         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
24989         (regrename_optimize): Do not sort chains.  Rework comments, add others.
24990         Force renaming to the preferred class (if any) in the first pass and do
24991         not consider registers that belong to it in the second pass.
24992         (create_new_chain): Do not set 'length' field.
24993         (scan_rtx_reg): Likewise.
24994
24995 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
24996
24997         PR tree-optimization/47140
24998         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
24999         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
25000         to bit_value_binop.
25001
25002         PR rtl-optimization/47028
25003         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
25004         parm_birth_insn instead of at the beginning of first bb.
25005
25006 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
25007
25008         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
25009         Remove the word "see" before "@pxref".
25010         * doc/rtl.texi: Remove the word "see" before "@pxref".
25011
25012 2011-01-01  Jan Hubicka  <jh@suse.cz>
25013
25014         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
25015         memory.
25016
25017 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
25018
25019         PR target/38662
25020         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
25021
25022 \f
25023 Copyright (C) 2011 Free Software Foundation, Inc.
25024
25025 Copying and distribution of this file, with or without modification,
25026 are permitted in any medium without royalty provided the copyright
25027 notice and this notice are preserved.