OSDN Git Service

2011-05-29 Richard Guenther <rguenther@suse.de>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-29  Richard Guenther  <rguenther@suse.de>
2
3         PR tree-optimization/49217
4         * ipa-pure-const.c (propagate_pure_const): Fix typos.
5
6 2011-05-28  Jan Hubicka  <jh@suse.cz>
7
8         * lto-streamer-out.c (hash_string_slot_node): Hash string based on its
9         length.
10         (string_slot_free): Remove
11         (create_output_block): Initialize obstack.
12         (destroy_output_block): Free obstack.
13         (lto_string_index): Add PERSISTENT parameter; do not duplicate
14         the string unless it needs to be added into the hash.
15         (lto_output_string_with_length): Add persistent attribute;
16         handle NULL strings.
17         (lto_output_string): Add PERSISTENT parameter.
18         (output_string_cst, output_identifier): Simplify.
19         (lto_output_location_bitpack): Update.
20         (lto_output_builtin_tree): Update.
21         * lto-streamer.h (struct output_block): Add obstack.
22         (lto_output_string, lto_output_string_with_length): Remove declarations;
23         functions are static now.
24
25 2011-05-28  Jan Hubicka  <jh@suse.cz>
26
27         * lto-streamer-out.c (pack_ts_fixed_cst_value_fields,
28         pack_ts_decl_common_value_fields, pack_ts_decl_with_vis_value_fields,
29         pack_ts_function_decl_value_fields, lto_output_builtin_tree,
30         output_cfg, output_gimple_stmt): Use enum and variable length i/o.
31         * lto-streamer-in.c (input_cfg, input_gimple_stmt,
32         unpack_ts_fixed_cst_value_fields, unpack_ts_decl_common_value_fields,
33         unpack_ts_decl_with_vis_value_fields,
34         unpack_ts_type_common_value_fields, unpack_ts_block_value_fields,
35         lto_get_builtin_tree): Use enum and variable length i/o.
36         * basic-block.h (profile_status_d): Add PROFILE_LAST.
37         * lto-streamer.h (bp_pack_int_in_range, bp_unpack_int_in_range):
38         New functions.
39         (bp_pack_enum, bp_unpack_enum): New macros.
40
41 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
42
43         * genrecog.c: Remove redundant forward declarations.
44
45 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
46
47         * config.gcc: Deprecate mips*-*-openbsd*.
48
49 2011-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
50
51         PR bootstrap/49195
52         * genrecog.c (add_to_sequence): Use XEXP rather than XVECEXP
53         for match_op_dup.
54
55 2011-05-27  Andrew Pinski  <pinskia@gmail.com>
56
57         PR middle-end/48981
58         * gengtype.c (vec_prefix_type): New function.
59         (note_def_vec): Use vec_prefix_type and change the length
60         attribute to be based on the prefix.
61         * vec.c: Include coretypes.h before vec.h.
62         (struct vec_prefix): Remove.
63         (vec_gc_p_reserve): Change the offsetof to sizeof.
64         (vec_gc_p_reserve_exact): Likewise.
65         (vec_heap_p_reserve): Likewise.
66         (vec_heap_p_reserve_exact): Likewise.
67         (vec_stack_o_reserve_1): Copy from +1 instead of from vec.
68         (vec_stack_p_reserve): Change the offsetof to sizeof.
69         (vec_stack_p_reserve_exact): Likewise.
70         * vec.h (struct vec_prefix): New struct definition.
71         (VEC_T(T,B)): Use vec_prefix instead of having num/alloc fields.
72         (VEC_T_GTY(T,B)): Likewise.
73         (DEF_VEC_FUNC_P(T)): Use prefix field.
74         (DEF_VEC_NONALLOC_FUNCS_O(T,A)): Likewise.
75         (DEF_VEC_NONALLOC_FUNCS_I(T,A)): Likewise.
76
77 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
78
79         PR tree-optimization/46728
80         * tree-ssa-math-opts.c (powi_as_mults_1): Add gimple_set_location.
81         (powi_as_mults): Add gimple_set_location.
82         (build_and_insert_call): New.
83         (gimple_expand_builtin_pow): Add handling for pow(x,y) when y is
84         0.5, 0.25, 0.75, 1./3., or 1./6.
85         
86 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
87
88         * doc/contrib.texi: Update copyright years.
89         (Contributors): Add Zdenek Sojka.
90
91 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
92
93         * c-decl.c (c_push_function_context): Copy the current statement
94         list stack.
95         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
96         (finish_struct): Call building_stmt_list_p instead of checking
97         cur_stmt_list.
98         * c-parser.c (c_parser_postfix_expression): Likewise.
99         * c-typeck.c (c_end_compound_stmt): Likewise.
100         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
101         * tree-iterator.c (stmt_list_cache): Change to a VEC.
102         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
103         (free_stmt_list): Likewise.
104         * tree.h (struct tree_statement_list): Include typed_tree instead
105         of tree_common.
106         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
107         as TS_TYPED instead of TS_COMMON.
108
109 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
110             Uros Bizjak <ubizjak@gmail.com>
111
112         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
113         (HAVE_AS_IX86_TLSGDPTL): Define.
114         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
115         (HAVE_AS_IX86_TLSLDMPLT): Define.
116         * configure: Regenerate.
117         * config.in: Regenerate.
118         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
119         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
120         TARGET_SUN_TLS, use @tlsgdplt or @plt.
121         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
122         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
123         @tlsldmplt or @plt.
124         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
125
126 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
127
128         * sched-int.h (struct _haifa_deps_insn_data): New members cond
129         and reverse_cond.
130         (INSN_COND, INSN_REVERSE_COND): New macros.
131         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
132         once.
133         (sched_get_condition_with_rev): Cache the results, and look them up
134         if possible.
135         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
136         are clobbered by the current insn.
137         * target.def (exposed_pipline): New sched data hook.
138         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
139         * doc/tm.texi: Regenerate.
140
141 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
142
143         PR tree-optimization/49170
144         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
145         sincos or cexp.
146
147 2011-05-27  Richard Guenther  <rguenther@suse.de>
148
149         PR middle-end/49189
150         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
151         of comparisons.
152
153 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
154
155         * haifa-sched.c (sched_scan_info): Remove.
156         (schedule_block): Call sched_extend_luids rather than sched_init_luids
157         with NULL args.
158         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
159         Remove functions.
160         (sched_scan): Remove.
161         (sched_extend_luids): Renamed from luids_extend_insn and no longer
162         static.  All callers changed.
163         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
164         static.  All callers changed.
165         (sched_init_luids): Remove all arguments except the first.  All
166         callers changed.  Don't use sched_scan.
167         (haifa_init_h_i_d): Likewise.
168         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
169         manually rather than using sched_init_luids.  Likewise with
170         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
171         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
172         rather than sched_init_luids with NULL args.
173         * sel-sched-ir.c (new_insns): Remove variable.
174         (sched_scan): New static function, previously in haifa-sched.c.  Remove
175         all arguments but the first two; all callers changed.
176         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
177         rather than sched_init_luids.
178         (sel_init_bbs): Remove second argument.  All callers changed.
179         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
180         with NULL arguments.
181         (create_insn_rtx_from_pattern): Likewise.
182         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
183         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
184         (sched_init_insn_luid, sched_extend_luids): Declare.
185         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
186         declarations.
187
188 2011-05-27  Richard Guenther  <rguenther@suse.de>
189
190         PR middle-end/49177
191         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
192         A CMP B ? (T) true : (T) false for non-integral types T again.
193
194 2011-05-27  Jan Hubicka  <jh@suse.cz>
195
196         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
197         so 0 means NULL string.
198         (lto_output_string_with_length): ... here.
199         (lto_output_string, output_string_cst, output_identifier): Update
200         handling of NULL strings.
201         (lto_output_location_bitpack): New function.
202         (lto_output_location): Use it.
203         (lto_output_tree_ref): Use output_record_start.
204         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
205         len values.
206         * lto-streamer-in.c (string_for_index): Break out from ...; offset
207         values by 1.
208         (input_string_internal): ... here; 
209         (input_string_cst, input_identifier, lto_input_string): Update handling
210         of NULL strings.
211         (lto_input_location_bitpack): New function
212         (lto_input_location): Use it.
213         (unpack_ts_type_common_value_fields): Pack align & alias in var len
214         values.
215         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
216         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
217         (bp_pack_value): Sanity check the value range.
218         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
219         New functions.
220         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
221         New functions.
222
223 2011-05-27  Hariharan Sandanagobalane <hariharan@picochip.com>
224
225         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
226         call_arg_location instructions down the floor.
227
228 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
229
230         PR rtl-optimization/49154
231         * ira.c (setup_pressure_classes): Process class without sublcasses
232         as a candidate for pressure classes.
233
234 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
235
236         PR rtl-optimization/48575
237         * genrecog.c (position_type): New enum.
238         (position): New structure.
239         (decision): Use position structure instead of a string.
240         (root_pos, peep2_insn_pos_list): New variables.
241         (next_position, compare_positions): New functions.
242         (new_decision): Use position structures instead of strings.
243         (maybe_both_true): Likewise.
244         (change_state): Likewise.
245         (write_tree): Likewise.
246         (make_insn_sequence): Likewise.
247
248 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
249
250         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
251         TS_BASE instead of TS_COMMON.
252         (find_decls_types_r): Check for TS_TYPED structure before looking at
253         TREE_TYPE.
254         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
255         Add chain field.
256         (BLOCK_CHAIN): Use new chain field.
257
258 2011-05-26  Pat Haugen <pthaugen@us.ibm.com>
259
260         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
261         moves expensive on Power7 also.
262
263 2011-05-26  Richard Guenther  <rguenther@suse.de>
264
265         * fold-const.c (fold_unary_loc): Remove bogus code.
266
267 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
268
269         * tree.h (struct tree_identifier): Inherit from tree_typed, not
270         tree_common.
271         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
272         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
273         TS_BASE instead of TS_COMMON.
274         * varasm.c (assemble_name): Remove assert.
275
276 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
277
278         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
279         substituted first.
280         * libgcc-std.ver: Delete file.
281
282 2011-05-26  Richard Guenther  <rguenther@suse.de>
283
284         PR tree-optimization/48702
285         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
286         only when we know the base address is within bounds.
287         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
288         assume the base address of TARGET_MEM_REFs is in bounds.
289
290 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
291
292         PR target/49099
293         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
294         declaration in TARGET_SOLARIS.
295
296 2011-05-26  Hariharan Sandanagobalane <hariharan@picochip.com>
297
298         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
299           The instruction is then expanded explicitly.
300         (supported_compare): Callable instruction.
301         (compare): Likewise.
302
303 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
304
305         PR c++/49165
306         * gimplify.c (shortcut_cond_r): Don't special case
307         COND_EXPRs if they have void type on one of their arms.
308
309 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
310
311         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
312         to reduce duplication, and to achieve a slightly more logical order
313         of operations.
314
315 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
316
317         PR tree-optimization/49161
318         * tree-vrp.c (struct case_info): New type.
319         (compare_case_labels): Sort case_info structs instead of
320         trees, and not primarily by CASE_LABEL uids but by
321         label_for_block indexes.
322         (find_switch_asserts): Put case labels into struct case_info
323         array instead of TREE_VEC, adjust sorting, compare label_for_block
324         values instead of CASE_LABELs.
325
326 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
327
328         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
329         ("orndi3_neon"): Likewise.
330         ("bic<mode>3_neon"): Likewise.
331
332 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
333
334         PR tree-optimization/49038
335         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
336         Ensure at least one epilogue iteration if required by data
337         accesses with gaps.
338         * tree-vectorizer.h (struct _loop_vec_info): Add new field
339         to mark loops that require peeling for gaps.
340         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
341         (vect_get_known_peeling_cost): Take peeling for gaps into
342         account.
343         (vect_transform_loop): Generate epilogue if required by data
344         access with gaps.
345         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
346         loop as requiring an epilogue if there are gaps in the end of
347         the strided group.
348
349 2011-05-25  Ian Lance Taylor  <iant@google.com>
350
351         * godump.c (go_format_type): Output the first field with a usable
352         Go type, if any.
353
354 2011-05-25  Ian Lance Taylor  <iant@google.com>
355
356         * godump.c (go_format_type): Check for invalid type names, pointer
357         target types, and struct field types.
358
359 2011-05-25  Jason Merrill  <jason@redhat.com>
360
361         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
362
363 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
364
365         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
366
367 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
368
369         * config/i386/i386.md (*movqi_extv_1)): Put back
370         "register_operand" check in "type" calculation.
371         (*movqi_extzv_2): Likewise.
372
373 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
374
375         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
376
377 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
378
379         PR bootstrap/49160
380         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
381         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
382         __divxc3, __divtc3): Wrap definitions in #ifndef.
383
384 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
385
386         PR target/49142
387         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
388         "register_operand" check and replace q_regs_operand with
389         QIreg_operand in "type" calculation.
390         (*movqi_extv_1): Likewise.
391         (*movqi_extzv_2_rex64): Likewise.
392         (*movqi_extzv_2): Likewise.
393
394         * config/i386/predicates.md (QIreg_operand): New.
395
396 2011-05-25  Richard Guenther  <rguenther@suse.de>
397
398         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
399         type-based offset disambiguation, streamline MEM_REF and
400         TARGET_MEM_REF handling.
401
402 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
403
404         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
405         (bdesc_special_args): Add pause intrinsic.
406
407         * config/i386/i386.md (UNSPEC_PAUSE): New.
408         (pause): Likewise.
409         (*pause): Likewise.
410         * config/i386/ia32intrin.h (__pause): Likewise.
411
412         * doc/extend.texi (X86 Built-in Functions): Add documentation for
413         pause intrinsic.
414
415 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
416
417         PR tree-optimization/46728
418         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
419         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
420
421 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
422
423         * tree.h (struct tree_exp): Inherit from struct tree_typed.
424         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
425         instead of TS_COMMON.
426
427 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
428
429         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
430         LIBGCC2_GNU_PREFIX is defined.
431         (__N): New macro.
432         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
433         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
434         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
435         __clz_tab): Define using __N.
436         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
437         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
438         * target.def (libfunc_gnu_prefix): New hook.
439         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
440         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
441         * doc/tm.texi: Regenerate.
442         * system.h (LIBGCC2_GNU_PREFIX): Poison.
443         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
444         account.
445         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
446         (init_optabs): Likewise for the bswap libfuncs.
447         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
448         and divide.
449         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
450         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
451         * libgcc-std.ver: Remove.
452         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
453         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
454         libgcc-std.ver.
455         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
456         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
457         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
458         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
459         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
460         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
461         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
462         * config/fixed-bit.h (FIXED_OP): Define differently depending on
463         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
464         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
465
466 2011-05-25  Jan Hubicka  <jh@suse.cz>
467
468         * lto-streamer-out.c (output_record_start): Use lto_output_enum
469         (lto_output_tree): Use output_record_start.
470         * lto-streamer-in.c (input_record_start): Use lto_input_enum
471         (lto_get_pickled_tree): Use input_record_start.
472         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
473         (lto_value_range_error): New function.
474         * lto-streamer.h (lto_value_range_error): Declare.
475         (lto_output_int_in_range, lto_input_int_in_range): New functions.
476         (lto_output_enum, lto_input_enum): New macros.
477
478 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
479
480         * common.opt (flag_stack_usage_info): New variable.
481         (-Wstack-usage): New option.
482         * doc/invoke.texi (Warning options): Document -Wstack-usage.
483         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
484         <OPT_fstack_usage>: Likewise.
485         * toplev.c (output_stack_usage): Handle -Wstack-usage.
486         * calls.c (expand_call): Test flag_stack_usage_info variable instead
487         of flag_stack_usage.
488         (emit_library_call_value_1): Likewise.
489         * explow.c (allocate_dynamic_stack_space): Likewise.
490         * function.c (instantiate_virtual_regs ): Likewise.
491         (prepare_function_start): Likewise.
492         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
493         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
494         * config/arm/arm.c (arm_expand_prologue): Likewise.
495         (thumb1_expand_prologue): Likewise.
496         * config/avr/avr.c (expand_prologue): Likewise.
497         * config/i386/i386.c (ix86_expand_prologue): Likewise.
498         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
499         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
500         * config/mips/mips.c (mips_expand_prologue): Likewise.
501         * config/pa/pa.c (hppa_expand_prologue): Likewise.
502         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
503         * config/s390/s390.c (s390_emit_prologue): Likewise.
504         * config/sh/sh.c (sh_expand_prologue): Likewise.
505         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
506         * config/spu/spu.c (spu_expand_prologue): Likewise.
507
508 2011-05-25  Richard Guenther  <rguenther@suse.de>
509
510         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
511         (gimple_canonical_types_compatible_p): Likewise.
512
513 2011-05-25  Jan Hubicka  <jh@suse.cz>
514
515         PR middle-end/49062
516         * ipa.c (function_and_variable_visibility): Only add to same
517         comdat group list if DECL_ONE_ONLY.
518
519 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
520
521         PR rtl-optimization/49014
522         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
523
524 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
525
526         PR target/49128
527         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
528
529 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
530
531         PR rtl-optimization/48757
532         * ira-build.c (loop_with_eh_edge_p): Rename to
533         loop_with_complex_edge_p, check edges on complexity, make function
534         conditional.
535         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
536         conditional.
537
538 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
539
540         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
541         force flag_ira_share_save_slots to 0.
542
543 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
544
545         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
546         (vt_initialize): Set PROLOGUE_BB unconditionally.
547         Add block comment about CFA_BASE_RTX machinery.
548         Reset FP_CFA_OFFSET to -1 on all invalid paths.
549         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
550
551 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
552
553         PR objc/48187
554         * c-parser.c (c_parser_objc_class_instance_variables): More robust
555         parsing of syntax error in ObjC instance variable lists.  In
556         particular, avoid an infinite loop if there is a stray ']'.
557         Updated error message.
558
559 2011-05-24  Ian Lance Taylor  <iant@google.com>
560
561         * godump.c (go_define): Don't accept a string immediately after
562         another operand.
563
564 2011-05-24  Ian Lance Taylor  <iant@google.com>
565
566         * godump.c (struct godump_container): Add invalid_hash field.
567         (go_format_type): Return false if type is found in invalid_hash.
568         (go_output_typedef): Add invalid type to invalid_hash.
569         (go_finish): Create and delete invalid_hash.
570
571 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
572
573         PR tree-optimization/46728
574         * tree-ssa-math-opts.c (powi_table): New.
575         (powi_lookup_cost): New.
576         (powi_cost): New.
577         (powi_as_mults_1): New.
578         (powi_as_mults): New.
579         (gimple_expand_builtin_powi): New.
580         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
581         (gate_cse_sincos): Remove sincos/cexp restriction.
582
583 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
584
585         PR target/3746
586         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
587         mips-tdump native.
588         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
589         * mips-tdump.c: Likewise.
590
591 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
592
593         PR target/49128
594         * config/i386/driver-i386.c (host_detect_local_cpu): Always
595         add -mno-XXX.  Handle FMA.
596
597 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
598
599         PR rtl-optimization/48633
600         * ira-build.c (loop_with_eh_edge_p): New function.
601         (mark_loops_for_removal): Use it.
602
603 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
604
605         PR rtl-optimization/48971
606         * ira.c (setup_pressure_classes): Don't check register move cost
607         for classes with one registers.  Don't add pressure class if there
608         is a pressure class with the same available hard registers.
609         Check contains_reg_of_mode.  Fix a typo in collecting
610         temp_hard_regset.  Ignore hard registers not belonging to a class.
611
612 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
613
614         PR target/49133
615         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
616
617 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
618             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
619
620         PR gcov-profile/48845
621         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
622
623 2011-05-24  Richard Guenther  <rguenther@suse.de>
624
625         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
626         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
627         (gimple_types_compatible_p_1): Adjust.
628         (iterative_hash_canonical_type): Do not bother about complete vs.
629         incomplete types.
630         (gimple_canonical_types_compatible_p): Likewise.
631
632 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
633
634         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
635
636 2011-05-24  Richard Guenther  <rguenther@suse.de>
637
638         PR bootstrap/49078
639         * gimple.c (gimple_register_canonical_type): Revert
640         previous change.
641         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
642         does not for a tree for the case where it matters.  Cache
643         pointer-type alias-sets.
644
645 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
646
647         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
648         (OBJS): Remove options.o, opts-common.o and prefix.o.
649         (OBJS-libcommon-target): New.
650         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
651         (BACKEND): Include libcommon-target.a.
652         (MOSTLYCLEANFILES): Include libcommon-target.a.
653         (libcommon-target.a): New.
654         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
655         prefix.o.
656
657 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
658
659         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
660         parts of output shared with the driver.
661         * optc-gen.awk: Don't generate parts of output not shared with the
662         driver.
663         * opth-gen.awk: Remove GCC_DRIVER conditionals.
664         * doc/options.texi (SourcerInclude): Mention options-save.c.
665         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
666         (OBJS): Add options-save.o.
667         (options-save.c, options-save.o): New.
668         (options.o): Update dependencies.
669         (gcc-options.o): Remove.
670         (mostlyclean): Remove options-save.c.
671
672 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
673
674         PR debug/49032
675         * dbxout.c: Include cgraph.h.
676         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
677         and without value expr, return NULL if no varpool node exists for
678         it or if it is not needed.
679         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
680
681         PR c/49120
682         * c-decl.c (start_decl): Convert expr to void_type_node.
683
684 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
685
686         PR rtl-optimization/48826
687         * emit-rtl.c (try_split): When splitting a call that is followed
688         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
689
690 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
691
692         * cfgexpand.c (expand_debug_expr): For unused non-addressable
693         parameters passed in memory prefer using DECL_INCOMING_RTL over
694         the pseudos it will be copied into.
695
696 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
697
698         PR target/47315
699         * config/i386/i386.c (ix86_option_override_internal): Save the
700         initial options after checking vzeroupper.
701
702 2011-05-23  David Li  <davidxl@google.com>
703
704         PR tree-optimization/48988
705         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
706         Initialize has_valid_pred for each pred chain.
707
708 2011-05-23  Richard Guenther  <rguenther@suse.de>
709
710         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
711         (iterative_hash_gimple_type): Always hash type names.
712
713 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
714
715         * c-typeck.c (build_function_call_vec): Tweak call to
716         check_function_arguments.
717
718 2011-05-23  Richard Guenther  <rguenther@suse.de>
719
720         PR tree-optimization/49115
721         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
722         is not necessarily carried out, do not claim it kills the ref.
723         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
724
725 2011-05-23  Richard Guenther  <rguenther@suse.de>
726
727         PR middle-end/15419
728         * builtins.c (fold_builtin_memory_op): Be less restrictive about
729         what pointer types we accept for folding.
730
731 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
732
733         * gthr-gnat.c: Remove.
734         * gthr-gnat.h: Remove.
735         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
736         * config/t-freebsd (LIB2ADDEH): Likewise.
737         * config/t-linux (LIB2ADDEH): Likewise.
738         * config/t-sol2 (LIB2ADDEH): Likewise.
739         * config/ia64/t-vms (LIB2ADDEH): Likewise.
740         * configure.ac (target_thread_file): Remove gnat handling.
741         * configure: Regenerate.
742         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
743
744 2011-05-23  Tristan Gingold  <gingold@adacore.com>
745             Eric Botcazou  <ebotcazou@adacore.com>
746
747         * gcov.c (create_file_names): If no object directory is specified,
748         keep the directory of the file.
749
750 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
751
752         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
753         * configure: Regenerate.
754
755 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
756
757         PR middle-end/48973
758         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
759         failed and the comparison has a single bit signed type, use
760         constm1_rtx instead of const1_rtx for true value.
761         (do_store_flag): If ops->type is single bit signed type, disable
762         signel bit test optimization and pass -1 instead of 1 as last
763         parameter to emit_store_flag_force.
764
765 2011-05-23  Tom de Vries  <tom@codesourcery.com>
766
767         PR target/45098
768         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
769         function.
770         (infer_loop_bounds_from_undefined): Use new function.
771
772 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
773
774         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
775         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
776         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
777         and -O0 otherwise.
778         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
779
780 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
781
782         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
783         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
784         returns true.
785
786 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
787
788         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
789
790 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
791
792         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
793         UNSPEC_MOVE_PIC pattern.
794
795 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
796
797         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
798         (sparc-*-rtems*): Likewise.
799         (sparc64-*-elf*): Likewise.
800         (sparc64-*-rtems*): Likewise.
801         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
802         * config/sparc/t-crtin: New file.
803         * config/sparc/t-sol2 (crti.o): Delete rule.
804         (crtn.o): Likewise.
805         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
806         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
807         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
808         (ENDFILE_SPEC): Add crtn.o.
809
810 2011-05-22  Tom de Vries  <tom@codesourcery.com>
811
812         PR middle-end/48689
813         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
814         CODE_CONTAINS_STRUCT (TS_COMMON).
815
816 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
817
818         PR middle-end/49029
819         * expmed.c (extract_fixed_bit_field): Test whether target can be used
820         only after deciding which mode to use.
821
822 2011-05-22  Tom de Vries  <tom@codesourcery.com>
823
824         PR target/45098
825         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
826         for call to get_shiftadd_cost.
827
828 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
829
830         PR target/49104
831         * config/i386/cpuid.h (bit_MMXEXT): New define.
832
833 2011-05-22  Nick Clifton  <nickc@redhat.com>
834
835         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
836         initialisation of non-existant args[2] element.  Use args[] array
837         not arg[] array to pass arguments to build_function_type_list.
838
839 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
840
841         PR tree-optimization/49087
842         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
843
844 2011-05-21  Jason Merrill  <jason@redhat.com>
845
846         PR c++/49092
847         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
848         static storage duration.
849
850 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
851
852         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
853         frame pointer.
854
855 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
856
857         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
858         false if there are call-saved registers here...
859         (sparc_can_use_return_insn_p): ...but here instead.
860         (save_or_restore_regs): Fix thinko.
861         (sparc_expand_prologue): Use current_function_is_leaf.
862         (sparc_frame_pointer_required): Likewise.
863
864 2011-05-21  Nick Clifton  <nickc@redhat.com>
865
866         PR target/49098
867         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
868
869 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
870
871         * gengtype.c (walk_type): Implemented "atomic" GTY option.
872         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
873
874 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
875
876         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
877         * optc-gen.awk: Move common code to opt-read.awk.
878         * opth-gen.awk: Likewise.
879         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
880
881 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
882
883         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
884
885 2011-05-20  Tom de Vries  <tom@codesourcery.com>
886
887         PR target/45098
888         * tree-ssa-loop-ivopts.c: Include expmed.h.
889         (get_shiftadd_cost): New function.
890         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
891
892 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
893
894         PR bootstrap/49086
895         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
896         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
897
898 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
899
900         * Makefile.in: Update comment referring to $(OBJS-common).
901
902 2011-05-20  Ian Lance Taylor  <iant@google.com>
903
904         * godump.c (go_output_typedef): Put enum constants in the macro
905         hash table to avoid duplicate Go const definitions.
906
907 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
908
909         * Makefile.in (LIBDEPS): Add libcommon.a.
910         (LIBS): Likewise.
911         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
912         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
913         pretty-print.o and version.o.
914         (OBJS-libcommon): New.
915         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
916         (BACKEND): Add libcommon.a.
917         (MOSTLYCLEANFILES): Likewise.
918         (libcommon.a): New.
919         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
920         (cpp$(exeext)): Likewise.
921         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
922         pretty-print.o and input.o.
923         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
924         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
925         (errors.o): Remove.
926         (mips-tfile): Don't explicitly use version.o.
927         (mips-tdump): Likewise.
928         (gcov.o): Depend on $(DIAGNOSTIC_H).
929         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
930         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
931         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
932         * gcov-dump.c: Include intl.h and diagnostic.h.
933         (main): Initialize diagnostics.
934         * gcov.c: Include diagnostic.h.
935         (fnotice): Remove.
936         (main): Initialize diagnostics.
937         * lto-wrapper.c: Include diagnostic.h.
938         (main): Initialize diagnostics.
939
940 2011-05-20  Michael Matz  <matz@suse.de>
941
942         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
943
944 2011-05-20  Michael Matz  <matz@suse.de>
945             Richard Guenther  <rguenther@suse.de>
946
947         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
948         use lto_streamer_cache_append directly instead of returning a VEC.
949         (preload_common_node): Remove.
950         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
951         track seen nodes.
952         (lto_streamer_cache_create): Call lto_preload_common_nodes.
953
954 2011-05-20  Richard Guenther  <rguenther@suse.de>
955
956         PR tree-optimization/49079
957         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
958         MEM_REFs correctly for the trailing array access detection.
959         Special case constants the same way as decls for overall size
960         constraining.
961
962 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
963
964         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
965         argument expansion.
966
967 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
968
969         PR tree-optimization/49073
970         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
971         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
972         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
973
974 2011-05-20  Richard Guenther  <rguenther@suse.de>
975
976         PR middle-end/48849
977         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
978         of pointer types the same way the middle-end does.
979
980 2011-05-20  Richard Guenther  <rguenther@suse.de>
981
982         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
983         or pointer-to chains.  Delay all fixup to uniquify_nodes.
984
985 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
986
987         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
988         (fma4_fmaddsub): Likewise
989
990 2011-05-19  Jan Hubicka  <jh@suse.cz>
991
992         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
993         (GIMPLE_TYPE_PAIR_SIZE): New macro.
994         (type_pair_cache): New static var.
995         (lookup_type_pair): Use fixed sized custom hash; make inline.
996         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
997         calls of lookup_type_pair.
998         (print_gimple_types_stats): Remove cache stats.
999         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
1000         and gtc_ob.
1001
1002 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
1003
1004         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
1005         when TARGET_RDRND is active.
1006         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
1007         Generate dummy SImode target register when target is NULL.
1008
1009 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
1010
1011         * config/arm/arm-fpus.def: New.
1012         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
1013         arm-fpus.def.
1014         * config/arm/arm-tables.opt: Regenerate.
1015         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
1016         (arm_option_override): Don't decode FPU name to string here.
1017         * config/arm/arm.opt (mfpu=): Use Enum.
1018         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
1019         Update dependencies.
1020
1021 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
1022
1023         * collect2.c: Include diagnostic.h.
1024         (fatal_perror, fatal, error, fancy_abort): Remove.
1025         (main): Set progname.  Call xmalloc_set_program_name and
1026         diagnostic_initialize.
1027         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
1028         scan_libraries, resolve_lib_name): Call fatal_error instead of
1029         fatal and fatal_perror.
1030         * collect2.h (error, fatal, fatal_perror): Don't declare.
1031         * tlink.c: Include diagnostic-core.h.
1032         (recompile_files): Call fatal_error instead of fatal_perror.
1033         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
1034         pretty-print.o and input.o.
1035         (collect2.o, tlink.o): Update dependencies.
1036
1037 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1038
1039         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
1040
1041 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1042
1043         PR target/40483
1044         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
1045         COMDAT group syntax, both SPARC and x86 variants.
1046         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
1047         * configure: Regenerate.
1048         * config/sol2.h (TARGET_SOLARIS): Define.
1049         (PUSHSECTION_FORMAT): Remove.
1050         (SECTION_NAME_FORMAT): Define.
1051         * config/sol2.c: Include hashtab.h.
1052         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
1053         expansion, using SECTION_NAME_FORMAT.
1054         (solaris_comdat_htab): New variable.
1055         (struct comdat_entry): Define.
1056         (comdat_hash): New function.
1057         (comdat_eq): New function.
1058         (solaris_elf_asm_comdat_section): New function.
1059         (solaris_define_comdat_signature): New function.
1060         (solaris_code_end): New function.
1061         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
1062         (solaris_code_end): Declare.
1063         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
1064         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
1065         solaris_code_end.
1066         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
1067         Remove ATTRIBUTE_UNUSED.
1068         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
1069         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
1070         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
1071         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
1072         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
1073         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
1074         (PUSHSECTION_FORMAT): Remove.
1075         (SECTION_NAME_FORMAT): Redefine.
1076
1077 2011-05-19  Kai Tietz  <ktietz@redhat.com>
1078
1079         * tree-cfg.c (verify_gimple_assign_binary): Barf on
1080         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
1081         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
1082
1083 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
1084             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1085
1086         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1087
1088 2011-05-19  Richard Guenther  <rguenther@suse.de>
1089
1090         PR middle-end/48985
1091         * tree-object-size.c (addr_object_size): If the pointed-to
1092         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1093
1094 2011-05-19  Richard Guenther  <rguenther@suse.de>
1095
1096         * gimple.c (gimple_types_compatible_p_1): Compare names of
1097         the types themselves.
1098         (iterative_hash_gimple_type): And hash them that way.
1099         (gimple_register_type_1): If we register a main variant properly
1100         initialize the leader to ourselves.
1101
1102 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1103
1104         PR target/45098
1105         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1106         get_loop_invariant_expr_id.
1107         (get_loop_invariant_expr_id): Use get_expr_id.
1108         (parm_decl_cost): New function.
1109         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1110         Improve bound cost estimation.  Use different inv_expr_id for elim and
1111         express cases.
1112
1113 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1114
1115         PR target/45098
1116         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1117         cost_base.cost == 0.
1118
1119 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1120
1121         PR target/49002
1122         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1123         Properly handle load cast.
1124
1125 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1126
1127         PR tree-optimization/49039
1128         * tree-vrp.c (extract_range_from_binary_expr): For
1129         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1130         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1131
1132 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1133
1134         PR target/45098
1135         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1136
1137 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
1138
1139         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1140         (*tls_global_dynamic_64): Ditto.
1141         (*tls_local_dynamic_base_32_gnu): Ditto.
1142         (*tls_local_dynamic_base_64): Ditto.
1143         (tls_initial_exec_64_sun): Ditto.
1144
1145 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
1146
1147         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1148         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1149         bf592-none.
1150         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1151         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1152         * config/bfin/bfin.c (bfin_cpus): Add bf592.
1153         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1154         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1155         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1156         * config/bfin/elf.h (LIB_SPEC): Add bf592.
1157
1158 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
1159
1160         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1161         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1162         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1163         target_thread_pointer, arm_structure_size_boundary, struct
1164         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1165         struct abi_name, arm_all_abis): Remove.
1166         (arm_option_override) Don't process most enumerated option values here.
1167         Don't process target_fpe_name here.  Work with integer not string for
1168         structure size boundary; use separate diagnostics for each case.
1169         * config/arm/arm.h (enum float_abi_type, enum
1170         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1171         to arm-opts.h.
1172         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1173         arm_structure_size_boundary): Remove.
1174         * config/arm/arm.opt (mabi=): Use Enum and Init.
1175         (arm_abi_type): New Enum and EnumValue entries.
1176         (mfloat-abi=): Use Enum and Init.
1177         (float_abi_type): New Enum and EnumValue entries.
1178         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1179         (mfp16-format=): Use Enum and Init.
1180         (arm_fp16_format_type): New Enum and EnumValue entries.
1181         (mstructure-size-boundary=): Use UInteger and Init.
1182         (mtp=): Use Enum and Init.
1183         (arm_tp_type): New Enum and EnumValue entries.
1184
1185 2011-05-18  Richard Guenther  <rguenther@suse.de>
1186
1187         PR tree-optimization/49018
1188         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1189         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1190         gimple_has_side_effects.
1191
1192 2011-05-18  Richard Guenther  <rguenther@suse.de>
1193
1194         * gimple.c (gimple_register_type_1): New function, split out from ...
1195         (gimple_register_type): ... here.  Avoid infinite recursion.
1196
1197 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
1198
1199         PR tree-optimization/41881
1200         * tree-vectorizer.h (struct _loop_vec_info): Add new field
1201         reduction_chains along with a macro for its access.
1202         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1203         (destroy_loop_vec_info): Free reduction chains.
1204         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1205         (vect_is_slp_reduction): New function.
1206         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1207         (vect_create_epilog_for_reduction): Support SLP reduction chains.
1208         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1209         definition types for reduction chains.
1210         (vect_supported_load_permutation_p): Don't allow permutations for
1211         reduction chains.
1212         (vect_analyze_slp_instance): Support reduction chains.
1213         (vect_analyze_slp): Try to build SLP instance from reduction chains.
1214         (vect_get_constant_vectors):  Handle reduction chains.
1215         (vect_schedule_slp_instance): Mark the first statement of the
1216         reduction chain as reduction.
1217
1218 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
1219
1220         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1221         names for group elements access.
1222         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1223         reduction chains as well.  Remove data reference and interleaving
1224         related words from the fields names.
1225         * tree-vect-loop.c (vect_transform_loop): Use new names for group
1226         elements access.
1227         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1228         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1229         vect_update_interleaving_chain, vect_same_range_drs,
1230         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1231         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1232         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1233         vect_analyze_group_access, vect_analyze_data_ref_access,
1234         vect_create_data_ref_ptr, vect_transform_strided_load,
1235         vect_record_strided_load_vectors): Likewise.
1236         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1237         vect_model_load_cost, vectorizable_store, vectorizable_load,
1238         vect_remove_stores, new_stmt_vec_info): Likewise.
1239         * tree-vect-slp.c (vect_build_slp_tree,
1240         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1241
1242 2011-05-18  Richard Guenther  <rguenther@suse.de>
1243
1244         PR middle-end/48989
1245         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1246         operand verification.
1247         (verify_gimple_assign_binary): Likewise.
1248         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1249         to non-1-precision BOOLEAN_TYPEs.
1250
1251 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1252
1253         PR target/45098
1254         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1255
1256 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1257
1258         PR tree-optimization/49000
1259         * tree-ssa.c (execute_update_addresses_taken): Call
1260         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
1261         be rewritten and decl has been marked for renaming, reset
1262         the debug stmt.
1263
1264 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
1265
1266         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1267         enum_opts_set when testing if attributes have set -mfpmath=.
1268
1269 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
1270
1271         * config/mips/mips.c (mips_handle_option): Remove unused variable.
1272
1273 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1274
1275         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1276         info->entry with 0
1277         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
1278         id.transform_lang_insert_block with NULL.
1279
1280 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1281
1282         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1283         (output_fp_compare): Change args 3 and 4 to bool.
1284         (ix86_expand_call): Change arg 6 to bool.
1285         (ix86_attr_length_immediate_default): Change arg 2 to bool.
1286         (ix86_attr_length_vex_default): Change arg 3 to bool.
1287         * config/i386/i386.md: Update all uses.
1288         * config/i386/i386.c: Ditto.
1289         (ix86_flags_dependent): Change return type to bool.
1290
1291 2011-05-17  Richard Guenther  <rguenther@suse.de>
1292
1293         * gimple.c (type_hash_pair_compare): Fix comparison.
1294
1295 2011-05-17  Richard Guenther  <rguenther@suse.de>
1296
1297         * gimple.c (iterative_hash_gimple_type): Simplify singleton
1298         case some more, fix final hash value of the non-singleton case.
1299
1300 2011-05-17  Richard Guenther  <rguenther@suse.de>
1301
1302         PR bootstrap/49013
1303         Revert
1304         2011-05-16  Richard Guenther  <rguenther@suse.de>
1305
1306         * gimple.c (gimple_types_compatible_p_1): Use names of the
1307         type itself, not its main variant.
1308         (iterative_hash_gimple_type): Likewise.
1309
1310 2011-05-17  Richard Guenther  <rguenther@suse.de>
1311
1312         * gimple.c (gimple_register_canonical_type): Use the main-variant
1313         leader for computing the canonical type.
1314
1315 2011-05-17  Nick Clifton  <nickc@redhat.com>
1316
1317         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1318         moves.
1319
1320         * config/rx/rx.md: Add peephole to remove redundant extensions
1321         after loads.
1322         (bitset_in_memory): Use rx_restricted_mem_operand.
1323         (bitinvert_in_memory): Likewise.
1324         (bitclr_in_memory): Likewise.
1325
1326 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
1327             Nick Clifton  <nickc@redhat.com>
1328
1329         * config/rx/rx.md: Add peepholes to match a register move followed
1330         by a comparison of the moved register.  Replace these with an
1331         addition of zero that does both actions in one instruction.
1332
1333 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
1334
1335         PR target/48986
1336         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1337         predicate to allow CONST_INT.
1338         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1339
1340 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1341
1342         * opts-common.c (opt_enum_arg_to_value): New.
1343         * opts.h (opt_enum_arg_to_value): Declare.
1344         * config/i386/i386.opt (fpmath): Remove.
1345         (mfpmath=): Use Enum, Init and Save.
1346         (fpmath_unit): New Enum and EnumValue entries.
1347         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1348         name for function fpmath state.
1349         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1350         * config/i386/i386.c: Include diagnostic.h.
1351         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1352         (ix86_target_string): Take enum fpmath_unit value instead of string.
1353         (ix86_debug_options): Update call to ix86_target_string.
1354         (ix86_option_override_internal): Don't process fpmath strings here.
1355         (x86_function_specific_save, ix86_function_specific_restore):
1356         Don't handle fpmath state specially.
1357         (ix86_function_specific_print): Pass fpmath state to
1358         ix86_target_string instead of printing in this function.
1359         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1360         Handle enum attributes.
1361         (IX86_ATTR_ENUM, ix86_opt_enum): New.
1362         (ix86_valid_target_attribute_tree): Update option_strings
1363         handling.  Handle fpmath as enum option.
1364         (ix86_can_inline_p): Update field names for function fpmath state.
1365         (ix86_expand_builtin): Update call to ix86_target_string.
1366         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1367         (ix86_fpmath): Remove.
1368         * config/i386/t-i386 (i386.o): Update dependencies.
1369
1370 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1371
1372         PR preprocessor/48677
1373         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1374         from decoded_options[0], not from itself.
1375
1376 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
1377
1378         * config/i386/constraints.md (z): New constraint.
1379         * config/i386/i386.c (c): New mode attribute.
1380         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1381         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1382         constraint for operand 0.
1383         (*call_vzeroupper): Ditto.
1384         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
1385         (*call_rex64_ms_sysv_vzeroupper): Ditto.
1386         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1387         Use "lzm" constraint for operand 0.
1388         (*call_pop_vzeroupper): Ditto.
1389         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1390         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
1391         constraint for operand 0.
1392         (*sibcall_vzeroupper): Ditto.
1393         (*sibcall_rex64_ms_sysv): Ditto.
1394         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1395         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1396         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
1397         (*sibcall_pop_vzeroupper): Ditto.
1398         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1399         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1400         mode iterator.  Use "<c>zm" constraint for operand 1.
1401         (*call_value_vzeroupper): Ditto.
1402         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
1403         for operand 1.
1404         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1405         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1406         *call_value_pop_1.  Use "lzm" constraint for operand 1.
1407         (*call_value_pop_vzeroupper): Ditto.
1408         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1409         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1410         mode iterator.  Use "Uz" constraint for operand 1.
1411         (*sibcall_value_vzeroupper): Ditto.
1412         (*sibcall_value_rex64_ms_sysv): Ditto.
1413         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1414         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
1415         constraint for operand 1.
1416         (*sibcall_value_pop_vzeroupper): Ditto.
1417         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1418         and "z" constraint for operand 2.
1419         (*tls_global_dynamic_32_gnu): Ditto.
1420         (*tls_local_dynamic_base_32_gnu): Ditto.
1421         (*tls_local_dynamic_base_64): Ditto.
1422         (*tls_local_dynamic_32_once): Ditto.
1423         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1424         Update all callers.
1425         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1426
1427 2011-05-16  Richard Guenther  <rguenther@suse.de>
1428
1429         * gimple.c (gimple_types_compatible_p_1): Use names of the
1430         type itself, not its main variant.
1431         (iterative_hash_gimple_type): Likewise.
1432
1433 2011-05-16  Richard Guenther  <rguenther@suse.de>
1434
1435         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1436         always visit pointer target and function result and argument types.
1437
1438 2011-05-16  Jason Merrill  <jason@redhat.com>
1439
1440         PR c++/48999
1441         * tree-inline.c (copy_statement_list): Put back recursion.
1442
1443 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1444
1445         PR target/27663
1446         PR target/41076
1447         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1448         * config/avr/avr.md ("*ior<mode>qi.byte0",
1449         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1450
1451 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1452
1453         PR target/45099
1454         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1455         register is needed for a function argument.
1456
1457 2011-05-16  Richard Guenther  <rguenther@suse.de>
1458
1459         * gimple.c (struct type_hash_pair): New type.
1460         (type_hash_pair_compare): New function.
1461         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1462
1463 2011-05-16  Revital Eres  <revital.eres@linaro.org>
1464
1465         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1466
1467 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1468
1469         * config/i386/i386.md (floating point move splitters): Fix
1470         usage of standard_80387_constant_p.
1471         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1472
1473 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1474
1475         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1476
1477 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
1478
1479         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1480         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1481         (tree_ssa_lim_finalize): Likewise.
1482
1483 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
1484
1485         * config/i386/constraint.md (Yd, Yx): New register constraints.
1486         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
1487         Yd conditional register constraint.
1488         (*movtf_internal): Use standard_sse_constant_opcode.
1489         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
1490         Yx conditional register constraint.
1491         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
1492         Yd conditional register constraint.  Use standard_sse_constant_p to
1493         check for valid SSE constants and call standard_sse_constant_opcode to
1494         output SSE insn.
1495         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1496         constants and call standard_sse_constant_opcode to output SSE insn.
1497         * config/i386/i386.c (ix86_option_ovverride_internal): Set
1498         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
1499         optimize_size is set.
1500         (standard_sse_constant_opcode): Output conditional AVX insn templates.
1501
1502 2011-05-14  Tobias Burnus  <burnus@net-b.de>
1503
1504         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1505
1506 2011-05-13  Martin Jambor  <mjambor@suse.cz>
1507
1508         * ipa-prop.c (ipa_cst_from_jfunc): New function.
1509         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1510         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1511         (evaluate_conditions_for_ipcp_clone): Removed.
1512         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1513         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1514         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1515
1516 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
1517
1518         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1519         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1520         lieu of MAY_HAVE_DEBUG_STMTS.
1521         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1522         debug statements if !MAY_HAVE_DEBUG_STMTS.
1523
1524 2011-05-13  Martin Thuresson  <martint@google.com>
1525
1526         PR gcov-profile/47793
1527         * libgcov.c (gcov_exit): Support relative profile paths.
1528         * doc/invoke.texi (-fprofile-dir): Update for above change.
1529
1530 2011-05-13  Richard Guenther  <rguenther@suse.de>
1531
1532         * gimple.c (gimple_canonical_types_compatible_p): Do not use
1533         type-pair caching, do not compare hashes.
1534
1535 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
1536
1537         PR middle-end/48965
1538         * tree-cfg.c (edge_to_cases_cleanup): Return true.
1539         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1540
1541 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1542
1543         * gimplify.c (gimplify_expr): Make sure operand is boolified.
1544         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1545         compatible type for TRUTH_NOT_EXPR.
1546
1547 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1548
1549         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1550         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
1551         can_create_pseudo_p ().
1552
1553 2011-05-13  Richard Guenther  <rguenther@suse.de>
1554
1555         PR lto/48978
1556         * gimple.c (iterative_hash_gimple_type): Revert change in
1557         pointer target and function result and argument hashing.
1558
1559 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
1560
1561         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1562         (*movxf_internal_nointeger): Ditto.
1563         (*movdf_internal_rex64): Ditto.
1564         (*movdf_internal): Ditto.
1565         (*movdf_internal_nointeger): Ditto.
1566         (*movsf_internal): Ditto.
1567         (sincos splitters): Use can_create_pseudo ().
1568
1569 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
1570
1571         * config/i386/i386-opts.h: New.
1572         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1573         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1574         ix86_section_threshold): Remove.
1575         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
1576         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1577         OPT_mbranch_cost_.
1578         (ix86_option_override_internal): Don't decode strings for options
1579         other than -march=, -mtune= and -mfpmath=.  Don't allow for
1580         __attribute__ uses in remaining diagnostics for options with
1581         string arguments.  Don't check for integer arguments being negative.
1582         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1583         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1584         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1585         ix86_branch_cost, ix86_section_threshold): Remove.
1586         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1587         HeaderInclude.
1588         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1589         but not Var.
1590         (masm=): Use Enum and Init.
1591         (asm_dialect): New Enum and EnumValue entries.
1592         (mbranch-cost=): Use UInteger.
1593         (mlarge-data-threshold=): Use UInteger and Init.
1594         (mcmodel=): Use Enum and Init.
1595         (cmodel): New Enum and EnumValue entries.
1596         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1597         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1598         mregparm=): Use UInteger.
1599         (mstringop-strategy=): Use Enum and Init.
1600         (stringop_alg): New Enum and EnumValue entries.
1601         (mtls-dialect=): Use Enum and Init.
1602         (tls_dialect): New Enum and EnumValue entries.
1603         (mabi=): Use Enum and Init.
1604         (calling_abi): New Enum and EnumValue entries.
1605         (mveclibabi=): Use Enum and Init.
1606         (ix86_veclibabi): New Enum and EnumValue entries.
1607
1608 2011-05-13  Nick Clifton  <nickc@redhat.com>
1609
1610         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1611         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1612
1613 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1614
1615         PR middle-end/48984
1616         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1617         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1618         (gimple_boolify): Check for cast for boolean_type_node instead for
1619         BOOLEAN_TYPE.
1620
1621 2011-05-13  Richard Guenther  <rguenther@suse.de>
1622
1623         PR tree-optimization/48172
1624         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1625         multiplying by number of iterations for equal step.
1626         (vect_create_cond_for_alias_checks): Likewise.
1627
1628 2011-05-13  Andreas Schwab  <schwab@redhat.com>
1629
1630         * configure.ac: Use AS_HELP_STRING throughout.
1631         * configure: Regenerate.
1632
1633 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1634
1635         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1636         (ix86_emit_restore_regs_using_mov): Likewise.
1637         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1638
1639 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
1640
1641         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1642         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1643         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1644         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1645         RTX_OK_FOR_OLO10_P): ...here.
1646         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1647         SYMBOLIC_CONST.
1648
1649 2011-05-12  Kai Tietz  <ktietz@redhat.com>
1650
1651         * gimplify.c (gimple_boolify): Re-boolify expression
1652         arguments even if expression type is of kind BOOLEAN_TYPE.
1653         (gimplify_boolean_expr): Removed.
1654         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1655         and XOR. Additional take care that we keep expression's type.
1656         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1657         of TRUTH_AND|OR|XOR_EXPR.
1658
1659 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1660
1661         PR tree-optimization/48975
1662         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1663         on all bbs here and free and clear ifc_bbs at the end.
1664
1665 2011-05-12  Richard Guenther  <rguenther@suse.de>
1666
1667         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1668         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
1669         until after simple checks.
1670         (gimple_types_compatible_p): Likewise.
1671         (iterative_hash_gimple_type): Always hash pointer targets
1672         and function return and argument types.
1673         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1674         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
1675         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1676         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
1677         completely in the simple compare section.
1678         (gimple_register_canonical_type): Query the cache again after
1679         registering.
1680
1681 2011-05-12  Richard Guenther  <rguenther@suse.de>
1682
1683         PR tree-optimization/48172
1684         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1685         the number of iterations from the segment size calculation.
1686         (vect_create_cond_for_alias_checks): Adjust.
1687
1688 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1689
1690         PR debug/48967
1691         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1692         if validate_subreg fails.
1693
1694 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
1695
1696         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1697         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1698         early.
1699
1700 2011-05-12  DJ Delorie  <dj@redhat.com>
1701
1702         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1703         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1704         created builtin into rx_builtins array.
1705         (rx_builtin_decl): New function.
1706         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
1707
1708 2011-05-12  DJ Delorie  <dj@redhat.com>
1709             Nick Clifton  <nickc@redhat.com>
1710
1711         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1712         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1713         (rx_is_legitimate_address): Add pre-decrement and post-increment
1714         addressing in HImode and QImode.  Fix test for out of range
1715         REG+INT addressing.
1716         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1717         (rx_align_for_label): Test label before extracting its usage count.
1718         (rx_adjust_insn_lengths): Fix selection of insn codes.
1719         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1720
1721 2011-05-11  Jason Merrill  <jason@redhat.com>
1722
1723         * tree.c (type_hash_canon): Use struct tree_type_non_common.
1724
1725 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1726
1727         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1728         reindent the subsequent block.
1729
1730 2011-05-11  Satoru Takabayashi  <satorux@google.com>
1731             Paul Pluzhnikov  <ppluzhnikov@google.com>
1732
1733         * doc/install.texi (Configuration): Document --with-linker-hash-style.
1734         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1735         * config.in: Add LINKER_HASH_STYLE.
1736         * configure.ac: Add --with-linker-hash-style.
1737         * configure: Regenerate.
1738
1739 2011-05-11  Richard Guenther  <rguenther@suse.de>
1740
1741         PR middle-end/48964
1742         * gimple.c (iterative_hash_canonical_type): Fix typo.
1743
1744 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
1745
1746         * config/i386/i386.c (legitimize_tls_address)
1747         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1748         expanders directly for TARGET_GNU2_TLS.  Determine pic and
1749         __tls_get_addr symbol reference here.  Update call to
1750         gen_tls_global_dynamic_{32,64} for added arguments.
1751         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1752         expanders directly for TARGET_GNU2_TLS.  Determine
1753         __tls_get_addr symbol reference here.  Update call to
1754         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
1755         unique UNSPEC REG_EQUIV to libcall block.
1756         (ix86_tls_get_addr): Declare static.
1757         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1758         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1759         Do not determine pic and __tls_get_addr symbol reference here. Do not
1760         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1761         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1762         (tls_global_dynamic_64): Add operand 2.  Do not determine
1763         __tls_get_addr symbol reference here.  Do not call
1764         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1765         (tls_local_dynamic_base64): Ditto for operand 1.
1766
1767 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1768
1769         * function.c (expand_function_start): Initialize stack_check_probe_note
1770         only if the generic stack checking mechanism is used.
1771
1772 2011-05-11  Richard Guenther  <rguenther@suse.de>
1773
1774         PR tree-optimization/15256
1775         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1776         (A & B) | C, combine (A op CST1) op CST2.
1777         (tree_ssa_forward_propagate_single_use_vars): Only bother to
1778         visit assigns that have uses.
1779
1780 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
1781
1782         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1783         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1784         (unpack_ts_type_common_value_fields): ...this.  Update comment.
1785         (unpack_value_fields): Adjust for renaming.
1786         (lto_input_ts_type_tree_pointers): Split into...
1787         (lto_input_ts_type_common_tree_pointer): ...this and...
1788         (lto_input_ts_type_non_common_tree_pointers): ...this.
1789         (lto_input_tree_pointers): Adjust for above split.
1790         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1791         (pack_ts_type_common_value_fields): ...this.  Update comment.
1792         (lto_output_ts_type_tree_pointers): Split into...
1793         (lto_output_ts_type_common_tree_pointers): ...this and...
1794         (lto_output_ts_type_non_common_tree_pointers): ...this.
1795         (lto_output_tree_pointers): Adjust for above split.
1796         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1797         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1798         * stor-layout.c (vector_type_mode): Adjust location of mode field.
1799         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1800         Define.
1801         (struct tree_type): Split into...
1802         (struct tree_type_common: ...this and...
1803         (struct tree_type_with_lang_specific): ...this and...
1804         (struct tree_type_non_common): ...this.  Adjust accessor macros
1805         accordingly.
1806         (TYPE_VALUES_RAW): Define.
1807         (union tree_node): Update for above changes.
1808         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1809         TS_TYPE_NON_COMMON.
1810         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1811         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1812         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1813         * treestructu.def (TS_TYPE): Remove.
1814         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1815         Define.
1816
1817 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
1818
1819         PR debug/48159
1820         * tree-ssa.c (reset_debug_uses): New function.
1821         * tree-flow.h (reset_debug_uses): New prototype.
1822         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1823         * tree-loop-distribution.c (generate_loops_for_partition): Call
1824         reset_debug_uses on the stmts that will be removed.  Keep around
1825         all debug stmts, don't count them as bits in partition bitmap.
1826         (generate_builtin): Don't count debug stmts or labels as bits in
1827         partition bitmap.
1828
1829 2011-05-11  Richard Guenther  <rguenther@suse.de>
1830
1831         * gimple.c (gimple_type_hash_1): Merge with ...
1832         (gimple_type_hash): ... this.
1833         (gtc_visit): Remove mode parameter and simplify accordingly.
1834         (gimple_types_compatible_p_1): Likewise.
1835         (gimple_types_compatible_p): Likewise.
1836         (iterative_hash_gimple_type): Likewise.
1837         (visit): Likewise.
1838         (gimple_type_eq): Adjust.
1839
1840 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1841
1842         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1843         enters the branch create an anti edge in the opposite direction
1844         to prevent the creation of reg-moves.
1845         * modulo-sched.c: Adjust comment to reflect the fact we are
1846         scheduling closing branch.
1847         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1848         (stage_count): New field in struct partial_schedule.
1849         (calculate_stage_count): New function.
1850         (normalize_sched_times): Rename to reset_sched_times and handle
1851         incrementing the sched time of the nodes by a constant value
1852         passed as parameter.
1853         (duplicate_insns_of_cycles): Skip closing branch.
1854         (sms_schedule_by_order): Schedule closing branch.
1855         (ps_insn_find_column): Handle closing branch.
1856         (sms_schedule): Call reset_sched_times and adjust the code to
1857         support scheduling of the closing branch.
1858         (ps_insert_empty_row): Update calls to normalize_sched_times
1859         and rotate_partial_schedule functions.
1860
1861 2011-05-11  Richard Guenther  <rguenther@suse.de>
1862
1863         PR middle-end/48953
1864         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1865
1866 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
1867
1868         * opts.c (finish_options): Move warning settings from process_options.
1869         * toplev.c (process_options): Move warning settings to finish_options.
1870
1871 2011-05-11  Richard Guenther  <rguenther@suse.de>
1872
1873         PR tree-optimization/18041
1874         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1875         (simplify_bitwise_binary): ... this.  Handle operand conversions
1876         by applying them to the result instead.
1877         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
1878
1879 2011-05-11  Richard Guenther  <rguenther@suse.de>
1880
1881         * gimple.c (gimple_canonical_types_compatible_p): Split out
1882         from gimple_types_compatible_p and friends.  Do not recurse
1883         to pointed-to types.
1884         (gimple_canonical_type_eq): Use it.
1885         (iterative_hash_canonical_type): Split out from
1886         iterative_hash_gimple_type and friends.  Do not recurse
1887         to pointed-to types.
1888         (gimple_canonical_type_hash): Use it, allocate the hash here.
1889
1890 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1891
1892         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1893         recognizing doloop.
1894
1895 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1896
1897         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1898         instead of PREV_INSN.
1899
1900 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1901
1902         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1903         * loop-doloop.c (doloop_condition_get): Likewise.
1904         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1905         (doloop_end): New.
1906         * config/arm/arm.md (*addsi3_compare0): Remove "*".
1907
1908 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1909
1910         * tree.def (CASE_LABEL_EXPR): Add an operand.
1911         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1912
1913 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1914
1915         * c-decl.c (c_override_global_bindings_to_false): Remove.
1916         (global_bindings_p): Don't check
1917         c_override_global_bindings_to_false.
1918         * c-tree.h (c_override_global_bindings_to_false): Remove.
1919         * c-typeck.c (composite_type): Don't set
1920         c_override_global_bindings_to_false.
1921
1922 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1923
1924         PR target/48857, 48495
1925         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1926         (VSX_MODE): Ditto.
1927         (VSX_MOVE_MODE): Ditto.
1928         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1929         VSX vector types.  Add V2DImode.
1930         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1931         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1932         (MODES_TIEABLE_P): Ditto.
1933
1934         * config/rs6000/rs6000.c (rs6000_emit_move): Use
1935         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1936         VSX_VECTOR_MODE.
1937         (init_cumulative_args): Ditto.
1938         (rs6000_function_arg_boundary): Ditto.
1939         (rs6000_function_arg_advance_1): Ditto.
1940         (rs6000_function_arg): Ditto.
1941         (rs6000_function_ok_for_sibcall): Ditto.
1942         (emit_frame_save): Ditto.
1943         (rs6000_function_value): Ditto.
1944         (rs6000_libcall_value): Ditto.
1945
1946 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1947
1948         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1949         i386/darwin-lib.h to $libgcc_tm_file.
1950         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1951
1952 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1953
1954         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1955
1956 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1957
1958         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1959         * config/rs6000/rs6000-tables.opt: New file (generated).
1960         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1961         rs6000/rs6000-tables.opt to extra_options.
1962         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1963         * config/rs6000/rs6000.c (rs6000_select): Remove.
1964         (processor_target_table): Move contents to rs6000-cpus.def.
1965         (darwin_rs6000_override_options): Check
1966         global_options_set.x_rs6000_cpu_index instead of
1967         rs6000_select[1].string.
1968         (rs6000_option_override_internal): Likewise.
1969         (rs6000_handle_option): Don't assert that global structures are in
1970         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
1971         (rs6000_default_cpu): New variable.
1972         (rs6000_file_start): Set it instead of local default_cpu.  Check
1973         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1974         global_options_set.x_rs6000_tune_index instead of rs6000_select.
1975         (rs6000_darwin_file_start): Check rs6000_default_cpu and
1976         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1977         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1978         rs6000_select): Remove.
1979         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1980         Remove.
1981         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1982         * config/rs6000/t-rs6000
1983         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1984         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1985         global_options_set.x_rs6000_cpu_index instead of
1986         rs6000_select[1].string.
1987         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1988         global_options_set.x_rs6000_cpu_index instead of
1989         rs6000_select[1].string.
1990
1991 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1992
1993         * config.gcc (libgcc_tm_file): Define instead of including files
1994         from ../../libgcc/config/ in tm_file.
1995         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1996         * configure: Regenerate.
1997         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1998         libgcc_tm.h, cs-libgcc_tm.h): New.
1999         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
2000         (clean): Remove libgcc_tm.h.
2001         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
2002         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
2003         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
2004
2005 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
2006
2007         PR target/48896
2008         * config/avr/avr.c (avr_ret_register): Return unsigned int
2009         instead of int.
2010         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
2011         it to avr_libcall_value.
2012         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
2013         expand_expr.
2014         (avr_expand_binop_builtin): Ditto.
2015         (avr_expand_unop_builtin): Ditto.
2016
2017 2011-05-10  DJ Delorie  <dj@redhat.com>
2018
2019         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
2020         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
2021         * config/rx/rx.c (rx_align_for_label): Add label and
2022         uses_threshold parameters.  Do not align when the label is not
2023         used enough.
2024         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
2025
2026 2011-05-10  Richard Guenther  <rguenther@suse.de>
2027
2028         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
2029         a series of conversions and apply foldings similar to what
2030         fold-const does.
2031         (tree_ssa_forward_propagate_single_use_vars): Call it.
2032
2033 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
2034
2035         PR tree-optimization/48611
2036         PR tree-optimization/48794
2037         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
2038         referenced from RESX or EH_DISPATCH arguments.
2039
2040         PR debug/48928
2041         * dfp.c (decimal_to_decnumber): Handle conversion from
2042         dconst{1,2,m1,half}.
2043
2044 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2045
2046         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
2047         for !flag_prefer_avx128.
2048         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
2049
2050 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
2051
2052         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
2053         (fold_ternary_loc): Use expr_location_or.
2054
2055 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
2056
2057         PR debug/48853
2058         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
2059         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
2060         Pmode and mem_mode is not VOIDmode.
2061
2062 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
2063
2064         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
2065         TYPE_QUAL_RESTRICT): Convert to enum.
2066
2067 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2068
2069         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
2070         (const_pow2_1_to_8_operand): Ditto.
2071         (const_pow2_1_to_128_operand): Ditto.
2072         (const_pow2_1_to_32768_operand): Ditto.
2073         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
2074         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
2075         in insn constraint to check integer value of operand 3.
2076         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
2077
2078         (PINSR_MODE): New mode iterator.
2079         (sse2p4_1): New mode attribute.
2080         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
2081         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
2082         iterator.  Use const_int_operand instead of
2083         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
2084         exact_log2 in insn constraint to check integer value of operand 3.
2085
2086 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2087
2088         * config/i386/sse.md (blendbits): Remove mode attribute.
2089         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2090         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2091         Check integer value of operand 3 in insn constraint.
2092
2093 2011-05-09  Richard Guenther  <rguenther@suse.de>
2094
2095         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2096         for diagnostics.
2097         (lto_symtab_merge): Likewise.  Do not register types here.
2098         (lto_symtab_merge_decls_2): Likewise.
2099         (lto_symtab_merge_decls_1): Likewise.
2100         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2101         * gimple.c (enum gtc_mode): Declare.
2102         (gimple_types_compatible_p): Make static.
2103
2104 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2105
2106         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2107         temporary register to match Pmode.
2108
2109 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2110
2111         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2112         and *vec_concatv4si_1_avx.
2113
2114 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2115
2116         PR rtl-optimization/48927
2117         * ira-conflicts.c (commutative_constraint_p): Use
2118         recog_data.alternative_enabled_p to disable alternatives where
2119         "enabled" attribute is false.
2120         (get_dup_num): Ditto.
2121         * ira-lives.c (single_reg_class): Ditto.
2122         (ira_implicitly_set_insn_hard_regs): Ditto.
2123
2124 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
2125
2126         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2127         (dataflow_set_preserve_mem_locs): Likewise.
2128
2129 2011-05-09  Philipp Thomas  <pth@suse.de>
2130
2131         * config/mep/mep.c (mep_validate_vliw): Syntax description
2132         should not be translated.
2133
2134 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
2135
2136         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2137         * config/mips/mips-tables.opt: New file (generated).
2138         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2139         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2140         MIPS_ARCH_OPTION_NATIVE): Define.
2141         * config/mips/mips.c (mips_cpu_info_table): Move contents to
2142         mips-cpus.def.
2143         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2144         mips_parse_cpu): Remove.
2145         (mips_cpu_info_from_opt, mips_default_arch): New.
2146         (mips_handle_option): Don't assert that global structures are in
2147         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2148         (mips_option_override): Use new variables and functions to set
2149         state of these options.  Use strcmp to check for individual CPU names.
2150         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2151         definition.
2152         * config/mips/mips.opt (march=): Use ToLower and Enum.
2153         (mips): Use ToLower, Enum and Var.
2154         (mtune=): Use ToLower and Enum.
2155         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2156
2157 2011-05-08  Jan Hubicka  <jh@suse.cz>
2158
2159         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2160         Arrange type pairs to be UID ordered.
2161         (gimple_lookup_type_leader): Make inline.
2162
2163 2011-05-09  Nick Clifton  <nickc@redhat.com>
2164
2165         PR target/48899
2166         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2167         PROCESSOR_DEFAULT.
2168
2169         PR target/48897
2170         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2171         variable 's'.
2172
2173 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
2174
2175         * combine.c (simplify_comparison): Abstract out parts into...
2176         (simplify_compare_const): ... new function.
2177         (try_combine): Generalize parallel arithmetic/compare combining
2178         to call simplify_compare_const() and CANONICALIZE_COMPARE().
2179
2180 2011-05-08  Jan Hubicka  <jh@suse.cz>
2181
2182         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2183         (cgraph_create_virtual_clone): Call hooks once virtual clone
2184         is finished.
2185         * cgraph.h (cgraph_clone_node): Update prototype.
2186         * ipa-cp.c (ipcp_estimate_growth): Use
2187         estimate_ipcp_clone_size_and_time.
2188         * ipa-inline-transform.c (clone_inlined_nodes): Update.
2189         * lto-cgraph.c (input_node): Update.
2190         * ipa-inline.c (recursive_inlining): Update.
2191         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2192         (evaluate_conditions_for_known_args): Break out from ...
2193         (evaluate_conditions_for_edge): ... here.
2194         (evaluate_conditions_for_ipcp_clone): New function.
2195         (inline_node_duplication_hook): Update clone summary based
2196         on parameter map.
2197         (estimate_callee_size_and_time): Rename to ...
2198         (estimate_node_size_and_time): take NODE instead of EDGE;
2199         take POSSIBLE_TRUTHS as argument.
2200         (estimate_callee_size_and_time): Update.
2201         (estimate_ipcp_clone_size_and_time): New function.
2202         (do_estimate_edge_time): Update.
2203
2204 2011-05-08  Richard Guenther  <rguenther@suse.de>
2205
2206         PR middle-end/48908
2207         PR middle-end/48905
2208         * expmed.c (expand_shift_1): Compute adjusted constant shift
2209         amount manually.
2210
2211 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
2212
2213         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2214
2215 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
2216
2217         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2218
2219 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
2220
2221         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2222
2223 2011-05-07  Jan Hubicka  <jh@suse.cz>
2224
2225         * ipa-inline-transform.c (inline_call): Account when program size
2226         decreases.
2227         * ipa-inline.c (relative_time_benefit): New function.
2228         (edge_badness): Reorganize to be power 2 based; fix thinko when
2229         computing badness for negative growth; update comments to match
2230         reality; better dumps.
2231
2232 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
2233
2234         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2235         type to bool and adjust comment.
2236         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2237         (fold_mathfn_compare): Remove calls to global_bindings_p.
2238         (fold_inf_compare): Likewise.
2239         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2240         * c-tree.h (global_bindings_p): Adjust prototype.
2241         * c-decl.c (global_bindings_p): Return bool and simplify.
2242
2243 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
2244
2245         PR tree-optimization/48837
2246         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2247         when accumulator transformation is performed.
2248
2249 2011-05-06  Jan Hubicka  <jh@suse.cz>
2250
2251         * i386.h (ix86_tune_indices): Add
2252         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2253         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2254         * i386.c (initial_ix86_tune_features): Add
2255         X86_SOFTARE_PREFETCHING_BENEFICIAL.
2256         (software_prefetching_beneficial_p): Remove predicate.
2257         (ix86_option_override_internal): Use new macro.
2258
2259 2011-05-06  Jan Hubicka  <jh@suse.cz>
2260
2261         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2262
2263 2011-05-06  Jan Hubicka  <jh@suse.cz>
2264
2265         * cgraph.c (cgraph_add_thunk): Create real function node instead
2266         of alias node; finalize it and mark needed/reachale; arrange visibility
2267         to be right and add it into the corresponding same comdat group list.
2268         (dump_cgraph_node): Dump thunks.
2269         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2270         cgraph_function_with_gimple_body_p,
2271         cgraph_first_function_with_gimple_body,
2272         cgraph_next_function_with_gimple_body): New functions.
2273         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2274         New macros.
2275         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2276         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2277         * cgraphunit.c (cgraph_finalize_function): Only look into possible
2278         devirtualization when optimizing.
2279         (verify_cgraph_node): Verify thunks.
2280         (cgraph_analyze_function): Analyze thunks.
2281         (cgraph_mark_functions_to_output): Output thunks only in combination
2282         with function they are assigned to.
2283         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2284         alias into normal node.
2285         (assemble_thunks): New functoin.
2286         (cgraph_expand_function): Use it.
2287         * lto-cgraph.c (lto_output_node): Stream thunks.
2288         (input_overwrite_node): Stream in thunks.
2289         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2290         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2291         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2292         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2293         (inline_analyze_function): Do not care about thunk jump functions.
2294         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2295         * ipa-prop.c (ipa_prop_write_jump_functions): Use
2296         cgraph_function_with_gimple_body_p.
2297         * passes.c (do_per_function_toporder): Use
2298         cgraph_function_with_gimple_body_p.
2299         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2300         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2301         (function_called_by_processed_nodes_p): Likewise.
2302
2303 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2304
2305         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2306         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2307         entries.
2308         (mabi=): Replace with separate entries for mabi=altivec,
2309         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2310         mabi=ieeelongdouble and mabi=ibmlongdouble.
2311         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2312         check for -mabi=spe without SPE ABI support here.
2313         (rs6000_handle_option): Replace OPT_mabi_ handling with
2314         OPT_mabi_altivec and OPT_mabi_spe handling.
2315
2316 2011-05-06  Cary Coutant  <ccoutant@google.com>
2317
2318         * dwarf2out.c (contains_subprogram_definition): New function.
2319         (should_move_die_to_comdat): Call it.
2320
2321 2011-05-06  Jeff Law  <law@redhat.com>
2322
2323         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2324         remove_ctrl_stmt_and_useless_edges.
2325         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2326         (fixup_template_block, thread_single_edge): Likewise.
2327         (mark_threaded_blocks): Use THREAD_TARGET.
2328
2329 2011-05-06  Alan Modra  <amodra@gmail.com>
2330
2331         PR target/48900
2332         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2333         const0_rtx as the arg to the dummy __tls_get_addr libcall.
2334
2335 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2336
2337         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2338         constraint modifier to "r".
2339
2340 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2341
2342         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2343         fall through for OPT_mcmodel_.
2344
2345 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2346
2347         * config/s390/s390.c (s390_asm_trampoline_template): Comment
2348         instruction sizes.
2349         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2350
2351 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2352
2353         PR target/47930
2354         * config/arm/arm.opt (marm): Document it.
2355         (mthumb): Reject negative variant.
2356
2357 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2358
2359         PR target/48898
2360         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2361         Fix typo in "ccvt" variable name.
2362
2363 2011-05-06  Tristan Gingold  <gingold@adacore.com>
2364
2365         PR target/48895
2366         * config/vms/vms-ar.c (main): Remove cwd variable.
2367
2368 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
2369
2370         PR debug/48902
2371         * var-tracking.c (prepare_call_arguments): Move else before #endif.
2372
2373 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
2374
2375         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2376         * gimplify.c (gimplify_switch_expr): Likewise.
2377         * omp-low.c (expand_omp_sections): Likewise.
2378         * tree-eh.c (lower_try_finally_switch): Likewise.
2379         (lower_eh_dispatch): Likewise.
2380         * tree.h (build_case_label): Declare.
2381         * tree.c (build_case_label): Define.
2382
2383 2011-05-05  Jason Merrill  <jason@redhat.com>
2384
2385         PR c++/40975
2386         * tree-inline.c (copy_tree_r): Use copy_statement_list.
2387         (copy_statement_list): Don't recurse.
2388         * stor-layout.c (copy_self_referential_tree_r): Don't allow
2389         STATEMENT_LIST.
2390
2391 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2392
2393         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2394         through from -mfpu= handling.
2395         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2396
2397 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
2398
2399         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2400         POST_MODIFY.
2401
2402 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
2403
2404         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2405         for 11.31.
2406         (hppa[12]*-*-hpux11*): Ditto.
2407         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2408         * config/ia64/hpux-unix2003.h: New.
2409         * config/pa/pa-hpux1131.opt: New.
2410         * config/pa/pa-hpux1131.h: New.
2411         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2412         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2413         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2414
2415 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2416
2417         PR debug/48853
2418         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2419         instead of mode as 3rd argument to recursive call.
2420         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2421         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2422         VOIDmode.
2423         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2424         don't give up if mode is Pmode and mem_mode is not VOIDmode.
2425         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2426         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2427
2428 2011-05-05  Julian Brown  <julian@codesourcery.com>
2429
2430         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2431         parenthesis in D-register case.
2432
2433 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2434
2435         * opt-functions.awk (var_type_struct): Handle Enum options.
2436         * optc-gen.awk: Don't check range of variables of character type.
2437         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2438         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2439         rs6000_sdata_name, rs6000_explicit_options): Remove.
2440         (rs6000_option_override_internal): Check for -malign-power here.
2441         Use global_options_set instead of rs6000_explicit_options.
2442         (rs6000_parse_fpu_option): Remove.
2443         (rs6000_handle_option): Access variables via opts and opts_set
2444         pointers.  Use error_at and warning_at.  Add fall-through
2445         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2446         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2447         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2448         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2449         here.  Don't use rs6000_parse_fpu_option.
2450         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2451         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2452         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2453         (mrecip=): Use Var.
2454         (mspe): Use Var and Save.
2455         (mtraceback=): Use Enum and Var.
2456         (rs6000_traceback_type): New Enum and EnumValue entries.
2457         (mfloat-gprs=): Use Enum, Var and Save.
2458         (rs6000_float_gprs): New Enum and EnumValue entries.
2459         (mlong-double-): use Var and Save.
2460         (msched-costly-dep=, minsert-sched-nops=): Use Var.
2461         (malign-): Use Enum and Var.
2462         (rs6000_alignment_flags): New Enum and EnumValue entries.
2463         (mfpu=): Use Enum.
2464         (fpu_type_t): New Enum and EnumValue entries.
2465         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2466         global_options_set instead of rs6000_explicit_options.
2467         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2468         global_options_set instead of rs6000_explicit_options.
2469         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2470         global_options_set instead of rs6000_explicit_options.
2471         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2472         global_options_set instead of rs6000_explicit_options.
2473         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2474         global_options_set instead of rs6000_explicit_options.
2475         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2476         global_options_set instead of rs6000_explicit_options.
2477         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2478         definition.
2479         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2480         global_options_set instead of rs6000_explicit_options.
2481         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2482         (rs6000_cmodel): New Enum and EnumValue entries.
2483         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2484         global_options_set instead of rs6000_explicit_options.
2485         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2486         (mtls-size=): Use Enum and Var.
2487         (rs6000_tls_size): New Enum and EnumValue entries.
2488
2489 2011-05-05  Michael Matz  <matz@suse.de>
2490
2491         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2492         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2493         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2494         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2495         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2496         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2497         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2498         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2499         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2500         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2501         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2502         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2503         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2504         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2505         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2506         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2507
2508 2011-05-05  Richard Guenther  <rguenther@suse.de>
2509
2510         * expmed.c (expand_variable_shift): Rename to ...
2511         (expand_shift_1): ... this.  Take an expanded shift amount.
2512         For rotates recurse directly not building trees for the shift amount.
2513         (expand_variable_shift): Wrap around expand_shift_1.
2514         (expand_shift): Adjust.
2515
2516 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2517
2518         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2519
2520 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
2521
2522         * tree.h (get_pending_sizes): Remove prototype.
2523         (put_pending_size): Likewise.
2524         (put_pending_sizes): Likewise.
2525         * stor-layout.c (pending_sizes): Delete.
2526         (get_pending_sizes): Likewise.
2527         (put_pending_size): Likewise.
2528         (put_pending_sizes): Likewise.
2529         (variable_size): Do not call put_pending_size and tidy up.
2530         * function.h (struct function): Remove dont_save_pending_sizes_p.
2531         * lto-streamer-in.c (input_function): Do not stream it.
2532         * lto-streamer-out.c (output_function): Likewise.
2533         * tree-inline.c (initialize_cfun): Do not copy it.
2534         * c-decl.c (store_parm_decls): Do not set it.
2535         * omp-low.c (create_task_copyfn): Likewise.
2536         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2537
2538 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
2539
2540         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2541         conditions.
2542         (*movdf_internal): Ditto.
2543         (*movdf_internal_nointeger): Ditto.
2544         (*movsf_internal): Ditto.
2545
2546 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2547
2548         * c-decl.c (finish_decl): Don't call get_pending_sizes.
2549         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
2550         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
2551         (c_variable_size): Remove.
2552         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
2553         call put_pending_sizes.
2554         (get_parm_info): Add parameter expr.  Use it to set
2555         arg_info->pending_sizes.
2556         (store_parm_decls): Use arg_info->pending_sizes instead or calling
2557         get_pending_sizes.
2558         * c-parser.c (c_parser_parms_declarator): Update call to
2559         c_parser_parms_list_declarator.
2560         (c_parser_parms_list_declarator): Take parameter expr.  Update
2561         call to push_parm_decl.  Update recursive call.  Don't call
2562         get_pending_sizes.  Update calls to get_parm_info.
2563         (c_parser_objc_method_definition): Update calls to
2564         c_parser_objc_method_decl and objc_start_method_definition.
2565         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2566         (c_parser_objc_method_decl): Add parameter expr.  Update call to
2567         grokparm.
2568         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2569         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2570         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2571
2572 2011-05-05  Michael Hope  <michael.hope@linaro.org>
2573
2574         PR pch/45979
2575         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2576         __ARM_EABI__ hosts.
2577
2578 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2579
2580         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2581         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2582         (spu_output_mi_thunk): New function.
2583
2584 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2585
2586         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2587         targetm.asm_out.print_operand.
2588         * config/sol2.c: Include target.h.
2589
2590 2011-05-04  Jan Hubicka  <jh@suse.cz>
2591
2592         * ipa-inline.c (reset_edge_caches): New function.
2593         (update_caller_keys): Add check_inlinablity_for; do not
2594         reset edge caches; remove now unnecesary loop.
2595         (update_callee_keys): Add comments; reset node_growth_cache of callee.
2596         (update_all_callee_keys): Likewise.
2597         (inline_small_functions): Sanity check cache; update code
2598         recomputing it.
2599
2600 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
2601
2602         PR rtl-optimization/47612
2603         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2604         as the last insn of the sequence to be moved.
2605
2606 2011-05-04  Tobias Burnus  <burnus@net-b.de>
2607
2608         PR fortran/48864
2609         * doc/invoke.texi (Ofast): Document that it
2610         enables Fortran's -fno-protect-parens.
2611
2612 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2613
2614         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2615
2616 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2617
2618         * stor-layout.c (variable_size): Do not issue errors.
2619
2620 2011-05-04  Richard Guenther  <rguenther@suse.de>
2621
2622         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2623         for array-ref indices.
2624         (tree_coverage_counter_addr): Likewise.
2625         (build_fn_info_type): Use size_int for index types.
2626         (build_gcov_info): Likewise.
2627
2628 2011-05-04  Richard Guenther  <rguenther@suse.de>
2629
2630         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2631         to build_int_cst.
2632         * c-typeck.c (really_start_incremental_init): Use bitsize_int
2633         for constructor indices.
2634         (push_init_level): Likewise.
2635
2636 2011-05-04  Richard Guenther  <rguenther@suse.de>
2637
2638         * explow.c (promote_mode): Move variable declarations before code.
2639
2640 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
2641
2642         * tree.h (build_function_type_array): Declare.
2643         (build_varargs_function_type_array): Declare.
2644         (build_function_type_vec, build_varargs_function_type_vec): Define.
2645         * tree.c (build_function_type_array_1): New function.
2646         (build_function_type_array): New function.
2647         (build_varargs_function_type_array): New function.
2648
2649 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
2650
2651         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2652         before setting STMT_VINFO_TYPE.
2653
2654 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2655
2656         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2657         instead of spu_pass_by_reference.
2658
2659 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2660
2661         * calls.c (emit_library_call_value_1): Invoke
2662         promote_function_mode hook on libcall arguments.
2663         * explow.c (promote_function_mode, promote_mode): Handle TYPE
2664         argument being NULL.
2665         * targhooks.c (default_promote_function_mode): Lisewise.
2666         * config/s390/s390.c (s390_promote_function_mode): Likewise.
2667         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2668
2669         * doc/tm.texi: Document that TYPE argument might be NULL.
2670
2671 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2672
2673         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2674
2675 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2676
2677         From Bernd Schmidt
2678         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2679
2680 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2681
2682         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2683         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2684         Move ...
2685         * mips-tfile.c: ... here.
2686         Don't include coretypes.h, tm.h, filenames.h.
2687         (saber_stop): Remove definition and all calls.
2688         [__SABER__]: Remove.
2689         (__LINE__): Remove default.
2690         (Size_t, Ptrdiff_t): Remove definitions.
2691         Replace by size_t, ptrdiff_t.
2692         [!MIPS_DEBUGGING_INFO]: Remove.
2693         (SHASH_SIZE, THASH_SIZE): Remove defaults.
2694         (progname): Add const.
2695         (STATIC): Remove.
2696         Replace all uses by static.
2697         (ALIGN_SYMTABLE_OFFSET): Remove default.
2698         * mips-tdump.c: Don't include coretypes.h, tm.h.
2699         Remove !MIPS_IS_STAB guard.
2700         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2701         $(TM_H), filenames.h dependencies.
2702         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2703
2704 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2705
2706         From Jie Zhang
2707         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2708         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2709
2710 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2711
2712         From Bernd Schmidt
2713         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2714         account and save/restore RETS.
2715         (PROFILE_BEFORE_PROLOGUE): Define.
2716         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
2717         the push insn to use predecrement.
2718
2719 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2720
2721         From Jie Zhang
2722         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2723
2724 2011-05-04  Nick Clifton  <nickc@redhat.com>
2725
2726         * config/mn10300/mn10300.c: Include cfgloop.h.
2727         (DUMP): New macro.
2728         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
2729         Lcc or a FLcc insn into the instruction stream.
2730         (mn10300_block_contains_call): New function.  Returns true if the
2731         given basic block contains a CALL insn.
2732         (mn10300_loop_contains_call_insn): New function.  Returns true if
2733         the given loop contains a CALL insn.
2734         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
2735         to use the SETLB and Lcc or FLcc insns.
2736         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2737         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2738         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
2739         disable the SETLB optimization.
2740         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2741         __SETLB__ or __NO_SETLB__.
2742         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2743         (movsf_internal): Handle MDR register.
2744         (cmpsi): Make visible.
2745         (setlb): New pattern.
2746         (Lcc): New pattern.
2747         (FLcc): New pattern.
2748
2749 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2750
2751         PR target/48860
2752         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2753         for reg<->xmm moves.
2754         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2755         (vec_concatv2di_rex64_sse): Ditto.
2756         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2757         (*vec_extractv2di_1_rex64): Ditto.
2758
2759         Revert:
2760         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2761
2762         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2763         reg<->xmm moves.
2764         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2765
2766 2011-05-04  Richard Guenther  <rguenther@suse.de>
2767
2768         * tree.h (int_const_binop): Remove notrunc argument.
2769         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
2770         create integer constants that are properly truncated.
2771         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2772         (const_binop): Remove zero notrunc argument to int_const_binop.
2773         (size_binop_loc): Likewise.
2774         (fold_div_compare): Likewise.
2775         (maybe_canonicalize_comparison_1): Likewise.
2776         (fold_comparison): Likewise.
2777         (fold_binary_loc): Likewise.
2778         (multiple_of_p): Likewise.
2779         * expr.c (store_constructor): Likewise.
2780         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2781         (maybe_fold_stmt_addition): Likewise.
2782         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2783         * stor-layout.c (layout_type): Likewise.
2784         * tree-data-ref.c (tree_fold_divides_p): Likewise.
2785         * tree-sra.c (build_ref_for_offset): Likewise.
2786         (build_user_friendly_ref_for_offset): Likewise.
2787         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2788         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2789         * tree-ssa-loop-niter.c (inverse): Likewise.
2790         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2791         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2792         * tree-switch-conversion.c (check_range): Likewise.
2793         (build_constructors): Likewise.
2794         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2795         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2796         (extract_range_from_assert): Likewise.
2797         (vrp_int_const_binop): Likewise.
2798         (extract_range_from_binary_expr): Likewise.
2799         (extract_range_from_unary_expr): Likewise.
2800         (check_array_ref): Likewise.
2801         (find_case_label_range): Likewise.
2802         (simplify_div_or_mod_using_ranges): Likewise.
2803         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2804         comparing case labels for merging.
2805
2806 2011-05-03  Mark Wielaard  <mjw@redhat.com>
2807
2808         * dwarf2out.c (debug_str_hash_forced): Removed.
2809         (gen_label_for_indirect_string): Removed.
2810         (get_debug_string_label): Removed.
2811         (AT_string_form): Generate label directly.
2812         (output_indirect_string): Test indirect_string_node for
2813         DW_FORM_strp instead of checking label and refcount.
2814         (prune_indirect_string): Removed.
2815         (prune_unused_types): Don't check debug_str_hash_forced or
2816         call prune_indirect_string.
2817
2818 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2819
2820         PR other/48093
2821         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2822
2823 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2824
2825         PR debug/47994
2826         PR debug/47919
2827         * combine.c (try_combine): Skip debug insns at m_split tests.
2828
2829 2011-04-26  Mark Wielaard  <mjw@redhat.com>
2830
2831         PR42288
2832         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2833         when info_section_emitted.
2834
2835 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
2836
2837         * config/mips/mips-opts.h: New.
2838         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2839         to mips-opts.h.
2840         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2841         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2842         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
2843         via opts pointer.
2844         * config/mips/mips.h (enum mips_code_readable_setting): Move to
2845         mips-opts.h.
2846         (mips_abi, mips_code_readable): Don't declare.
2847         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2848         (mabi=): Use Enum and Var.
2849         (mips_abi): New Enum and EnumValue entries.
2850         (mcode-readable=): Use Enum and Var.
2851         (mips_code_readable_setting): New Enum and EnumValue entries.
2852         (mr10k-cache-barrier=): Use Enum and Var.
2853         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2854
2855 2011-05-03  Jan Hubicka  <jh@suse.cz>
2856
2857         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2858         replace hash by pointer map.
2859         (cgraph_node_set_element_def, cgraph_node_set_element,
2860         const_cgraph_node_set_element, varpool_node_set_element_def,
2861         varpool_node_set_element, const_varpool_node_set_element): Remove.
2862         (free_cgraph_node_set, free_varpool_node_set): New function.
2863         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2864         * tree-emutls.c: Free varpool node set.
2865         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2866         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2867         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2868         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2869         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2870         Move here from ipa.c; implement using pointer_map
2871         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2872         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2873         debug_cgraph_node_set, varpool_node_set_new,
2874         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2875         dump_varpool_node_set, debug_varpool_node_set):
2876         Move to ipa-uitls.c.
2877         * passes.c (ipa_write_summaries): Update.
2878
2879 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2880
2881         From Mike Frysinger:
2882         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2883         bf542/bf544/bf547/bf548/bf549.
2884
2885 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2886
2887         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2888
2889 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2890
2891         From Bernd Schmidt:
2892         * config/bfin/bfin.md (MOVCC): New mode_macro.
2893         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2894         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
2895         comments from generated assembly.
2896
2897 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2898
2899         From Bernd Schmidt
2900         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2901         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2902         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2903         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2904         * config/bfin/lib1funcs.asm (___muldi3): New function.
2905
2906 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2907
2908         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2909         build_function_type_list instead of build_function_type.
2910         Rearrange initialization of `args' to do so.
2911
2912 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2913
2914         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2915         instead of build_function_type.
2916
2917 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2918
2919         * config/rs6000/rs6000.c (spe_init_builtins): Call
2920         build_function_type_list instead of build_function_type.
2921         (paired_init_builtins, altivec_init_builtins): Likewise.
2922         (builtin_function_type): Likewise.
2923
2924 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2925
2926         * config/sh/sh.c (sh_media_init_builtins): Call
2927         build_function_type_list instead of build_function_type.
2928
2929 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2930
2931         * config/sparc/sparc.c (sparc_file_end): Call
2932         build_function_type_list instead of build_function_type.
2933
2934 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2935
2936         * config/alpha/alpha.c (alpha_init_builtins): Call
2937         build_function_type_list instead of build_function_type.
2938
2939 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2940
2941         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2942         build_function_type_list instead of build_function_type.
2943
2944 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2945
2946         * config/iq2000/i2000.c (iq2000_init_builtins): Call
2947         build_function_type_list instead of build_function_type.
2948         Delete `endlink' variable.
2949
2950 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2951
2952         * config/avr/avr.c (avr_init_builtins): Call
2953         build_function_type_list instead of build_function_type.
2954
2955 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2956
2957         * config/picochip/picochip.c (picochip_init_builtins): Call
2958         build_function_type_list instead of build_function_type.
2959         Delete `endlink' variable.
2960
2961 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2962
2963         * config/bfin/bfin.c (bfin_init_builtins): Call
2964         build_function_type_list instead of build_function_type.
2965
2966 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2967
2968         From Bernd Schmidt
2969         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2970         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
2971
2972 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2973
2974         From Jie Zhang:
2975         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2976         libbffastfp overrides libgcc when -mfast-fp.
2977
2978 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2979
2980         Originally from Bernd Schmidt
2981         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2982         * config/bfin/bfin.c (override_options): Test it and error if
2983         TARGET_FDPIC.
2984
2985 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2986
2987         Originally From Bernd Schmidt
2988         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2989         FD-PIC.
2990
2991 2011-05-03  Jeff Law  <law@redhat.com>
2992
2993         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2994         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2995         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2996         than accessing AUX field directly.  Free the AUX field before
2997         clearing it.
2998         (thread_block, thread_through_loop_header): Likewise.
2999         (thread_single_edge, mark_threaded_blocks): Likewise.
3000         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
3001         (register_jump_thread): Do not attempt to thread to a NULL edge.
3002
3003 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
3004
3005         * function.c (init_function_start): Call decide_function_section.
3006         * varasm.c (decide_function_section): New function.
3007         (assemble_start_function): When not using
3008         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
3009         or first_function_block_is_cold.
3010         * rtl.h (decide_function_section): Declare.
3011
3012 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
3013             Jakub Jelinek  <jakub@redhat.com>
3014
3015         PR target/48774
3016         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
3017         only succeed if req_mode is the same as set_mode.
3018
3019 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
3020
3021         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
3022         * genemit.c (gen_exp): Handle RETURN.
3023         * emit-rtl.c (verify_rtx_sharing): Likewise.
3024         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
3025         * rtl.c (copy_rtx): RETURN is shared.
3026         * rtl.h (enum global_rtl_index): Add GR_RETURN.
3027         (ret_rtx): New.
3028         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
3029         * config/s390/s390.c (s390_emit_epilogue): Likewise.
3030         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
3031         * config/cris/cris.c (cris_expand_return): Likewise.
3032         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
3033         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
3034         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
3035         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
3036         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
3037         Likewise.
3038         * config/v850/v850.c (expand_epilogue): Likewise.
3039         * config/bfin/bfin.c (bfin_expand_call): Likewise.
3040         * config/arm/arm.md (epilogue): Likewise.
3041         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
3042         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
3043         variable to ret_reg.
3044
3045 2011-05-03  Richard Guenther  <rguenther@suse.de>
3046
3047         PR lto/48846
3048         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
3049         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
3050         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
3051
3052 2011-05-03  Richard Guenther  <rguenther@suse.de>
3053
3054         * c-decl.c (grokdeclarator): Instead of looking at
3055         TREE_OVERFLOW check if the constant fits in the index type.
3056
3057 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3058
3059         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
3060         (vec_store_lanes<mode><mode>): Likewise.
3061
3062 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3063
3064         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
3065         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
3066         convert_optab_index values.
3067         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
3068         * genopinit.c (optabs): Initialize the new optabs.
3069         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
3070         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
3071         (expand_STORE_LANES): New functions.
3072         * tree.h (build_array_type_nelts): Declare.
3073         * tree.c (build_array_type_nelts): New function.
3074         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
3075         (vect_model_load_cost): Likewise.
3076         (vect_store_lanes_supported, vect_load_lanes_supported)
3077         (vect_record_strided_load_vectors): Declare.
3078         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
3079         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
3080         (vect_transform_strided_load): Split out statement recording into...
3081         (vect_record_strided_load_vectors): ...this new function.
3082         * tree-vect-stmts.c (create_vector_array, read_vector_array)
3083         (write_vector_array, create_array_ref): New functions.
3084         (vect_model_store_cost): Add store_lanes_p argument.
3085         (vect_model_load_cost): Add load_lanes_p argument.
3086         (vectorizable_store): Try to use store-lanes functions for
3087         interleaved stores.
3088         (vectorizable_load): Likewise load-lanes and loads.
3089         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3090         to vect_model_store_cost.
3091         (vect_build_slp_tree): Likewise vect_model_load_cost.
3092
3093 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3094
3095         * hooks.h (hook_bool_mode_uhwi_false): Declare.
3096         * hooks.c (hook_bool_mode_uhwi_false): New function.
3097         * target.def (array_mode_supported_p): New hook.
3098         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3099         * doc/tm.texi: Regenerate.
3100         * stor-layout.c (mode_for_array): New function.
3101         (layout_type): Use it.
3102         * config/arm/arm.c (arm_array_mode_supported_p): New function.
3103         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3104
3105 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
3106
3107         PR target/48723
3108         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3109         for -fstack-check if the size to allocate is negative.
3110
3111 2011-05-02  Lawrence Crowl  <crowl@google.com>
3112
3113         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3114         (timevar_cond_start): New for starting a timer only when it is not
3115         already running.
3116         (timevar_cond_stop): New for stopping a timer when it was not already
3117         running.
3118
3119         * timevar.c (timevar_stop): Enable start/stop timers to start again.
3120         (timevar_cond_start): New as above.
3121         (timevar_cond_stop): New as above.
3122
3123         * timevar.def: Add start/stop timers for compiler phases,
3124         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3125         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3126         and TV_PHASE_FINALIZE.
3127         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3128         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3129         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3130         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3131         Make unused TV_OVERLOAD into a start/stop timer.
3132
3133         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3134         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3135         to indicate that they are start/stop timers.
3136
3137         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3138         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3139         Move initialization to do_compile.
3140         (do_compile): Add initialization from above.
3141         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3142
3143         * c-decl.c (c_write_global_declarations): Add start/stop of
3144         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3145
3146         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3147         or TV_PARSE_INLINE, as appropriate.
3148         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3149         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3150
3151 2011-05-02  Jason Merrill  <jason@redhat.com>
3152
3153         PR c++/40975
3154         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3155
3156 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
3157
3158         PR c/35445
3159         * c-decl.c (finish_decl): Only create a composite if the types are
3160         compatible.
3161
3162 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
3163
3164         * config/fr30/fr30-protos.h (Mmode): Don't define.
3165         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
3166         definition where used.
3167         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3168         define.  Expand definitions where used.
3169         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3170         Expand definitions where used.
3171         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3172         rx_function_arg, rx_function_arg_advance,
3173         rx_function_arg_boundary): Expand definitions of those macros.
3174         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
3175         definition where used.
3176
3177 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3178
3179         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3180         reg<->xmm moves.
3181         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3182         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
3183         with *movv2sf_internal_rex64_avx.
3184         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3185         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3186         Use %v prefix in insn mnemonic to handle TARGET_AVX.
3187         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
3188         "vex" in "prefix" attribute calculation.
3189         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
3190
3191 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
3192
3193         PR target/47951
3194         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3195         inputs match the output.
3196
3197 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
3198
3199         PR target/47955
3200         * config/m68k/m68k.c (m68k_expand_prologue): Set
3201         current_function_static_stack_size.
3202
3203 2011-05-02   Jan Hubicka  <jh@suse.cz>
3204
3205         * lto-streamer.c (lto_streamer_cache_insert_1,
3206         lto_streamer_cache_lookup, lto_streamer_cache_create,
3207         lto_streamer_cache_delete): Use pointer map instead of hashtable.
3208         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3209
3210 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
3211
3212         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3213         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3214         config/m68k/t-opts: New files.
3215         * config/m68k/m68k-tables.opt: New file (generated).
3216         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3217         extra_options and m68k/t-opts to tmake_file.
3218         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3219         (all_isas): Initialize using m68k-isas.def.
3220         (all_microarchs): Initialize using m68k-microarchs.def.
3221         (m68k_find_selection): Remove.
3222         (m68k_handle_option): Don't assert that global structures are in
3223         use.  Use error_at.  Access variables via opts pointer.  Don't
3224         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
3225         directly for -m68020-40 and -m68020-60.
3226         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3227         m68k_tune_entry here.
3228         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3229         to m68k-opts.h.
3230         (m68k_library_id_string): Remove declaration.
3231         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3232         (m68k_library_id_string): New Variable.
3233         (march=, mcpu=, mtune=): Use Enum and Var.
3234
3235 2011-05-02  Richard Guenther  <rguenther@suse.de>
3236
3237         * varasm.c (output_constructor_regular_field): Compute zero-based
3238         index with double-ints.  Make sure to ICE instead of producing
3239         wrong code.
3240         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3241         in asserts.  Properly use a signed type.
3242
3243 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3244
3245         * config/i386/sse.md (V): New mode iterator.
3246         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
3247         TARGET_SSE2.
3248         (V_256): Rename from AVX256MODE.
3249         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
3250         condition to all users.
3251         (VF1): Ditto.
3252         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
3253         condition to all users.
3254         (VF_128): Make V4SF mode unconditional.
3255         (VF_256): Rename from AVX256MODEF2P.
3256         (VI4F_128): Rename from SSEMODE4S.
3257         (VI8F_128): Rename from SSEMODE2D.
3258         (VI4F_256): Rename from AVX256MODE8P.
3259         (VI8F_256): Rename from AVX256MODE4P.
3260         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3261         (ssescalarmodesuffix): Remove SF and DF modes.
3262         (SSEMODE124): Remove.
3263         (SSEMODE1248): Ditto.
3264         (SSEMODEF2P): Ditto.
3265         (AVXMODEF2P): Ditto.
3266         (AVXMODEFDP): Ditto.
3267         (AVXMODEFSP): Ditto.
3268         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3269         unconditional.
3270         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
3271         unconditional.
3272         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3273         xop_pcmov_<mode>256.  Use V mode iterator.
3274
3275         Adjust RTX patterns globally for renamed mode attributes.
3276
3277 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3278
3279         * haifa-sched.c (sched_emit_insn): Emit insn before first
3280         non-scheduled insn.  Inform back-end about new insn.  Add
3281         new insn to scheduled_insns list.
3282
3283 2011-05-02  Richard Guenther  <rguenther@suse.de>
3284
3285         PR tree-optimization/48822
3286         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3287         (process_scc): Indicate which iteration we start.
3288
3289 2011-05-02  Jan Hubicka  <jh@suse.cz>
3290
3291         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3292         (lto_section_overrun): New.
3293         * lto-section-out.c (append_block): Rename to ...
3294         (lto_append_block): ... this one; export.
3295         (lto_output_1_stream): Move lto lto-streamer.h
3296         (lto_output_data_stream): Update.
3297         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3298         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3299         functions.
3300
3301 2011-05-02  Richard Guenther  <rguenther@suse.de>
3302
3303         * tree.c (tree_code_counts): New global array.
3304         (record_node_allocation_statistics): Count individual tree codes.
3305         (dump_tree_statistics): Dump individual code stats.
3306
3307 2011-05-01  Jan Hubicka  <jh@suse.cz>
3308
3309         * ipa-inline.c (caller_growth_limits): Fix thinko when
3310         looking for largest stack frame.
3311         * ipa-inline.h (dump_inline_summary): Declare.
3312         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3313         on stack usage.
3314         (dump_inline_summary): Export.
3315         (debug_inline_summary): Declare as DEBUG_FUNCTION.
3316
3317 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
3318
3319         * reginfo.c (memory_move_cost): Change rclass argument type form
3320         'enum reg_class' to reg_class_t.
3321         * reload.h (memory_move_cost): Update prototype.
3322         * postreload.c reload_cse_simplify_set): Change type dclass var to
3323         reg_class_t.
3324         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3325         Update prototype.
3326         (ira_allocate_and_set_costs): Change aclass argument type form
3327         'enum reg_class' to reg_class_t.
3328         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3329         Change aclass argument type to reg_class_t.
3330         (update_conflict_hard_reg_costs): Change type aclass and pref vars
3331         to reg_class_t.
3332         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3333         memory_move_cost call.
3334
3335         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3336         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3337         Change type tmp var to reg_class_t.
3338
3339 2011-04-30  Jan Hubicka  <jh@suse.cz>
3340
3341         * ipa-inline.c (can_inline_edge_p): Disregard limits when
3342         inlining into function with flatten attribute.
3343         (want_inline_small_function_p): Be more realistic about inlining
3344         cold calls where callee size grows.
3345
3346 2011-04-30  Jan Hubicka  <jh@suse.cz>
3347
3348         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3349         flags.
3350
3351 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
3352
3353         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3354         PRINT_OPERAND_PUNCT_VALID_P): Remove.
3355         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3356         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3357         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3358         (print_operand): Rename to...
3359         (sparc_print_operand): ...this. Make static. Adjust
3360         sparc_print_operand function call.
3361         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3362         functions.
3363
3364 2011-04-30  Jan Hubicka  <jh@suse.cz>
3365
3366         PR middle-end/48752
3367         * ipa-inline.c (early_inliner): Disable when doing late
3368         addition of function.
3369
3370 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
3371
3372         * dwarf2out.c (get_address_mode): New inline.
3373         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3374         if not dwarf_strict emit
3375         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3376         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3377         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
3378         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3379         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3380         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3381         mem_loc_descriptor callers.
3382         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3383         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3384         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3385         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3386         (base_types): New variable.
3387         (get_base_type_offset, calc_base_type_die_sizes,
3388         base_type_for_mode, mark_base_types, base_type_cmp,
3389         move_marked_base_types): New functions.
3390         (calc_die_sizes): Assert that die_offset is 0 or equal to
3391         next_die_offset.
3392         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3393         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
3394         callers.  If not dwarf_strict, call mem_loc_descriptor even for
3395         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3396         (gen_subprogram_die): Don't give up on call site parameters
3397         with non-integral or large integral modes.  Adjust
3398         mem_loc_descriptor callers.
3399         (prune_unused_types): Call prune_unused_types_mark on base_types
3400         vector entries.
3401         (resolve_addr): Call mark_base_types.
3402         (dwarf2out_finish): Call move_marked_base_types.
3403
3404         PR tree-optimization/48809
3405         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3406         type.
3407         (gen_inbound_check): Don't compute index_expr - range_min in utype
3408         again, instead reuse SSA_NAME initialized in build_arrays.
3409         Remove two useless gsi_for_stmt calls.
3410
3411 2011-04-29  Jeff Law  <law@redhat.com>
3412
3413         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3414
3415 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3416
3417         * cgraph.h (cgraph_postorder): Remove declaration.
3418         * ipa-utils.h (ipa_free_postorder_info): Declare.
3419         (ipa_reverse_postorder): Likewise.
3420         * cgraphunit.c: Include ipa-utils.h.
3421         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3422         * ipa-inline.c: Include ipa-utils.h.
3423         (ipa_inline): Update call to ipa_reverse_postorder.
3424         * ipa-pure-const.c (propagate_pure_const): Update call to
3425         ipa_reduced_postorder and ipa_print_order.  Call
3426         ipa_free_postorder_info to clean up.
3427         (propagate_nothrow): Likewise.
3428         * ipa-reference.c (propagate): Removed a useless call to
3429         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3430         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
3431         * ipa.c: Include ipa-utils.h.
3432         (ipa_profile): Update call to ipa_reverse_postorder.
3433         (cgraph_postorder): Moved to...
3434         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3435         (ipa_utils_print_order): Renamed to ipa_print_order.
3436         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3437         comments.
3438         (ipa_free_postorder_info): New function.
3439         * passes.c: Include ipa-utils.h.
3440         (do_per_function_toporder): Update call to ipa_reverse_postorder.
3441         (ipa_write_summaries): Likewise.
3442         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3443         (cgraphunit.o): Likewise.
3444         (ipa.o): Likewise.
3445         (ipa-inline.o): Likewise.
3446
3447 2011-04-29  Jan Hubicka  <jh@suse.cz>
3448
3449         * gcc.dg/tree-ssa/inline-10.c: New testcase.
3450         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3451         * ipa-inline.h (clause_t): Turn into unsigned int.
3452         * ipa-inline-analysis.c (add_clause): Do more simplification.
3453         (and_predicates): Shortcut more cases.
3454         (predicates_equal_p): Move forward; check that clauses are properly
3455         ordered.
3456         (or_predicates): Shortcut more cases.
3457         (edge_execution_predicate): Rewrite as...
3458         (set_cond_stmt_execution_predicate): ... this function; handle
3459         __builtin_constant_p.
3460         (set_switch_stmt_execution_predicate): New .
3461         (compute_bb_predicates): New.
3462         (will_be_nonconstant_predicate): Update TODO.
3463         (estimate_function_body_sizes): Use compute_bb_predicates
3464         and free them later, always try to estimate if stmt is constant.
3465         (estimate_time_after_inlining, estimate_size_after_inlining):
3466         Gracefully handle optimized out edges.
3467         (read_predicate): Fix off by one error.
3468
3469 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3470
3471         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3472
3473 2011-04-27  Xinliang David Li  <davidxl@google.com>
3474
3475         * tree-profile.c (init_ic_make_global_vars): Set
3476         tls attribute on ic vars.
3477         * coverage.c (coverage_end_function): Initialize
3478         function_list with zero.
3479
3480 2011-04-29  Richard Guenther  <rguenther@suse.de>
3481
3482         * builtins.c (fold_builtin_classify_type): Use integer_type_node
3483         for the type of the result.
3484         (fold_builtin_isascii): Likewise.
3485         (fold_builtin_toascii): Use integer_type_node where appropriate.
3486         (fold_builtin_logb): Likewise.
3487         (fold_builtin_frexp): Likewise.
3488         (fold_builtin_strstr): Likewise.
3489         (fold_builtin_strpbrk): Likewise.
3490         (fold_builtin_fputs): Likewise.
3491         (fold_builtin_sprintf): Likewise.
3492         (fold_builtin_snprintf): Likewise.
3493         (fold_builtin_printf): Likewise.
3494         (do_mpfr_remquo): Use a proper type for the assigned constant.
3495         (do_mpfr_lgamma_r): Likewise.
3496         * dwarf2out.c (resolve_one_addr): Use size_int.
3497         * except.c (init_eh): Likewise.
3498         (assign_filter_values): Use integer_type_node for filter values.
3499         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3500         indices.
3501         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3502         for EH region numbers.
3503         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3504         for the shift amount.
3505
3506 2011-04-29  Richard Guenther  <rguenther@suse.de>
3507
3508         * expr.h (expand_shift): Rename to ...
3509         (expand_variable_shift): ... this.
3510         (expand_shift): Take a constant shift amount.
3511         * expmed.c (expand_shift): Rename to ...
3512         (expand_variable_shift): ... this.
3513         (expand_shift): New wrapper around expand_variable_shift.
3514         * expr.c (convert_move, emit_group_load_1, emit_group_store,
3515         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3516         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3517         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3518         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3519         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3520         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3521         emit_store_flag_1, emit_store_flag): Likewise.
3522         * builtins.c (expand_builtin_signbit): Likewise.
3523         * calls.c (load_register_parameters): Likewise.
3524         * function.c (assign_parm_setup_block): Likewise.
3525         * lower-subreg.c (resolve_shift_zext): Likewise.
3526         * optabs.c (widen_bswap, expand_abs_nojump,
3527         expand_one_cmpl_abs_nojump, expand_float): Likewise.
3528         * spu/spu.c (spu_expand_extv): Likewise.
3529         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3530
3531 2011-04-29  Richard Guenther  <rguenther@suse.de>
3532
3533         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3534         for the remapped region number.
3535         * predict.c (build_predict_expr): Use integer_type_node for the
3536         predict kind.
3537         * fold-const.c (fold_binary_loc): Use integer_type_node for
3538         the shift amount.  Use a proper type for the PLUS_EXPR operand.
3539
3540 2011-04-29  Michael Matz  <matz@suse.de>
3541
3542         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3543         other trees that just builtins.
3544         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3545
3546 2011-04-29  Richard Guenther  <rguenther@suse.de>
3547
3548         * tree-nested.c (get_trampoline_type): Use size_int.
3549         (get_nl_goto_field): Likewise.
3550         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3551         for all indexes.
3552         (lower_eh_constructs_2): Likewise.
3553         (lower_resx): Likewise.
3554         (lower_eh_dispatch): Likewise.
3555         * tree-mudflap.c (mf_build_string): Use size_int.
3556         (mudflap_register_call): Use integer_type_node for the flag.
3557         (mudflap_enqueue_constant): Use size_int.
3558         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3559         instead of rebuilding it.
3560
3561 2011-04-29  Richard Guenther  <rguenther@suse.de>
3562
3563         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3564         Handle OBJ_TYPE_REF.
3565         (find_func_aliases_for_call): Use it more consistently.
3566
3567 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
3568
3569         * haifa-sched.c (last_nondebug_scheduled_insn): New.
3570         (rank_for_schedule): Use it.
3571         (schedule_block): Set it.
3572
3573 2011-04-28  David Li  <davidxl@google.com>
3574
3575         * tree.c (crc32_string): Use crc32_byte.
3576         (crc32_byte): New function.
3577         * tree.h (crc32_byte): New function.
3578         * gcov.c (read_graph_file): Handle new cfg_cksum.
3579         (read_count_file): Ditto.
3580         * profile.c (instrument_values): Ditto.
3581         (get_exec_counts): Ditto.
3582         (read_profile_edge_counts): Ditto.
3583         (compute_branch_probabilities): Ditto.
3584         (compute_value_histograms): Ditto.
3585         (branch_prob): Ditto.
3586         (end_branch_prob): Ditto.
3587         * coverage.c (read_counts_file): Ditto.
3588         (get_coverage_counts): Ditto.
3589         (tree_coverage_counter_addr): Ditto.
3590         (coverage_checksum_string): Ditto.
3591         (coverage_begin_output): Ditto.
3592         (coverage_end_function): Ditto.
3593         (build_fn_info_type): Ditto.
3594         (build_fn_info_value): Ditto.
3595         * libgcov.c (gcov_exit): Ditto.
3596         * gcov-dump.c (tag_function): Ditto.
3597         (compute_checksum): Remove.
3598
3599 2011-04-29  Alan Modra  <amodra@gmail.com>
3600
3601         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3602         unspec plus offset.  Tidy macho code.
3603
3604 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3605
3606         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3607         node instead of a decl.  Update all callers.
3608         * cgraph.h: Update declaration.
3609
3610 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
3611
3612         PR tree-optimization/48765
3613         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3614         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3615         to indicate if loop aware SLP is being used.  Scan the statements
3616         and update the vectorization factor according to the type of
3617         vectorization before statement analysis.
3618         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3619         pass it to vect_analyze_loop_operations.
3620         (vectorizable_reduction): Set number of copies to 1 in case of pure
3621         SLP statement.
3622         * tree-vect-stmts.c (vectorizable_conversion,
3623         vectorizable_assignment, vectorizable_shift,
3624         vectorizable_operation, vectorizable_type_demotion,
3625         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3626         Likewise.
3627         (vectorizable_condition): Move the check that it is not SLP
3628         vectorization before the number of copies check.
3629         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3630         to vectorize the loop using SLP.
3631
3632 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
3633
3634         PR middle-end/48597
3635         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3636         inline asm.
3637
3638 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
3639
3640         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3641         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3642         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3643         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3644         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3645         linux*.h headers.
3646         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3647         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3648         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3649         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3650         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3651         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3652         REG_NAME.
3653         * config/i386/linux.h (REG_NAME): Don't define.
3654         * config/i386/linux64.h (REG_NAME): Don't define.
3655         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3656         Undefine before defining.
3657
3658 2011-04-28  Jan Hubicka  <jh@suse.cz>
3659
3660         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3661         nonconstant_names array.
3662         (estimate_function_body_sizes): Build nonconstant_names array; handle
3663         BUILT_IN_CONSTANT_P.
3664
3665 2011-04-28  Richard Guenther  <rguenther@suse.de>
3666
3667         PR bootstrap/48804
3668         Revert
3669         2011-04-28  Richard Guenther  <rguenther@suse.de>
3670
3671         * tree-ssa-structalias.c (solve_constraints): Build succ graph
3672         as late as possible.
3673
3674 2011-04-28  Richard Guenther  <rguenther@suse.de>
3675
3676         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3677         (debug_constraint): Do it here.
3678         (dump_constraints): And here.
3679         (rewrite_constraints): And here.
3680         (dump_constraint_edge): Remove.
3681         (dump_constraint_graph): Rewrite to produce DOT output.
3682         (solve_constraints): Build succ graph as late as possible.
3683         Dump constraint graphs before and after solving.
3684
3685 2011-04-28  Richard Guenther  <rguenther@suse.de>
3686
3687         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3688         New function split out from ...
3689         (find_func_aliases): ... here.  Call it.
3690         (find_func_aliases_for_call): Likewise.
3691
3692 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3693
3694         * internal-fn.h (internal_fn_name_array): Declare.
3695         (internal_fn_flags_array): Likewise.
3696
3697 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3698
3699         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
3700         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3701         Move from sse.md.
3702         (ssemodefsuffix): Remove.
3703         (ssevecmodesuffix): New mode attribute.
3704         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3705         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3706         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3707         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3708         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3709         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3710         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3711         ssemodesuffix mode attribute.
3712         (float splitters): Use ssevecmodesuffix mode attribute.
3713         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3714         (sseinsmode): Rename from avxvecmode.
3715         (avxsizesuffix): Rename from avxmodesuffix.
3716         (sseintvecmode): Rename from avxpermvecmode.
3717         (ssedoublevecmode): Rename from ssedoublesizemode.
3718         (ssehalfvecmode): Rename from avxhalfvecmode.
3719         (ssescalarmode): Rename from avxscalarmode.
3720         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3721         templates for ssemodesuffix mode attribute.
3722         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3723         mode attribute.
3724
3725         Adjust RTX patterns globally for renamed mode attributes.
3726
3727 2011-04-27  Jan Hubcika  <jh@suse.cz>
3728
3729         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3730         * ipa-inline-analysis.c: Include alloc-pool.h.
3731         (edge_predicate_pool): New.
3732         (trye_predicate_p): New function
3733         (false_predicate_p): New function.
3734         (add_clause): Sanity check that false clauses are "optimized";
3735         never add clauses to predicate that is already known to be false.
3736         (and_predicate): Use flase_predicate_p.
3737         (evaulate_predicate): Rename to ...
3738         (evaluate_predicate): ... this one; update all callers; assert
3739         that false is not listed among possible truths.
3740         (dump_predicate): Use true_predicate_p.
3741         (account_size_time): Use false_predicate_p.
3742         (evaulate_conditions_for_edge): Rename to ...
3743         (evaluate_conditions_for_edge) ... this one.
3744         (edge_set_predicate): New function.
3745         (inline_edge_duplication_hook): Duplicate edge predicates.
3746         (inline_edge_removal_hook): Free edge predicates.
3747         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3748         (dump_inline_summary): Update.
3749         (estimate_function_body_sizes): Set edge predicates.
3750         (estimate_calls_size_and_time): Handle predicates.
3751         (estimate_callee_size_and_time): Update.
3752         (remap_predicate): Add toplev_predicate; update comment.
3753         (remap_edge_predicates): New function.
3754         (inline_merge_summary): Compute toplev predicate; update.
3755         (read_predicate): New function.
3756         (read_inline_edge_summary): Use it.
3757         (inline_read_section): Likewise.
3758         (write_predicate): New function.
3759         (write_inline_edge_summary): Use it.
3760         (inline_write_summary): Likewise.
3761         (inline_free_summary): Free alloc pool and edge summary vec.
3762
3763 2011-04-27  Richard Guenther  <rguenther@suse.de>
3764
3765         * tree-ssa-structalias.c (changed_count): Remove.
3766         (changed): Use a bitmap.
3767         (unify_nodes): Adjust.
3768         (do_sd_constraint): Likewise.
3769         (do_ds_constraint): Likewise.
3770         (do_complex_constraint): Likewise.
3771         (solve_graph): Likewise.
3772
3773 2011-04-27  Jan Hubicka  <jh@suse.cz>
3774
3775         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3776
3777 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3778
3779         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3780         (avx_vperm2f128_*_operand): Ditto.
3781         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3782         Use avx_vpermilp_parallel in insn condition.
3783         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3784         Use avx_vperm2f128_parallel in insn condition.
3785
3786 2011-04-27  Richard Guenther  <rguenther@suse.de>
3787
3788         * Makefile.in (tree-ssa-structalias.o): Remove
3789         gt-tree-ssa-structalias.h dependency.
3790         (GTFILES): Remove tree-ssa-structalias.c.
3791         * tree.c (allocate_decl_uid): New function.
3792         (make_node_stat): Use it.
3793         (copy_node_stat): Likewise.
3794         * tree.h (allocate_decl_uid): Declare.
3795         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3796         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3797         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3798         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3799         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3800         (struct heapvar_map): Likewise.
3801         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3802         heapvar_insert): Likewise.
3803         (make_heapvar_for): Rename to ...
3804         (make_heapvar): ... this.  Simplify.
3805         (fake_var_decl_obstack): New global var.
3806         (build_fake_var_decl): New function.
3807         (make_constraint_from_heapvar): Adjust.
3808         (handle_lhs_call): Likewise.
3809         (create_function_info_for): Likewise.
3810         (intra_create_variable_infos): Likewise.
3811         (init_alias_vars): Allocate fake_var_decl_obstack.
3812         (init_alias_heapvars, delete_alias_heapvars): Remove.
3813         (compute_points_to_sets): Do not call init_alias_heapvars.
3814         (ipa_pta_execute): Likewise.
3815         (delete_points_to_sets): Free fake_var_decl_obstack.
3816
3817 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3818
3819         * config/spu/divmovti4.c (union qword_UTItype): New data type.
3820         (si_from_UTItype, si_to_UTItype): New functions.
3821         (__udivmodti4): Use them to implement type-punning.
3822         * config/spu/multi3.c (union qword_TItype): New data type.
3823         (si_from_TItype, si_to_TItype): New functions.
3824         (__multi3): Use them to implement type-punning.
3825
3826 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3827
3828         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3829
3830 2011-04-27  Jan Hubicka  <jh@suse.cz>
3831
3832         * ipa-prop.c (function_insertion_hook_holder): New holder.
3833         (ipa_add_new_function): New function.
3834         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3835         Register/deregister holder.
3836
3837 2011-04-27  Richard Guenther  <rguenther@suse.de>
3838
3839         PR tree-optimization/48772
3840         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3841
3842 2011-04-27  Richard Guenther  <rguenther@suse.de>
3843
3844         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3845         TARGET_MEM_REF handling.
3846
3847 2011-04-27  Nick Clifton  <nickc@redhat.com>
3848
3849         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3850         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3851         (REG_CLASS_NAMES): Likewise.
3852         (REG_CLASS_CONTENTS): Likewise.
3853         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3854         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3855         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
3856         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
3857         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
3858         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3859         duplicate register classes.
3860         (frv_class_likely_spilled_p): Likewise.
3861         (frv_register_move_cost): Likewise.
3862
3863         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3864         end of the regno_reg_class array.
3865
3866 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
3867
3868         PR c/48742
3869         * c-typeck.c (build_binary_op): Don't wrap arguments if
3870         int_operands is true.
3871
3872 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3873
3874         PR target/48767
3875         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3876         targetm.calls.must_pass_in_stack for void type.
3877
3878 2011-04-26  Jan Hubicka  <jh@suse.cz>
3879
3880         * cgraphbuild.c (build_cgraph_edges): Update call
3881         of cgraph_create_edge and cgraph_create_indirect_edge.
3882         * cgraph.c (cgraph_create_edge_including_clones,
3883         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3884         cgraph_update_edges_for_call_stmt_node): Do not take nest
3885         argument; do not initialize call_stmt_size/time.
3886         (dump_cgraph_node): Do not dump nest.
3887         (cgraph_clone_edge): Do not take loop_nest argument;
3888         do not propagate it; do not clone call_stmt_size/time.
3889         (cgraph_clone_node): Likewise.
3890         (cgraph_create_virtual_clone): Update.
3891         * cgraph.h (struct cgraph_edge): Remove
3892         call_stmt_size/call_stmt_time/loop_nest.
3893         (cgraph_create_edge, cgraph_create_indirect_edge,
3894         cgraph_create_edge_including_clones, cgraph_clone_node): Update
3895         prototype.
3896         * tree-emutls.c (gen_emutls_addr): Update.
3897         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3898         loop_nest; handle indirect calls, too.
3899         (clone_inlined_nodes): Do not care about updating inline summaries.
3900         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3901         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3902         stream call_stmt_size/call_stmt_time/loop_nest.
3903         * ipa-inline.c (edge_badness): Update.
3904         (ipa_inline): dump summaries after inlining.
3905         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3906         New.
3907         (inline_edge_summary): New function.
3908         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3909         (inline_edge_removal_hook): Handle edge summaries.
3910         (inline_edge_duplication_hook): New hook.
3911         (inline_summary_alloc): Alloc hooks.
3912         (initialize_growth_caches): Do not register removal hooks.
3913         (free_growth_caches); Do not free removal hook.
3914         (dump_inline_edge_summary): New function.
3915         (dump_inline_summary): Use it.
3916         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3917         (inline_update_callee_summaries): New function.
3918         (inline_merge_summary): Use it.
3919         (do_estimate_edge_time, do_estimate_edge_growth): Update.
3920         (read_inline_edge_summary): New function.
3921         (inline_read_section): Use it.
3922         (write_inline_edge_summary): New function.
3923         (inline_write_summary): Use it.
3924         (inline_free_summary): Free edge new holders.
3925         * tree-inline.c (copy_bb): Update.
3926
3927 2011-04-26  Jason Merrill  <jason@redhat.com>
3928
3929         * tree-eh.c (lower_try_finally_switch): Create the label along with
3930         the CASE_LABEL_EXPR.
3931
3932 2011-04-26  David S. Miller  <davem@davemloft.net>
3933             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3934
3935         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3936         * configure: Regenerate.
3937
3938 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3939
3940         PR target/48258
3941         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3942         reduction.
3943         (VEC_reduc): New code iterator and splitters for vector reduction.
3944         (VEC_reduc_name): Ditto.
3945         (VEC_reduc_rtx): Ditto.
3946         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3947         (reduc_<VEC_reduc_name>_v4sf): Ditto.
3948
3949         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3950         support for extracting SF on VSX.
3951
3952         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3953         generating xscvspdp.
3954         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3955         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3956         double add, minimum, maximum vector reduction.
3957         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3958         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3959         optimize double vector reduction.
3960         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3961
3962 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
3963
3964         * config/fr30/fr30.h (inhibit_libc): Don't define.
3965         * config/m32r/m32r-protos.h: Correct comment.
3966         * config/v850/v850.h (GHS_default_section_names,
3967         GHS_current_section_names): Use tree, not union tree_node *.
3968
3969 2011-04-26  Xinliang David Li  <davidxl@google.com>
3970
3971         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3972         * c-family/c-opts.c (c_common_handle_option): Set
3973         warn_maybe_uninitialized.
3974         * opts.c (common_handle_option): Ditto.
3975         * common.opt:  New option.
3976         * tree-ssa.c (warn_uninit): Add one more parameter.
3977         (warn_uninitialized_var): Pass warning code.
3978         * tree-flow.h: Interface change.
3979
3980
3981 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3982
3983         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3984         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3985         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3986
3987 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3988
3989         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3990         * config/mips/mips.opt (mmips-tfile): Remove.
3991
3992         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3993         mips-tdump reference to ...
3994         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3995         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3996         reference by Tru64 UNIX.
3997
3998 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3999
4000         PR debug/48768
4001         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
4002         is error_mark_node, set value to NULL.
4003
4004         PR tree-optimization/48734
4005         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
4006         if return value from maybe_fold_*_comparsions isn't something
4007         the code is prepared to handle.
4008
4009 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
4010
4011         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
4012         mode check.
4013         (ext_QIreg_nomode_operands): Remove.
4014         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
4015         (*andsi_1): Ditto.
4016         (*andhi_1): Ditto.
4017
4018 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
4019
4020         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
4021
4022 2011-04-26  Richard Guenther  <rguenther@suse.de>
4023
4024         * c-typeck.c (build_unary_op): Do not expand array-refs via
4025         pointer arithmetic.  Only adjust qualifiers for function types.
4026
4027 2011-04-26  Richard Guenther  <rguenther@suse.de>
4028
4029         PR middle-end/48694
4030         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
4031         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
4032         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
4033         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
4034
4035 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
4036
4037         * doc/extend.texi: Document __underlying_type.
4038
4039 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
4040
4041         * config/rs6000/titan.md (automata_option "progress"): Remove.
4042
4043 2011-04-25  Jeff Law  <law@redhat.com>
4044
4045         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
4046
4047 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
4048
4049         * system.h (ENUM_BITFIELD): Remove.
4050
4051 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
4052             Eric Botcazou  <ebotcazou@adacore.com>
4053
4054         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
4055         for STORE_FLAG_VALUE==-1 case.
4056
4057 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
4058
4059         PR target/43804
4060         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
4061         LEGITIMATE_PIC_OPERAND_P.
4062
4063 2011-04-24  Jan Hubicka  <jh@suse.cz>
4064
4065         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
4066         WPA hack.
4067         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
4068         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
4069         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
4070         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
4071         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
4072         Sanity check predicate length.
4073         (remap_predicate): Likewise; sanity check jump functions.
4074         (inline_read_section, inline_write_summary): Sanity check
4075         predicate length.
4076
4077 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
4078
4079         PR other/48748
4080         * doc/extend.texi (Type Traits): Document __is_standard_layout,
4081         __is_literal_type, and __is_trivial; update throughout about
4082         possibly cv-qualified void types.
4083
4084 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
4085
4086         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4087         testsuite and make it version agnostic.
4088
4089 2011-04-22  Jan Hubicka  <jh@suse.cz>
4090
4091         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4092
4093 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
4094
4095         PR c/48685
4096         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4097         to VOID_TYPE even around MODIFY_EXPR.
4098
4099 2011-04-22  Mike Stump  <mikestump@comcast.net>
4100
4101         * gensupport.c (read_md_rtx): Fix typo in comment.
4102         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4103         comment.
4104
4105 2011-04-22  Jan Hubicka  <jh@suse.cz>
4106
4107         * gengtype.c (open_base_files): Add ipa-inline.h include.
4108         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4109         ipa-prop.c; update all uses.
4110         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4111         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4112         merge summary of inlined function into former caller.
4113         * ipa-inline.c (max_benefit): Remove.
4114         (edge_badness): Compensate for removal of benefits.
4115         (update_caller_keys): Use
4116         reset_node_growth_cache/reset_edge_growth_cache.
4117         (update_callee_keys): Likewise.
4118         (update_all_callee_keys): Likewise.
4119         (inline_small_functions): Do not collect max_benefit; do not reset
4120         estimated_growth; call free_growth_caches and initialize_growth_caches.
4121         * ipa-inline.h (struct condition, type clause_t, struct predicate,
4122         struct size_time_entry): New structures.
4123         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4124         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4125         and estimated_growth.
4126         (edge_growth_cache_entry): New structure.
4127         (node_growth_cache, edge_growth_cache): New global vars.
4128         (estimate_growth): Turn into inline.
4129         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4130         initialize_growth_caches, free_growth_caches): Declare.
4131         (estimate_edge_growth): Rewrite.
4132         (estimate_edge_time): Implement as inline cache lookup.
4133         (reset_node_growth_cache, reset_edge_growth_cache): New inline
4134         functions.
4135         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4136         (NUM_CONDITIONS): New constant.
4137         (predicate_conditions): New enum.
4138         (IS_NOT_CONSTANT): New constant.
4139         (edge_removal_hook_holder): New var.
4140         (node_growth_cache, edge_growth_cache): New global vars.
4141         (true_predicate, single_cond_predicate, false_predicate,
4142         not_inlined_predicate, add_condition, add_clause, and_predicates,
4143         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4144         dump_clause, dump_predicate, account_size_time,
4145         evaulate_conditions_for_edge): New functions.
4146         (inline_summary_alloc): Move to heap.
4147         (inline_node_removal_hook): Clear condition and entry vectors.
4148         (inline_edge_removal_hook): New function.
4149         (initialize_growth_caches, free_growth_caches): New function.
4150         (dump_inline_summary): Update.
4151         (edge_execution_predicate): New function.
4152         (will_be_nonconstant_predicate): New function.
4153         (estimate_function_body_sizes): Compute BB and constantness predicates.
4154         (compute_inline_parameters): Do not clear estimated_growth.
4155         (estimate_edge_size_and_time): New function.
4156         (estimate_calls_size_and_time): New function.
4157         (estimate_callee_size_and_time): New function.
4158         (remap_predicate): New function.
4159         (inline_merge_summary): New function.
4160         (do_estimate_edge_time): New function based on...
4161         (estimate_edge_time): ... this one.
4162         (do_estimate_edge_growth): New function.
4163         (do_estimate_growth): New function based on....
4164         (estimate_growth): ... this one.
4165         (inline_analyze_function): Analyze after deciding on jump functions.
4166         (inline_read_section): New function.
4167         (inline_read_summary): Use it.
4168         (inline_write_summary): Write all the new data.
4169         * ipa-prop.c (ipa_get_param_decl_index): Export.
4170         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4171         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4172         Declare.
4173         (ipa_get_lattice): Move here from ipa-cp.c
4174         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4175         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4176         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4177         cgraph_edge_inlinable_p): Remove.
4178         * cgraphunit.c: Include ipainline.h
4179         (cgraph_process_new_functions): Update call of
4180         compute_inline_parameters.
4181
4182 2011-04-22  Richard Guenther  <rguenther@suse.de>
4183
4184         * tree.c (build_int_cst): Properly create canonicalized integer
4185         constants.
4186         (build_int_cst_type): Remove scary comments.
4187
4188 2011-04-22  Xinliang David Li  <davidxl@google.com>
4189
4190         * toplev.c (process_options): Enable -Werror=coverage-mismatch
4191         by default when -Wno-error is not specified.
4192         * opts-global.c (decode_options): Remove call to
4193         control_warning_options.
4194
4195 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
4196
4197         PR tree-optimization/48717
4198         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4199         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4200
4201 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
4202
4203         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
4204         definition where used.
4205
4206 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
4207
4208         PR c/48716
4209         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4210         TREE_STATIC variables declared inside of some OpenMP construct.
4211
4212 2011-04-22  Martin Jambor  <mjambor@suse.cz>
4213
4214         PR middle-end/48585
4215         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4216
4217 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
4218
4219         PR c/36750
4220         * c-typeck.c (pop_init_level): Do not warn about initializing
4221         with ` = {0}'.
4222
4223 2011-04-22  Alan Modra  <amodra@gmail.com>
4224
4225         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4226         when returning call_cookie.
4227         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4228         pointers, to functions with no more vector args than the current
4229         function, and some non-local calls for ABI_V4.
4230         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4231         sibcall_nonlocal_aix64): Combine to ..
4232         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
4233         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4234         (sibcall_value_nonlocal_aix<mode>): ..likewise.
4235         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4236         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
4237         operand.
4238         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4239         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4240         sibcall_value_symbolic_64): Delete.
4241
4242 2011-04-21  Xinliang David Li  <davidxl@google.com>
4243
4244         * cgraph.h: Remove pid.
4245         * cgraph.c: Remove pid.
4246         * value-prof.c (init_node_map): New function.
4247         (del_node_map): New function.
4248         (find_func_by_funcdef_no): New function.
4249         (gimple_ic_transform): Call new function.
4250         * cgraphunit.c (cgraph_finalize_function): Remove pid.
4251         * function.c (get_last_funcdef_no): New function.
4252         * function.h (get_last_funcdef_no): New function.
4253         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4254         to libgcov function.
4255         (tree-profiling): Call node map init and delete function.
4256
4257 2011-04-21  Ian Lance Taylor  <iant@google.com>
4258
4259         * godump.c (go_format_type): Use exported Go name for anonymous
4260         field name.
4261
4262 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4263
4264         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4265         Call builtin_function_type_list instead of builtin_function_type.
4266         (UNARY, BINARY, TRINARY, QUAD): Likewise.
4267
4268 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4269
4270         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4271         build_function_type_list instead of build_function_type.
4272         Delete variable `endlink'.
4273
4274 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4275
4276         * config/s390/s390.c (s390_init_builtins): Call
4277         build_function_type_list instead of build_function_type.
4278
4279 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4280
4281         * config/ia64/ia64.c (ia64_init_builtins): Call
4282         build_function_type_list instead of builtin_function_type.
4283
4284 2011-04-21  Easwaran Raman  <eraman@google.com>
4285
4286         * cfgexpand.c (stack_var): Remove OFFSET...
4287         (add_stack_var): ...and its reference here...
4288         (expand_stack_vars): ...and here.
4289         (stack_var_cmp): Sort by descending order of size.
4290         (partition_stack_vars): Change heuristic.
4291         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4292         (dump_stack_var_partition): Add newline after each partition.
4293
4294 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
4295             Jeff Law  <law@redhat.com>
4296
4297         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4298         * gengtype.c (matching_file_name_substitute): Likewise.
4299
4300 2011-04-21  Richard Guenther  <rguenther@suse.de>
4301
4302         PR lto/48703
4303         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4304
4305 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
4306
4307         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4308
4309 2011-04-21  Richard Guenther  <rguenther@suse.de>
4310
4311         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4312         file name.
4313
4314 2011-04-21  Richard Guenther  <rguenther@suse.de>
4315
4316         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4317         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4318         Use DECL_P, not SSA_VAR_P.
4319         (ptr_derefs_may_alias_p): Likewise.
4320         (ptr_deref_may_alias_ref_p_1): Likewise.
4321         (decl_refs_may_alias_p): Likewise.
4322         (refs_may_alias_p_1): Likewise.
4323         (ref_maybe_used_by_call_p_1): Likewise.
4324         (call_may_clobber_ref_p_1): Likewise.
4325         (indirect_ref_may_alias_decl_p): Assume indirect refrences
4326         are either MEM_REF or TARGET_MEM_REF.
4327         (indirect_refs_may_alias_p): Likewise.
4328         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4329         for MEM_EXPR of indirect calls.
4330
4331 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4332
4333         * vmsdbgout.c (write_srccorr): Compute file length from the string.
4334         (dst_file_info_struct): Remove flen field.
4335         (lookup_filename): Remove code that set flen field.
4336
4337 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4338
4339         * config/ia64/ia64.c (ia64_start_function): Add a guard.
4340
4341 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
4342
4343         PR target/48708
4344         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4345         vec_extract and vec_concat for non-SSE4_1 targets.
4346
4347 2011-04-21  Richard Guenther  <rguenther@suse.de>
4348
4349         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4350         return statements.
4351
4352 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4353
4354         * config/i386/cygming.h (union tree_node, TREE): Don't define or
4355         undefine.
4356         (FILE): Don't undefine.
4357
4358 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4359
4360         * config/alpha/alpha.c (struct machine_function): Use rtx, not
4361         struct rtx_def *.
4362         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4363         struct rtx_def *.
4364         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4365         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4366         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4367         rtx_def *.
4368         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
4369         definitions where used.
4370         * config/microblaze/microblaze.h (struct microblaze_args): Use
4371         rtx, not struct rtx_def *.
4372         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4373         rtx_def *.
4374         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4375         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4376         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4377         not struct rtx_def *.
4378         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4379         struct rtx_def *.
4380         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4381         rtx_def *.
4382         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4383
4384 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4385
4386         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4387         operand_equal_p to compare DR_BASE_ADDRESSes.
4388         (vect_check_interleaving): Likewise.
4389
4390 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4391
4392         PR target/46329
4393         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4394         for all Neon struct constants.
4395
4396 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4397
4398         * target.def (legitimate_constant_p): New hook.
4399         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4400         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4401         * doc/tm.texi: Regenerate.
4402         * hooks.h (hook_bool_mode_rtx_true): Declare.
4403         * hooks.c (hook_bool_mode_rtx_true): Define.
4404         * system.h (LEGITIMATE_CONSTANT_P): Poison.
4405         * calls.c (precompute_register_parameters): Replace uses of
4406         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4407         (emit_library_call_value_1): Likewise.
4408         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4409         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4410         * ira-costs.c (scan_one_insn): Likewise.
4411         * recog.c (general_operand, immediate_operand): Likewise.
4412         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4413         * reload1.c (init_eliminable_invariants): Likewise.
4414
4415         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4416         mode argument.
4417         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4418         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4419         argument.
4420         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4421         * config/alpha/predicates.md (input_operand): Update call to
4422         alpha_legitimate_constant_p.
4423
4424         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4425         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4426         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4427         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4428         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4429         (arm_legitimate_constant_p): New functions.
4430         (arm_cannot_force_const_mem): Make static.
4431
4432         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4433
4434         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4435         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4436         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4437         instead of bfin_legitimate_constant_p.
4438         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
4439         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4440
4441         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4442
4443         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4444
4445         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4446         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4447         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4448         (frv_legitimate_constant_p): Make static.  Add a mode argument.
4449
4450         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4451         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4452         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4453
4454         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4455         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4456         * config/i386/i386.c (legitimate_constant_p): Rename to...
4457         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
4458         argument.
4459         (ix86_cannot_force_const_mem): Update accordingly.
4460         (ix86_legitimate_address_p): Likewise.
4461         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4462         * config/i386/i386.md: Update commentary.
4463
4464         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4465         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4466         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4467         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
4468
4469         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4470
4471         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4472         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4473         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4474         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
4475
4476         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4477         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4478         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4479
4480         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4481         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4482         (m32r_legitimate_constant_p): New function.
4483
4484         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4485         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4486         LEGITIMATE_CONSTANT_P.
4487         (LEGITIMATE_CONSTANT_P): Delete.
4488         * config/m68k/m68k.c (m68k_expand_prologue): Call
4489         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4490         (m68k_legitimate_constant_p): New function.
4491         * config/m68k/m68k.md: Update comments.
4492
4493         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4494         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4495         (mcore_legitimate_constant_p): New function.
4496
4497         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4498         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4499         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4500         Add a mode argument.
4501         (mep_legitimate_address): Update accordingly.
4502         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4503
4504         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4505         Delete.
4506         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4507         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4508         static.  Check OP's mode for VOIDmode.
4509         (microblaze_legitimate_constant_p): New function.
4510         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4511
4512         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4513         * config/mips/mips.c (mips_legitimate_constant_p): New function.
4514         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4515         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4516         * config/mips/predicates.md: Update comments.
4517
4518         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4519         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4520         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4521         (mmix_legitimate_constant_p): Make static, return a bool, and take
4522         a mode argument.
4523         (mmix_print_operand_address): Update accordingly.
4524
4525         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4526         Delete.
4527         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4528         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4529         static.  Add a mode argument.
4530         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4531
4532         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4533
4534         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4535         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4536         (pa_legitimate_constant_p): New function.
4537
4538         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4539
4540         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4541         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4542         (pdp11_legitimate_constant_p): New function.
4543
4544         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4545         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4546         (rs6000_legitimate_constant_p): New function.
4547
4548         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4549         (rx_legitimate_constant_p): ...this.
4550         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4551         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4552         (rx_legitimate_constant_p): ...this.
4553         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4554         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4555
4556         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4557         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4558         * config/s390/s390.c (legitimate_constant_p): Rename to...
4559         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
4560         and add a mode argument.
4561         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4562
4563         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4564
4565         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4566         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4567         (sh_legitimate_constant_p): New function.
4568
4569         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4570         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4571         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4572         (legitimate_constant_p): Rename to...
4573         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
4574         argument.
4575         (constant_address_p): Update accordingly.
4576
4577         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4578         argument and return a bool.
4579         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4580         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4581         (spu_legitimate_constant_p): Add a mode argument and return a bool.
4582         (spu_rtx_costs): Update accordingly.
4583         * config/spu/predicates.md (vec_imm_operand): Likewise.
4584
4585         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4586
4587         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4588         * config/v850/v850.c (v850_legitimate_constant_p): New function.
4589         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4590
4591         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4592         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4593         * config/vax/vax.c (legitimate_constant_p): Likewise.
4594
4595         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4596         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4597         (xtensa_legitimate_constant_p): New function.
4598
4599 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4600
4601         * target.def (cannot_force_const_mem): Add a mode argument.
4602         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4603         * doc/tm.texi: Regenerate.
4604         * hooks.h (hook_bool_mode_rtx_false): Declare.
4605         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4606         (hook_bool_mode_const_rtx_true): Likewise.
4607         (hook_bool_mode_rtx_false): New function.
4608         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4609         to be non-VOID.  Update call to cannot_force_const_mem.
4610         (find_reloads): Update accordingly.
4611         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4612         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4613         argument.
4614         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4615         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4616         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4617         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4618         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4619         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4620         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4621         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4622         (m68k_cannot_force_const_mem): ...this new function.
4623         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4624         argument.
4625         (mips_const_insns, mips_legitimize_const_move): Update calls.
4626         (mips_secondary_reload_class): Likewise.
4627         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4628         (pa_cannot_force_const_mem): ...this new function.
4629         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4630         (rs6000_cannot_force_const_mem): ...this new function.
4631         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4632         argument.
4633         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4634         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4635         to...
4636         (xtensa_cannot_force_const_mem): ...this new function.
4637
4638 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4639
4640         * config/mips/mips.c (mips16_build_function_stub): Call
4641         build_function_type_list instead of build_function_type.
4642         (mips16_build_call_stub): Likewise.
4643
4644 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4645
4646         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4647         instead of build_function_type.
4648
4649 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4650
4651         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4652         instead of build_function_type.
4653
4654 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
4655
4656         PR target/48678
4657         * config/i386/i386.md (insv): Change operand 0 constraint to
4658         "register_operand".  Change operand 1 and 2 constraint to
4659         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
4660         * config/i386/sse.md (sse4_1_pinsrb): Export.
4661         (sse2_pinsrw): Ditto.
4662         (sse4_1_pinsrd): Ditto.
4663         (sse4_1_pinsrq): Ditto.
4664         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4665         * config/i386/i386.c (ix86_expand_pinsr): New.
4666
4667 2011-04-20  Easwaran Raman  <eraman@google.com>
4668
4669         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4670         containing union type only with -fstrict-aliasing.
4671
4672 2011-04-20  Jim Meyering  <meyering@redhat.com>
4673
4674         Remove useless if-before-free tests.
4675         * calls.c (expand_call, save_area): Likewise.
4676         * cfgcleanup.c (try_forward_edges): Likewise.
4677         * collect2.c (collect_execute): Likewise.
4678         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4679         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4680         * coverage.c (coverage_checksum_string): Likewise.
4681         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4682         * cselib.c (cselib_init): Likewise.
4683         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4684         (df_set_clean_cfg): Likewise.
4685         * function.c (free_after_compilation): Likewise.
4686         * gcc.c (do_spec_1, main): Likewise.
4687         * gcov.c (create_file_names): Likewise.
4688         * gensupport.c (identify_predicable_attribute): Likewise.
4689         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4690         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4691         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4692         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4693         * ipa-pure-const.c (local_pure_const): Likewise.
4694         * ipa-reference.c (propagate): Likewise.
4695         * ira-costs.c (free_ira_costs): Likewise.
4696         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4697         * matrix-reorg.c (mat_free): Likewise.
4698         * prefix.c (get_key_value): Likewise.
4699         * profile.c (compute_value_histograms): Likewise.
4700         * reload1.c (free_reg_equiv): Likewise.
4701         * sched-deps.c (free_deps): Likewise.
4702         * sel-sched-ir.c (fence_clear): Likewise.
4703         * sese.c (set_rename, if_region_set_false_region): Likewise.
4704         * tree-data-ref.c (free_rdg): Likewise.
4705         * tree-eh.c (lower_try_finally): Likewise.
4706         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4707         * tree-ssa-live.c (delete_var_map): Likewise.
4708         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4709         * tree-ssa-pre.c (phi_trans_add): Likewise.
4710
4711 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
4712
4713         PR tree-optimization/48611
4714         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4715         beyond ERT_MUST_NOT_THROW region.
4716
4717 2011-04-20  Catherine Moore  <clm@codesourcery.com>
4718
4719         * config/mips/mips.opt (mfix-24k): New.
4720         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4721         * config/mips/mips.md (length): Increase by 4 for stores if
4722         fixing 24K errata.
4723         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4724         all noreorder if fixing 24K errata.
4725         * doc/invoke.texi: Document mfix-24k.
4726
4727 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
4728
4729         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4730         quad-word modes, reduce to 9-bit index range when above 1016 limit.
4731
4732 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4733
4734         * config/arm/arm.c (arm_gen_constant): Move movw support ....
4735         (const_ok_for_op): ... to here.
4736
4737 2011-04-20  Kai Tietz  <ktietz@redhat.com>
4738
4739         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4740         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4741
4742 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4743
4744         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4745
4746 2011-04-20  Richard Guenther  <rguenther@suse.de>
4747
4748         PR tree-optimization/47892
4749         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4750         are if-convertible.
4751
4752 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4753
4754         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4755
4756 2011-04-20  Tristan Gingold  <gingold@adacore.com>
4757
4758         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4759
4760 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
4761
4762         PR target/18145
4763
4764         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4765         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4766         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4767         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4768         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4769
4770         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4771         New prototype.
4772
4773         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4774         (avr_asm_named_section, avr_asm_output_aligned_common,
4775         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4776         New functions to update...
4777         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4778         (avr_asm_init_sections): Overwrite section callbacks for
4779         data_section, bss_section.
4780         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4781         from here to...
4782         (avr_file_end): ...here.
4783
4784 2011-04-20  Richard Guenther  <rguenther@suse.de>
4785
4786         PR middle-end/48695
4787         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4788         objects and types here.  Adjust for their offset before comparing.
4789
4790 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4791
4792         * tree-vect-stmts.c (vectorizable_store): Only chain one related
4793         statement per copy.
4794
4795 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4796
4797         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4798         (GIMPLE_H): Include $(INTERNAL_FN_H).
4799         (OBJS-common): Add internal-fn.o.
4800         (internal-fn.o): New rule.
4801         * internal-fn.def: New file.
4802         * internal-fn.h: Likewise.
4803         * internal-fn.c: Likewise.
4804         * gimple.h: Include internal-fn.h.
4805         (GF_CALL_INTERNAL): New gf_mask.
4806         (gimple_statement_call): Put fntype into a union with a new
4807         internal_fn field.
4808         (gimple_build_call_internal): Declare.
4809         (gimple_build_call_internal_vec): Likewise.
4810         (gimple_call_same_target_p): Likewise.
4811         (gimple_call_internal_p): New function.
4812         (gimple_call_internal_fn): Likewise.
4813         (gimple_call_fntype): Return null for internal calls.
4814         (gimple_call_set_fntype): Assert that the function is not internal.
4815         (gimple_call_set_fn): Likewise.
4816         (gimple_call_set_fndecl): Likewise.
4817         (gimple_call_set_internal_fn): New function.
4818         (gimple_call_addr_fndecl): Handle null functions.
4819         (gimple_call_return_type): Likewise null types.
4820         * gimple.c (gimple_build_call_internal_1): New function.
4821         (gimple_build_call_internal): Likewise.
4822         (gimple_build_call_internal_vec): Likewise.
4823         (gimple_call_same_target_p): Likewise.
4824         (gimple_call_flags): Handle calls to internal functions.
4825         (gimple_call_fnspec): New function.
4826         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4827         (gimple_has_side_effects): Handle null functions.
4828         (gimple_rhs_has_side_effects): Likewise.
4829         (gimple_call_copy_skip_args): Handle calls to internal functions.
4830         * cfgexpand.c (expand_call_stmt): Likewise.
4831         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4832         * gimple-fold.c (gimple_fold_call): Handle null functions.
4833         (gimple_fold_stmt_to_constant_1): Don't fold
4834         calls to internal functions.
4835         * gimple-low.c (gimple_check_call_args): Handle calls to internal
4836         functions.
4837         * gimple-pretty-print.c (dump_gimple_call): Likewise.
4838         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4839         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4840         (do_warn_unused_result): Likewise.
4841         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4842         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4843         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4844         the target of a call.
4845         (initialize_hash_element): Update accordingly.
4846         (hashable_expr_equal_p): Use gimple_call_same_target_p.
4847         (iterative_hash_hashable_expr): Handle calls to internal functions.
4848         (print_expr_hash_elt): Likewise.
4849         * tree-ssa-pre.c (can_value_number_call): Likewise.
4850         (eliminate): Handle null functions.
4851         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4852         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4853         (find_func_aliases): Likewise.
4854         * value-prof.c (gimple_ic_transform): Likewise.
4855         (gimple_indirect_call_to_profile): Likewise.
4856         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4857         * lto-streamer-out.c (output_gimple_stmt): Likewise.
4858
4859 2011-04-19  Jan Hubicka  <jh@suse.cz>
4860
4861         * ipa-inline-transform.c (save_inline_function_body): Add comments.
4862         * ipa-inline.c (inline_small_functions): Compute summaries first,
4863         populate heap later.
4864
4865 2011-04-19  Jan Hubicka  <jh@suse.cz>
4866
4867         * cgraph.h (save_inline_function_body): Remove.
4868         * ipa-inline-transform.c: New file, broke out of...
4869         * ipa-inline.c: ... this one; Update toplevel comment.
4870         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4871         make global.
4872         (update_noncloned_frequencies): Move to ipa-inline-transform.c
4873         (cgraph_mark_inline_edge): Rename to inline_call; move to
4874         ipa-inline-transform.c.
4875         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4876         move to ipa-inline-transform.c
4877         (recursive_inlining, inline_small_functions, flatten_function,
4878         ipa_inline, inline_always_inline_functions,
4879         early_inline_small_functions): Update.
4880         (inline_transform): Move to ipa-inline-transform.c.
4881         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4882         Declare.
4883         * Makefile.in (ipa-inline-transform.o): New file.
4884         * cgraphunit.c (save_inline_function_body): Move to
4885         ipa-inline-transform.c
4886
4887 2011-04-19  DJ Delorie  <dj@redhat.com>
4888
4889         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4890         registers if we already know there aren't any.
4891         (m32c_emit_epilogue): Don't emit a barrier here.
4892         (m32c_emit_eh_epilogue): Likewise.
4893         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4894         operands at expand time.
4895         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4896         int" wchar type.
4897         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4898         duplicates.  Provide aliases instead.
4899         * config/m32c/prologue.md (eh_return): Emit a barrier here.
4900         (eh_epilogue): Add a "(return)" here as a hint to other parts of
4901         the compiler.
4902
4903 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
4904
4905         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4906         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4907         (general_or_i64_p, sparc_register_move_cost): New function.
4908
4909 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4910
4911         * doc/install.texi (Configuration, --enable-threads): Remove mach.
4912         Add lynx, mipssde.  Sort table.
4913
4914 2011-04-19  Xinliang David Li  <davidxl@google.com>
4915
4916         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4917         not negative.
4918
4919 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
4920
4921         PR target/48678
4922         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4923         is a SUBREG with non-MODE_INT mode inside of it.
4924
4925 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4926
4927         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4928         also according to actual contants.
4929         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4930         (gimple_fold_call): Use it.
4931         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4932
4933 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4934
4935         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4936         non-pointer assignments.
4937
4938 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4939
4940         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4941         account anc_offset and otr_type from the indirect edge info.
4942         * ipa-prop.c (get_ancestor_addr_info): New function.
4943         (compute_complex_ancestor_jump_func): Assignment analysis moved to
4944         get_ancestor_addr_info, call it.
4945         (ipa_note_param_call): Do not initialize information about polymorphic
4946         calls, return the indirect call graph edge.  Remove the last
4947         parameter, adjust all callers.
4948         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4949         parameters.  Initialize polymorphic information in the indirect edge.
4950
4951 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4952
4953         PR lto/48148
4954         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4955         the types if they have different enumeration identifiers.
4956
4957 2011-04-19  Jan Hubicka  <jh@suse.cz>
4958
4959         * cgraph.h (cgraph_optimize_for_size_p): Declare.
4960         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4961         * predict.c (cgraph_optimize_for_size_p): Break out from ...
4962         (optimize_function_for_size_p) ... here.
4963
4964 2011-04-19  Richard Guenther  <rguenther@suse.de>
4965
4966         PR lto/48207
4967         * tree.c (free_lang_data): Do not reset the decl-assembler-name
4968         langhook.
4969
4970 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4971
4972         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4973         if DECL_NO_INLINE_WARNING_P is set on the function.
4974
4975 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
4976
4977         PR fortran/47976
4978         * reload1.c (inc_for_reload): Return void. All callers changed.
4979         (emit_input_reload_insns): Don't try to delete previous output
4980         reloads to a register, or record spill_reg_store for autoincs.
4981
4982 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4983
4984         * gengtype.h: Updated copyright year.
4985         (struct input_file_st): Add inpisplugin field.
4986         (type_fileloc): New function.
4987         * gengtype.c
4988         (write_typed_struct_alloc_def): Add gcc_assert.
4989         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4990         (write_typed_alloc_defns): Don't output for plugin files.
4991         (input_file_by_name): Clear inpisplugin field.
4992         (main): Set inpisplugin field for plugin files.
4993
4994 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4995
4996         * gengtype-state.c (string_eq): New.
4997         (read_state): Use string_eq instead of strcmp when creating the
4998         state_ident_tab.
4999
5000 2011-04-19  Wei Guozhi  <carrot@google.com>
5001
5002         PR target/47855
5003         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
5004         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
5005         linkage.
5006         * config/arm/constraints.md (Uu): New constraint.
5007         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
5008
5009 2011-04-19  Tristan Gingold  <gingold@adacore.com>
5010
5011         * config.gcc (-*-*-*vms): Added.
5012         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
5013         definitions moved.
5014         * config/vms/vms-ld.c: New file.
5015         * config/vms/vms-ar.c: New file.
5016         * config/vms/t-vmsnative: New file.
5017
5018 2011-04-18  Xinliang David Li  <davidxl@google.com>
5019
5020         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
5021
5022 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
5023
5024         PR middle-end/48661
5025         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
5026         if TREE_TYPE (v) is non-NULL.
5027
5028         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
5029         gimple_get_virt_mehtod_for_binfo.
5030         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
5031         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
5032         callers.
5033         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
5034
5035 2011-04-18  Michael Matz  <matz@suse.de>
5036             Steve Ellcey  <sje@cup.hp.com>
5037
5038         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
5039         use its mode as source mode if it isn't VOIDmode.
5040
5041 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
5042
5043         * doc/passes.texi: Fill crossref nodes.
5044
5045 2011-04-18  Jim Meyering  <meyering@redhat.com>
5046
5047         Fix doubled-word typos in comments and strings
5048         * config/alpha/vms-unwind.h: s/for for/for/
5049         * config/arm/unwind-arm.h: Likewise.
5050         * config/microblaze/microblaze.c: Likewise.
5051         * config/sh/constraints.md: s/in in/in/
5052         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
5053
5054 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
5055
5056         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
5057         (AVX_FLOAT_MODE_P): Ditto.
5058         (AVX128_VEC_FLOAT_MODE_P): Ditto.
5059         (AVX256_VEC_FLOAT_MODE_P): Ditto.
5060         (AVX_VEC_FLOAT_MODE_P): Ditto.
5061         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
5062         (UNSPEC_MASKSTORE): Ditto.
5063         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
5064         Merge from <sse>_movmsk<ssemodesuffix> and
5065         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
5066         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
5067         iterator.
5068         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
5069         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
5070         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
5071
5072 2011-04-18  Jan Hubicka  <jh@suse.cz>
5073
5074         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
5075
5076         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
5077         (want_inline_function_called_once_p): Break out the logic from
5078         ipa_inline.
5079         (edge_badness): Ensure that profile is not misupdated.
5080         (lookup_recursive_calls): Prioritize by call frequencies.
5081         (inline_small_functions): Move program size estimates here;
5082         actually process whole queue even when unit growth has been
5083         met. (to properly compute inline_failed reasons and for the
5084         case unit size decrease.) Revisit comments on recursive inlining.
5085         (ipa_inline): Remove unit summary code; first inline hot calls
5086         of functions called once, cold calls next.
5087         (order, nnodes): Remove unused variables.
5088         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5089         (GTFILES): Remove ipa-inline.c
5090         * sel-sched.c (fill_insns): Silence uninitialized var warning.
5091
5092 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5093
5094         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5095
5096 2011-04-18  Jie Zhang  <jie@codesourcery.com>
5097             Richard Earnshaw  <rearnsha@arm.com>
5098
5099         * arm.c (neon_builtin_type_bits): Remove.
5100         (typedef enum neon_builtin_mode): New.
5101         (T_MAX): Don't define.
5102         (typedef enum neon_builtin_datum): Remove bits, codes[],
5103         num_vars and base_fcode.  Add mode, code and fcode.
5104         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5105         VAR10): Change accordingly.
5106         (neon_builtin_data[]): Change accordingly
5107         (arm_init_neon_builtins): Change accordingly.
5108         (neon_builtin_compare): Remove.
5109         (locate_neon_builtin_icode): Remove.
5110         (arm_expand_neon_builtin): Change accordingly.
5111
5112         * arm.h (enum arm_builtins): Move to ...
5113         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5114
5115         * arm.c (arm_builtin_decl): Declare.
5116         (TARGET_BUILTIN_DECL): Define.
5117         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5118         (arm_builtin_decls[]): New.
5119         (arm_init_neon_builtins): Store builtin declarations in
5120         arm_builtin_decls[].
5121         (arm_init_tls_builtins): Likewise.
5122         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
5123         (arm_builtin_decl): New.
5124
5125 2011-04-18  Richard Guenther  <rguenther@suse.de>
5126
5127         * tree.c (upper_bound_in_type): Build properly canonicalized
5128         INTEGER_CSTs.
5129         (lower_bound_in_type): Likewise.
5130
5131 2011-04-18  Richard Guenther  <rguenther@suse.de>
5132
5133         * gimple.h (gimple_call_addr_fndecl): New function.
5134         (gimple_call_fndecl): Use it.
5135         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5136         for direct calls.
5137         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5138         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5139
5140 2011-04-18  Richard Guenther  <rguenther@suse.de>
5141
5142         PR middle-end/48650
5143         * tree.c (build_string): STRING_CST is now derived from tree_typed.
5144
5145 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5146
5147         PR lto/48492
5148         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5149         DECL_IN_CONSTANT_POOL without RTL.
5150
5151 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
5152             Ira Rosen  <ira.rosen@linaro.org>
5153
5154         PR target/48252
5155         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5156         to match neon_vzip/vuzp/vtrn_internal.
5157         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5158         outputs explicitly dependent on both inputs.
5159         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5160
5161 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
5162
5163         PR tree-optimization/48616
5164         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5165         whether the shift is by scalar or vector based on whether all SLP
5166         scalar stmts have the same rhs.
5167
5168 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
5169
5170         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5171         memory operands.
5172
5173 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
5174
5175         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5176         registers.
5177
5178 2011-04-17  Jan Hubicka  <jh@suse.cz>
5179
5180         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5181         * cgrpahunit.c (cgraph_finalize_function): Do not set
5182         finalized_by_frontend.
5183         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5184         finalized_by_frontend.
5185
5186 2011-04-17  Jan Hubicka  <jh@suse.cz>
5187
5188         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5189         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5190         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5191         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5192         method.
5193         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5194         gimple-fold.c
5195         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5196
5197 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
5198
5199         PR lto/48538
5200         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5201         is non-null before accessing it.
5202         (input_cgraph): Remove trailing spaces.
5203
5204 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5205
5206         * params.def (sms-min-sc): New param flag.
5207         * modulo-sched.c (sms_schedule): Use it.
5208         * doc/invoke.texi (sms-min-sc): Document it.
5209
5210 2011-04-17  Jan Hubicka  <jh@suse.cz>
5211
5212         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5213         present, also set gimple_call_set_cannot_inline.
5214         * ipa-inline.c: Update toplevel comment.
5215         (MAX_TIME): Remove.
5216         (cgraph_clone_inlined_nodes): Fix linebreaks.
5217         (cgraph_check_inline_limits): Restructure to ...
5218         (caller_growth_limits): ... this one; be more tolerant
5219         on growth in nested inline chains; add explanatory comment;
5220         fix stack accounting thinko introduced by previous patch.
5221         (cgraph_default_inline_p): Remove.
5222         (report_inline_failed_reason): New function.
5223         (can_inline_edge_p): New function.
5224         (can_early_inline_edge_p): New function.
5225         (leaf_node_p): Move upwards in file.
5226         (want_early_inline_function_p): New function.
5227         (want_inline_small_function_p): New function.
5228         (want_inline_self_recursive_call_p): New function.
5229         (cgraph_edge_badness): Rename to ...
5230         (edge_badness) ... this one; fix linebreaks.
5231         (update_edge_key): Update call of edge_baddness; add
5232         detailed dump about queue updates.
5233         (update_caller_keys): Use can_inline_edge_p and
5234         want_inline_small_function_p.
5235         (cgraph_decide_recursive_inlining): Rename to...
5236         (recursive_inlining): Use can_inline_edge_p and
5237         want_inline_self_recursive_call_p; simplify and remove no longer
5238         valid FIXME.
5239         (cgraph_set_inline_failed): Remove.
5240         (add_new_edges_to_heap): Use can_inline_edge_p and
5241         want_inline_small_function_p.
5242         (cgraph_decide_inlining_of_small_functions): Rename to ...
5243         (inline_small_functions): ... this one; cleanup; use
5244         can/want predicates; cleanup debug ouput; work edges till fibheap
5245         is exhausted and do not stop once unit growth is reached; remove
5246         later loop processing remaining edges.
5247         (cgraph_flatten): Rename to ...
5248         (flatten_function): ... this one; use can_inline_edge_p
5249         and can_early_inline_edge_p predicates.
5250         (cgraph_decide_inlining): Rename to ...
5251         (ipa_inline): ... this one; remove unreachable nodes before
5252         inlining functions called once; simplify the pass.
5253         (cgraph_perform_always_inlining): Rename to ...
5254         (inline_always_inline_functions): ... this one; use
5255         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5256         (cgraph_decide_inlining_incrementally): Rename to ...
5257         (early_inline_small_functions): ... this one; simplify
5258         using new predicates; cleanup; make dumps prettier.
5259         (cgraph_early_inlining): Rename to ...
5260         (early_inliner): newer inline regular functions into always-inlines;
5261         fix updating of call stmt summaries.
5262         (pass_early_inline): Update for new names.
5263         (inline_transform): Fix formating.
5264         (gate_cgraph_decide_inlining): Rename to ...
5265         (pass_ipa_inline): ... this one.
5266         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5267         * ipa-inline-analysis.c (dump_inline_summary): Update.
5268         (compute_inline_parameters): Do not compute disregard_inline_limits;
5269         look for mismatching arguments.
5270         (estimate_growth): Fix handlig of non-trivial self recursion.
5271         (inline_read_summary): Do not read info->disregard_inline_limits.
5272         (inline_write_summary): Do not write info->disregard_inline_limits.
5273         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5274         and move all checks into can_inline_edge_p predicate; re-enable code
5275         comparing optimization levels.
5276         (expand_call_inline): Do not test inline_forbidden_into_p.
5277         * Makefile.in (ipa-inline.o): Update arguments.
5278
5279 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5280
5281         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5282
5283 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5284
5285         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5286
5287 2011-04-17  Michael Matz  <matz@suse.de>
5288
5289         PR tree-optimization/48622
5290         PR lto/48645
5291         * ipa-inline-analysis.c (inline_read_summary): Read size/time
5292         in same order as they're written.
5293
5294 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5295
5296         * config/pa/predicates.md: Reorganize and simplify predicates.
5297         Eliminate duplicate code checks.
5298         (arith_operand): Rename to arith14_operand
5299         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5300         * config/pa/pa.md: Use renamed operands.
5301         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5302         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5303         arith11_operand, adddi3_operand, indexed_memory_operand,
5304         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5305         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5306         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5307         move_dest_operand, move_src_operand, prefetch_cc_operand,
5308         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5309         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5310         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5311         div_operand, int5_operand, movb_comparison_operator,
5312         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5313         arith_double_operand, ireg_operand, lhs_lshift_operand,
5314         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5315         integer_store_memory_operand): Likewise.
5316         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5317         (integer_store_memory_operand, read_only_operand,
5318         function_label_operand, borx_reg_operand,
5319         non_hard_reg_operand): Likewise.
5320         (eq_neq_comparison_operator): Delete unused operator.
5321         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5322         function_label_operand.
5323         (emit_move_sequence): Likewise.
5324
5325 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5326
5327         * config/i386/sse.md (sseunpackmode): New mode attribute.
5328         (ssepackmode): Ditto.
5329         (vec_pack_trunc_<mode>): Macroize expander from
5330         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5331         (vec_unpacks_lo_<mode>): Macroize expander from
5332         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5333         (vec_unpacks_hi_<mode>): Macroize expander from
5334         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5335         (vec_unpacku_lo_<mode>): Macroize expander from
5336         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5337         (vec_unpacku_hi_<mode>): Macroize expander from
5338         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5339         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5340         ix86_expand_sse4_unpack.
5341         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5342
5343 2011-04-16  Jan Hubicka  <jh@suse.cz>
5344
5345         * cgraphbuild.c: Include ipa-inline.h.
5346         (reset_inline_failed): Use initialize_inline_failed.
5347         * cgraph.c: Include ipa-inline.h.
5348         (cgraph_create_node_1): Do not initialize estimated_growth.
5349         (initialize_inline_failed): More to ipa-inline-analysis.c
5350         (dump_cgraph_node): Do not dump inline flags.
5351         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5352         and disregard_inline_limits flags.
5353         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5354         time, size, estimated_growth.
5355         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5356         Update.
5357         * cgraphunit.c (cgraph_decide_is_function_needed): Use
5358         DECL_DISREGARD_INLINE_LIMITS.
5359         (cgraph_analyze_function): Do not initialize
5360         node->local.disregard_inline_limits.
5361         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5362         inlinable, versionable and disregard_inline_limits.
5363         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5364         cgraph_check_inline_limits, cgraph_default_inline_p,
5365         cgraph_edge_badness, update_caller_keys, update_callee_keys,
5366         add_new_edges_to_heap): Update.
5367         (cgraph_decide_inlining_of_small_function): Update; set
5368         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5369         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5370         cgraph_decide_inlining_incrementally): Update.
5371         * ipa-inline.h (inline_summary): Add inlinable, versionable,
5372         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5373         time, size and estimated_growth parameters.
5374         (estimate_edge_growth): Update.
5375         (initialize_inline_failed): Declare.
5376         * ipa-split.c: Include ipa-inline.h
5377         (execute_split_functions): Update.
5378         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5379         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5380         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5381         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5382         estimated_growth to INT_MIN.
5383         (inline_node_duplication_hook): Likewise.
5384         (dump_inline_summary): Dump new fields.
5385         (compute_inline_parameters): Update.
5386         (estimate_edge_time, estimate_time_after_inlining,
5387         estimate_size_after_inlining, estimate_growth, inline_read_summary,
5388         inline_write_summary):
5389         (initialize_inline_failed): Move here from cgraph.c.
5390         * tree-sra.c: Include ipa-inline.h.
5391         (ipa_sra_preliminary_function_checks): Update.
5392         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5393         ipa-inline.h.
5394
5395 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5396
5397         * config/i386/sse.md (V16): New mode iterator.
5398         (VI1, VI8): Ditto.
5399         (AVXMODEQI, AVXMODEDI): Remove.
5400         (sse2, sse3): New mode attribute.
5401         (mov<mode>): Use V16 mode iterator.
5402         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5403         (push<mode>1): Use V16 mode iterator.
5404         (movmisalign<mode>): Ditto.
5405         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5406         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5407         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5408         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5409         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5410         avx_movdqu<avxmodesuffix>.
5411         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5412         *avx_movdqu<avxmodesuffix>.
5413         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5414         avx_lddqu<avxmodesuffix>.
5415         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5416         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5417         avx_movnt<AVXMODEDI:mode>.
5418         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5419         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5420
5421 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
5422
5423         PR target/48629
5424         * haifa-sched.c (prune_ready_list, schedule_block): Use
5425         sched_pressure_p rather than flag_sched_pressure.
5426
5427 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
5428
5429         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5430         cgraph_get_node instead of cgraph_get_create_node.
5431
5432 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
5433
5434         * cfgexpand.c (expand_debug_expr): Use
5435         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5436
5437 2011-04-15  Michael Matz  <matz@suse.de>
5438
5439         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5440         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5441         * function.c (gimplify_parameters): Ditto.
5442         * gimplify.c (gimplify_vla_decl): Ditto.
5443
5444         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5445         (gimple_call_set_alloca_for_var): New inline function.
5446         (gimple_call_alloca_for_var_p): Ditto.
5447         * gimple.c (gimple_build_call_from_tree): Remember
5448         CALL_ALLOCA_FOR_VAR_P state.
5449         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5450
5451         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5452         calls if they were for VLA objects.
5453
5454 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5455
5456         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5457         of ADR_EXPRs.
5458
5459 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5460
5461         PR middle-end/48601
5462         * tree-emutls.c (lower_emutls_function_body): Call
5463         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
5464         result is non-NULL.
5465
5466 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
5467
5468         * c-decl.c (detect_field_duplicates): Call
5469         objc_detect_field_duplicates instead of objc_get_interface_ivars.
5470
5471 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
5472
5473         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5474         * gimple.c (gimple_asm_clobbers_memory_p): Define.
5475         * ipa-pure-const.c (check_stmt): Call it.
5476         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5477
5478 2011-04-15  Richard Guenther  <rguenther@suse.de>
5479
5480         PR tree-optimization/48290
5481         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5482         Properly decide inhibiting propagation based on the valueized
5483         operand.  Do loop-closed SSA form preserving here ...
5484         (init_copy_prop): ... not here.
5485
5486 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
5487
5488         PR target/48612
5489         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5490         (*ieee_smax<mode>3): Likewise.
5491
5492 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5493
5494         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5495         Replace match_operand with match_dup for the third operand in
5496         these expanders.
5497
5498 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5499
5500         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5501         to track processing of conditionals.  Update all callers.
5502         (try_combine, simplify_if_then_else): Update.
5503
5504 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5505
5506         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5507         -fsched-pressure.
5508
5509 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
5510
5511         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5512         instead of match_operand for operand 3.
5513
5514 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
5515
5516         * recog.h (insn_operand_data): Add an "allows_mem" field.
5517         * genoutput.c (output_operand_data): Initialize it.
5518         * optabs.c (maybe_legitimize_operand_same_code): New function.
5519         (maybe_legitimize_operand): Use it when matching the original
5520         op->value.
5521
5522 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5523
5524         * gimplify.c: Fix issues in comments throughout.
5525         (voidify_wrapper_expr): Fix long line.
5526         (build_stack_save_restore): Likewise.
5527         (gimplify_loop_expr): Likewise.
5528         (gimplify_compound_lval): Likewise.
5529         (gimplify_init_ctor_eval): Likewise.
5530         (gimplify_modify_expr_rhs): Likewise.
5531         (omp_notice_threadprivate_variable): Likewise.
5532
5533 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5534
5535         * cfgexpand.c (expand_call_stmt): Convert the function type to the
5536         original one if this is not a builtin function.
5537
5538 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
5539
5540         PR target/48605
5541         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5542         offset it as needed based on top 2 bits in operands[3], change
5543         MEM mode to SFmode and mask those 2 bits away from operands[3].
5544
5545 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5546
5547         * c-parser.c (c_parser_objc_protocol_definition): Updated for
5548         change from objc_declare_protocols() to objc_declare_protocol().
5549
5550 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
5551
5552         * config/i386/sse.md (sse4_1): New mode attribute.
5553         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5554         avx_blend<ssemodesuffix><avxmodesuffix> and
5555         sse4_1_blend<ssemodesuffix> using VF mode iterator.
5556         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5557         avx_blendv<ssemodesuffix><avxmodesuffix> and
5558         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5559         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5560         avx_dp<ssemodesuffix><avxmodesuffix> and
5561         sse4_1_dp<ssemodesuffix> using VF mode iterator.
5562         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5563         (sse4_1_packusdw): Merge with *avx_packusdw.
5564         (sse4_1_pblendvb): Merge with *avx_pblendvb.
5565         (sse4_1_pblendw): Merge with *avx_pblendw.
5566         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5567         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5568         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5569         VF mode iterator.
5570         (sse4_1_round<ssescalarmodesuffix>): Merge with
5571         *avx_round<ssescalarmodesuffix>.
5572         (aesenc): Merge with *avx_aesenc.
5573         (aesenclast): Merge with *avx_aesenclast.
5574         (aesdec): Merge with *avx_aesdec.
5575         (aesdeclast): Merge with *avx_aesdeclast.
5576         (pclmulqdq): Merge with *pclmulqdq.
5577         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5578         New predicate.
5579         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5580
5581 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
5582
5583         PR middle-end/48608
5584         * cfgexpand.c (get_decl_align_unit): Renamed to ...
5585         (align_local_variable): This.  Update DECL_ALIGN.
5586         (add_stack_var): Updated.
5587         (expand_one_stack_var): Likewise.
5588
5589 2011-04-14  Richard Guenther  <rguenther@suse.de>
5590
5591         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5592         Remove.
5593         (dse_initialize_block_local_data, dse_leave_block,
5594         record_voperand_set, get_stmt_uid): Likewise.
5595         (dse_possible_dead_store_p): Allow any kind of killing stmt.
5596         (dse_optimize_stmt): Remove voperand set handling code.
5597         Simplify and improve to handle any kind of killing stmt.
5598         (dse_record_phi): Remove.
5599         (dse_enter_block): Simplify.
5600         (tree_ssa_dse): Likewise.
5601         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5602
5603 2011-04-14  Jan Hubicka  <jh@suse.cz>
5604
5605         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5606         * cgraph.h (struct inline_summary): Move to ipa-inline.h
5607         (cgraph_local_info): Remove inline_summary.
5608         * ipa-cp.c: Include ipa-inline.h.
5609         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5610         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5611         accesor.
5612         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5613         (input_overwrite_node): Do not set inline summary.
5614         (input_node): Do not stream inline summary.
5615         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5616         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5617         growth; we do not have inline parameters computed for that anyway.
5618         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5619         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5620         (inline_summary_t): New type and VECtor.
5621         (debug_inline_summary, dump_inline_summaries): Declare.
5622         (inline_summary): Use VOCtor.
5623         (estimate_edge_growth): Kill hack computing call stmt size directly.
5624         * lto-section-in.c (lto_section_name): Add inline section.
5625         * ipa-inline-analysis.c: Include lto-streamer.h
5626         (node_removal_hook_holder, node_duplication_hook_holder): New holders
5627         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5628         (inline_summary_vec): Define.
5629         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5630         dump_inline_summaries): New functions.
5631         (estimate_function_body_sizes): Properly compute size/time of outgoing
5632         calls.
5633         (compute_inline_parameters): Alloc inline_summary; do not compute
5634         size/time of incomming calls.
5635         (estimate_edge_time): Avoid missing time summary hack.
5636         (inline_read_summary): Read inline summary info.
5637         (inline_write_summary): Write inline summary info.
5638         (inline_free_summary): Free all hooks and inline summary vector.
5639         * lto-streamer.h: Add LTO_section_inline_summary section.
5640         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5641         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5642
5643 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5644
5645         * tree-vectorizer.h (vect_strided_store_supported): Add a
5646         HOST_WIDE_INT argument.
5647         (vect_strided_load_supported): Likewise.
5648         (vect_permute_store_chain): Return void.
5649         (vect_transform_strided_load): Likewise.
5650         (vect_permute_load_chain): Delete.
5651         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5652         count argument.  Check that the count is a power of two.
5653         (vect_strided_load_supported): Likewise.
5654         (vect_permute_store_chain): Return void.  Update after above changes.
5655         Assert that the access is supported.
5656         (vect_permute_load_chain): Likewise.
5657         (vect_transform_strided_load): Return void.
5658         * tree-vect-stmts.c (vectorizable_store): Update calls after
5659         above interface changes.
5660         (vectorizable_load): Likewise.
5661         (vect_analyze_stmt): Don't check for strided powers of two here.
5662
5663 2011-04-14  Richard Guenther  <rguenther@suse.de>
5664
5665         PR tree-optimization/48590
5666         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5667         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5668         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5669         BUILT_IN_STACK_SAVE.
5670         * tree-ssa-dce.c (propagate_necessity): Handle
5671         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5672
5673 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5674
5675         * c-parser.c (c_parser_objc_class_declaration): Updated call to
5676         objc_declare_class.
5677
5678 2011-04-14  Richard Guenther  <rguenther@suse.de>
5679
5680         * tree.h (get_object_alignment_1): Declare.
5681         * builtins.c (get_object_alignment_1): Split out worker from ...
5682         (get_object_alignment): ... here.
5683         * fold-const.c (get_pointer_modulus_and_residue): Use
5684         get_object_alignment_1.
5685
5686 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5687
5688         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5689         type parameter.
5690         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5691         parameter.  Generalise code to handle arrays as well as vectors.
5692         (vect_setup_realignment): Update accordingly.
5693         * tree-vect-stmts.c (vectorizable_store): Likewise.
5694         (vectorizable_load): Likewise.
5695
5696 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5697
5698         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5699         within the per-copy loop.
5700
5701 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5702
5703         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5704         in the dump file.
5705
5706 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5707
5708         * doc/options.texi (Negative): Explicitly mention that the
5709         Negative chain must be circular.
5710
5711 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
5712
5713         * function.h (block_chainon): Declare.
5714         * function.c (block_chainon): Define.
5715
5716 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
5717             Eric Weddington  <eric.weddington@atmel.com>
5718             Georg-Johann Lay  <avr@gjlay.de>
5719
5720         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5721         New Includes
5722         (avr_init_builtins, avr_expand_builtin,
5723         avr_expand_delay_cycles, avr_expand_unop_builtin,
5724         avr_expand_binop_builtin ): New functions.
5725         (avr_builtin_id): New enum
5726         (struct avr_builtin_description): New struct
5727         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5728         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5729
5730         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5731         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5732         UNSPECV_DELAY_CYCLES): new enumeration values
5733         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5734         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5735         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5736         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5737         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5738         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5739         "fmulsu"): New insns
5740
5741         * config/avr/avr-c.c: fix line endings
5742         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5743         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5744         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5745         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5746         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5747
5748         * doc/extend.texi (AVR Built-in Functions): New node
5749         (Target Builtins): Add documentation of AVR
5750         built-in functions.
5751
5752 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
5753
5754         PR target/44643
5755         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5756         alone. Error if non-const data has attribute progmem.
5757
5758 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5759
5760         * tree.h (struct tree_constructor): Include tree_typed instead of
5761         tree_common.
5762         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5763         TS_TYPED instead of TS_COMMON.
5764
5765 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5766
5767         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5768         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5769         (sse2_psadbw): Merge with *avx_psadbw.
5770         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5771         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5772         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5773         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5774         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5775         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5776         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5777         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5778         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5779         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5780         (ssse3_palignrti): Merge with *avx_palignrti.
5781
5782 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5783
5784         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5785         * tree-ssanames.c (fini_ssanames): VEC_free it.
5786         (make_ssa_name_fn): Update for VECness of free_ssanames.
5787         (release_ssa_name, release_dead_ssa_names): Likewise.
5788         * tree.h (struct tree_ssa_name): Include tree_typed instead of
5789         tree_common.
5790         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5791         TS_TYPED instead of TS_COMMON.
5792
5793 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5794
5795         * postreload-gcse.c (gcse_after_reload_main): Add calls to
5796         statistics_counter_event.
5797         * tree-ssa-copyrename.c (stats): Define.
5798         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
5799         statistics_counter_event.
5800         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5801         (bswap_stats, widen_mul_stats): Define.
5802         (insert_reciprocals): Increment rdivs_inserted.
5803         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
5804         rfuncs_inserted.  Add calls to statistics_counter_event.
5805         (execute_cse_sincos_1): Increment inserted.
5806         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
5807         statistics_counter_event.
5808         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
5809         of bswap_stats.  Add calls to statistics_counter_event.
5810         (convert_mult_to_widen): Increment widen_mults_inserted.
5811         (convert_plusminus_to_widen): Increment maccs_inserted.
5812         (convert_mult_to_fma): Increment fmas_inserted.
5813         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
5814         calls to statistics_counter_event.
5815
5816 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5817
5818         PR rtl-optimization/48455
5819         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5820         `temp_costs->mem_cost'.
5821
5822 2011-04-13  Jan Hubicka  <jh@suse.cz>
5823
5824         * ipa-inline.h: New file.
5825         * ipa-inline-analysis.c: New file. Broken out of ...
5826         * ipa-inline.c: ... this file; update toplevel comment;
5827         include ipa-inline.h
5828         (inline_summary): Move to ipa-inline.h
5829         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5830         ipa-inline-analysis.c.
5831         (cgraph_estimate_time_after_inlining): Rename to
5832         estiamte_time_after_inlining; move to ipa-inline-analysis.c
5833         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5834         to estimate_edge_growth.
5835         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5836         rename to estimate_size_after_inlining.
5837         (cgraph_mark_inline_edge): Update for new naming convention.
5838         (cgraph_check_inline_limits): Likewise.
5839         (cgraph_edge_badness): Likewise.
5840         (cgraph_decide_recursive_inlining): Likewise.
5841         (cgraph_decide_inlining_of_small_functions): Likewise.
5842         (cgraph_decide_inlining_incrementally): Likewise.
5843         (cgraph_estimate_growth): Rename to estimate_growth; move to
5844         ipa-inline-analysis.c.
5845         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5846         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5847         (compute_inline_parameters): Likewise.
5848         (compute_inline_parameters_for_current): Likewise.
5849         (pass_inline_parameters): Likewise.
5850         (inline_indirect_intraprocedural_analysis): Likewise.
5851         (analyze_function): Rename to inline_analyze_function; likewise.
5852         (add_new_function): Move to ipa-inline-analysis.c.
5853         (inline_generate_summary): Likewise.
5854         (inline_read_summary): Likewise.
5855         (inline_write_summary): Likewise.
5856         * Makefile.in (ipa-inline-analysis.c): New file.
5857
5858 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5859
5860         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5861         * configure: Regenerate.
5862
5863 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5864
5865         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5866         instead of tree_common.
5867         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5868         Likewise.
5869         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5870         TS_TYPED rather than TS_COMMON.
5871         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5872
5873 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
5874
5875         PR target/45263
5876         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5877         r20 around calls of __tablejump_elpm__
5878
5879 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
5880
5881         PR middle-end/48591
5882         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5883         NULL.
5884         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5885
5886 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
5887
5888         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5889         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5890         (cfi_vec): New typedef.
5891         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5892         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5893         (cie_cfi_vec): New static variable.
5894         (cie_cfi_head): Delete.
5895         (add_cfi): Accept a cfi_vec * as first argument. All callers and
5896         declaration changed. Use vector rather than list operations.
5897         (new_cfi): Don't initialize the dw_cfi_next field.
5898         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5899         rather than list operations.
5900         (lookup_cfa): Use vector rather than list operations.
5901         (output_cfis): New argument upto. Accept a cfi_vec rather than
5902         a dw_cfi_ref list head as argument. All callers changed.
5903         Iterate over the vector using upto as a maximum index.
5904         (output_all_cfis): New static function.
5905         (output_fde): Use vector rather than list operations. Use the
5906         new upto argument for output_cfis rather than manipulating a
5907         list.
5908         (dwarf2out_begin_prologue): Change initializations to match
5909         new struct members.
5910         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5911         from the vector length rather than searching for the end of a list.
5912         Use output_all_cfis.
5913         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5914
5915 2011-04-13  Nick Clifton  <nickc@redhat.com>
5916
5917         * config/rx/rx.md (movmemsi): Do not use this pattern when
5918         volatile pointers are involved.
5919
5920 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5921
5922         * config/i386/sse.md (pinsrbits): Remove.
5923         (sse2_packsswb): Merge with *avx_packsswb.
5924         (sse2_packssdw): Merge with *avx_packssdw.
5925         (sse2_packuswb): Merge with *avx_packuswb.
5926         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5927         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5928         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5929         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5930         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5931         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5932         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5933         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5934         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5935         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5936         (sse2_loadld): Merge with *avx_loadld.
5937         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5938         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5939         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5940         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5941         (vec_concatv2di): Merge with *vec_concatv2di_avx.
5942
5943 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
5944
5945         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5946         calling TREE_CHAIN.
5947         * print-tree.c (print_node): Likewise.
5948         * tree-inline.c (copy_tree_r): Likewise.
5949         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5950         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5951         instead of TS_COMMON.
5952         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5953         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5954         (copy_node_stat): Zero TREE_CHAIN only if necessary.
5955         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5956         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5957         ...and these...
5958         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5959         * tree.h: ...here.
5960         (TREE_CHAIN): Check for a TS_COMMON structure.
5961         (TREE_TYPE): Check for a TS_TYPED structure.
5962
5963 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
5964
5965         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5966         cgraph_get_create_node instead of cgraph_node.
5967
5968 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5969
5970         * c-parser.c (c_parser_initelt): Updated call to
5971         objc_build_message_expr.
5972         (c_parser_postfix_expression): Likewise.
5973
5974 2011-04-12  Kai Tietz  <ktietz@redhat.com>
5975
5976         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5977         MASK_MS_BITFIELD_LAYOUT bit.
5978
5979 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5980
5981         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5982         assert it is always true.
5983         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5984         moves.
5985
5986 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5987
5988         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5989         compiling Objective-C to be more efficient.
5990
5991 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5992
5993         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5994         argv_copied.
5995
5996 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5997
5998         * recog.h, genoutput.c, optabs.c: Revert last patch.
5999
6000 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
6001
6002         PR target/48090
6003         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
6004
6005 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6006
6007         * recog.h (insn_operand_data): Add an "allows_mem" field.
6008         * genoutput.c (output_operand_data): Initialize it.
6009         * optabs.c (maybe_legitimize_operand_same_code): New function.
6010         (maybe_legitimize_operand): Use it when matching the original
6011         op->value.
6012
6013 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6014
6015         * genpreds.c (process_define_predicate): Move most processing
6016         to gensupport.c.  Continue to validate the expression.
6017         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
6018         (process_define_predicate): Move processing to gensupport.c.
6019         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
6020         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
6021         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
6022         argument.
6023         (valid_predicate_name_p): New function, split out from old
6024         genpreds.c:process_define_predicate.
6025         (process_define_predicate): New function, combining code from
6026         old genpreds.c and genrecog.c functions.
6027         (process_rtx): Call it for DEFINE_PREDICATE and
6028         DEFINE_SPECIAL_PREDICATE.
6029
6030 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
6031
6032         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
6033         size of a '%A' memory reference.
6034         (T_DREG, T_QREG): New neon_builtin_type_bits.
6035         (arm_init_neon_builtins): Assert that the load and store operands
6036         are neon_struct_operands.
6037         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
6038         (NEON_ARG_MEMORY): New builtin_arg.
6039         (neon_dereference_pointer): New function.
6040         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
6041         Handle NEON_ARG_MEMORY.
6042         (arm_expand_neon_builtin): Update after above interface changes.
6043         Use NEON_ARG_MEMORY for loads and stores.
6044         * config/arm/predicates.md (neon_struct_operand): New predicate.
6045         * config/arm/iterators.md (V_two_elem): Tweak formatting.
6046         (V_three_elem): Use BLKmode for accesses that have no associated mode.
6047         (V_four_elem): Tweak formatting.
6048         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
6049         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
6050         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
6051         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
6052         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
6053         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
6054         (neon_vst4<mode>): Replace pointer operand with a memory operand.
6055         Use %A in the output template.
6056         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
6057         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
6058         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
6059         the width of the memory access.  Remove post-increment.
6060         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
6061
6062 2011-04-12  Nick Clifton  <nickc@redhat.com>
6063
6064         * config/v850/v850.c (expand_prologue): Do not use the CALLT
6065         instruction for interrupt handlers if the target is the basic V850
6066         architecture.
6067         (expand_epilogue): Likewise.
6068
6069 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6070
6071         PR rtl-optimization/48549
6072         * combine.c (propagate_for_debug): Also stop after BB_END of
6073         this_basic_block.  Process LAST and just stop processing after it.
6074         (combine_instructions): If last_combined_insn has been deleted,
6075         set last_combined_insn to its PREV_INSN.
6076
6077 2011-04-12  Richard Guenther  <rguenther@suse.de>
6078
6079         PR tree-optimization/46076
6080         * gimple.h (struct gimple_statement_call): Add fntype field.
6081         (gimple_call_fntype): Adjust.
6082         (gimple_call_set_fntype): New function.
6083         * gimple.c (gimple_build_call_1): Set the call function type.
6084         * gimplify.c (gimplify_call_expr): Preserve the function
6085         type the frontend used for the call.
6086         (gimplify_modify_expr): Likewise.
6087         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6088         function type.
6089         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6090         function type.
6091         * tree-ssa.c (useless_type_conversion_p): Function pointer
6092         conversions are useless.
6093
6094 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6095
6096         * cgraph.h (cgraph_node): Remove function declaration.
6097         (cgraph_create_node): Declare.
6098         (cgraph_get_create_node): Likewise.
6099         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6100         Updated all callers.
6101         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6102         the decl does not already exist.  Call cgraph_get_create_node instead
6103         of cgraph_node.
6104         (cgraph_get_create_node): New function.
6105         (cgraph_same_body_alias): Update comment.
6106         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6107         assert it does not return NULL.
6108         (cgraph_update_edges_for_call_stmt): Likewise.
6109         (cgraph_clone_edge): Likewise.
6110         (cgraph_create_virtual_clone): Likewise.
6111         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6112         instead of cgraph_node.
6113         (cgraph_add_new_function): Call cgraph_create_node or
6114         cgraph_get_create_node instead of cgraph_node.
6115         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6116         instead of cgraph_node.
6117         (record_eh_tables): Likewise.
6118         (mark_address): Likewise.
6119         (mark_load): Likewise.
6120         (build_cgraph_edges): Call cgraph_get_create_node instead
6121         of cgraph_node.
6122         (rebuild_cgraph_edges): Likewise.
6123         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6124         instead of cgraph_node.
6125         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6126         cgraph_node.
6127         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6128         cgraph_create_node instead of cgraph_node.
6129         * c-decl.c (finish_function): Call cgraph_get_create_node instead
6130         of cgraph_node.
6131         * lto-cgraph.c (input_node): Likewise.
6132         * lto-streamer-in.c (input_function): Likewise.
6133         * varasm.c (mark_decl_referenced): Likewise.
6134         (assemble_alias): Likewise.
6135
6136 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6137
6138         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6139         instead of cgraph_node and assert it does not return NULL.
6140         * lto-streamer-in.c (lto_read_body): Likewise.
6141         * omp-low.c (new_omp_context): Likewise.
6142         (create_task_copyfn): Likewise.
6143         * tree-emutls.c (lower_emutls_function_body): Likewise.
6144         * matrix-reorg.c (transform_allocation_sites): Likewise.
6145
6146 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6147
6148         PR c/48552
6149         * c-typeck.c (build_asm_expr): Error out on attempts to use
6150         void type outputs or inputs for constraints that allow reg or
6151         don't allow memory.
6152
6153 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
6154             Richard Earnshaw  <rearnsha@arm.com>
6155
6156         PR target/48250
6157         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6158         to use sign-magnitude offsets. Reject unsupported unaligned
6159         cases. Add detailed description in comments.
6160         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6161         condition from TARGET_32BIT to TARGET_ARM.
6162
6163 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
6164
6165         * tree.h (struct typed_tree): New.
6166         (struct tree_common): Include it instead of tree_base.
6167         (TREE_TYPE): Update for new location of type field.
6168         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6169         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6170         (union tree_node): Add typed field.
6171         * treestruct.def (TS_TYPED): New.
6172         * lto-streamer.c (check_handled_ts_structures): Handle it.
6173         * tree.c (MARK_TS_TYPED): New macro.
6174         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6175
6176 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6177
6178         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6179         (force_nonfallthru): Do not alter the loop nest if no basic block
6180         was created.
6181
6182 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6183
6184         * config/i386/sse.md (VI): New mode iterator.
6185         (SSEMODEI): Remove.
6186         (AVX256MODEI): Ditto.
6187         (AVXMODEF4P): Ditto.
6188         (avxvecpsmode): Ditto.
6189         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
6190         (sse2_andnot<mode>3): New expander.
6191         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6192         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
6193         (<any_logic:code><mode>3): Use VI mode iterator.
6194         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6195         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
6196         (*andnottf3): Handle AVX three-operand constraints.
6197         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6198
6199 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6200             Robert Millan  <rmh@gnu.org>
6201
6202         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6203         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6204         GNU_USER_DYNAMIC_LINKER64): Define.
6205         (REG_NAME): Don't undefine.
6206         (MD_UNWIND_SUPPORT): Undefine.
6207         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6208         (REG_NAME): Don't undefine.
6209         (MD_UNWIND_SUPPORT): Undefine.
6210         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6211
6212 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6213
6214         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6215         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6216
6217 2011-04-11  Xinliang David Li  <davidxl@google.com>
6218
6219         * value-profile.c (check_ic_target): New function.
6220         (gimple_ic_transform): Sanity check indirect call target.
6221         * gimple-low.c (gimple_check_call_args): Interface change.
6222         (gimple_check_call_matching_types): New function.
6223         * tree-inline.c (tree_can_inline_p): Call new function.
6224
6225 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
6226
6227         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6228         tree-pretty-print.h & realmpfr.h.
6229
6230 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
6231
6232         PR middle-end/48464
6233         * ira.c (setup_pressure_classes): Fix typo in loop condition.
6234         (setup_allocno_and_important_classes): Ditto.
6235
6236 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6237
6238         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6239         GNU_USER_DYNAMIC_LINKER.
6240         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6241         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6242         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6243         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6244         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6245         GNU_USER_TARGET_OS_CPP_BUILTINS.
6246         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6247         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6248         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6249         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6250         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6251         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6252         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6253         GNU_USER_TARGET_OS_CPP_BUILTINS.
6254         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6255         GNU_USER_DYNAMIC_LINKER.
6256         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6257         GNU_USER_TARGET_OS_CPP_BUILTINS.
6258         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6259         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6260         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6261         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6262         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6263         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6264         GNU_USER_DYNAMIC_LINKER64): Remove.
6265         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6266         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6267         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6268         GNU_USER_DYNAMIC_LINKER.
6269         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6270         GNU_USER_TARGET_OS_CPP_BUILTINS.
6271         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6272         GNU_USER_TARGET_OS_CPP_BUILTINS.
6273         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6274         to GNU_USER_TARGET_OS_CPP_BUILTINS.
6275         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6276         GNU_USER_TARGET_OS_CPP_BUILTINS.
6277         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6278         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6279         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6280         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6281         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6282         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6283         GNU_USER_DYNAMIC_LINKER.
6284         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6285         GNU_USER_TARGET_OS_CPP_BUILTINS.
6286         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6287         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6288         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6289         GNU_USER_DYNAMIC_LINKER.
6290         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6291         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6292         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6293         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6294         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6295         GNU_USER_DYNAMIC_LINKER.
6296         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6297         GNU_USER_DYNAMIC_LINKERN32.
6298         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6299         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
6300         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
6301         GNU_USER_DYNAMIC_LINKER32.
6302         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6303         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6304         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6305         GNU_USER_DYNAMIC_LINKER.
6306         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6307         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6308         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6309         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6310         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6311         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6312         GNU_USER_DYNAMIC_LINKER32.
6313         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6314         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6315         GNU_USER_DYNAMIC_LINKER.
6316         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6317         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6318         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6319         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
6320         GNU_USER_DYNAMIC_LINKER64.
6321         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6322         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6323         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6324         GNU_USER_DYNAMIC_LINKER.
6325         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6326         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6327         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6328         GNU_USER_DYNAMIC_LINKER.
6329         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6330         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6331         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6332         GNU_USER_DYNAMIC_LINKER32.
6333         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6334         GNU_USER_DYNAMIC_LINKER64.
6335         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6336         GNU_USER_DYNAMIC_LINKER64.
6337         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6338         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6339         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6340         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6341         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6342
6343 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6344
6345         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
6346         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6347         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6348         GNU_USER_DYNAMIC_LINKER.
6349         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6350         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
6351         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6352         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6353         GNU_USER_DYNAMIC_LINKER64.
6354         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6355         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6356         GNU_USER_LINK_EMULATION.
6357         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6358         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6359         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6360         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6361         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6362         CPP_SPEC, CC1_SPEC): Remove.
6363         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6364         (GNU_USER_DYNAMIC_LINKER): Define.
6365         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6366         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6367         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6368         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6369         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6370         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6371         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6372         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6373         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6374         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6375         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6376         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6377         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6378         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6379         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6380         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6381         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6382         GNU_USER_DYNAMIC_LINKER.
6383         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6384         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6385         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6386         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6387         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6388         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6389         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6390         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6391         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6392         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6393
6394 2011-04-11  Kai Tietz  <ktietz@redhat.com>
6395
6396         PR target/9601
6397         PR target/11772
6398         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6399         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6400         comment.
6401         (ix86_is_msabi_thiscall): Removed.
6402         (ix86_is_type_thiscall): Likewise.
6403         (ix86_get_callcvt): New function.
6404         (ix86_comp_type_attributes): Simplify check.
6405         (ix86_function_regparm): Use ix86_get_callcvt for calling
6406         convention attribute checks.
6407         (ix86_return_pops_args): Likewise.
6408         (ix86_static_chain): Likewise.
6409         (x86_this_parameter): Likewise.
6410         (x86_output_mi_thunk): Likewise.
6411         (ix86_function_type_abi): Optimize check for types without attributes.
6412         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6413         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6414         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6415         by flag-values.
6416         (IX86_BASE_CALLCVT): Helper macro.
6417         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6418         Use ix86_get_callcvt for calling convention attribute checks and avoid
6419         symbol-decoration for stdcall in TARGET_RTD case.
6420         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6421         Likewise.
6422         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6423         for declaration.
6424
6425 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6426
6427         * config/i386/sse.md (VI_128): New mode iterator.
6428         (VI12_128): Rename from SSEMODE12.
6429         (VI14_128): Rename from SSEMODE14.
6430         (VI124_128): New mode iterator.
6431         (VI24_128): Rename from SSEMODE248.
6432         (VI248_128): Rename from SSEMODE248.
6433         (SSEMODE124C8): Remove.
6434         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6435         (*sse2_<plusminus_insn><mode>3): Merge with
6436         *avx_<plusminus_insn><mode>3.
6437         (*mulv8hi3): Merge with *avx_mulv8hi3.
6438         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6439         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6440         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6441         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6442         (ashr<mode>3): Merge with *avx_ashr<mode>3.
6443         (lshr<mode>3): Merge with *avx_lshr<mode>3.
6444         (ashl<mode>3): Merge with *avx_ashl<mode>3.
6445         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6446         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6447         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6448         (*<smaxmin:code>v8hi3): Ditto.
6449         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6450         (*<smaxmin:code>v16qi3): Ditto.
6451         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6452         (*sse2_eq<mode>3): Ditto.
6453         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6454         (*sse2_gt<mode>3): Ditto.
6455         (vcondv2di): Split out of vcond<mode>.
6456         (vconduv2di): Split out of vcondu<mode>.
6457
6458 2011-04-11  Richard Guenther  <rguenther@suse.de>
6459
6460         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6461         before calling tree_low_cst.
6462
6463 2011-04-11  Richard Guenther  <rguenther@suse.de>
6464
6465         * stor-layout.c (layout_type): Compute all array index size operations
6466         in the original type.
6467         (initialize_sizetypes): Add comment.
6468         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6469
6470 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6471
6472         * common.opt (Tbss=, Tdata=, Ttext=): New options.
6473
6474 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6475
6476         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6477         of cgraph_node, handle NULL return value.
6478         (cgraph_global_info): Likewise.
6479         (cgraph_rtl_info): Likewise.
6480         * tree-inline.c (estimate_num_insns): Likewise.
6481         * gimplify.c (unshare_body): Likewise.
6482         (unvisit_body): Likewise.
6483         (gimplify_body): Likewise.
6484         * predict.c (optimize_function_for_size_p): Likewise.
6485         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6486         (call_may_clobber_ref_p_1): Likewise.
6487         * varasm.c (function_section_1): Likewise.
6488         (assemble_start_function): Likewise.
6489
6490 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6491
6492         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6493         of cgraph_node.
6494         * final.c (rest_of_clean_state): Likewise.
6495         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6496         * passes.c (pass_init_dump_file): Likewise.
6497         (execute_all_ipa_transforms): Likewise.
6498         (function_called_by_processed_nodes_p): Likewise.
6499         * predict.c (maybe_hot_frequency_p): Likewise.
6500         (probably_never_executed_bb_p): Likewise.
6501         (compute_function_frequency): Likewise.
6502         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6503         (unnest_nesting_tree_1): Likewise.
6504         (lower_nested_functions): Likewise.
6505         * tree-optimize.c (execute_fixup_cfg): Likewise.
6506         (tree_rest_of_compilation): Likewise.
6507         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6508         * tree-sra.c (ipa_early_sra): Likewise.
6509         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6510         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6511         * ipa.c (record_cdtor_fn): Likewise.
6512         * ipa-inline.c (cgraph_early_inlining): Likewise.
6513         (compute_inline_parameters_for_current): Likewise.
6514         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6515         * ipa-pure-const.c (local_pure_const): Likewise.
6516         * ipa-split.c (split_function): Likewise.
6517         (execute_split_functions): Likewise.
6518         * cgraphbuild.c (build_cgraph_edges): Likewise.
6519         (rebuild_cgraph_edges): Likewise.
6520         (cgraph_rebuild_references): Likewise.
6521         (remove_cgraph_callee_edges): Likewise.
6522         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6523         (verify_cgraph_node): Likewise.
6524         (cgraph_analyze_functions): Likewise.
6525         (cgraph_preserve_function_body_p): Likewise.
6526         (save_inline_function_body): Likewise.
6527         (save_inline_function_body): Likewise.
6528         * tree-inline.c (copy_bb): Likewise.
6529         (optimize_inline_calls): Likewise.
6530
6531 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6532
6533         PR tree-optimization/48195
6534         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6535         ipa_check_create_edge_args.
6536         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6537         ipa_check_create_edge_args.
6538         * ipa-inline.c (inline_generate_summary): Do not call
6539         ipa_check_create_node_params and ipa_check_create_edge_args.
6540         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6541         ipa_check_create_edge_args.
6542
6543 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
6544
6545         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6546         instead of loop.
6547         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6548         * function.c (record_hard_reg_sets): Likewise.
6549         * ira.c (compute_regs_asm_clobbered): Likewise.
6550         * sched-deps.c (sched_analyze_1): Likewise.
6551         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6552
6553 2011-04-09  Xinliang David Li  <davidxl@google.com>
6554
6555         PR tree-optimization/PR48484
6556         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6557         has_valid_pred lazily
6558
6559 2011-04-09  Duncan Sands  <baldrick@free.fr>
6560
6561         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6562
6563 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6564
6565         * combine.c (combine_validate_cost): Adjust comments.  Set registered
6566         cost of I0 to zero at the end, if any.
6567
6568 2011-04-08  Xinliang David Li  <davidxl@google.com>
6569
6570         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6571         to insane profile data.
6572
6573 2011-04-08  Xinliang David Li  <davidxl@google.com>
6574
6575         * ipa-cp.c (ipcp_update_profiling): Correct
6576          negative scale factor due to insane profile data.
6577
6578 2011-04-08  Xinliang David Li  <davidxl@google.com>
6579
6580         * final.c (dump_basic_block_info): New function.
6581         (final): Dump basic block.
6582         (final_scan_insn): Remove old dump.
6583
6584 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
6585
6586         PR target/47829
6587         * config.gcc (i386-*-freebsd): Disable unwind table generation for
6588         crtbegin/crtend.
6589
6590 2011-04-08  Michael Matz  <matz@suse.de>
6591
6592         PR middle-end/48389
6593         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6594         functions.
6595         (rebuild_jump_labels): Call rebuild_jump_labels_1.
6596         * rtl.h (rebuild_jump_labels_chain): Declare.
6597         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6598         insns inserted on edges.
6599
6600 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
6601
6602         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6603         * config/arm/arm-arches.def: New.
6604         * config/arm/arm-opts.h: New.
6605         * config/arm/genopt.sh: New.
6606         * config/arm/arm-tables.opt: New (generated).
6607         * config/arm/arm.c (arm_handle_option, arm_target_help,
6608         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6609         (all_architectures): Get most table contents from arm-arches.def.
6610         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6611         arm_selected_tune here.
6612         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6613         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6614         (march=, mcpu=, mtune=): Use Enum and Var.
6615         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6616         (arm.o): Update dependencies.
6617
6618 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
6619
6620         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6621         of header_file.
6622         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6623         (write_typed_alloc_defns): Likewise.
6624         (main): Calls write_typed_alloc_defns with output_header.
6625
6626 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
6627
6628         PR inline-asm/48435
6629         * ira-color.c (setup_profitable_hard_regs): Add comments.
6630         Don't take prohibited hard regs into account.
6631         (setup_conflict_profitable_regs): Rename to
6632         get_conflict_profitable_regs.
6633         (check_hard_reg_p): Check prohibited hard regs.
6634
6635 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
6636
6637         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6638         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6639         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6640
6641 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6642
6643         PR target/48366
6644         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6645         move from floating point to shift amount register.
6646         (emit_move_sequence): Remove secondary reload support for floating
6647         point to shift amount amount register copies.
6648         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6649         amount register copies.
6650         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6651         register, return false if mode isn't a scalar integer mode.
6652         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6653
6654 2011-04-08  Richard Guenther  <rguenther@suse.de>
6655
6656         * gimple.c (gimple_call_flags): Remove kludge.
6657
6658 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6659
6660         * sel-sched.c (sel_region_init): Move call to
6661         sel_setup_region_sched_flags after setup_current_loop_nest.
6662
6663 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
6664
6665         PR rtl-optimization/48272
6666         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6667         init_insn_reg_pressure_info.  Adjust a caller.
6668         * sched-int.h (init_insn_reg_pressure_info): Declare.
6669         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6670         when sched-pressure is enabled.
6671
6672 2011-04-08  Richard Guenther  <rguenther@suse.de>
6673
6674         * gimple.c (gimple_set_modified): Do not queue calls to
6675         MODIFIED_NORETURN_CALLS here ...
6676         * tree-ssa-operands.c (update_stmt_operands): ... but here.
6677
6678 2011-04-08  Richard Guenther  <rguenther@suse.de>
6679
6680         PR lto/48467
6681         * toplev.c (lang_dependent_init): Do not open asm_out_file
6682         in WPA mode, nor perform debug machinery initialization.
6683         (finalize): Do not unlink asm_out_file in WPA mode.
6684
6685 2011-04-08  Richard Guenther  <rguenther@suse.de>
6686
6687         * gimple.h (gimple_call_fntype): New function.
6688         (gimple_call_return_type): Use it.
6689         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6690         * gimple-low.c (gimple_check_call_args): Likewise.
6691         * gimple.c (gimple_call_flags): Likewise.
6692         (gimple_call_arg_flags): Likewise.
6693         (gimple_call_return_flags): Likewise.
6694         * tree-cfg.c (verify_gimple_call): Likewise.
6695         (do_warn_unused_result): Likewise.
6696         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6697         * value-prof.c (gimple_ic_transform): Fix fndecl check.
6698
6699 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
6700
6701         PR rtl-optimization/48235
6702         * sel-sched.c (code_motion_process_successors): Recompute the last
6703         insn in basic block if control flow changed.
6704         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
6705         Update condition for ilist_remove.
6706
6707 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6708
6709         PR rtl-optimization/48302
6710         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6711         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
6712         it to record added preheader blocks.
6713         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
6714         on to sel_add_loop_preheaders.
6715         (sel_region_init): Move call to setup_current_loop_nest after
6716         sel_init_bbs.
6717
6718 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6719
6720         PR target/48273
6721         * cfgloop.h (loop_has_exit_edges): New helper.
6722         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6723         non-clonable.
6724         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6725         that have no exit edges.
6726
6727 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6728
6729         PR rtl-optimization/48442
6730         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
6731         all callers.  Adjust assert.
6732
6733 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
6734
6735         PR tree-optimization/48377
6736         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6737         is_packed to true even for types with smaller TYPE_ALIGN than
6738         TYPE_SIZE.
6739
6740 2011-04-08  Richard Guenther  <rguenther@suse.de>
6741
6742         PR bootstrap/48513
6743         * doc/tm.texi: Re-generate.
6744
6745 2011-04-08  Wei Guozhi  <carrot@google.com>
6746
6747         PR target/47855
6748         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6749         * config/arm/arm.c (arm_attr_length_push_multi): New function.
6750         * config/arm/arm.md (*push_multi): Change the length computation to
6751         call a C function.
6752
6753 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
6754
6755         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6756         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6757         * doc/tm.texi: Regenerate.
6758         * system.h (ASM_OUTPUT_BSS): Poison.
6759         * varasm.c (asm_output_bss): Remove function.
6760         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6761
6762         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6763         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6764         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6765         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6766         Likewise.
6767         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6768         Likewise.
6769         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6770         Likewise.
6771         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6772
6773 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6774
6775         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6776         EnumValue lines.
6777
6778 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6779
6780         * config/m68k/m68k.c (m68k_handle_option): Don't handle
6781         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6782         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6783         OPT_mcpu32.
6784         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6785         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6786         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6787         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6788         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6789         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6790         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6791         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6792         options.  Don't map other m68k options manually.  Don't handle
6793         old-style options as canonical.
6794         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6795         * doc/install.texi (m68k-*-*): Document binutils version requirement.
6796
6797 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6798
6799         * basic-block.h (force_nonfallthru): Move to...
6800         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6801         (force_nonfallthru): ...here.
6802         * cfghooks.c (force_nonfallthru): New function.
6803         * cfgrtl.c (force_nonfallthru): Rename into...
6804         (rtl_force_nonfallthru): ...this.
6805         (commit_one_edge_insertion): Do not set AUX field.
6806         (commit_edge_insertions): Do not discover new basic blocks.
6807         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6808         (cfg_layout_rtl_cfg_hooks): Likewise.
6809         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6810         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
6811         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6812
6813 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
6814
6815         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6816         Remove macros.
6817
6818 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
6819
6820         * config/i386/sse.md: Update copyright year.
6821         (avxcvtvecmode): Remove.
6822         (sse_movhlps): Merge with *avx_movhlps.
6823         (sse_movlhps): Merge with *avx_movlhps.
6824         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6825         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6826         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6827         (sse_loadhps): Merge with *avx_loadhps.
6828         (sse_storelps): Merge with *avx_storelps.
6829         (sse_loadlps): Merge with *avx_loadlps.
6830         (sse_movss): Merge with *avx_movss.
6831         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6832         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6833         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6834         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6835         (vec_set<mode>_0): Ditto.
6836         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6837         (sse4_1_insertps): Merge with *avx_insertps.
6838         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6839         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6840         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6841         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6842         (sse2_storehpd): Merge with *avx_storehpd.
6843         (sse2_loadhpd): Merge with *avx_loadhpd.
6844         (sse2_loadlpd): Merge with *avx_loadlpd.
6845         (sse2_movsd): Merge with *avx_movsd.
6846         (*vec_concatv2df): Merge with *vec_concatv2df.
6847
6848 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
6849
6850         PR debug/48343
6851         * combine.c (combine_instructions): Add last_combined_insn,
6852         update it if insn is after it, pass it to all try_combine calls.
6853         (try_combine): Add last_combined_insn parameter, pass it instead of
6854         i3 to propagate_for_debug.
6855
6856 2011-04-07  Nick Clifton  <nickc@redhat.com>
6857
6858         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6859         to handle MDR <-> data register transfers.
6860         (movhi_internal): Likewise.
6861
6862 2011-04-07  Alan Modra  <amodra@gmail.com>
6863
6864         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6865         previous stack info.
6866
6867 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6868
6869         PR target/43920
6870         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
6871         flow_find_cross_jump.  Swap variables to implement backward replacement.
6872         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6873
6874 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6875
6876         PR target/43920
6877         * cfgcleanup.c (walk_to_nondebug_insn): New function.
6878         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
6879         and bb2.
6880         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6881         src1 or src2.  Redirect edges to the last basic block.  Update
6882         frequency and count on multiple basic blocks in case of fallthru.
6883
6884 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6885
6886         PR target/43920
6887         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6888         function.
6889         (old_insns_match_p): Change return type.  Replace return false/true
6890         with return dir_none/dir_both.  Use can_replace_by.
6891         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
6892         direction from dir_p.  Register replacement direction in dir, last_dir
6893         and afterlast_dir.  Handle new return type of old_insns_match_p using
6894         merge_dir.  Return replacement direction in dir_p.
6895         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6896         return type of old_insns_match_p.
6897         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6898         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6899         flow_find_cross_jump.
6900         * basic-block.h (enum replace_direction): New type.
6901         (flow_find_cross_jump): Add parameter to declaration.
6902
6903 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6904
6905         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6906         (AVXMODEDCVTPS2DQ): Ditto.
6907         (VEC_FLOAT_MODE): Ditto.
6908         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
6909         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6910         (<any_logic:code><mode>3): Use VF mode iterator.
6911         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6912         Use VF mode iterator.
6913         (copysign<mode>3): Use VF mode iterator.
6914         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
6915         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6916         (*<any_logic:code><MODEF:mode>3): Merge with
6917         *avx_<any_logic:code><MODEF:mode>3.
6918         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6919         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6920         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6921         (avx_cvtdq2ps<avxmodesuffix>): Remove.
6922         (sse2_cvtdq2ps): Use %v modifier.
6923         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6924         (avx_cvtps2dq<avxmodesuffix>): Remove.
6925         (sse2_cvtps2dq): Use %v modifier.
6926         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6927         (avx_cvttps2dq<avxmodesuffix>): Remove.
6928         (sse2_cvttps2dq): Use %v modifier.
6929         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6930         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6931         (sse2_cvtsd2siq): Fix insn template.
6932         (sse2_cvtsd2siq_2): Ditto.
6933         (sse2_cvttsd2siq): Ditto.
6934         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6935         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6936
6937 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6938
6939         * gcov-io.c: Use GCC Runtime Library Exception.
6940
6941 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
6942
6943         PR debug/48466
6944         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6945         as base_reg whatever register reg has been eliminated to, instead
6946         of hardcoding STACK_POINTER_REGNUM.
6947
6948 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6949
6950         * doc/tm.texi.in: Document C target hooks as separate from general
6951         target hooks.
6952         * doc/tm.texi: Regenerate.
6953         * genhooks.c (struct hook_desc): Add docname field.
6954         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
6955         docname field.
6956         (hook_array): Include c-target.def.
6957         (emit_documentation): Use docname field in output.
6958         (emit_init_macros): Take docname argument.  Only emit definitions
6959         for hooks matching docname.
6960         (main): Expect additional arguments in all cases.  Pass argument
6961         to emit_init_macros.
6962         * target.def: Move initial macro definitions and comments to
6963         target-hooks-macros.h.
6964         (gcc_targetcm): Move to c-family/c-target.def.
6965         * target.h (targetcm): Move declaration to c-family/c-target.h.
6966         * targhooks.c (default_handle_c_option): Move to
6967         c-family/c-opts.c.
6968         * targhooks.h (default_handle_c_option): Move declaration to
6969         c-family/c-common.h.
6970         * target-hooks-macros.h: New file.
6971         * config.gcc (target_has_targetcm): Define and use to add to
6972         c_target_objs and cxx_target_objs.
6973         * config/default-c.c: New file.
6974         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6975         of target.h and target-def.h.
6976         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6977         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6978         darwin_check_cfstring_format_arg): Make static.
6979         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6980         TARGET_STRING_OBJECT_REF_TYPE_P,
6981         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6982         * config/darwin-protos.h (darwin_objc_construct_string,
6983         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6984         declare.
6985         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6986         TARGET_STRING_OBJECT_REF_TYPE_P,
6987         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6988         * config/t-darwin (darwin-c.o): Update dependencies.
6989         * system.h (TARGET_HAS_TARGETCM): Poison.
6990         * Makefile.in (TARGET_H): Update.
6991         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6992         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6993         (default-c.o): New target.
6994         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6995         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6996         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6997         c-target.def.
6998         (build/genhooks.o): Update dependencies.
6999
7000 2011-04-06  Richard Guenther  <rguenther@suse.de>
7001
7002         * ipa-inline.c (enum inlining_mode): Remove.
7003         (cgraph_flatten): Use some other token.
7004         (cgraph_edge_early_inlinable_p): New function, split out from ...
7005         (cgraph_perform_always_inlining): New function, split out from ...
7006         (cgraph_decide_inlining_incrementally): ... here.
7007         (cgraph_mark_inline_edge): Adjust.
7008         (cgraph_early_inlining): Re-structure.
7009         (pass_early_inline): Require SSA form.
7010
7011 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
7012             Julian Brown  <julian@codesourcery.com>
7013             Mark Shinwell  <shinwell@codesourcery.com>
7014
7015         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
7016         LO_REGS only for Thumb-1.
7017         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
7018         be used in short instructions when optimising for size on Thumb-2.
7019
7020 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
7021
7022         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
7023         associated with user returns to be preserved.
7024
7025 2011-04-06  Tristan Gingold  <gingold@adacore.com>
7026
7027         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
7028         symbol_queue_size, DBXOUT_DECR_NESTING,
7029         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
7030         if XCOFF_DEBUGGING_INFO.
7031
7032 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
7033
7034         * config/i386/i386.md (attribute isa): New.
7035         (attribute enabled): New.
7036         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
7037         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
7038         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
7039         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
7040         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
7041         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7042         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
7043         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
7044
7045         * config/i386/sse.md (VF): New mode iterator.
7046         (VF1): Ditto.
7047         (VF2): Ditto.
7048         (VF_128): Ditto.
7049         (SSEMODEF4): Remove.
7050         (attribute sse): Handle V8SF and V4DF modes.
7051         (<absneg:code><mode>2): Use VF mode iterator.
7052         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
7053         mode iterator.
7054         (<plusminus_insn><mode>3): Use VF mode iterator.
7055         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
7056         Use VF mode iterator.
7057         (<sse>_vm<plusminus_insn><mode>3): Merge with
7058         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
7059         (mul<mode>3): Use VF mode iterator.
7060         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
7061         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
7062         mode iterator.
7063         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
7064         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
7065         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
7066         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
7067         mode iterator.
7068         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
7069         Use VF1 mode iterator.
7070         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
7071         (sqrt<VF2:mode>2): New expander.
7072         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
7073         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
7074         and sqrtv2df2.  Use VF mode iterator.
7075         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
7076         mode iterator.
7077         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
7078         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
7079         Use VF1 mode iterator.
7080         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
7081         (<smaxmin:code><mode>3): Use VF mode iterator.
7082         (*<smaxmin:code><mode>3_finite): Merge with
7083         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
7084         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7085         (<sse>_vm<smaxmin:code><mode>2): Merge with
7086         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
7087         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
7088         mode iterator.
7089         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
7090         mode iterator.
7091         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7092         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7093         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7094         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7095         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
7096         VF mode iterator.
7097         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7098         Use VF_128 mode iterator.
7099         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
7100         mode iterator.
7101         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
7102         VF_128 mode iterator.
7103         (vcond<mode>): Use VF mode iterator.
7104         * config/i386/predicates.md (sse_comparison_operator): Merge with
7105         avx_comparison_float_operator.  Do not declare as special_predicate.
7106         * config/i386/i386.c (struct builtin_description): Update for renamed
7107         compare patterns.
7108         (ix86_expand_args_builtin): Ditto.
7109         (ix86_expand_sse_compare_mask): Ditto.
7110
7111 2011-04-06  Richard Guenther  <rguenther@suse.de>
7112
7113         * tree-inline.c (estimate_num_insns): For calls simply account
7114         for all passed arguments and a used return value.
7115
7116 2011-04-06  Richard Guenther  <rguenther@suse.de>
7117
7118         PR tree-optimization/47663
7119         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7120         call_stmt_time fields.
7121         (cgraph_edge_inlinable_p): Declare.
7122         (cgraph_edge_recursive_p): New inline function.
7123         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7124         (cgraph_clone_edge): Copy it.
7125         * ipa-inline.c (cgraph_estimate_edge_time): New function.
7126         Account for call stmt time.
7127         (cgraph_estimate_time_after_inlining): Take edge argument.
7128         (cgraph_estimate_edge_growth): Account call stmt size.
7129         (cgraph_estimate_size_after_inlining): Take edge argument.
7130         (cgraph_mark_inline_edge): Adjust.
7131         (cgraph_check_inline_limits): Likewise.
7132         (cgraph_recursive_inlining_p): Remove.
7133         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7134         (cgraph_decide_recursive_inlining): Take edge argument and
7135         adjust.
7136         (cgraph_decide_inlining_of_small_functions): Do not avoid
7137         diags for recursive inlining here.
7138         (cgraph_flatten): Adjust.
7139         (cgraph_decide_inlining_incrementally): Likewise.
7140         (estimate_function_body_sizes): Remove call cost handling.
7141         (compute_inline_parameters): Initialize caller edge call costs.
7142         (cgraph_estimate_edge_growth): New function.
7143         (cgraph_estimate_growth): Use it.
7144         (cgraph_edge_badness): Likewise.
7145         (cgraph_check_inline_limits): Take an edge argument.
7146         (cgraph_decide_inlining_of_small_functions): Adjust.
7147         (cgraph_decide_inlining): Likewise.
7148         * tree-inline.c (estimate_num_insns): Only account for call
7149         return value if it is used.
7150         (expand_call_inline): Avoid diagnostics on recursive inline
7151         functions here.
7152         * lto-cgraph.c (lto_output_edge): Output edge call costs.
7153         (input_edge): Input edge call costs.
7154
7155 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7156
7157         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7158
7159 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
7160
7161         * doc/invoke.texi (Spec Files): Fix typo.
7162
7163 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
7164
7165         * profile.c (branch_prob): Move declaration of local variable.  Remove
7166         obsolete ??? comment.  Expand the location explicitly instead of using
7167         the LOCATION_FILE and LOCATION_LINE macros.
7168
7169 2011-04-06  Wei Guozhi  <carrot@google.com>
7170
7171         PR target/47855
7172         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7173         (arm_cond_branch): Likewise.
7174         (arm_cond_branch_reversed): Likewise.
7175         (arm_jump): Likewise.
7176         (push_multi): Likewise.
7177         * config/arm/constraints.md (Py): New constraint.
7178
7179 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7180
7181         PR bootstrap/48471
7182         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7183         Move these...
7184         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7185         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7186         #ifdef DBX_DEBUGGING_INFO.
7187
7188 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
7189
7190         PR bootstrap/48403
7191         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7192         if old and new states differ.
7193
7194 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7195
7196         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7197         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7198         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7199         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7200         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7201         mcfv4e): Use Alias.
7202         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7203         ColdFire options to -mcpu= options.
7204
7205 2011-04-05  Jeff Law  <law@redhat.com>
7206
7207         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7208         check if BB is a successor of LOOP->header and return
7209         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7210
7211 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7212
7213         * cprop.c (struct reg_use): Remove.
7214         (reg_use_table): Make an array of RTX.
7215         (find_used_regs, constprop_register, local_cprop_pass,
7216         bypass_block): Simplify users of reg_use_table.
7217         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
7218         on one of the uses found by find_used_regs.
7219
7220 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7221
7222         PR bootstrap/48469
7223         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7224         declaration.
7225
7226 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7227
7228         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7229         as an rtx.
7230         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7231
7232 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7233
7234         PR middle-end/48441
7235         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7236
7237 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7238
7239         * combine.c: Include obstack.h.
7240         (struct insn_link): Define.
7241         (uid_log_links): Adjust type.
7242         (FOR_EACH_LOG_LINK): New macro.
7243         (insn_link_obstack): Declare.
7244         (alloc_insn_link): Define.
7245         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
7246         type of link variables.
7247         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7248         (try_combine, record_promoted_values, distribute_notes): Likewise.
7249         (distribute_links): Likewise.  Tweak prototype.
7250         (clear_log_links): Delete.
7251         (adjust_for_new_dest): Call alloc_insn_link.
7252         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7253
7254 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7255
7256         * gcse.c (modify_mem_list): Convert to an array of VECs.
7257         (canon_modify_mem_list, compute_transp): Tweak formatting.
7258         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
7259         (load_killed_in_block_p): Likewise.
7260         (record_last_mem_set_info): Likewise.
7261         (clear_modify_mem_tables): Likewise.
7262
7263 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7264
7265         PR middle-end/48461
7266         * function.c (emit_use_return_register_into_block): Only define if
7267         HAVE_return.
7268
7269 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
7270
7271         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7272
7273 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7274
7275         * config/rx/rx-opts.h: New.
7276         * config/rx/rx.c (rx_cpu_type): Remove.
7277         (rx_handle_option): Don't assert that global structures are in
7278         use.  Access variables via opts pointer.  Defer most handling of
7279         OPT_mint_register_.  Use error_at.
7280         (rx_option_override): Handle deferred OPT_mint_register_ here.
7281         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7282         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7283         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7284         (rx_cpu_types): New Enum and EnumValue entries.
7285         (mint-register=): Use Defer and use Var accordingly.
7286
7287 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7288
7289         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7290         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7291         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7292         Move these...
7293         (debug_free_queue, debug_nesting, symbol_queue_index):
7294         ...and these...
7295         * dbxout.c: ...to here.  Make static.
7296
7297 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7298
7299         * gcse.c (modify_pair): Define.  Define a VEC of it.
7300         (canon_modify_mem_list): Convert to an array of VECs.
7301         (free_insn_expr_list_list): Delete.
7302         (clear_modify_mem_tables): Call VEC_free instead.
7303         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7304         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7305         (canon_list_insert, compute_transp): Likewise.
7306
7307 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7308
7309         PR target/43920
7310         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7311         for size.
7312
7313 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7314
7315         PR target/43920
7316         * function.c (emit_use_return_register_into_block): New function.
7317         (thread_prologue_and_epilogue_insns): Use
7318         emit_use_return_register_into_block.
7319
7320 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7321
7322         PR target/43920
7323         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7324         insn.
7325
7326 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7327
7328         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7329
7330 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
7331
7332         * config/arm/arm.md (define_constants for unspec): Replace with
7333         define_c_enum.
7334         (define_constants for unspecv): Replace with define_c_enum.
7335         * config/arm/neon.md (define_constants for unspec): Replace with
7336         define_c_enum.
7337
7338 2011-04-04  Richard Henderson  <rth@redhat.com>
7339
7340         PR bootstrap/48400
7341         * dwarf2out.c (output_line_info): Always emit line info from
7342         at least one section.
7343         (dwarf2out_init): Create text_section_line_info here ...
7344         (set_cur_line_info_table): ... not here.
7345
7346 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
7347
7348         PR target/48380
7349         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7350         not called.
7351
7352         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7353
7354 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7355
7356         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7357         (expr_equiv_p): Remove.
7358         (insert_set_in_table): Look at <dest, src> pair instead of expr.
7359         (hash_scan_set): Update call to insert_set_in_table.
7360         (dump_hash_table): Dump <dest, src> pair.
7361         (lookup_set): Simplify.  Lookup <dest, src> pair.
7362         (compute_transp): Remove, fold heavily simplified code into...
7363         (compute_local_properties): ...here.  Expect COMP and TRANSP
7364         unconditionally.
7365         (find_avail_set): Take set directly from struct expr.
7366         (find_bypass-set): Likewise.
7367         (bypass_block): Likewise.
7368         (cprop_insn): Likewise.  Remove redundant INSN_P test.
7369
7370         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7371         checks on form of COND from find_implicit_sets to here.
7372         (find_implicit_sets): Cleanup control flow. Split critical edges
7373         if it exposes implicit sets.  Allocate/resize implicit_sets as
7374         necessary.
7375         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7376         changed something.  Run df_analyze after find_implicit_sets if any
7377         edges were split.  Do not allocate implicit_sets here.
7378
7379         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7380         (gcse_obstack): Renamed to cprop_obstack.
7381         (GNEW, GNEWVEC, GNEWVAR): Remove.
7382         (gmalloc): Remove.
7383         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7384         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7385         (gcse_alloc): Likewise, and rename to cprop_alloc.
7386         (alloc_gcse_men, free_gcse_mem): Remove.
7387         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7388         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7389         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7390
7391         * cprop.c (oprs_not_set_p): Remove.
7392         (mark_set, mark_clobber): Remove.
7393         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7394         (reg_not_set_p): New function.
7395         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7396         (cprop_insn): Likewise.
7397         (cprop_jump): Use FOR_EACH_EDGE.
7398
7399 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
7400
7401         PR bootstrap/48403
7402         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7403         (rank_for_schedule): Use scheduled_insns vector instead of
7404         last_scheduled_insn.
7405         (ok_for_early_queue_removal): Likewise.
7406         (queue_to_ready): Search forward in nonscheduled_insns_begin if
7407         we have a dbg_cnt.
7408         (choose_ready): Likewise.
7409         (commit_schedule): Use VEC_iterate.
7410         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
7411         a dbg_cnt, use it and ensure the first insn is in the ready list.
7412         (haifa_sched_init): Allocate scheduled_insns.
7413         (sched_extend_ready_list): Don't allocate it; reserve space.
7414         (haifa_sched_finish): Free it.
7415
7416 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7417
7418         * optc-gen.awk: Always remove type from Variable entry before
7419         recording in var_seen.
7420
7421 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
7422
7423         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7424         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7425         call to tidy_fallthru_edges.
7426
7427 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7428
7429         * doc/options.texi (ToLower): Document.
7430         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7431         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7432         * opts.h (cl_option): Add cl_tolower field.
7433         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7434         arguments with lowercase strings.
7435         * config/rx/rx.opt (mcpu=): Add ToLower.
7436         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7437         argument.
7438
7439 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7440
7441         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7442
7443 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7444
7445         * config/vax/vax.c: Include reload.h.
7446
7447 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
7448
7449         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7450         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7451         (sparc_preferred_reload_class): New function.
7452
7453 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
7454
7455         PR debug/48401
7456         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7457         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7458
7459 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
7460
7461         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7462         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7463
7464 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
7465
7466         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7467         (ASM_OUTPUT_ALIGNED_BSS): Define.
7468
7469 2011-04-03  Michael Matz  <matz@suse.de>
7470
7471         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7472         and next_slot members.
7473         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7474         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7475         (lto_streamer_cache_append): Declare.
7476         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7477         unsigned index, remove offset parameter, ensure that we append
7478         or update existing entries.
7479         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7480         parameter, update next_slot for append.
7481         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7482         parameter.
7483         (lto_streamer_cache_insert_at): Likewise.
7484         (lto_streamer_cache_append): New function.
7485         (lto_streamer_cache_lookup): Use unsigned index.
7486         (lto_streamer_cache_get): Likewise.
7487         (lto_record_common_node): Don't test tree_node_can_be_shared.
7488         (preload_common_node): Adjust call to lto_streamer_cache_insert.
7489         (lto_streamer_cache_delete): Don't free offsets member.
7490         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7491         (lto_output_string_with_length): Use lto_output_data_stream.
7492         (lto_output_tree_header): Remove ix parameter, don't write it.
7493         (lto_output_builtin_tree): Likewise.
7494         (lto_write_tree): Adjust callers to above, don't track and write
7495         offset, write unsigned index.
7496         (output_unreferenced_globals): Don't emit all global vars.
7497         (write_global_references): Use unsigned indices.
7498         (lto_output_decl_state_refs): Likewise.
7499         (write_symbol): Likewise.
7500         * lto-streamer-in.c (lto_input_chain): Move earlier.
7501         (input_function): Use unsigned index.
7502         (input_alias_pairs): Don't read and then ignore all global vars.
7503         (lto_materialize_tree): Remove ix_p parameter, don't read index,
7504         don't pass it back, use lto_streamer_cache_append.
7505         (lto_register_var_decl_in_symtab): Use unsigned index.
7506         (lto_register_function_decl_in_symtab): Likewise.
7507         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7508         index.
7509         (lto_get_builtin_tree): Don't read index, use
7510         lto_streamer_cache_append.
7511         (lto_read_tree): Adjust call to lto_materialize_tree.
7512
7513         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7514         don't use function calls in arguments to MIN.
7515
7516         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7517         twice.
7518
7519         * gimple.c (gimple_type_leader_entry): Mark deletable.
7520
7521 2011-04-03  Alan Modra  <amodra@gmail.com>
7522
7523         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7524
7525 2011-04-03  Michael Matz  <matz@suse.de>
7526
7527         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7528         an integer.
7529         * tree.h (tree_decl_non_common.vindex): Adjust comment.
7530
7531 2011-04-03  Michael Matz  <matz@suse.de>
7532
7533         * cgraphbuild.c (record_reference): Canonicalize constructor values.
7534         * gimple-fold.c (canonicalize_constructor_val): Accept being called
7535         without function context.
7536         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7537         current_function_decl and cfun.
7538
7539 2011-04-03  Michael Matz  <matz@suse.de>
7540
7541         * tree.c (decl_init_priority_insert): Don't create entry for
7542         default priority.
7543         (decl_fini_priority_insert): Ditto.
7544         (fields_compatible_p, find_compatible_field): Remove.
7545         * tree.h (fields_compatible_p, find_compatible_field): Remove.
7546         * gimple.c (gimple_compare_field_offset): Adjust block comment.
7547
7548 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
7549
7550         * combine.c (try_combine): Remove useless local variable.
7551
7552 2011-04-03  Richard Guenther  <rguenther@suse.de>
7553             Ira Rosen  <ira.rosen@linaro.org>
7554
7555         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7556         non-variable offsets and compare the remaining bases of the two
7557         accesses instead of looking for exact same data-ref.
7558
7559 2011-04-02  Kai Tietz  <ktietz@redhat.com>
7560
7561         PR target/48416
7562         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7563
7564         * i386.c (ix86_is_msabi_thiscall): New helper function.
7565         (ix86_is_type_thiscall): New helper function.
7566         (ix86_comp_type_attributes): Handle thiscall for method-functions
7567         special.
7568         (init_cumulative_args): Likewise.
7569         (find_drap_reg): Likewise.
7570         (ix86_static_chain): Likewise.
7571         (x86_this_parameter): Likewise.
7572         (x86_output_mi_thunk): Likewise.
7573
7574 2011-04-01  Olivier Hainque  <hainque@adacore.com>
7575             Nicolas Setton  <setton@adacore.com>
7576             Eric Botcazou  <ebotcazou@adacore.com>
7577
7578         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7579         (add_gnat_descriptive_type_attribute): New function.
7580         (gen_array_type_die): Call it.
7581         (gen_enumeration_type_die): Likewise.
7582         (gen_struct_or_union_type_die): Likewise.
7583         (modified_type_die): Likewise.
7584         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7585         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7586         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7587
7588 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7589
7590         PR bootstrap/48148
7591         * dwarf2out.c (resolve_addr): Don't call force_decl_die
7592         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7593
7594         Revert:
7595         2011-03-17  Richard Guenther  <rguenther@suse.de>
7596
7597         PR bootstrap/48148
7598         * lto-cgraph.c (input_overwrite_node): Clear the abstract
7599         origin for decls in other ltrans units.
7600         (input_varpool_node): Likewise.
7601
7602 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7603
7604         PR middle-end/48335
7605         * expr.c (expand_assignment): Handle all possibilities
7606         if TO_RTX is CONCAT.
7607         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7608         (store_split_bit_field): If SUBREG_REG (op0) or
7609         op0 itself has smaller mode than word, return it
7610         for offset 0 and const0_rtx for out-of-bounds stores.
7611         If word is const0_rtx, skip it.
7612
7613 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
7614
7615         * config/h8300/h8300.c (print_operand_address): Rename to...
7616         (h8300_print_operand_address): ...this. Make static. Adjust comments.
7617         Call h8300_print_operand and h8300_print_operand_address instead of
7618         print_operand and print_operand_address. Declare.
7619         (print_operand): Renake to...
7620         (h8300_print_operand): ...this. Make static. Adjust comments.
7621         Call h8300_print_operand instead of print_operand. Declare.
7622         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7623         (h8300_register_move_cost): Likewise.
7624         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7625         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7626         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7627         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7628         * config/h8300/h8300-protos.h (print_operand): Delete.
7629         (print_operand_address): Delete.
7630
7631 2011-04-01  Richard Henderson  <rth@redhat.com>
7632
7633         PR 48400
7634         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7635         in strict mode before dwarf4.  Re-order tests to early out
7636         before switching sections.
7637
7638 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
7639
7640         * config/h8300/constraints.md: New file.
7641         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
7642         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7643         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7644         * config/h8300/predicates.md (bit_operand): Likewise.
7645         (incdec_operand): Use satisfies_constraint_M and
7646         satisfies_constraint_O.  Don't use C code block.
7647         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7648         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7649         (compute_mov_length): Use satisfies_constraint_G.
7650         (fix_bit_operand): Use satisfies_constraint_U.
7651         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7652         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7653         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7654         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7655         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7656         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7657         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7658         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7659         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7660         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7661         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7662         (EXTRA_MEMORY_CONSTRAINT): Delete.
7663
7664 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
7665             Michael Meissner  <meissner@linux.vnet.ibm.com>
7666
7667         PR target/48262
7668         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7669         operands, as per the specifications.
7670
7671         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7672         (vec_extract_evenv4sf): Ditto.
7673         (vec_extract_evenv8hi): Ditto.
7674         (vec_extract_evenv16qi): Ditto.
7675         (vec_extract_oddv4si): Ditto.
7676
7677 2011-03-31  Mark Wielaard  <mjw@redhat.com>
7678
7679         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7680         high_pc attribute if the CU has no associated code. Only output
7681         DW_AT_entry_pc for CU if not generating strict dwarf and
7682         dwarf_version < 4.
7683
7684 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
7685
7686         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7687         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7688         out of ...
7689         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7690         * final.c (final_start_function): Call the new function rather
7691         than using a NULL argument for dwarf2out_frame_debug.
7692
7693         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7694         that contains the prologue.
7695
7696         * haifa-sched.c (queue_insn): New arg REASON.  All callers
7697         changed.  Print it in debugging output.
7698
7699         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7700
7701         * sched-ebb.c (begin_schedule_ready): Remove second argument.
7702         Split most of the code into...
7703         (begin_move_insn): ... here.  New function.
7704         (ebb_sched_info): Add a pointer to it.
7705         * haifa-sched.c (scheduled_insns): New static variable.
7706         (sched_extend_ready_list): Allocate it.
7707         (schedule_block): Use it to record the order of scheduled insns.
7708         Perform RTL changes to move insns only after all scheduling
7709         decisions have been made.
7710         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7711         begin_move_insn field.
7712         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7713         * sched-int.h (struct haifa_sched_info): Remove second argument
7714         from begin_schedule_ready hook.  Add new member begin_move_insn.
7715         * sched-rgn.c (begin_schedule_ready): Remove second argument.
7716         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7717
7718         * haifa-sched.c (prune_ready_list): New function, broken out of
7719         schedule_block.
7720         (schedule_block): Use it.
7721
7722 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7723
7724         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7725
7726 2011-04-01  Kai Tietz  <ktietz@redhat.com>
7727
7728         * config.gcc (*-*-mingw*): Allow as option the
7729         posix threading model.
7730         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
7731         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7732         definition.
7733         (CPP_SPEC): Add pthread/no-pthread handling.
7734         (LIB_SPEC): Likewise.
7735         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7736         (LIB_SPEC): Likewise.
7737         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7738         flag to pass -pthread option for shared libgcc build.
7739         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7740         for shared libgcc build.
7741         * config/i386/t-mingw-pthread: New file.
7742         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7743         New define to enable use of library pthread by default.
7744         * config/i386/mingw.opt (pthread): New driver option.
7745         (no-pthread): New driver option.
7746         * config/i386/cygming.opt: Make sure trailing empty line is retained.
7747         * config/i386/mingw-w64.opt: Likewise.
7748
7749 2011-04-01  Gary Funck  <gary@intrepid.com>
7750
7751         * c-decl.c (grokdeclarator): Fix formatting.
7752
7753 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7754
7755         * expr.c (emit_block_move_via_movmem): Use n_generator_args
7756         instead of n_operands.
7757         (set_storage_via_setmem): Likewise.
7758         * optabs.c (maybe_gen_insn): Likewise.
7759         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7760         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7761         (mips_expand_builtin_direct): Likewise.
7762         * config/spu/spu.c (expand_builtin_args): Likewise.
7763
7764 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7765
7766         * recog.h (insn_data_d): Add n_generator_args.
7767         * genoutput.c (data): Likewise.
7768         (output_insn_data): Print it.
7769         (max_opno, num_dups): Delete.
7770         (scan_operands): Just fill in "d->operand[...]".
7771         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7772
7773 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7774
7775         * gensupport.h (pattern_stats): New structure.
7776         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7777         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7778         (max_operand_1, max_operand_vec): Delete.
7779         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7780
7781 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
7782
7783         * emit-rtl.c (emit_pattern_after_setloc): New function.
7784         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7785         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7786         (emit_pattern_after): New function.
7787         (emit_insn_after, emit_jump_insn_after): Call it.
7788         (emit_call_insn_after, emit_debug_insn_after): Likewise.
7789         (emit_pattern_before_setloc): New function.
7790         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7791         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7792         Likewise.
7793         (emit_pattern_before): New function.
7794         (emit_insn_before, emit_jump_insn_before): Call it.
7795         (emit_call_insn_before, emit_debug_insn_before): Likewise.
7796
7797 2011-03-31  Richard Henderson  <rth@redhat.com>
7798
7799         * dwarf2out.c (dw_separate_line_info_ref): Remove.
7800         (dw_separate_line_info_entry): Remove.
7801         (enum dw_line_info_opcode): New.
7802         (dw_line_info_entry): Use it.
7803         (dw_line_info_table, dw_line_info_table_p): New.
7804         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7805         (line_info_table, line_info_label_num): Remove.
7806         (line_info_table_in_use): Remove.
7807         (separate_line_info_table): Remove.
7808         (separate_line_info_table_allocated): Remove.
7809         (separate_line_info_table_in_use): Remove.
7810         (LINE_INFO_TABLE_INCREMENT): Remove.
7811         (line_info_label_num): New.
7812         (cur_line_info_table): New.
7813         (text_section_line_info, cold_text_section_line_info): New.
7814         (separate_line_info): New.
7815         (SEPARATE_LINE_CODE_LABEL): Remove.
7816         (print_dwarf_line_table): Remove.
7817         (debug_dwarf): Don't dump it.
7818         (output_one_line_info_table): New.
7819         (output_line_info): Use it.
7820         (new_line_info_table): New.
7821         (set_cur_line_info_table): New.
7822         (dwarf2out_switch_text_section): Use it.
7823         (dwarf2out_begin_function): Likewise.
7824         (push_dw_line_info_entry): New.
7825         (dwarf2out_source_line): Rewrite for new line info tables.
7826         (dwarf2out_init): Remove dead initailizations.
7827
7828 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7829
7830         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
7831         various flags.
7832         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7833         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7834         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7835         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7836         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7837         * opt-functions.awk (flag_init, switch_bit_fields): New.
7838         (switch_flags): Don't handle flags moved to bit-fields.  Don't
7839         generate CL_MISSING_OK or CL_SAVE.
7840         * optc-gen.awk: Update to generate bit-field output as well as
7841         flags field.
7842         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7843         bit-field instead of CL_REJECT_DRIVER flag.
7844         * opts-common.c (generate_canonical_option,
7845         decode_cmdline_option): Use bit-fields instead of CL_* flags.
7846         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7847         instead of CL_REJECT_NEGATIVE flag.
7848         * toplev.c (print_switch_values): Use cl_report bit-field instead
7849         of CL_REPORT flag.
7850
7851 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7852
7853         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7854         a zero minimum index only if it is redundant.
7855
7856 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
7857
7858         PR rtl-optimization/48381
7859         * ira-color.c (assign_hard_reg): Use hard reg set intersection
7860         instead of ira_class_hard_reg_index for calculating conflicting
7861         hard registers.
7862
7863 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
7864
7865         * cprop.c: Clean up hash table building.
7866         (reg_avail_info): Remove.
7867         (oprs_available_p): Remove.
7868         (record_last_reg_set_info): Remove.
7869         (record_last_set_info): Remove.
7870         (reg_available_p): New function.
7871         (gcse_constant_p): Do not treat unfolded conditions as constants.
7872         (make_set_regs_unavailable): New function.
7873         (hash_scan_set): Simplify with new reg_available_p.
7874         (compute_hash_table_work): Traverse insns stream only once.
7875         Do not compute reg_avail_info. Traverse insns in reverse order.
7876         Record implicit sets after recording explicit sets from the block.
7877
7878 2011-03-31  Michael Matz  <matz@suse.de>
7879
7880         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7881
7882 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
7883
7884         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7885         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7886         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7887         (h8300_mode_dependent_address_p): New function.
7888         (h8300_get_index): Make static.
7889
7890 2011-03-31  Jeff Law  <law@redhat.com>
7891
7892         * reload1.c (elimination_effects): Fix typo in recent change.
7893
7894         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7895         typo potentially leading to null pointer dereference.
7896
7897         * caller-save.c (new_saved_hard_reg): Eliminate return value.
7898         (setup_save_areas): Corresponding changes to avoid useless
7899         assignments.
7900
7901         * jump.c (reversed_comparison_code_parts): Avoid successive return
7902         statements when REVERSE_CONDITION is defined.
7903
7904         * expr.c (expand_assignment): Avoid useless assignments.
7905         (expand_expr_real_1): Likewise.
7906         (expand_expr_real_2): Avoid useless statements.
7907
7908         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7909
7910         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7911
7912         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7913         statements.
7914
7915         * stmt.c (expand_expr_stmt): Avoid useless assignment.
7916
7917 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7918
7919         PR target/47109
7920         * doc/tm.texi.in (TARGET_VERSION): Remove.
7921         * doc/tm.texi: Regenerate.
7922         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7923         * collect2.c (main): Don't use TARGET_VERSION.
7924         * mips-tdump.c (main): Don't use TARGET_VERSION.
7925         * mips-tfile.c (main): Don't use TARGET_VERSION.
7926         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7927         * config/rs6000/vxworksae.h: Remove.
7928         * config/alpha/alpha.h (TARGET_VERSION): Remove.
7929         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7930         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7931         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7932         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7933         * config/arm/arm.h (TARGET_VERSION): Remove.
7934         * config/arm/coff.h (TARGET_VERSION): Remove.
7935         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7936         * config/arm/elf.h (TARGET_VERSION): Remove.
7937         * config/arm/freebsd.h (TARGET_VERSION): Remove.
7938         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7939         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7940         * config/arm/pe.h (TARGET_VERSION): Remove.
7941         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7942         * config/arm/semi.h (TARGET_VERSION): Remove.
7943         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7944         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7945         * config/arm/vxworks.h (TARGET_VERSION): Remove.
7946         * config/avr/avr.h (TARGET_VERSION): Remove.
7947         * config/bfin/bfin.h (TARGET_VERSION): Remove.
7948         * config/fr30/fr30.h (TARGET_VERSION): Remove.
7949         * config/frv/frv.h (TARGET_VERSION): Remove.
7950         * config/h8300/h8300.h (TARGET_VERSION): Remove.
7951         * config/i386/cygwin.h (TARGET_VERSION): Remove.
7952         * config/i386/darwin.h (TARGET_VERSION): Remove.
7953         * config/i386/darwin64.h (TARGET_VERSION): Remove.
7954         * config/i386/djgpp.h (TARGET_VERSION): Remove.
7955         * config/i386/freebsd.h (TARGET_VERSION): Remove.
7956         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7957         * config/i386/gnu.h (TARGET_VERSION): Remove.
7958         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7959         * config/i386/i386elf.h (TARGET_VERSION): Remove.
7960         * config/i386/linux.h (TARGET_VERSION): Remove.
7961         * config/i386/linux64.h (TARGET_VERSION): Remove.
7962         * config/i386/lynx.h (TARGET_VERSION): Remove.
7963         * config/i386/mingw32.h (TARGET_VERSION): Remove.
7964         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7965         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7966         * config/i386/netware.h (TARGET_VERSION): Remove.
7967         * config/i386/nto.h (TARGET_VERSION): Remove.
7968         * config/i386/openbsd.h (TARGET_VERSION): Remove.
7969         * config/i386/vxworks.h (TARGET_VERSION): Remove.
7970         * config/ia64/elf.h (TARGET_VERSION): Remove.
7971         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7972         * config/ia64/hpux.h (TARGET_VERSION): Remove.
7973         * config/ia64/linux.h (TARGET_VERSION): Remove.
7974         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7975         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7976         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7977         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7978         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7979         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7980         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7981         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7982         * config/m68k/linux.h (TARGET_VERSION): Remove.
7983         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7984         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7985         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7986         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7987         * config/mep/mep.h (TARGET_VERSION): Remove.
7988         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7989         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7990         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7991         * config/mips/linux.h (TARGET_VERSION): Remove.
7992         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7993         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7994         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7995         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7996         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7997         * config/pa/pa.h (TARGET_VERSION): Remove.
7998         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7999         * config/picochip/picochip.h (TARGET_VERSION): Remove.
8000         * config/rs6000/aix.h (TARGET_VERSION): Remove.
8001         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
8002         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
8003         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
8004         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
8005         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
8006         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
8007         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
8008         * config/rs6000/linux.h (TARGET_VERSION): Remove.
8009         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
8010         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
8011         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
8012         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
8013         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
8014         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
8015         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
8016         * config/s390/linux.h (TARGET_VERSION): Remove.
8017         * config/s390/s390.h (TARGET_VERSION): Remove.
8018         * config/s390/tpf.h (TARGET_VERSION): Remove.
8019         * config/score/score.h (TARGET_VERSION): Remove.
8020         * config/sh/linux.h (TARGET_VERSION): Remove.
8021         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
8022         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
8023         * config/sh/sh.h (TARGET_VERSION): Remove.
8024         * config/sh/sh64.h (TARGET_VERSION): Remove.
8025         * config/sh/superh.h (TARGET_VERSION): Remove.
8026         * config/sh/vxworks.h (TARGET_VERSION): Remove.
8027         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
8028         * config/sparc/linux.h (TARGET_VERSION): Remove.
8029         * config/sparc/linux64.h (TARGET_VERSION): Remove.
8030         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
8031         TARGET_NAME32, TARGET_NAME): Remove.
8032         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
8033         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
8034         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
8035         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
8036         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
8037         * config/spu/spu.h (TARGET_VERSION): Remove.
8038         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
8039         * config/v850/v850.h (TARGET_VERSION): Remove.
8040         * config/vax/linux.h (TARGET_VERSION): Remove.
8041         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
8042         * config/xtensa/elf.h (TARGET_VERSION): Remove.
8043         * config/xtensa/linux.h (TARGET_VERSION): Remove.
8044
8045 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
8046
8047         PR target/48142
8048         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
8049         frame-related from frame-unrelated adjustments to the stack pointer.
8050
8051 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
8052
8053         * common.opt (fdebug-types-section): Move earlier.
8054         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
8055
8056 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
8057
8058         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
8059         var.
8060
8061 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
8062
8063         * tree.h (CASE_CHAIN): Define.
8064         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
8065         (gimple_redirect_edge_and_branch): Likewise.
8066
8067 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
8068
8069         PR middle-end/48367
8070         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
8071         calculation.
8072
8073 2011-03-30  Jeff Law  <law@redhat.com>
8074
8075         * PR bootstrap/48371
8076         * reload1.c (reload): Fix botch in last change.
8077
8078         * reload.h (struct reload): Fix typo introduced in last change.
8079
8080 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8081
8082         * config/arm/arm.opt (mhard-float, msoft-float): Mark
8083         Undocumented.  Remove help text.
8084         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8085         -mhard-float.
8086
8087 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8088
8089         * doc/options.texi (NegativeAlias): Document.
8090         (Alias): Mention NegativeAlias.
8091         * opt-functions.awk: Handle NegativeAlias.
8092         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8093         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8094         * opts.h (CL_NEGATIVE_ALIAS): Define.
8095         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8096         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8097         OPT_mspe_.
8098         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8099         Alias entries.
8100         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8101         mno-spe and mno-isel instead of mspe=no and -misel=no.
8102
8103 2011-03-29  Mark Wielaard  <mjw@redhat.com>
8104
8105         * common.opt (fdebug-types-section): New flag.
8106         * doc/invoke.texi: Document new -fno-debug-types-section flag.
8107         * dwarf2out.c (use_debug_types): New define.
8108         (struct die_struct): Mark die_id with GTY desc use_debug_types.
8109         (print_die): Guard output of type unit signatures using
8110         use_debug_types.
8111         (build_abbrev_table): Replace assert of dwarf_version >= 4
8112         with assert on use_debug_types.
8113         (size_of_die): Likewise.
8114         (unmark_dies): Likewise.
8115         (value_format): Decide AT_ref_external form on use_debug_types.
8116         (output_die): Replace dwarf_version version check guard with
8117         use_debug_types where appropriate.
8118         (modified_type_die): Likewise.
8119         (gen_reference_type_die): Likewise.
8120         (dwarf2out_start_source_file): Likewise.
8121         (dwarf2out_end_source_file): Likewise.
8122         (prune_unused_types_walk_attribs): Likewise.
8123         (dwarf2out_finish): Likewise.
8124
8125 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
8126
8127         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8128
8129 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8130
8131         PR rtl-optimization/48332
8132         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8133         mode of input operand N and modeN to its actual mode.
8134
8135 2011-03-30  Jeff Law  <law@redhat.com>
8136
8137         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8138         define accessor macro.
8139         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8140         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8141         (reg_equiv_init): Likewise.
8142         (reg_equivs_size): New variable.
8143         (reg_equiv_init_size): Remove.
8144         (allocate_initial_values): Move prototype to here from....
8145         * integrate.h (allocate_initial_values): Remove prototype.
8146         * integrate.c: Include reload.h.
8147         (allocate_initial_values): Corresponding changes.
8148         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8149         (fix_reg_equiv_init, no_equiv): Corresponding changes.
8150         (update_equiv_regs): Corresponding changes.
8151         (ira): Corresponding changes.
8152         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8153         (push_secondary_reload): Corresponding changes.
8154         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8155         (make_memloc, find_reloads_address): Corresponding changes.
8156         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8157         (find_reloads_address_1): Corresponding changes.
8158         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8159         (refers_to_regno_for_reload_p): Corresponding changes.
8160         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8161         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8162         * reload1.c: Include ggc.h.
8163         (grow_reg_equivs): New function.
8164         (replace_pseudos_in, reload): Corresponding changes.
8165         (calculate_needs_all_insns, alter_regs): Corresponding changes.
8166         (eliminate_regs_1, elimination_effects): Corresponding changes.
8167         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8168         (delete_output_reload): Likewise.
8169         * caller-save.c (mark_referenced_regs): Corresponding changes.
8170         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8171         * frv/predicates.md (frv_load_operand): Corresponding changes.
8172         * microblaze/microblaze.c (double_memory_operand): Corresponding
8173         changes.
8174         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8175         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8176         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8177         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8178         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8179         changes.
8180         * pa/pa.c (emit_move_sequence): Corresponding changes.
8181         * vax/vax.c (nonindexed_address_p): Corresponding changes.
8182
8183 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8184
8185         PR target/47551
8186         * config/arm/arm.c (coproc_secondary_reload_class): Handle
8187         structure modes.  Don't check neon_vector_mem_operand for
8188         vector or structure modes.
8189
8190 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8191             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8192
8193         PR target/43590
8194         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8195         operand 1 and reshuffle the operands to match.
8196         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8197
8198 2011-03-30  Christian Schüler  <cschueler@gmx.de>
8199
8200         PR driver/48208
8201         * config/c.opt (F): Added 'Driver' to -F option.
8202
8203         PR driver/48260
8204         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8205           handler function.
8206         * config/darwin.opt: Added '-arch' option.
8207
8208 2011-03-30  Nick Clifton  <nickc@redhat.com>
8209
8210         * config/rx/rx.md: Add peepholes and patterns to combine
8211         extending loads and simple arithmetic instructions.
8212         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8213         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8214         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8215         modes to use pre-decrement and post-increment addressing.
8216         (rx_is_restricted_memory_address): Add range checking of REG+INT
8217         addresses.
8218         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
8219         (rx_memory_move_cost): Adjust cost of stores.
8220         (rx_adjust_insn_length): New function.
8221
8222 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
8223
8224         PR c/48305
8225         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8226         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8227         matching arg00/arg01 types.
8228
8229 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
8230
8231         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8232         last_location to UNKNOWN_LOCATION.
8233
8234 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
8235
8236         PR target/48349
8237         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8238         FLOAT_SSE_REGS.
8239
8240 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8241             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8242
8243         PR bootstrap/48337
8244         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8245         Init(PROCESSOR_V7).
8246         (sparc_cpu): Likewise.
8247         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8248         PROCESSOR_V7.
8249
8250 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8251
8252         PR target/48336
8253         PR middle-end/48342
8254         PR rtl-optimization/48345
8255         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8256         hard regs for given mode from profitable regs when doing secondary
8257         allocation.
8258
8259 2011-03-29  Jeff Law  <law@redhat.com>
8260
8261         PR bootstrap/48327
8262         * tree-ssa-threadupdate.c (struct redirection_data): Remove
8263         do_not_duplicate field.
8264         (lookup_redirection_data): Corresponding changes.
8265         (create_duplicates): Always create a template block.
8266         (redirect_edges): Remove code which reused the original block
8267         when it was going to become unreachable code.
8268         (thread_block): Don't set do_not_duplicate field.
8269
8270 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
8271
8272         * lto-opts.c (register_user_option_p, lto_register_user_option):
8273         Make type argument unsigned.
8274         * lto-streamer.h (lto_register_user_option): Make type argument
8275         unsigned.
8276         * opth-gen.awk: Make CL_* macros unsigned.
8277         * opts-common.c (find_opt): Make lang_mask argument unsigned.
8278         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8279         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8280         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8281         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8282         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8283         (find_opt): Make lang_mask argument unsigned.
8284
8285 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8286
8287         PR rtl-optimization/48331
8288         PR rtl-optimization/48334
8289         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8290         for any used algorithm.
8291
8292 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8293
8294         * ira-conflicts.c (build_object_conflicts): Add unused attribute
8295         to parent_max.
8296
8297 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
8298
8299         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8300         (alpha_option_override): Don't set alpha_sr_alias_set.
8301         (emit_frame_store_1): Use gen_frame_mem rather than calling
8302         set_mem_alias_set.
8303         (alpha_expand_epilogue): Ditto.
8304
8305 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
8306
8307         PR tree-optimization/48290
8308         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8309         vectorization, check that relevant phis in the basic block after
8310         the inner loop are really inner loop's exit phis.
8311
8312 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
8313
8314         PR debug/48190
8315         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8316         (cached_dw_loc_list_def): New structure.
8317         (cached_dw_loc_list): New typedef.
8318         (cached_dw_loc_list_table): New variable.
8319         (cached_dw_loc_list_table_hash): New function.
8320         (cached_dw_loc_list_table_eq): Likewise.
8321         (add_location_or_const_value_attribute): Take a bool cache_p.
8322         Cache the list when the parameter is true.
8323         (gen_formal_parameter_die): Update caller.
8324         (gen_variable_die): Likewise.
8325         (dwarf2out_finish): Likewise.
8326         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8327         while generating debug info for the decl.
8328         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8329         (dwarf2out_init): Initialize cached_dw_loc_list_table.
8330         (resolve_addr): Cache the result of resolving a chain of
8331         location lists.
8332
8333 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
8334
8335         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8336         conflict object hard regset nodes have intersecting hard reg sets.
8337
8338         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8339         after regstat_init_n_sets_and_refs.
8340
8341         * ira.c: Add more comments at the top.
8342         (setup_stack_reg_pressure_class, setup_pressure_classes):
8343         Add comments how we compute the register pressure classes.
8344         (setup_allocno_and_important_classes): Add more comments.
8345         (setup_class_translate_array, reorder_important_classes)
8346         (setup_reg_class_relations): Add comments.
8347
8348         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
8349         start of the file.
8350
8351         * ira-color.c: Add 2011 to the Copyright line.
8352         (assign_hard_reg):  Add more comments.
8353         (improve_allocation): Ditto.
8354
8355         * ira-costs.c: Add 2011 to the Copyright line.
8356         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8357         comments.
8358         (setup_regno_cost_classes_by_mode): Ditto.
8359
8360         Initial patches from ira-improv branch:
8361
8362         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8363
8364         * ira-build.c (ira_create_object): Remove initialization of
8365         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
8366         (ira_create_allocno): Remove initialization of
8367         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8368         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8369         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8370         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8371         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8372         Initialize ALLOCNO_ADD_DATA.
8373         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8374         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8375         ALLOCNO_REG.
8376         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
8377         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8378
8379         * ira.c (ira_reallocate): Remove.
8380         (setup_pressure_classes): Call
8381         ira_init_register_move_cost_if_necessary.  Use
8382         ira_register_move_cost instead of ira_get_register_move_cost.
8383         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8384         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8385
8386         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8387         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8388         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8389         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8390         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8391         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8392         Fix formatting.
8393         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8394         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8395         (struct allocno_color_data): New.
8396         (allocno_color_data_t): New typedef.
8397         (allocno_color_data): New definition.
8398         (ALLOCNO_COLOR_DATA): New macro.
8399         (struct object_color_data): New.
8400         (object_color_data_t): New typedef.
8401         (object_color_data): New definition.
8402         (OBJECT_COLOR_DATA): New macro.
8403         (update_copy_costs, calculate_allocno_spill_cost): Call
8404         ira_init_register_move_cost_if_necessary.  Use
8405         ira_register_move_cost instead of ira_get_register_move_cost.
8406         (move_spill_restore, update_curr_costs): Ditto.
8407         (allocno_spill_priority): Make it inline.
8408         (color_pass): Allocate and free allocno_color_dat and object_color_data.
8409         (struct coalesce_data, coalesce_data_t): New.
8410         (allocno_coalesce_data): New definition.
8411         (ALLOCNO_COALESCE_DATA): New macro.
8412         (merge_allocnos, coalesced_allocno_conflict_p): Use
8413         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8414         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8415         (coalesce_allocnos): Ditto.
8416         (setup_coalesced_allocno_costs_and_nums): Ditto.
8417         (collect_spilled_coalesced_allocnos): Ditto.
8418         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8419         (setup_slot_coalesced_allocno_live_ranges): Ditto.
8420         (coalesce_spill_slots): Ditto.
8421         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
8422         free allocno_coalesce_data.
8423
8424         * ira-conflicts.c: Fix formatting.
8425         (process_regs_for_copy): Call
8426         ira_init_register_move_cost_if_necessary.  Use
8427         ira_register_move_cost instead of ira_get_register_move_cost.
8428         (build_object_conflicts): Optimize.
8429
8430         * ira-costs.c (record_reg_classes): Optimize.  Call
8431         ira_init_register_move_cost_if_necessary.  Use
8432         ira_register_move_cost, ira_may_move_in_cost, and
8433         ira_may_move_out_cost instead of ira_get_register_move_cost and
8434         ira_get_may_move_cost.
8435         (record_address_regs): Ditto.
8436         (scan_one_insn): Optimize.
8437         (find_costs_and_classes): Optimize.
8438         (process_bb_node_for_hard_reg_moves): Call
8439         ira_init_register_move_cost_if_necessary.  Use
8440         ira_register_move_cost instead of ira_get_register_move_cost.
8441
8442         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8443         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8444         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8445         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8446         definitions.
8447         (ira_initiate_emit_data, ira_finish_emit_data)
8448         (create_new_allocno): New functions.
8449         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8450         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8451         Use ira_register_move_cost instead of ira_get_register_move_cost.
8452
8453         * ira-int.h: Fix some comments.
8454         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8455         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8456         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8457         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
8458         add_data.
8459         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
8460         bitfield after mode.  Make hard_regno a short int.  Make
8461         hard_regno short.  Remove first_coalesced_allocno and
8462         next_coalesced_allocno.  Move mem_optimized_dest_p,
8463         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8464         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
8465         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8466         temp, colorable_p.  Add new member add_data.
8467         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8468         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8469         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8470         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8471         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8472         (ALLOCNO_ADD_DATA): New macro.
8473         (ira_emit_data_t): New typedef.
8474         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
8475         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8476         from struct ira_allocno.
8477         (ALLOCNO_EMIT_DATA): New macro.
8478         (ira_allocno_emit_data, allocno_emit_reg): New.
8479         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8480         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8481         (OBJECT_ADD_DATA): New macro.
8482         (ira_reallocate): Remove.
8483         (ira_initiate_emit_data, ira_finish_emit_data): New.
8484         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8485         (ira_init_register_move_cost_if_necessary): New.
8486         (ira_object_conflict_iter_next): Merge into
8487         ira_object_conflict_iter_cond.
8488         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8489
8490         * ira-live.c (process_single_reg_class_operands): Call
8491         ira_init_register_move_cost_if_necessary.  Use
8492         ira_register_move_cost instead of ira_get_register_move_cost.
8493
8494         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8495
8496         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8497
8498         * ira-costs.c: Fix formatting.
8499         (cost_classes, cost_classes_num): Remove.
8500         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8501         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8502         (cost_classes_del, cost_classes_htab): New.
8503         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8504         (initiate_regno_cost_classes, setup_cost_classes): New.
8505         (setup_regno_cost_classes_by_aclass): New.
8506         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8507         (record_reg_classes): Use regno_cost_classes instead of
8508         cost_classes.  Move checking opposite operand up.
8509         (record_address_regs): Use regno_cost_classes
8510         instead of cost_classes.
8511         (scan_one_insn): Ditto.  Use always general register.
8512         (print_allocno_costs): Use regno_cost_classes instead of
8513         cost_classes.
8514         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
8515         (find_costs_and_classes): Set up cost classes for each registers.
8516         Use also their mode for this.  Use regno_cost_classes instead of
8517         cost_classes.
8518         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8519         cost_classes.
8520         (free_ira_costs, ira_init_costs): Don't use cost_classes.
8521         (ira_costs, ira_set_pseudo_classes): Call
8522         initiate_regno_cost_classes and finish_regno_cost_classes.
8523
8524         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
8525
8526         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8527
8528         * target.def (ira_cover_classes): Remove.
8529
8530         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8531
8532         * doc/tm.texi.in: Ditto.
8533
8534         * ira-conflicts.c: Remove mentioning cover classes from the file.
8535         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
8536         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
8537
8538         * targhooks.c (default_ira_cover_classes): Remove.
8539
8540         * targhooks.h (default_ira_cover_classes): Ditto.
8541
8542         * haifa-sched.c: Remove mentioning cover classes from the file.
8543         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8544         ira_pressure_classes and ira_pressure_classes_num instead of
8545         ira_reg_class_cover_size and ira_reg_class_cover.  Use
8546         sched_regno_pressure_class instead of sched_regno_cover_class.
8547         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8548         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8549
8550         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
8551         classes from the file.
8552         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8553         (struct object_hard_regs, struct object_hard_regs_node): New.
8554         (struct ira_object): New members profitable_hard_regs,
8555         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8556         (struct ira_allocno): Rename cover_class to aclass.  Rename
8557         cover_class_cost and updated_cover_class_cost to class_cost and
8558         updated_class_cost.  Remove splay_removed_p and
8559         left_conflict_size.  Add new members colorable_p.
8560         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8561         (ALLOCNO_COLORABLE_P): New macro.
8562         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8563         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8564         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8565         (OBJECT_...): Rename parameter C to O.
8566         (OBJECT_PROFITABLE_HARD_REGS): New macro.
8567         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8568         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8569         (struct target_ira_int): New members x_ira_max_memory_move_cost,
8570         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8571         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8572         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8573         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
8574         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
8575         x_ira_reg_class_subunion.
8576         (ira_max_memory_move_cost, ira_max_register_move_cost)
8577         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8578         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8579         (ira_important_class_nums, ira_reg_class_superunion): New macros.
8580         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8581         (ira_reg_class_union): Rename to ira_reg_class_subunion.
8582         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8583         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8584         (ira_tune_allocno_costs_and_cover_classes): Rename to
8585         ira_tune_allocno_costs.
8586         (ira_debug_hard_regs_forest): New.
8587         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8588         (ira_object_conflict_iter_next): Fix comments.
8589         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8590         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8591         cover_class to aclass.
8592         (ira_allocate_and_accumulate_costs): Ditto.
8593         (ira_allocate_and_set_or_copy_costs): Ditto.
8594
8595         * opts.c (decode_options): Remove ira_cover_class check.
8596
8597         * ira-color.c: Remove mentioning cover classes from the file.  Use
8598         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8599         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8600         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8601         (splay-tree.h): Remove include.
8602         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8603         before copy_freq_compare_func.
8604         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8605         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8606         New definitions.
8607         (hard_regs_roots, hard_regs_node_vec): Ditto.
8608         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8609         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8610         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8611         (create_new_object_hard_regs_node): Ditto.
8612         (add_new_object_hard_regs_node_to_forest): Ditto.
8613         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8614         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8615         Ditto.
8616         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8617         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8618         (remove_unused_object_hard_regs_nodes): Ditto.
8619         (enumerate_object_hard_regs_nodes): Ditto.
8620         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8621         (object_hard_regs_subnode_t): Ditto.
8622         (struct object_hard_regs_subnode): Ditto.
8623         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8624         (setup_object_hard_regs_subnode_index): Ditto.
8625         (get_object_hard_regs_subnodes_num): Ditto.
8626         (form_object_hard_regs_nodes_forest): Ditto.
8627         (finish_object_hard_regs_nodes_tree): Ditto.
8628         (finish_object_hard_regs_nodes_forest): Ditto.
8629         (allocnos_have_intersected_live_ranges_p): Rename to
8630         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8631         (pseudos_have_intersected_live_ranges_p): Rename to
8632         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8633         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8634         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8635         (update_copy_costs): Remove assert.  Skip cost update if the hard
8636         reg does not belong the class.
8637         (assign_hard_reg): Process only profitable hard regs.
8638         (uncolorable_allocnos_num): Make it scalar.
8639         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8640         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8641         and ira_reg_class_max_nregs.
8642         (bucket_allocno_compare_func): Check frequency first.
8643         (sort_bucket): Add compare function as a parameter.
8644         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8645         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8646         (push_allocno_to_stack): Rewrite for checking new allocno
8647         colorability.
8648         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
8649         (push_only_colorable): Pass new parameter to sort_bucket.
8650         (push_allocno_to_spill): Remove.
8651         (allocno_spill_priority_compare): Make it inline and rewrite.
8652         (splay_tree_allocate, splay_tree_free): Remove.
8653         (allocno_spill_sort_compare): New function.
8654         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
8655         build and use splay tree.  Choose first allocno in uncolorable
8656         allocno bucket to spill.  Remove setting spill cost.
8657         (all_conflicting_hard_regs): Remove.
8658         (setup_allocno_available_regs_num): Check only profitable hard
8659         regs.  Print info about hard regs nodes.
8660         (setup_allocno_left_conflicts_size): Remove.
8661         (put_allocno_into_bucket): Don't call
8662         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
8663         (improve_allocation): New.
8664         (color_allocnos): Call setup_profitable_hard_regs,
8665         form_object_hard_regs_nodes_forest, improve_allocation,
8666         finish_object_hard_regs_nodes_forest.  Setup spill cost.
8667         (print_loop_title): Use pressure classes.
8668         (color_allocnso): Ditto.
8669         (do_coloring): Remove allocation and freeing splay_tree_node_pool
8670         and allocnos_for_spilling.
8671         (ira_sort_regnos_for_alter_reg): Don't setup members
8672         {first,next}_coalesced_allocno.
8673         (color): Remove allocating and freeing removed_splay_allocno_vec.
8674         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8675         prohibited_class_mode_regs.
8676
8677         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
8678         formatting.
8679         (update_allocno_pressure_excess_length): Use pressure classes.
8680         (inc_register_pressure, dec_register_pressure): Check for pressure
8681         class.
8682         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8683         pressure class.  Use ira_reg_class_nregs instead of
8684         ira_reg_class_max_nregs.
8685         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8686         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8687         (single_reg_class): Use ira_reg_class_nregs instead of
8688         ira_reg_class_max_nregs.
8689         (process_bb_node_lives): Use pressure classes.
8690
8691         * ira-emit.c: Remove mentioning cover classes from the file.  Use
8692         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8693         (change_loop): Use pressure classes.
8694         (modify_move_list): Call ira_set_allocno_class instead of
8695         ira_set_allocno_cover_class.
8696
8697         * ira-build.c: Remove mentioning cover classes from the file.  Use
8698         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8699         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
8700         ALLOCNO_UPDATED_CLASS_COST instead of
8701         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8702         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8703         (ira_create_allocno): Remove initialization of
8704         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
8705         ALLOCNO_COLORABLE_P.
8706         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8707         Update conflict regs for the objects.
8708         (create_cap_allocno): Remove assert.  Don't propagate
8709         ALLOCNO_AVAILABLE_REGS_NUM.
8710         (ira_free_allocno_costs): New function.
8711         (finish_allocno): Change a part of code into call of
8712         ira_free_allocno_costs.
8713         (low_pressure_loop_node_p): Use pressure classes.
8714         (object_range_compare_func): Don't compare classes.
8715         (setup_min_max_conflict_allocno_ids): Ditto.
8716
8717         * loop-invariant.c: Remove mentioning cover classes from the file.
8718         Use ira_pressure_classes and ira_pressure_classes_num instead of
8719         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
8720         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8721         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8722         Use reg_allocno_class instead of reg_cover_class.
8723         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8724         STACK_REG_COVER_CLASS.
8725         (get_regno_cover_class): Rename to get_regno_pressure_class.
8726         (move_loop_invariants): Initialize and finalize regstat.
8727
8728         * ira.c: Remove mentioning cover classes from the file.  Add
8729         comments about coloring without cover classes.  Use ALLOCNO_CLASS
8730         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8731         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8732         setup_class_subset_and_memory_move_costs.
8733         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8734         (setup_cover_and_important_classes): Rename to
8735         setup_allocno_and_important_classes.
8736         (setup_class_translate_array): New.
8737         (setup_class_translate): Call it for allocno and pressure classes.
8738         (cover_class_order): Rename to allocno_class_order.
8739         (comp_reg_classes_func): Use ira_allocno_class_translate instead
8740         of ira_class_translate.
8741         (reorder_important_classes): Set up ira_important_class_nums.
8742         (setup_reg_class_relations): Set up ira_reg_class_superunion.
8743         (print_class_cover): Rename to print_classes.  Add parameter.
8744         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8745         Print pressure classes too.
8746         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
8747         setup_reg_subclasses.
8748         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8749         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8750         (setup_prohibited_class_mode_regs): Use
8751         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8752         (clarify_prohibited_class_mode_regs): New function.
8753         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8754         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8755         (ira_init_once): Initialize them.
8756         (free_register_move_costs): Process them.
8757         (ira_init): Move calls of find_reg_classes and
8758         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8759         Call clarify_prohibited_class_mode_regs.
8760         (ira_no_alloc_reg): Remove.
8761         (too_high_register_pressure_p): Use pressure classes.
8762
8763         * sched-deps.c: Remove mentioning cover classes from the file.
8764         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8765         ira_pressure_classes and ira_pressure_classes_num instead of
8766         ira_reg_class_cover_size and ira_reg_class_cover.
8767         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8768         sched_regno_pressure_class instead of sched_regno_cover_class.
8769         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
8770         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8771
8772         * ira.h: Add 2010 to Copyright.
8773         (ira_no_alloc_reg): Remove external.
8774         (struct target_ira): Rename x_ira_hard_regno_cover_class,
8775         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8776         x_ira_class_translate to x_ira_hard_regno_allocno_class,
8777         x_ira_allocno_classes_num, x_ira_allocno_classes, and
8778         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
8779         x_ira_pressure_classes, x_ira_pressure_class_translate, and
8780         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
8781         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
8782         x_ira_no_alloc_regs.
8783         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8784         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8785         ira_allocno_classes_num and ira_allocno_classes.
8786         (ira_class_translate): Rename to ira_allocno_class_translate.
8787         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8788         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8789         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8790         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8791         (ira_no_alloc_regs): New.
8792
8793         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
8794         classes from the file.  Use ALLOCNO_CLASS instead of
8795         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
8796         ALLOCNO_COVER_CLASS_COST.
8797         (regno_cover_class): Rename to regno_aclass.
8798         (record_reg_classes): Use ira_reg_class_subunion instead of
8799         ira_reg_class_union.
8800         (record_address_regs): Check overflow.
8801         (scan_one_insn): Ditto.
8802         (print_allocno_costs): Print total mem cost fore regional allocation.
8803         (print_pseudo_costs): Use REG_N_REFS.
8804         (find_costs_and_classes): Use classes intersected with them on the
8805         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
8806         ira_reg_class_union.  Use ira_allocno_class_translate and
8807         regno_aclass instead of ira_class_translate and regno_cover_class.
8808         Modify code for finding regno_aclass.  Setup preferred classes for
8809         the next pass.
8810         (setup_allocno_cover_class_and_costs): Rename to
8811         setup_allocno_class_and_costs.  Use regno_aclass instead of
8812         regno_cover_class.  Use ira_set_allocno_class instead of
8813         ira_set_allocno_cover_class.
8814         (init_costs, finish_costs): Use regno_aclass instead of
8815         regno_cover_class.
8816         (ira_costs): Use setup_allocno_class_and_costs instead of
8817         setup_allocno_cover_class_and_costs.
8818         (ira_tune_allocno_costs_and_cover_classes): Rename to
8819         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
8820         by processing objects.  Use ira_reg_class_max_nregs instead of
8821         ira_reg_class_nregs.
8822
8823         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8824
8825         * sched-int.h: Remove mentioning cover classes from the file.
8826         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8827
8828         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
8829         classes from the file.
8830         (struct reg_pref): Rename coverclass into allocnoclass.
8831         (reg_cover_class): Rename to reg_allocno_class.
8832
8833         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8834
8835         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8836
8837         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8838
8839         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8840
8841         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8842
8843         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8844
8845         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8846
8847         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8848
8849         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8850
8851         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8852
8853         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8854         (i386_ira_cover_classes): Ditto.
8855
8856         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8857
8858         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8859
8860         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8861
8862         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8863
8864         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8865
8866         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8867
8868         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8869         (mips_ira_cover_classes): Ditto.
8870
8871         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8872
8873         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8874
8875         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8876
8877         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8878
8879         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8880
8881         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8882         (IRA_COVER_CLASSES_VSX): Ditto.
8883
8884         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8885         (rs6000_ira_cover_classes): Ditto.
8886
8887         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8888
8889         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8890
8891         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8892
8893         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8894
8895         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8896
8897         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8898
8899         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8900
8901         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8902
8903         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8904
8905         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8906
8907 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8908
8909         PR debug/48253
8910         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8911         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8912         dw_fde_unlikely_section_end_label, cold_in_std_section,
8913         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8914         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8915         fields.
8916         (output_fde): Use dw_fde_second_{begin,end} if second is
8917         true, otherwise dw_fde_{begin,end}.
8918         (output_call_frame_info): Test dw_fde_second_begin != NULL
8919         instead of dw_fde_switched_sections.
8920         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8921         fields, initialize new fields.  Initialize in_std_section
8922         unconditionally from the first partition.
8923         (dwarf2out_end_epilogue): Don't override dw_fde_end when
8924         dw_fde_second_begin is non-NULL.
8925         (dwarf2out_switch_text_section): Stop initializing removed
8926         dw_fde_struct fields, initialize new fields, initialize
8927         also dw_fde_end here.  Set dw_fde_switch_cfi even when
8928         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
8929         (struct var_loc_list_def): Add last_before_switch field.
8930         (arange_table, arange_table_allocated, arange_table_in_use,
8931         ARANGE_TABLE_INCREMENT, add_arange): Removed.
8932         (size_of_aranges): Count !in_std_section and !second_in_std_section
8933         hunks in fdes, instead of looking at arange_table_in_use.
8934         (output_aranges): Add aranges_length argument, don't call
8935         size_of_aranges here.  Instead of using aranges_table*
8936         emit ranges for fdes when !in_std_section resp.
8937         !second_in_std_section.
8938         (dw_loc_list): Break ranges crossing section switch.
8939         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
8940         use dw_fde_second_end instead of dw_fde_end as end of last range.
8941         (gen_subprogram_die): Don't call add_arange.  Use
8942         dw_fde_{begin,end} for first partition and if switched
8943         section dw_fde_second_{begin,end} for the second.
8944         (var_location_switch_text_section_1,
8945         var_location_switch_text_section): New functions.
8946         (dwarf2out_begin_function): Initialize cold_text_section even
8947         when function_section () isn't text_section.
8948         (prune_unused_types): Don't walk arange_table.
8949         (dwarf2out_finish): Don't needlessly test
8950         flag_reorder_blocks_and_partition when testing cold_text_section_used.
8951         If info_section_emitted, call size_of_aranges and if it indicates
8952         non-empty .debug_aranges, call output_aranges with the computed
8953         size.  Stop using removed dw_fde_struct fields, use
8954         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8955         for second.
8956
8957         PR debug/48203
8958         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8959         create ENTRY_VALUE if incoming or address of incoming's MEM
8960         is a hard REG.
8961         * dwarf2out.c (mem_loc_descriptor): Don't emit
8962         DW_OP_GNU_entry_value of DW_OP_fbreg.
8963         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8964         on ENTRY_VALUE is able to find the canonical parameter VALUE.
8965         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8966         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8967         ENTRY_VALUE_EXPs.
8968         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8969         is a REG_P or MEM_P with REG_P address, compute hash directly
8970         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8971         (preserve_only_constants): Don't clear VALUES forwaring
8972         ENTRY_VALUE to some other VALUE.
8973
8974 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
8975
8976         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8977         instead of GEN_INT.
8978
8979 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8980
8981         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8982         block before expanding the statement.
8983         (expand_gimple_stmt_1): Likewise.  Set them here...
8984         (expand_gimple_stmt): ...and not here.  Tidy.
8985         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8986         unknown.
8987
8988 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8989
8990         * Makefile.in: New rule for cprop.o.
8991         * gcse.c: Move constant/copy propagation to cprop.c.
8992         (compute_local_properties): Only handle expression tables.
8993         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8994         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8995         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8996         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8997         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8998         compute_cprop_data, find_used_regs, try_replace_reg,
8999         find_avail_set, cprop_jump, constprop_register, cprop_insn,
9000         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
9001         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
9002         find_bypass_set, reg_killed_on_edge, bypass_block,
9003         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
9004         execute_rtl_cprop, pass_rtl_cprop): Move to...
9005         * cprop.c: ...here.  New file, constant/copy propagation for RTL
9006         moved from gcse.c to here with minor cleanups in duplicated code.
9007
9008 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
9009
9010         * config/i386/i386.c (flag_opts): Fix a typo in
9011         -mavx256-split-unaligned-store.
9012
9013 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
9014
9015         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
9016         LIBCALL_VALUE): Remove macros.
9017         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9018         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9019         (h8300_function_value, h8300_libcall_value,
9020         h8300_function_value_regno_p): New functions.
9021
9022 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
9023
9024         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
9025
9026 2011-03-28  Jeff Law  <law@redhat.com>
9027
9028         * tree-ssa-threadupdate.c (redirect_edges): Call
9029         create_edge_and_update_destination_phis as needed.
9030         (create_edge_and_update_destination_phis): Accept new BB argument.
9031         All callers updated.
9032         (thread_block): Do not update the profile when threading around
9033         intermediate blocks.
9034         (thread_single_edge): Likewise.
9035         (determine_bb_domination_status): If BB is not a successor of the
9036         loop header, return NONDOMINATING.
9037         (register_jump_thread): Note when we register a jump thread around
9038         an intermediate block.
9039         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
9040         (thread_across_edge): Use it.
9041
9042 2011-03-28  Tristan Gingold  <gingold@adacore.com>
9043
9044         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
9045         when for_return is 2.
9046
9047 2011-03-28  Jeff Law  <law@redhat.com>
9048
9049         * var-tracking.c (canonicalize_values_mark): Delete unused
9050         lhs assignment.
9051         (canonicalize_values_star, set_variable_part): Likewise.
9052         (clobber_variable_part, delete_variable_part): Likewise.
9053
9054 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
9055
9056         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
9057
9058 2011-03-28  Martin Jambor  <mjambor@suse.cz>
9059
9060         * tree-inline.c (expand_call_inline): Do not check that destination
9061         node is analyzed.
9062         (optimize_inline_calls): Assert that destination node is analyzed.
9063         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
9064         not call tree_lowering_passes.
9065         * cgraph.h (cgraph_analyze_function): Declare.
9066         * cgraphunit.c (cgraph_analyze_function): Make public.
9067
9068 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
9069
9070         * config/sparc/sparc-opts.h: New.
9071         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
9072         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
9073         (sparc_option_override): Store processor_type enumeration rather
9074         than string in cpu_default.  Remove name and enumeration from
9075         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
9076         without using sparc_select.  Use target_flags_explicit instead of
9077         fpu_option_set.
9078         * config/sparc/sparc.h (enum processor_type): Move to
9079         sparc-opts.h.
9080         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
9081         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
9082         HeaderInclude entry.
9083         (mcpu=, mtune=): Use Var and Enum.
9084         (sparc_processor_type): New Enum and EnumValue entries.
9085
9086 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9087             Iain Sandoe  <iains@gcc.gnu.org>
9088
9089         PR target/48245
9090         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9091
9092 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
9093
9094         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9095         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9096         Insert new statements at it in lieu of STMT.
9097         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9098         * tree-vect-stmts.c (vectorizable_store): Likewise.
9099         (vectorizable_load): Likewise.
9100
9101 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
9102
9103         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9104         (divtf3): Ditto.
9105         (multf3): Ditto.
9106         (subtf3): Ditto.
9107
9108 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9109
9110         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9111         unaligned 256bit load/store.
9112         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9113         (*avx_movdqu<avxmodesuffix>): Likewise.
9114
9115 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9116
9117         PR target/48288
9118         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9119         * config/pa/pa.md (iordi3): Use new predicate in expander.
9120         (iorsi3): Likewise.
9121
9122 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
9123
9124         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9125         FUNCTION_VALUE_REGNO_P): Remove macros.
9126         * config/mips/mips-protos.h (mips_function_value): Remove.
9127         * config/mips/mips.c (mips_function_value): Rename to...
9128         (mips_function_value_1): ... this. Make static.  Handle receiving
9129         the function type in 'fn_decl_or_type' argument.
9130         (mips_function_value, mips_libcall_value,
9131         mips_function_value_regno_p): New function.
9132         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9133         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9134
9135 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9136
9137         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9138         and -mavx256-split-unaligned-store.
9139         (ix86_option_override_internal): Split 32-byte AVX unaligned
9140         load/store by default.
9141         (ix86_avx256_split_vector_move_misalign): New.
9142         (ix86_expand_vector_move_misalign): Use it.
9143
9144         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9145         -mavx256-split-unaligned-store.
9146
9147         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9148         256bit load/store.  Generate unaligned store on misaligned memory
9149         operand.
9150         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9151         256bit load/store.
9152         (*avx_movdqu<avxmodesuffix>): Likewise.
9153
9154         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9155         -mavx256-split-unaligned-store.
9156
9157 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9158
9159         PR target/38598
9160         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9161         Update commentary.
9162
9163 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9164
9165         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9166         opno arguments with an expand_operand.  Use create_input_operand.
9167         (mips_prepare_builtin_target): Delete.
9168         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9169         functions.
9170         (mips_expand_builtin_direct): Use create_output_operand and
9171         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
9172         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
9173         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9174
9175 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
9176
9177         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9178         function.
9179         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9180
9181 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
9182
9183         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9184         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
9185         basic blocks and call commit_edge_insertions directly.
9186         (fixup_abnormal_edges): Move from here to...
9187         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
9188         on the edges and return whether some have actually been inserted.
9189         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9190         compensation code.
9191
9192 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
9193
9194         PR rtl-optimization/48144
9195         * sel-sched-ir.c (merge_history_vect): Factor out from ...
9196         (merge_expr_data): ... here.
9197         (av_set_intersect): Rename to av_set_code_motion_filter.
9198         Update all callers.  Call merge_history_vect when an expression
9199         is found in both sets.
9200         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9201
9202 2011-03-26  Alan Modra  <amodra@gmail.com>
9203
9204         * config/rs6000/predicates.md (word_offset_memref_op): Handle
9205         cmodel medium addresses.
9206         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9207         64-bit gpr loads and stores.
9208         (rs6000_secondary_reload_ppc64): New function.
9209         * config/rs6000/rs6000-protos.h: Declare it.
9210         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9211
9212 2011-03-26  Alan Modra  <amodra@gmail.com>
9213
9214         PR target/47487
9215         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9216         GNU Go in traceback table.
9217
9218 2011-03-25  Richard Henderson  <rth@redhat.com>
9219
9220         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9221         if there are exactly 6 operands.
9222         (set_storage_via_setmem): Similarly.
9223
9224 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9225
9226         * collect2.c (write_c_file_stat): Handle backslash
9227         as right-hand directory separator.
9228         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9229         checking just for slash.
9230         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9231         instead of checking for trailing slash.
9232         * gcc.c (record_temp_file): Use filename_cmp instead
9233         of strcmp.
9234         (do_spec_1): Likewise.
9235         (replace_outfile_spec_function): Likewise.
9236         (is_directory): Use filename_ncmp instead of strncmp.
9237         (print_multilib_info): Likewise.
9238         * gcov.c (find_source): Use filename_cmp instead
9239         instead of strcmp.
9240         (make_gcov_file_name): Fix order of slash/backslash
9241         checks.
9242         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9243         (add_standard_paths): Likewise.
9244         * mips-tfile.c (saber_stop): Handle backslash.
9245         * prefix.c (update_path): Use filename_ncmp instead of
9246         strncmp.
9247         * profile.c (output_location): Use filename_cmp instead
9248         of strcmp.
9249         * read-md.c (handle_toplevel_file): Handle backslash.
9250         * tlink.c (frob_extension):  Likewise.
9251         * tree-cfg.c (same_line_p): Use filename_cmp instead of
9252         strcmp.
9253         * tree-dump.c (dequeue_and_dump): Handle backslash.
9254         * tree.c (get_file_function_name): Likewise.
9255         * gengtype.c (read_input_list): Likewise.
9256         (get_file_realbasename): Likewise.
9257         (get_output_file_with_visibility): Use filename_cmp
9258         instead of strcmp.
9259
9260 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
9261
9262         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9263         case to VFPv1.
9264
9265 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9266
9267         * fold-const.c (expr_location_or): New function.
9268         (fold_truth_not_expr): Call it.
9269
9270 2011-03-25  Jeff Law  <law@redhat.com>
9271
9272         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9273         va_end.
9274         * c-family/c-common.c (def_fn_type): Likewise.
9275         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9276         * emit-rtl.c (gen_rtvec): Likewise.
9277         * lto/lto-lang.c (def_fn_type): Likewise.
9278
9279 2011-03-25  Richard Guenther  <rguenther@suse.de>
9280
9281         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9282         also generate copies.
9283         (fini_copy_prop): Handle constant values properly.
9284
9285 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
9286
9287         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9288         mode size instead of bitsize with DWARF2_ADDR_SIZE.
9289         (hash_loc_operands, compare_loc_operands): Handle
9290         DW_OP_GNU_entry_value.
9291
9292 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9293
9294         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9295         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9296         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9297         comment and use macro TARGET_64BIT_MS_ABI instead.
9298         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9299         and change default behavior for 32-bit MS_ABI.
9300         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9301         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9302         32-bit, too.
9303         (ix86_cfun_abi): Likewise.
9304         (ix86_maybe_switch_abi): Adjust comment.
9305         (init_cumulative_args): Check for bit-ness in MS_ABI case.
9306         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9307         instead of checking for SYSV_ABI.
9308         (ix86_nsaved_sseregs): Likewise.
9309         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9310         to 16 bytes.
9311         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9312         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9313         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9314         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9315         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9316
9317 2011-03-25  Richard Guenther  <rguenther@suse.de>
9318
9319         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9320         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9321         (verify_gimple): Remove.
9322         * tree-cfg.c (verify_gimple_call): Merge verification
9323         from verify_stmts.
9324         (verify_gimple_phi): Merge verification from verify_stmts.
9325         (verify_gimple_label): New function.
9326         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9327         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9328         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9329         (verify_stmts): Rename to verify_gimple_in_cfg.
9330         (verify_gimple_in_cfg): New function.
9331         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9332         * tree-ssa.c (verify_ssa): Likewise.
9333         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9334
9335 2011-03-25  Richard Guenther  <rguenther@suse.de>
9336
9337         * passes.c (init_optimization_passes): Add FRE pass after
9338         early SRA.
9339
9340 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
9341             Andrew Stubbs  <ams@codesourcery.com>
9342
9343         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9344         for Cortex-A8.
9345         (arm_movdi_vfp_cortexa8): New pattern.
9346         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9347         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9348         instructions when tuning for Cortex-A8.  Set attribute "arch".
9349         * config/arm/arm.md: Move include arm-tune.md up a bit.
9350         (define_attr "arch"): Add "onlya8" and "nota8" values.
9351         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9352
9353 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9354
9355         PR bootstrap/48282
9356         Revert:
9357         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9358
9359         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9360         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9361         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9362         * passes.c (init_optimization_passes): Move
9363         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9364
9365 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9366
9367         * c-typeck.c (comptypes_internal): Replace target
9368         hook call of comp_type_attributes by version in tree.c file.
9369         * gimple.c (gimple_types_compatible_p_1): Likewise.
9370         * tree-ssa.c (useless_type_conversion_p): Likewise.
9371         * tree.c (build_type_attribute_qual_variant): Likewise.
9372         (attribute_value_equal): New static helper function.
9373         (comp_type_attributes): New function.
9374         (merge_attributes): Use attribute_value_equal for comparison.
9375         (attribute_list_contained): Likewise.
9376         * tree.h (comp_type_attributes): New prototype.
9377
9378 2011-03-25  Richard Guenther  <rguenther@suse.de>
9379
9380         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9381         of complex types at -O0.
9382         (verify_gimple_assign_binary): Likewise.
9383         (verify_gimple_assign_ternary): Likewise.
9384
9385 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9386
9387         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9388         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9389
9390 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9391
9392         PR debug/48041
9393         * dwarf2out.c (output_abbrev_section): Only write table when
9394         abbrev_die_table_in_use > 1.
9395
9396 2011-02-24  Richard Henderson  <rth@redhat.com>
9397
9398         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9399         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9400         (alpha_expand_unaligned_load_words): Use extql.
9401         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9402         (emit_insxl): Handle all modes for consistency.
9403
9404 2011-02-24  Richard Henderson  <rth@redhat.com>
9405
9406         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9407         (alpha_expand_unaligned_load): Likewise.
9408         (alpha_expand_unaligned_store): Likewise.
9409         (alpha_expand_unaligned_load_words): Likewise.
9410         (alpha_expand_unaligned_store_words): Likewise.
9411         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9412         (alpha_split_lock_test_and_set_12): Likewise.
9413         (print_operand, alpha_fold_builtin_extxx): Likewise.
9414         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9415         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9416         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9417         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9418         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9419         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9420         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9421         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9422         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9423         (extwl, extll, extql): Similarly.
9424         (inswh, inslh, insqh): Similarly.
9425         (mskbl, mskwl, mskll, mskql): Similarly.
9426         (mskwh, msklh, mskqh): Similarly.
9427
9428 2011-02-24  Richard Henderson  <rth@redhat.com>
9429
9430         * config/alpha/alpha.md (attribute isa): Add er, ner.
9431         (attribute enabled): Handle them.
9432         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9433
9434 2011-02-24  Richard Henderson  <rth@redhat.com>
9435
9436         * config/alpha/alpha.md (attribute isa): Add vms.
9437         (attribute enabled): Handle it.
9438         (*movsf): Merge *movsf_{nofix,fix,nofp}.
9439         (*movdf): Merge *movdf_{nofix,fix,nofp}.
9440         (*movtf): Rename from *movtf_internal for consistency.
9441         (*movsi): Merge with *movsi_nt_vms.
9442         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9443         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9444         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9445         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9446
9447 2011-02-24  Richard Henderson  <rth@redhat.com>
9448
9449         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9450         (extendqisi2, extendhisi2): Likewise.
9451         (extendqidi2): Simplify BWX/non-BWX expansions.
9452         (extendhidi2): Similarly.
9453
9454 2011-02-24  Richard Henderson  <rth@redhat.com>
9455
9456         * config/alpha/alpha.md (attribute isa): New.
9457         (attribute enabled): New.
9458         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9459         (zero_extendqisi2, zero_extendqidi2): Similarly.
9460         (zero_extendhisi2, zero_extendhidi2): Similarly.
9461         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9462
9463 2011-02-24  Richard Henderson  <rth@redhat.com>
9464
9465         * config/alpha/predicates.md (input_operand): Revert last change;
9466         update comment to mention 32-bit VMS rather than Windows.
9467
9468 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9469
9470         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9471         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9472         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9473         * passes.c (init_optimization_passes): Move
9474         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9475
9476 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9477
9478         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9479
9480 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9481
9482         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9483         correctly.
9484
9485 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
9486
9487         PR debug/48204
9488         * simplify-rtx.c (simplify_const_unary_operation): Call
9489         real_convert when changing mode class with FLOAT_EXTEND.
9490
9491 2011-03-24  Nick Clifton  <nickc@redhat.com>
9492
9493         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9494         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9495         * config/rx/rx.c (rx_option_override): Set align_jumps,
9496         align_loops and align_labels if not set by the user.
9497         (rx_align_for_label): New function.
9498         (rx_max_skip_for_label): New function.
9499         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9500         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9501         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9502         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9503         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9504
9505 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9506
9507         PR rtl-optimization/48263
9508         * optabs.c (expand_binop_directly): Reinstate convert_modes code
9509         and original commutative_p handling.  Use maybe_gen_insn.
9510
9511 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9512
9513         * reload.c (find_reloads_subreg_address): Add address_reloaded
9514         parameter and return true there if the full address has been
9515         reloaded.
9516         (find_reloads_toplev): Pass address_reloaded flag.
9517         (find_reloads_address_1): Don't use address_reloaded parameter.
9518
9519 2011-03-24  Jeff Law  <law@redhat.com>
9520
9521         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9522         unused variable "ann".
9523         (remove_unused_locals): Likewise.
9524
9525         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9526         statement.
9527
9528         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9529         after it is freed.
9530
9531 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9532
9533         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9534         for invalid symbolic addresses.
9535         (s390_secondary_reload): Don't use s390_check_symref_alignment for
9536         larl operands.
9537
9538 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9539
9540         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9541         the argument in calls to fold_truth_not_expr.
9542
9543 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9544
9545         * tree.c (record_node_allocation_statistics): New function.
9546         (make_node_stat, copy_node_stat, build_string): Call it.
9547         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9548         (build1_stat, build_omp_clause): Likewise.
9549
9550 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9551
9552         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9553         last commit.
9554
9555 2011-03-24  Richard Guenther  <rguenther@suse.de>
9556
9557         PR tree-optimization/48271
9558         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9559         blocks that still exist.
9560
9561 2011-03-24  Richard Guenther  <rguenther@suse.de>
9562
9563         PR tree-optimization/48270
9564         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9565         not free datarefs before ddrs.
9566
9567 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9568
9569         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9570         from the address built for a reference with variable offset.
9571
9572 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9573
9574         PR target/48237
9575         * config/i386/i386.md (*movdf_internal_rex64): Do not split
9576         alternatives that can be handled with movq or movabsq insn.
9577         (*movdf_internal): Disable for !TARGET_64BIT.
9578         (*movdf_internal_nointeger): Ditto.
9579         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9580
9581 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9582
9583         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9584         (FUNCTION_ARG_ADVANCE): Likewise.
9585         * tm.texi.in: Change references to them to hook references.
9586         * tm.texi: Regenerate.
9587         * targhooks.c (default_function_arg): Eliminate check for target macro.
9588         (default_function_incoming_arg): Likewise.
9589         (default_function_arg_advance): Likewise.
9590         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9591         (function_arg_advance): Likewise.
9592         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9593
9594 2011-03-24  Richard Guenther  <rguenther@suse.de>
9595
9596         PR middle-end/48269
9597         * tree-object-size.c (addr_object_size): Do not double-account
9598         for MEM_REF offsets.
9599
9600 2011-03-24  Diego Novillo  <dnovillo@google.com>
9601
9602         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9603         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9604         (lto_input_data_block): Move from lto-opts.c.  Make extern.
9605         Update all users.
9606         (lto_input_string): Rename from input_string.  Make extern.
9607         Update all users.
9608         * lto-streamer-out.c (lto_output_string_with_length): Rename from
9609         output_string_with_length.
9610         Output 0 to indicate a non-NULL string.  Update all callers to
9611         not emit 0.
9612         (lto_output_string): Rename from output_string.  Make extern.
9613         Update all users.
9614         (lto_output_decl_state_streams): Make extern.
9615         (lto_output_decl_state_refs): Make extern.
9616         * lto-streamer.h (lto_input_string): Declare.
9617         (lto_input_data_block): Declare.
9618         (lto_output_string): Declare.
9619         (lto_output_string_with_length): Declare.
9620         (lto_output_decl_state_streams): Declare.
9621         (lto_output_decl_state_refs): Declare.
9622
9623 2011-03-24  Richard Guenther  <rguenther@suse.de>
9624
9625         PR tree-optimization/46562
9626         * tree.c (build_invariant_address): New function.
9627         * tree.h (build_invariant_address): Declare.
9628         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9629         a renamed function moved ...
9630         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9631         Take valueization callback parameter.
9632         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9633         * gimple-fold.h: New file.
9634         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9635         (ccp_fold, fold_const_aggregate_ref,
9636         fold_ctor_reference, fold_nonarray_ctor_reference,
9637         fold_array_ctor_reference, fold_string_cst_ctor_reference,
9638         get_base_constructor): Move ...
9639         * gimple-fold.c: ... here.
9640         (gimple_fold_stmt_to_constant_1): New function
9641         split out from ccp_fold.  Take a valueization callback parameter.
9642         Valueize all operands.
9643         (gimple_fold_stmt_to_constant): New wrapper function.
9644         (fold_const_aggregate_ref_1): New function split out from
9645         fold_const_aggregate_ref.  Take a valueization callback parameter.
9646         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9647         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9648         invariant POINTER_PLUS_EXPRs to invariant form.
9649         (vn_valueize): New function.
9650         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9651         * tree-vrp.c (vrp_valueize): New function.
9652         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9653         to fold statements to constants.
9654         * tree-ssa-pre.c (eliminate): Properly guard propagation of
9655         function declarations.
9656         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9657         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9658
9659 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9660
9661         * config/h8300/predicates.md (jump_address_operand): Fix register
9662         mode check.
9663
9664 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
9665
9666         * doc/invoke.texi (max-stores-to-sink): Document.
9667         * params.h (MAX_STORES_TO_SINK): Define.
9668         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9669         if either vectorization or if-conversion is disabled.
9670         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9671         tree-vect-data-refs.c vect_equal_offsets.
9672         (dr_equal_offsets_p): New function.
9673         (find_data_references_in_bb): Remove static.
9674         * tree-data-ref.h (find_data_references_in_bb): Declare.
9675         (dr_equal_offsets_p): Likewise.
9676         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9677         (vect_drs_dependent_in_basic_block): Update calls to
9678         vect_equal_offsets.
9679         (vect_check_interleaving): Likewise.
9680         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9681         (cond_if_else_store_replacement): Rename to...
9682         (cond_if_else_store_replacement_1): ... this.  Change arguments and
9683         documentation.
9684         (cond_if_else_store_replacement): New function.
9685         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9686         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9687
9688 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
9689
9690         PR target/46934
9691         * config/arm/arm.md (casesi): Use the gen_int_mode() function
9692         to subtract lower bound instead of GEN_INT().
9693
9694 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
9695
9696         PR other/48179
9697         PR other/48221
9698         PR other/48234
9699         * doc/extend.texi (Alignment): Move section to match order in TOC.
9700         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9701         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9702
9703 2011-03-23  Jeff Law  <law@redhat.com>
9704
9705         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9706         before removing the edge.
9707
9708         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9709         it may have been freed by redirect_branch_edge or
9710         redirect_edge_succ_nodup.
9711
9712 2011-03-23  Richard Guenther  <rguenther@suse.de>
9713
9714         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9715         (check_va_list_escapes): Likewise.
9716         (check_all_va_list_escapes): Likewise.
9717
9718 2011-03-23  Richard Guenther  <rguenther@suse.de>
9719
9720         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9721         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9722         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9723         (alias.o): Likewise.
9724         (ipa-type-escape.o): Remove.
9725         (ipa-struct-reorg.o): Likewise.
9726         (GTFILES): Remove ipa-struct-reorg.c.
9727         * alias.c: Do not include ipa-type-escape.h.
9728         * tree-ssa-alias.c: Likewise.
9729         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9730         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9731         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9732         and ipa-type-escape passes.
9733         * tree-pass.h (pass_ipa_type_escape): Remove.
9734         (pass_ipa_struct_reorg): Likewise.
9735         * ipa-struct-reorg.h: Remove.
9736         * ipa-struct-reorg.c: Likewise.
9737         * ipa-type-escape.h: Likewise.
9738         * ipa-type-escape.c: Likewise.
9739         * doc/invoke.texi (-fipa-struct-reorg): Remove.
9740         (--param struct-reorg-cold-struct-ratio): Likewise.
9741         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9742         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9743         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9744
9745 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9746
9747         * config/s390/2084.md: Enable all insn reservations also for z9_ec
9748         cpu attribute value.
9749         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9750         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9751         * config/s390/s390.c (processor_flags_table): New constant array.
9752         (s390_handle_arch_option): Remove.
9753         (s390_handle_option): Remove s390_handle_arch_option invocations
9754         and OPT_mwarn_framesize_ handling.
9755         (s390_option_override): Remove s390_handle_arch_option invocation.
9756         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9757         warnings.
9758         * config/s390/s390.md (cpu attribute): Add z9_ec value.
9759         * config/s390/s390.opt (s390_tune, s390_arch)
9760         (march=): Replace s390_arch_option enum and values with
9761         processor_type.  Set variable name to s390_arch.  Set
9762         initialization value.
9763         (mtune=): Replace s390_arch_option with processor_type.  Set
9764         variable name to s390_tune.  Set initialization value.
9765
9766 2011-03-23  Julian Brown  <julian@codesourcery.com>
9767
9768         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9769         accesses which are not naturally aligned.
9770
9771 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9772
9773         PR target/47553
9774         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9775
9776 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9777
9778         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9779         parameter from "int" to "enum insn_code".
9780         (expand_operand_type): New enum.
9781         (expand_operand): New structure.
9782         (create_expand_operand): New function.
9783         (create_fixed_operand, create_output_operand): Likewise
9784         (create_input_operand, create_convert_operand_to): Likewise.
9785         (create_convert_operand_from, create_address_operand): Likewise.
9786         (create_integer_operand): Likewise.
9787         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9788         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9789         (expand_insn, expand_jump_insn): Likewise.
9790         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9791         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9792         (expand_movstr, expand_builtin___clear_cache): Likewise.
9793         (expand_builtin_lock_release): Likewise.
9794         * explow.c (allocate_dynamic_stack_space): Likewise.
9795         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
9796         and use the default handling in that case.
9797         * expmed.c (check_predicate_volatile_ok): Delete.
9798         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9799         (emit_cstore): Likewise.
9800         * expr.c (emit_block_move_via_movmem): Likewise.
9801         (set_storage_via_setmem, expand_assignment): Likewise.
9802         (emit_storent_insn, try_casesi): Likewise.
9803         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
9804         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9805         (expand_vec_shift_expr, expand_binop_directly): Likewise.
9806         (expand_twoval_unop, expand_twoval_binop): Likewise.
9807         (expand_unop_direct, emit_indirect_jump): Likewise.
9808         (emit_conditional_move, vector_compare_rtx): Likewise.
9809         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9810         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9811         (expand_sync_lock_test_and_set): Likewise.
9812         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
9813         (emit_unop_insn): Likewise.
9814         (expand_copysign_absneg): Change icode to an insn_code.
9815         (create_convert_operand_from_type): New function.
9816         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9817         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9818         (expand_insn, expand_jump_insn): Likewise.
9819         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9820         than const_int_operand for operand 2.
9821
9822 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9823
9824         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9825         if possible.
9826
9827 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9828
9829         * emit-rtl.c (emit_pattern_before_noloc): New function.
9830         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9831         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9832         (emit_pattern_after_noloc): New function.
9833         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9834         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9835
9836 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9837
9838         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9839         (__ffsDI2): Likewise.
9840
9841 2011-03-22  Richard Henderson  <rth@redhat.com>
9842
9843         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9844         of !TARGET_ABI_OPEN_VMS.
9845         (alpha_trampoline_init, alpha_start_function): Likewise.
9846         (alpha_expand_epilogue, alpha_file_start): Likewise.
9847         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9848         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9849         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9850         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9851         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9852
9853 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9854
9855         * config/s390/s390-opts.h: New.
9856         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9857         s390_arch_flags, s390_warn_framesize, s390_stack_size,
9858         s390_stack_guard): Remove.
9859         (s390_handle_arch_option): Return void.  Take enum
9860         s390_arch_option value instead of string and searching array.
9861         (s390_handle_option): Don't assert that global structures are in
9862         use.  Access variables via opts pointer.  Use error_at.  Don't use
9863         sscanf for -mstack-guard= or -mstack-size=.  Update call to
9864         s390_handle_arch_option.
9865         (s390_option_override): Update call to s390_handle_arch_option.
9866         (s390_emit_prologue): Use %d format for s390_stack_size in
9867         diagnostic.  Use %wd for HOST_WIDE_INT.
9868         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9869         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9870         * config/s390/s390.opt (config/s390/s390-opts.h): New
9871         HeaderInclude entry.
9872         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9873         s390_arch_flags, s390_warn_framesize): New Variable entries.
9874         (s390_arch_option): New Enum and EnumValue entries.
9875         (march=): Use Enum instead of Var.
9876         (mstack-guard=, mstack-size=): Use UInteger and Var.
9877         (mtune=): Use Enum.
9878
9879 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9880
9881         * config/score/score.c (score_handle_option): Don't assert that
9882         global structures are in use.  Access target_flags via opts
9883         pointer.  Use value of -march= option to determine target_flags
9884         settings.
9885         * config/score/score.opt (march=): Use Enum.
9886         (score_arch): New Enum and EnumValue entries.
9887
9888 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9889
9890         * config/mep/mep.c (option_mtiny_specified): Remove.
9891         (mep_option_override): Move register handling for -mivc2 from
9892         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
9893         instead of option_mtiny_specified.
9894         (mep_handle_option): Access target_flags via opts pointer.  Don't
9895         assert that global structures are in use.  Defer part of -mivc2
9896         handling and move it to mep_option_override.
9897         * config/mep/mep.opt (IVC2): New Mask entry.
9898         (mivc2): Use Var and Defer instead of Mask.
9899
9900 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9901
9902         * config/v850/v850-opts.h: New.
9903         * config/v850/v850.c (small_memory): Replace with
9904         small_memory_physical_max array.  Make that array static const.
9905         (v850_handle_memory_option): Take integer value of argument.  Take
9906         gcc_options pointer, option text and location.  Return void.
9907         Update for changes to small memory structures.
9908         (v850_handle_option): Access target_flags via opts pointer.  Don't
9909         assert that global structures are in use.  Update calls to
9910         v850_handle_memory_option.
9911         (v850_encode_data_area): Update references to small memory settings.
9912         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9913         (enum small_memory_type): Move to v850-opts.h.
9914         * config/v850/v850.opt (config/v850/v850-opts.h): New
9915         HeaderInclude entry.
9916         (small_memory_max): New Variable entry.
9917         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
9918         (mtda, mzda): Likewise.
9919
9920 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9921
9922         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9923         pointer.  Don't assert that global structures are in use.
9924
9925 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9926
9927         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9928         via opts pointer.  Don't assert that global structures are in use.
9929
9930 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9931
9932         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9933         (munix=93): Use Var.
9934         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9935         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9936         * config/pa/pa-opts.h: New.
9937         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9938         (pa_handle_option): Don't assert that global structures are in
9939         use.  Access target_flags via opts pointer.  Don't handle
9940         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9941         OPT_munix_98 here.
9942         (pa_option_override): Handle deferred OPT_mfixed_range_.
9943
9944 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9945
9946         * config/mn10300/mn10300-opts.h: New.
9947         * config/mn10300/mn10300.c (mn10300_processor,
9948         mn10300_tune_string): Remove.
9949         (mn10300_handle_option): Don't assert that global structures are
9950         in use.  Access mn10300_processor via opts pointer.  Don't handle
9951         OPT_mtune_ here.
9952         * config/mn10300/mn10300.h (enum processor_type): Move to
9953         mn10300-opts.h.
9954         (mn10300_processor): Remove.
9955         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9956         HeaderInclude entry.
9957         (mn10300_processor): New Variable entry.
9958         (mtune=): Use Var.
9959
9960 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9961
9962         * config/microblaze/microblaze.c: Don't include opts.h.
9963         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9964         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9965         (mno-clearbss): Use Var and Warn.
9966
9967 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9968
9969         * config/m32r/m32r-opts.h: New.
9970         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9971         (m32r_handle_option): Don't assert that global structures are in
9972         use.  Access target_flags and m32r_cache_flush_func via opts
9973         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
9974         OPT_mno_flush_trap here.
9975         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9976         include of m32r-opts.h.
9977         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9978         HeaderInclude entry.
9979         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9980         (mmodel=): Use Enum and Var.
9981         (m32r_model): New Enum and EnumValue entries.
9982         (mno-flush-trap): Use Var.
9983         (msdata=): Use Enum and Var.
9984         (m32r_sdata): New Enum and EnumValue entries.
9985
9986 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9987
9988         * config/m32c/m32c.c: Don't include opts.h.
9989         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9990         m32c_handle_option): Remove.
9991         (m32c_option_override): Check global_options_set.x_target_memregs
9992         instead of target_memregs_set.
9993         * config/m32c/m32c.h (target_memregs): Remove.
9994         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9995         variable.
9996
9997 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9998
9999         * config/iq2000/iq2000-opts.h: New.
10000         * config/iq2000/iq2000.c: Don't include opts.h.
10001         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
10002         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
10003         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
10004         HeaderInclude entry.
10005         (iq2000_tune): New Variable entry.
10006         (march=): Add comment.  Use Enum.
10007         (iq2000_arch): New Enum and EnumValue entries.
10008         (mcpu=): Use Enum and Var.
10009         (iq2000_tune): New Enum and EnumValue entries.
10010
10011 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10012
10013         * config/ia64/ia64-opts.h: New.
10014         * config/ia64/ia64.c (ia64_tune): Remove.
10015         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
10016         here.  Use error_at.
10017         (ia64_option_override): Handle deferred OPT_mfixed_range_.
10018         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
10019         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
10020         HeaderInclude entry.
10021         (ia64_tune): New Variable entry.
10022         (mfixed-range=): Use Defer and Var.
10023         (mtune=): Use Enum and Var.
10024         (ia64_tune): New Enum and EnumValue entries.
10025
10026 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10027
10028         * config/frv/frv-opts.h: New.
10029         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
10030         frv-opts.h.
10031         (frv_cpu_type): Remove.
10032         * config/frv/frv.c: Don't include opts.h.
10033         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
10034         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
10035         (frv_cpu_type): New Variable entry.
10036         (frv_cpu): New Enum and EnumValue entries.
10037
10038 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10039
10040         * config/cris/cris.c (cris_handle_option): Access target_flags via
10041         opts pointer.  Don't assert that global structures are in use.
10042         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
10043         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
10044
10045 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10046
10047         * config/bfin/bfin-opts.h: New.
10048         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
10049         bfin_si_revision, bfin_workarounds): Remove.
10050         (bfin_cpus): Make static const.
10051         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
10052         not bfin_lib_id_given.
10053         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
10054         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
10055         pointer. Use error_at.  Don't assert that global structures are in use.
10056         * config/bfin/bfin.h: Include bfin-opts.h.
10057         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
10058         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
10059         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
10060         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
10061         entries.
10062
10063 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10064
10065         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
10066         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
10067         or -msoft-float here.
10068         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
10069         -msoft-float and -mhard-float.
10070         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
10071         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10072         msoft-float.
10073         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
10074         -msoft-float.
10075         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
10076         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
10077         not mhard-float.
10078         (LIBGCC_SPEC): Don't handle -msoft-float.
10079         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
10080         -mhard-float.
10081         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
10082         msoft-float.
10083         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
10084         -mfloat-abi=*, not -msoft-float and -mhard-float.
10085         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10086         -msoft-float.
10087         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10088         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10089         mhard-float and msoft-float.
10090         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10091         mfloat-abi=soft in comments, not mhard-float and msoft-float.
10092         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10093         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10094         mhard-float.
10095         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10096         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10097         msoft-float.
10098         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10099         not mhard-float.
10100         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10101         not msoft-float.
10102
10103 2011-03-22  Richard Henderson  <rth@redhat.com>
10104
10105         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10106         TARGET_ABI_WINDOWS_NT.
10107         (alpha_output_function_end_prologue): Likewise.
10108         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10109         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10110         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10111         (trap, *movsi_nt_vms): Likewise.
10112         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10113         (*tablejump_osf_nt_internal): Remove.
10114         * config/alpha/predicates.md (input_operand): Only test Pmode.
10115
10116 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10117
10118         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10119         via opts pointer.  Use error_at.  Don't assert that global
10120         structures are in use.
10121
10122 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10123
10124         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10125         (ix86_handle_option): Access ix86_isa_flags and
10126         ix86_isa_flags_explicit via opts pointer.  Don't assert that
10127         global structures are in use.
10128         (ix86_function_specific_save, ix86_function_specific_restore):
10129         Update ix86_isa_flags_explicit field name.
10130         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10131         (ix86_isa_flags_explicit): Rename TargetSave entry to
10132         x_ix86_isa_flags_explicit.
10133
10134 2011-03-22  Richard Henderson  <rth@redhat.com>
10135
10136         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10137         (alpha_option_override, direct_return): Likewise.
10138         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10139         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10140         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10141         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10142         (alpha_expand_epilogue, alpha_end_function): Likewise.
10143         (alpha_init_libfuncs): Likewise.
10144         (struct machine_function): Remove unicosmk members.
10145         (print_operand) ['t']: Remove.
10146         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10147         unicosmk_output_module_name, unicosmk_output_common,
10148         current_section_align, unicosmk_output_text_section_asm_op,
10149         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10150         unicosmk_section_type_flags, unicosmk_unique_section,
10151         unicosmk_asm_named_section, unicosmk_insert_attributes,
10152         unicosmk_output_align, unicosmk_defer_case_vector,
10153         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10154         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10155         unicosmk_output_ssib, unicosmk_add_call_info_word,
10156         unicosmk_extern_head, unicosmk_output_default_externs,
10157         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10158         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10159         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10160         * config/alpha/alpha-protos.h: Update.
10161         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10162         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10163         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10164         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10165         (*mulsi_se, mulvsi3): Likewise.
10166         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10167         (*divmodsi_internal, call, call_value, realign): Likewise.
10168         (moddi3, umoddi3): Likewise; remove duplicate expander.
10169         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10170         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10171         (*movdi_nofix): Remove r/U alternative.
10172         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10173         * config/alpha/constraints.md ("U"): Remove.
10174         * config/alpha/predicates.md (call_operand"): Don't test
10175         TARGET_ABI_UNICOSMK.
10176
10177 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10178
10179         * target.def (handle_option): Take gcc_options and
10180         cl_decoded_option pointers and location_t.
10181         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10182         * doc/tm.texi: Regenerate.
10183         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10184         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10185         * lto-opts.c (lto_reissue_options): Generate option structure for
10186         targetm.handle_option call.
10187         * opts.c (target_handle_option): Update call to
10188         targetm.handle_option.  Remove assertions about values now passed
10189         down to hook.
10190         * targhooks.c (default_target_handle_option): New.
10191         * targhooks.h (default_target_handle_option): Declare.
10192         * config/alpha/alpha.c: Include opts.h.
10193         (alpha_handle_option): Update to new hook interface.
10194         * config/arm/arm.c: Include opts.h.
10195         (arm_handle_option): Update to new hook interface.
10196         * config/arm/t-arm (arm.o): Update dependencies.
10197         * config/bfin/bfin.c: Include opts.h.
10198         (bfin_handle_option): Update to new hook interface.
10199         * config/cris/cris.c: Include opts.h.
10200         (cris_handle_option): Update to new hook interface.
10201         * config/frv/frv.c: Include opts.h.
10202         (frv_handle_option): Update to new hook interface.
10203         * config/i386/i386.c: Include opts.h.
10204         (ix86_handle_option): Update to new hook interface.
10205         (ix86_valid_target_attribute_inner_p): Generate option structure
10206         for call to ix86_handle_option.
10207         * config/i386/t-i386 (i386.o): Update dependencies.
10208         * config/ia64/ia64.c: Include opts.h.
10209         (ia64_handle_option): Update to new hook interface.
10210         * config/ia64/t-ia64 (ia64.o): Update dependencies.
10211         * config/iq2000/iq2000.c: Include opts.h.
10212         (iq2000_handle_option): Update to new hook interface.
10213         * config/m32c/m32c.c: Include opts.h.
10214         (m32c_handle_option): Update to new hook interface.
10215         * config/m32r/m32r.c: Include opts.h.
10216         (m32r_handle_option): Update to new hook interface.
10217         * config/m68k/m68k.c: Include opts.h.
10218         (m68k_handle_option): Update to new hook interface.
10219         * config/mep/mep.c: Include opts.h.
10220         (mep_handle_option): Update to new hook interface.
10221         * config/microblaze/microblaze.c: Include opts.h.
10222         (microblaze_handle_option): Update to new hook interface.
10223         * config/mips/mips.c: Include opts.h.
10224         (mips_handle_option): Update to new hook interface.
10225         * config/mn10300/mn10300.c: Include opts.h.
10226         (mn10300_handle_option): Update to new hook interface.
10227         * config/pa/pa.c: Include opts.h.
10228         (pa_handle_option): Update to new hook interface.
10229         * config/pdp11/pdp11.c: Include opts.h.
10230         (pdp11_handle_option): Update to new hook interface.
10231         * config/rs6000/rs6000.c: Include opts.h.
10232         (rs6000_handle_option): Update to new hook interface.
10233         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10234         * config/rx/rx.c: Include opts.h.
10235         (rx_handle_option): Update to new hook interface.
10236         * config/s390/s390.c: Include opts.h.
10237         (s390_handle_option): Update to new hook interface.
10238         * config/score/score.c: Include opts.h.
10239         (score_handle_option): Update to new hook interface.
10240         * config/sh/sh.c: Include opts.h.
10241         (sh_handle_option): Update to new hook interface.
10242         * config/sparc/sparc.c: Include opts.h.
10243         (sparc_handle_option): Update to new hook interface.
10244         * config/v850/v850.c: Include opts.h.
10245         (v850_handle_option): Update to new hook interface.
10246
10247 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10248
10249         * gcc.c (driver_unknown_option_callback): Only permit and save
10250         unknown -Wno- options.
10251         (driver_wrong_lang_callback): Save options directly instead of via
10252         driver_unknown_option_callback.
10253
10254 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10255
10256         * combine.c (simplify_set): Try harder to find the best CC mode when
10257         simplifying a nested COMPARE on the RHS.
10258
10259 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10260
10261         * config/alpha/gnu.h: Remove.
10262         * config/arc: Remove directory.
10263         * config/arm/netbsd.h: Remove.
10264         * config/arm/t-pe: Remove.
10265         * config/crx: Remove directory.
10266         * config/i386/netbsd.h: Remove.
10267         * config/m68hc11: Remove directory.
10268         * config/m68k/uclinux-oldabi.h: Remove.
10269         * config/mcore/mcore-pe.h: Remove.
10270         * config/mcore/t-mcore-pe: Remove.
10271         * config/netbsd-aout.h: Remove.
10272         * config/rs6000/gnu.h: Remove.
10273         * config/sh/sh-symbian.h: Remove.
10274         * config/sh/symbian-base.c: Remove.
10275         * config/sh/symbian-c.c: Remove.
10276         * config/sh/symbian-cxx.c: Remove.
10277         * config/sh/symbian-post.h: Remove.
10278         * config/sh/symbian-pre.h: Remove.
10279         * config/sh/t-symbian: Remove.
10280         * config/svr3.h: Remove.
10281         * config/vax/netbsd.h: Remove.
10282         * config.build: Don't handle i[34567]86-*-pe.
10283         * config.gcc: Remove handling of deprecations for most deprecated
10284         targets.
10285         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10286         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10287         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10288         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10289         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10290         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10291         Remove cases.
10292         * config.host: Don't handle i[34567]86-*-pe.
10293         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10294         (ASM_SPEC32): Don't handle -mcall-gnu.
10295         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10296         -mcall-gnu.
10297         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10298         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10299         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10300         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10301         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10302         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10303         conditional on SYMBIAN.
10304         * configure.ac: Don't handle powerpc*-*-gnu*.
10305         * configure: Regenerate.
10306         * doc/extend.texi (interrupt attribute): Don't mention CRX.
10307         * doc/install-old.texi (m6811, m6812): Don't mention.
10308         * doc/install.texi (arc-*-elf*): Don't document multilib option.
10309         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10310         (m68k-uclinuxoldabi): Don't mention.
10311         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10312         Remove.
10313         (-mcall-gnu): Remove.
10314         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10315         families): Remove constraint documentation.
10316
10317 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
10318
10319         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10320         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10321         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10322
10323 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10324
10325         PR target/48226
10326         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10327         vector when peeking at the next token for vector, don't expand the
10328         keywords.
10329
10330 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
10331
10332         * config/avr/avr-protos.h (expand_epilogue): Change prototype
10333         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10334         * config/avr/avr.c (init_cumulative_args)
10335         (avr_function_arg_advance): Use it.
10336         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10337         sibcall epilogues.
10338         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10339         (avr_function_ok_for_sibcall): ...this new function.
10340         (avr_lookup_function_attribute1): New static Function.
10341         (avr_naked_function_p, interrupt_function_p)
10342         (signal_function_p, avr_OS_task_function_p)
10343         (avr_OS_main_function_p): Use it.
10344         * config/avr/avr.md ("sibcall", "sibcall_value")
10345         ("sibcall_epilogue"): New expander.
10346         ("*call_insn", "*call_value_insn"): New insn.
10347         ("call_insn", "call_value_insn"): Remove
10348         ("call", "call_value", "epilogue"): Change expander to handle
10349         sibling calls.
10350
10351 2011-03-21  Nick Clifton  <nickc@redhat.com>
10352
10353         * doc/invoke.texi (Overall Options): Move closing brace to end of
10354         options list.
10355         (Optimization Options): Add missing @gol.
10356         (Directory Options): Likewise.
10357         (i386 and x86-64 Options): Likewise.
10358         (RS6000 and PowerPC Options): Likewise.
10359         (i386 and x86-64 Windows Options): Likewise.
10360         (V850 Options): Add text missing from descriptions.
10361
10362 2011-03-22  Richard Henderson  <rth@redhat.com>
10363
10364         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10365         (avr_incoming_return_addr_rtx): New.
10366         (emit_push_byte): New.
10367         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
10368         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
10369         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
10370         (emit_pop_byte): New.
10371         (expand_epilogue): Use it.  Pop frame pointer by bytes.
10372         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10373         (INCOMING_RETURN_ADDR_RTX): New.
10374         (INCOMING_FRAME_SP_OFFSET): New.
10375         (ARG_POINTER_CFA_OFFSET): New.
10376         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10377         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10378         (pophi): Remove.
10379
10380         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10381
10382 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10383
10384         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10385         (FUNCTION_ARG_ADVANCE): Likewise.
10386         * tm.texi.in: Change references to them to hook references.
10387         * tm.texi: Regenerate.
10388         * targhooks.c (default_function_arg): Eliminate check for target
10389         macro.
10390         (default_function_incoming_arg): Likewise.
10391         (default_function_arg_advance): Likewise.
10392         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10393         (function_arg_advance): Likewise.
10394         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10395
10396 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10397
10398         * tree.c (build_call_1): New function.
10399         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10400
10401 2011-03-22  Richard Guenther  <rguenther@suse.de>
10402
10403         PR tree-optimization/48228
10404         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10405         for single-arg PHIs.
10406
10407 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
10408
10409         PR rtl-optimization/48143
10410         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10411         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10412         sse2_cvtps2pd): Likewise.
10413
10414 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10415
10416         * recog.c (canonicalize_change_group): Use validate_unshare_change.
10417
10418 2011-03-22  Richard Guenther  <rguenther@suse.de>
10419
10420         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10421         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10422         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10423         and REALIGN_LOAD_EXPR.
10424         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10425         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10426         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10427         DOT_PROD_EXPR case ...
10428         (expand_expr_real_2): ... here.
10429         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10430         and REALIGN_LOAD_EXPR.
10431         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10432         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10433         (vect_create_epilog_for_reduction): Likewise.
10434         (vectorizable_reduction): Likewise.
10435         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10436         * tree-vect-stmts.c (vectorizable_load): Likewise.
10437
10438 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10439
10440         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10441
10442 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10443
10444         * config/s390/s390.c (s390_delegitimize_address): Fix offset
10445         handling for PLTOFF/GOTOFF.
10446
10447 2011-03-22  Nick Clifton  <nickc@redhat.com>
10448
10449         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10450         trailing backslash from the end of the macro definition.
10451
10452 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10453
10454         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10455         and PLT unspecs.
10456
10457 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
10458
10459         * expr.h (prepare_operand): Move to...
10460         * optabs.h (prepare_operand): ...here and change the insn code
10461         parameter from "int" to "enum insn_code".
10462         (insn_operand_matches): Declare.
10463         * expr.c (init_expr_target): Use insn_operand_matches.
10464         (compress_float_constant): Likewise.
10465         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10466         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10467         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10468         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10469         Likewise.
10470         (gen_cond_trap): Likewise.
10471         (prepare_operand): Likewise.  Change icode to an insn_code.
10472         (insn_operand_matches): New function.
10473         * reload.c (find_reloads_address_1): Use insn_operand_matches.
10474         * reload1.c (gen_reload): Likewise.
10475         * targhooks.c (default_secondary_reload): Likewise.
10476
10477 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10478
10479         * config/alpha/alpha.md (unspec): New define_c_enum.
10480         (unspecv): Ditto.
10481
10482 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10483
10484         PR debug/48214
10485         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10486         between a call and its CALL_ARG_LOCATION note.
10487
10488 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
10489
10490         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10491
10492 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10493
10494         PR c/42544
10495         PR c/48197
10496         * c-common.c (shorten_compare): If primopN is first sign-extended
10497         to opN and then zero-extended to result type, set primopN to opN.
10498
10499 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
10500
10501         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10502         for barrier handlers.
10503
10504 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10505
10506         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10507         UNSPEC constants to be in the unspec enumeration, and redefine
10508         all UNSPECV constants to be in the unspecv enumeration, so that
10509         dumps print which unspec/unspec_volatile this is.
10510         * config/rs6000/vector.md (UNSPEC_*): Ditto.
10511         * config/rs6000/paired.md (UNSPEC_*): Ditto.
10512         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10513         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10514         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10515
10516         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10517         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10518         UNSPECV_LWSYNC, since these are used as unspec_volatile.
10519         * config/rs6000/sync.md (isync, lwsync): Ditto.
10520
10521 2011-03-21  Richard Guenther  <rguenther@suse.de>
10522
10523         * params.def (lto-min-partition): Fix typo.
10524
10525 2011-03-21  Richard Guenther  <rguenther@suse.de>
10526
10527         PR c/47939
10528         * c-decl.c (grokdeclarator): Drop to the main variant only
10529         for array types.  Drop flag_gen_aux_info check.
10530
10531 2011-03-21  Richard Guenther  <rguenther@suse.de>
10532
10533         PR translation/47911
10534         * params.def (lto-partitions): Fix typo.
10535         (lto-min-partition): Fix wording.
10536
10537 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
10538
10539         * config/rs6000/t-freebsd: Remove duplication from file.
10540
10541 2011-03-21  Richard Guenther  <rguenther@suse.de>
10542
10543         PR middle-end/47661
10544         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10545
10546 2011-03-21  Richard Guenther  <rguenther@suse.de>
10547
10548         PR lto/48210
10549         * params.def (lto-partitions): Require at least 1 partition.
10550
10551 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10552
10553         * gthr-solaris.h: Remove.
10554         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10555         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10556         (LIB_SPEC): Likewise.
10557         * config/sol2.opt (threads): Remove.
10558         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10559         (sparc*-*-solaris2*): Likewise.
10560         * configure.ac (enable_threads): Enable solaris support.
10561         * configure: Regenerate.
10562         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10563         * doc/install.texi (Configuration, --enable-threads=lib): Remove
10564         solaris.
10565
10566 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10567
10568         * config.gcc: Obsolete *-*-solaris2.8*.
10569         * doc/install.texi (Specific, *-*-solaris2*): Document it.
10570
10571 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10572
10573         PR bootstrap/48135
10574         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10575         reference.  Solaris 8 perl works.
10576
10577 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10578
10579         PR bootstrap/48135
10580         * doc/install.texi (Prerequisites): Move jar etc. up.
10581         Explain support library version requirements.
10582
10583 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10584
10585         PR bootstrap/48135
10586         * doc/install.texi (Prerequisites): Move Perl to build
10587         requirements.  Always necessary on Solaris 2 with Sun ld.
10588
10589 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10590
10591         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10592         binutils 2.21.
10593         (Specific, i?86-*-solaris2.[89]): Likewise.
10594         (Specific, i?86-*-solaris2.10): Likewise.
10595         (Specific, mips-sgi-irix6): Likewise.
10596         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10597         Update for binutils 2.21.
10598
10599 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10600
10601         * configure.ac (gcc_cv_lto_plugin): Fix typo.
10602         Allow -fuse-linker-plugin for non-default plugin linker.
10603         * configure: Regenerate.
10604
10605 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10606
10607         PR bootstrap/48167
10608         * gengtype.c (files_rules): Added rule for cp/parser.h.
10609
10610 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10611
10612         PR target/48213
10613         * config/s390/s390.c (s390_delegitimize_address): Don't call
10614         lowpart_subreg if orig_x has BLKmode.
10615
10616 2011-03-21  Kai Tietz  <ktietz@redhat.com>
10617
10618         PR target/12171
10619         * doc/plugins.texi: Adjust documentation for plugin register_callback.
10620         * tree.h (attribute_spec): Add new member affects_type_identity.
10621         * attribs.c (empty_attribute_table): Adjust attribute_spec
10622         initializers.
10623         * config/alpha/alpha.c: Likewise.
10624         * config/arc/arc.c: Likewise.
10625         * config/arm/arm.c: Likewise.
10626         * config/avr/avr.c: Likewise.
10627         * config/bfin/bfin.c: Likewise.
10628         * config/crx/crx.c: Likewise.
10629         * config/darwin.h: Likewise.
10630         * config/h8300/h8300.c: Likewise.
10631         * config/i386/cygming.h: Likewise.
10632         * config/i386/i386.c: Likewise.
10633         * config/ia64/ia64.c: Likewise.
10634         * config/m32c/m32c.c: Likewise.
10635         * config/m32r/m32r.c: Likewise.
10636         * config/m68hc11/m68hc11.c: Likewise.
10637         * config/m68k/m68k.c: Likewise.
10638         * config/mcore/mcore.c: Likewise.
10639         * config/mep/mep.c: Likewise.
10640         * config/microblaze/microblaze.c: Likewise.
10641         * config/mips/mips.c: Likewise.
10642         * config/rs6000/rs6000.c: Likewise.
10643         * config/rx/rx.c: Likewise.
10644         * config/sh/sh.c: Likewise.
10645         * config/sol2.h: Likewise.
10646         * config/sparc/sparc.c: Likewise.
10647         * config/spu/spu.c: Likewise.
10648         * config/stormy16/stormy16.c: Likewise.
10649         * config/v850/v850.c: Likewise.
10650
10651 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
10652
10653         * simplify-rtx.c (simplify_binary_operation_1): Handle
10654         (xor (and A B) C) case when B and C are both constants.
10655
10656 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
10657
10658         * tree-dfa.c (add_referenced_var): Fix typo in comment.
10659
10660 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
10661
10662         PR bootstrap/48168
10663         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10664
10665 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
10666
10667         PR rtl-optimization/48156
10668         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10669         assume df and df_lr are not NULL.
10670
10671 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10672
10673         PR debug/48023
10674         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10675         between a call and its CALL_ARG_LOCATION note.
10676
10677 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10678
10679         PR debug/48178
10680         * config/sh/sh.c (find_barrier): Don't emit a constant pool
10681         between a call and its corresponding CALL_ARG_LOCATION note.
10682
10683 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
10684
10685         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10686         instead of loop. Use HARD_REGISTER_NUM_P predicate.
10687         * haifa-sched.c (setup_ref_regs): Ditto.
10688         * caller-save.c (add_used_regs_1): Ditto.
10689         * dse.c (look_for_hardregs): Ditto.
10690         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10691         * sched-rgn.c (check_live_1): Ditto.
10692
10693 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10694
10695         * c-decl.c (diagnose_mismatched_decls): Give an error for
10696         redefining a typedef with variably modified type.
10697
10698 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10699
10700         * c-decl.c (grokfield): Don't allow typedefs for structures or
10701         unions with no tag by default.
10702         * doc/extend.texi (Unnamed Fields): Update.
10703
10704 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
10705
10706         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10707         Rewrite using indirect functions.
10708         (lwp_slwpcb): Ditto.
10709         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10710         (avx_vinsertf128<mode>): Ditto.
10711
10712 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10713
10714         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10715         unspecs.
10716
10717 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10718
10719         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10720         splitting between a call and its corresponding CALL_ARG_LOCATION note.
10721
10722 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10723
10724         PR rtl-optimization/48170
10725         * gcse.c (hoist_code): Remove bogus asserts.
10726
10727 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
10728
10729         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10730         computation for prologue/epilogue.
10731
10732 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10733
10734         * Makefile.in (check-consistency): Remove.
10735
10736 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
10737
10738         PR debug/48176
10739         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10740         arange_table_in_use is 0, but either text_section_used or
10741         cold_text_section_used is true.  Don't call it if
10742         !info_section_emitted.
10743
10744 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
10745
10746         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10747         FUNCTION_VALUE_REGNO_P): Remove.
10748         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10749         Remove.
10750         * config/avr/avr.c (avr_ret_register): Make static inline.
10751         (avr_function_value_regno_p): New function.
10752         (avr_libcall_value): Make static. Add 'func' argument.
10753         (avr_function_value): Make static. Rename 'func' argument to
10754         'fn_decl_or_type', forward it to avr_libcall_value. Call
10755         avr_ret_register function instead of RET_REGISTER macro.
10756         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10757
10758 2011-03-18  Jason Merrill  <jason@redhat.com>
10759
10760         PR c++/23372
10761         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10762
10763 2011-03-18  Richard Guenther  <rguenther@suse.de>
10764
10765         * doc/install.texi (--enable-gold): Remove.
10766         (--with-plugin-ld): Document.
10767         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10768
10769 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
10770
10771         PR middle-end/47790
10772         * expr.c (optimize_bitfield_assignment_op): Revamp to work
10773         again after expansion changes.
10774
10775 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
10776
10777         * combine.c (try_combine): Do simplification only call of
10778         subst() on i2 even when i1 is present. Update comments.
10779
10780 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10781
10782         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10783         and UNSPEC_PCREL_SYMOFF.
10784
10785 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10786
10787         * config/s390/s390.md: Use define_c_enum for the unspec constant
10788         definitions.
10789
10790 2011-03-18  Richard Henderson  <rth@redhat.com>
10791             Jakub Jelinek  <jakub@redhat.com>
10792
10793         PR bootstrap/48161
10794         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10795         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10796
10797 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10798
10799         PR middle-end/47725
10800         * combine.c (cant_combine_insn_p): Don't check zero/sign
10801         extended hard registers.
10802
10803 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10804
10805         PR middle-end/47725
10806         * combine.c (cant_combine_insn_p): Check zero/sign extended
10807         hard registers.
10808
10809 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
10810
10811         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10812         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10813         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10814         Change return type to bool.
10815         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10816
10817 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10818
10819         PR debug/48163
10820         * var-tracking.c (prepare_call_arguments): If CALL target
10821         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10822         pc instead of looking it up using cselib_lookup and use
10823         Pmode for it if x has VOIDmode.
10824         * dwarf2out.c (gen_subprogram_die): If also both first and
10825         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10826
10827         PR debug/48163
10828         * function.c (assign_parms): For data.passed_pointer parms
10829         use MEM of data.entry_parm instead of data.entry_parm itself
10830         as DECL_INCOMING_RTL.
10831         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10832         also when passed and declared mode is the same, DECL_RTL
10833         is a MEM with pseudo as address and DECL_INCOMING_RTL is
10834         a MEM too.
10835
10836 2011-03-16  Jeff Law  <law@redhat.com>
10837
10838         PR rtl-optimization/37273
10839         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10840         handle them like argument loads from stack slots.  Do not double
10841         count memory for memory constants and argument loads from stack slots.
10842
10843 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10844
10845         PR debug/48160
10846         * var-tracking.c (prepare_call_arguments): Check SUBREG.
10847
10848 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10849
10850         PR target/48171
10851         * config/i386/i386.opt: Add Save to -mavx and -mfma.
10852
10853 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10854
10855         PR bootstrap/48153
10856         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10857         if dwarf_strict.
10858         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10859         Clear call_arg_locations and call_arg_loc_last always.
10860
10861         PR middle-end/48152
10862         * var-tracking.c (prepare_call_arguments): If argument needs to be
10863         passed by reference, adjust argtype and mode.
10864
10865 2011-03-17  Richard Guenther  <rguenther@suse.de>
10866
10867         PR middle-end/48134
10868         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10869         a value make sure to fold the statement.
10870
10871 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
10872
10873         PR target/43872
10874         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10875         return condition with !cfun->calls_alloca.
10876
10877 2011-03-17  Richard Guenther  <rguenther@suse.de>
10878
10879         PR bootstrap/48148
10880         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10881         origin for decls in other ltrans units.
10882         (input_varpool_node): Likewise.
10883
10884 2011-03-17  Richard Guenther  <rguenther@suse.de>
10885
10886         PR middle-end/48165
10887         * tree-object-size.c (compute_object_offset): Properly return
10888         the offset operand of MEM_REFs as sizetype.
10889
10890 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10891
10892         PR rtl-optimization/48141
10893         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10894         * dse.c: Include params.h.
10895         (active_local_stores_len): New variable.
10896         (add_wild_read, dse_step1): Clear it when setting active_local_stores
10897         to NULL.
10898         (record_store, check_mem_read_rtx): Decrease it when removing
10899         from the chain.
10900         (scan_insn): Likewise.  Increase it when adding to chain, if it
10901         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10902         set active_local_stores to NULL before the addition.
10903         * Makefile.in (dse.o): Depend on $(PARAMS_H).
10904
10905         PR rtl-optimization/48141
10906         * dse.c (record_store): If no positions are needed in an insn
10907         that cannot be deleted, at least unchain it from active_local_stores.
10908
10909 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
10910
10911         PR debug/47510
10912         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10913         (lookup_type_die_strip_naming_typedef): ... here.
10914         (get_context_die): Use it.
10915         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10916         the anonymous struct named by the naming typedef.
10917
10918 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10919
10920         PR target/48154
10921         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10922         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10923
10924 2011-03-16  Jeff Law  <law@redhat.com>
10925
10926         * tree-vrp.c (identify_jump_threads): Slightly simplify type
10927         check for operands of conditional.  Allow type to be a pointer.
10928
10929 2011-03-16  Richard Guenther  <rguenther@suse.de>
10930
10931         PR tree-optimization/48149
10932         * fold-const.c (fold_binary_loc): Fold
10933         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10934
10935 2011-03-16  Richard Guenther  <rguenther@suse.de>
10936
10937         PR tree-optimization/26134
10938         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10939         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10940         (non_rewritable_mem_ref_base): Handle complex type component
10941         accesses, constrain offsets for vector and complex extracts
10942         more properly.
10943
10944 2011-03-16  Richard Guenther  <rguenther@suse.de>
10945
10946         PR tree-optimization/48146
10947         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10948         operands avoiding the need for renaming.
10949
10950 2011-03-16  Richard Guenther  <rguenther@suse.de>
10951
10952         * gimple-fold.c (maybe_fold_reference): Open-code relevant
10953         constant folding.  Move MEM_REF canonicalization first.
10954         Rely on fold_const_aggregate_ref for initializer folding.
10955         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10956
10957 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10958
10959         PR middle-end/48136
10960         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10961         arg0/arg1 or their arguments are always fold converted to matching
10962         types.
10963
10964         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10965         to nargs.
10966
10967 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10968
10969         PR lto/46944
10970         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10971         Handle in-tree gold.
10972         (ld_vers): Extract binutils version for gold.
10973         (gcc_cv_ld_hidden): Handle gold here.
10974         (gcc_cv_lto_plugin): Determine level of linker plugin support.
10975         * configure: Regenerate.
10976         * config.in: Regenerate.
10977         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10978         -fuse-linker-plugin otherwise.
10979         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10980         (LINK_COMMAND_SPEC): Use it.
10981         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10982
10983 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10984
10985         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10986         * calls.c: Remove debug.h include.
10987         (emit_call_1): Don't call virtual_call_token debug hook.
10988         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10989         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10990         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10991         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10992         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10993         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10994         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10995         dwarf2out_virtual_call): Remove.
10996         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10997         copy_call_info and virtual_call hooks.
10998         (dwarf2out_init): Don't initialize vcall_insn_table,
10999         debug_dcall_section and debug_vcall_section.
11000         (prune_unused_types): Don't mark nodes from dcall_table.
11001         (dwarf2out_finish): Don't output dcall or vcall tables.
11002         * final.c (final_scan_insn): Don't call direct_call or
11003         virtual_call debug hooks.
11004         * debug.h (struct gcc_debug_hooks): Remove direct_call,
11005         virtual_call_token, copy_call_info and virtual_call hooks.
11006         (debug_nothing_uid): Remove prototype.
11007         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
11008         copy_call_info and virtual_call hooks.
11009         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
11010         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
11011         * debug.c (do_nothing_debug_hooks): Likewise.
11012         (debug_nothing_uid): Remove.
11013         * doc/invoke.texi (-fenable-icf-debug): Remove.
11014         * common.opt (-fenable-icf-debug): Likewise.
11015
11016         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
11017         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
11018         call's MEM.  Handle functions returning aggregate through a hidden
11019         first pointer.  For virtual calls add clobbered pc to call arguments
11020         chain.
11021         * dwarf2out.c (gen_subprogram_die): Emit
11022         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
11023         can't be emitted.
11024
11025         PR debug/45882
11026         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
11027         * rtl.h (ENTRY_VALUE_EXP): Define.
11028         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
11029         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11030         * print-rtl.c (print_rtx): Likewise.
11031         * gengtype.c (adjust_field_rtx_def): Likewise.
11032         * var-tracking.c (vt_add_function_parameter): Adjust
11033         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
11034         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
11035         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
11036         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
11037         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
11038
11039         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
11040         Call var_location debug hook even on CALL_INSNs.
11041         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
11042         * rtl.def (ENTRY_VALUE): New.
11043         * dwarf2out.c: Include cfglayout.h.
11044         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
11045         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
11046         (struct call_arg_loc_node): New type.
11047         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
11048         tail_call_site_count): New variables.
11049         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
11050         DW_TAG_GNU_call_site_parameter.
11051         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
11052         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
11053         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
11054         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
11055         and DW_AT_GNU_all_source_call_sites.
11056         (mem_loc_descriptor): Handle ENTRY_VALUE.
11057         (add_src_coords_attributes): Don't add enything if
11058         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
11059         (dwarf2out_abstract_function): Save and clear call_arg_location,
11060         call_site_count and tail_call_site_count around dwarf2out_decl call.
11061         (gen_call_site_die): New function.
11062         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
11063         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
11064         (dwarf2out_function_decl): Clear call_arg_locations,
11065         call_arg_loc_last, set call_site_count and tail_call_site_count
11066         to -1 and free block_map.
11067         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
11068         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
11069         followed by any real instructions.
11070         (dwarf2out_begin_function): Set call_site_count and
11071         tail_call_site_count to 0.
11072         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
11073         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
11074         attempt to force a DIE for it and worst case remove the attribute.
11075         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
11076         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
11077         the decl itself.
11078         * var-tracking.c: Include tm_p.h.
11079         (vt_stack_adjustments): For calls call note_register_arguments.
11080         (argument_reg_set): New variable.
11081         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
11082         ensure the VALUE is resolved.
11083         (call_arguments): New variable.
11084         (prepare_call_arguments): New function.
11085         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11086         (struct expand_loc_callback_data): Add ignore_cur_loc field.
11087         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11088         always use the best expression.
11089         (vt_expand_loc): Add ignore_cur_loc argument.
11090         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11091         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11092         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11093         note for all calls.
11094         (vt_add_function_parameter): Use cselib_lookup_from_insn.
11095         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11096         argument.  Don't call cselib_preserve_only_values and
11097         cselib_reset_table.
11098         (note_register_arguments): New function.
11099         (vt_initialize): Compute argument_reg_set.  Call
11100         vt_add_function_parameters before processing basic blocks instead of
11101         afterwards.  For calls call prepare_call_arguments before calling
11102         cselib_process_insn.
11103         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11104         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11105         (var-tracking.o): Depend on $(TM_P_H).
11106         * cfglayout.h (insn_scope): New prototype.
11107         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11108         * cfglayout.c (insn_scope): No longer static.
11109         * insn-notes.def (CALL_ARG_LOCATION): New.
11110         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11111         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11112         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11113         nothing for DECL_EXTERNAL BLOCK_VARS.
11114
11115 2011-03-16  Alan Modra  <amodra@gmail.com>
11116
11117         PR target/45844
11118         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11119         create invalid offset address for vsx splat insn.
11120         * config/rs6000/predicates.md (splat_input_operand): New.
11121         * config/rs6000/vsx.md (vsx_splat_*): Use it.
11122
11123 2011-03-15  Xinliang David Li  <davidxl@google.com>
11124
11125         PR c/47837
11126         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11127         (normalize_preds): New function.
11128         (is_use_properly_guarded): Normalize def predicates.
11129
11130 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11131
11132         PR target/46788
11133         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11134         in the output template.
11135
11136 2011-03-15  Richard Guenther  <rguenther@suse.de>
11137
11138         PR middle-end/47650
11139         * tree-pretty-print.c (dump_function_declaration): Properly
11140         dump unprototyped and varargs function types.
11141
11142 2011-03-15  Richard Guenther  <rguenther@suse.de>
11143
11144         PR tree-optimization/13954
11145         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11146         and friends.
11147
11148 2011-03-15  Richard Guenther  <rguenther@suse.de>
11149
11150         PR tree-optimization/48037
11151         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11152         selects into BIT_FIELD_REFs.
11153         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11154         vector select.
11155
11156 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
11157
11158         PR tree-optimization/48129
11159         * builtins.c (fold_builtin_snprintf): Convert to type of
11160         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11161         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11162
11163 2011-03-15  Richard Guenther  <rguenther@suse.de>
11164
11165         PR tree-optimization/41490
11166         * tree-ssa-dce.c (propagate_necessity): Handle returns without
11167         value but with VUSE.
11168         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11169         return statements.
11170         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11171         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11172         * tree-tailcall.c (find_tail_calls): Ignore returns.
11173
11174 2011-03-15  Richard Guenther  <rguenther@suse.de>
11175
11176         PR middle-end/48031
11177         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11178         or variable-indexed array accesses when in gimple form.
11179
11180 2011-03-15  Richard Guenther  <rguenther@suse.de>
11181
11182         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11183
11184 2011-03-15  Alan Modra  <amodra@gmail.com>
11185
11186         PR target/48032
11187         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11188         presume symbol_refs without a symbol_ref_decl are suitably
11189         aligned, nor other trees we may see here.  Handle anchor symbols.
11190         (legitimate_constant_pool_address_p): Comment.  Add mode param.
11191         Check cmodel=medium addresses.  Adjust all calls.
11192         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11193         creating cmodel=medium optimized access to locals.
11194         * config/rs6000/constraints.md (R): Pass QImode to
11195         legitimate_constant_pool_address_p.
11196         * config/rs6000/predicates.md (input_operand): Pass mode to
11197         legitimate_constant_pool_address_p.
11198         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11199         Update prototype.
11200
11201 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11202
11203         PR target/48053
11204         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11205         64-bit constants being loaded into registers other than GPRs such
11206         as loading 0 into a VSX register.
11207
11208 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11209
11210         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11211
11212 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11213
11214         PR middle-end/47917
11215         * builtins.c (fold_builtin_snprintf): New function.
11216         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11217         (fold_builtin_4): Likewise.
11218
11219         PR middle-end/38878
11220         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11221         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
11222         and C - X == X also strip nops from +/-/p+ operand.
11223         When optimizing -X == C, fold C to arg0's type.
11224
11225         PR debug/47946
11226         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11227         emit it as add_AT_int instead of add_AT_unsigned.
11228
11229 2011-03-14  Tom Tromey  <tromey@redhat.com>
11230
11231         * unwind-dw2.c: Include sys/sdt.h if it exists.
11232         (_Unwind_DebugHook): Use STAP_PROBE2.
11233         * config.in, configure: Rebuild.
11234         * configure.ac: Check for sys/sdt.h.
11235
11236 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
11237
11238         * config/i386/i386.md (ROUND_FLOOR): New constant.
11239         (ROUND_CEIL): Ditto.
11240         (ROUND_TRUNC): Ditto.
11241         (ROUND_MXCSR): Ditto.
11242         (ROUND_NO_EXC): Ditto.
11243         (rint<mode>2): Use new defines instead of numerical constants.
11244         (floor<mode>2): Ditto.
11245         (ceil<mode>2): Ditto.
11246         (btrunc<mode>2): Ditto.
11247         * config/i386/i386-builtin-types.def: Define ROUND function type
11248         aliases.
11249         * config/i386/i386.c (enum ix86_builtins): Add
11250         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11251         (struct builtin_description): Add
11252         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11253         (ix86_expand_sse_round): New static function.
11254         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11255         function types.
11256         (ix86_builtin_vectorized_function): Handle
11257         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11258
11259 2011-03-14  Tom Tromey  <tromey@redhat.com>
11260
11261         * c-parser.c (c_parser_asm_string_literal): Clear
11262         warn_overlength_strings.
11263
11264 2011-03-14  Tom Tromey  <tromey@redhat.com>
11265
11266         * c-parser.c (disable_extension_diagnostics): Save
11267         warn_overlength_strings.
11268         (restore_extension_diagnostics): Restore warn_overlength_strings.
11269
11270 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11271
11272         * BASE-VER: Change to 4.7.0.
11273
11274 2011-03-14  Richard Guenther  <rguenther@suse.de>
11275
11276         PR middle-end/48098
11277         * tree.c (build_vector_from_val): Adjust assert to requirements
11278         and reality.
11279
11280 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11281
11282         PR bootstrap/48102
11283         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11284
11285 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
11286
11287         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11288         terms of target_flags_explicit. Adjust copyright year.
11289
11290         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11291         * config/rs6000/t-freebsd: New file. Add override for
11292         LIB2FUNCS_EXTRA.
11293
11294 2011-03-13  Chris Demetriou  <cgd@google.com>
11295
11296         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11297         (-fno-diagnostics-show-option): this, to reflect current default.
11298         (-Werror=): Update text about -fno-diagnostics-show-option.
11299
11300 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
11301
11302         PR target/48053
11303         * config/rs6000/predicates.md (easy_vector_constant_add_self,
11304         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11305         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11306         mode is not V2DImode or V2DFmode.
11307         (vspltis_constant): Do not handle V2DImode and V2DFmode.
11308         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11309         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11310         registers to 0.
11311         (movdi_internal64): Likewise.
11312
11313 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
11314
11315         PR tree-optimization/47127
11316         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11317         parameter.
11318         (set_cloog_options): Same.
11319         (scop_to_clast): Same.
11320         (print_clast_stmt): Do not call cloog_state_malloc and
11321         cloog_state_free.
11322         (print_generated_program): Same.
11323         (gloog): Same.
11324         * graphite-clast-to-gimple.h (cloog_state): Declared.
11325         (scop_to_clast): Adjust declaration.
11326         * graphite.c (cloog_state): Defined here.
11327         (graphite_initialize): Call cloog_state_malloc.
11328         (graphite_finalize): Call cloog_state_free.
11329
11330 2011-03-11  Jason Merrill  <jason@redhat.com>
11331
11332         * attribs.c (lookup_attribute_spec): Take const_tree.
11333         * tree.h: Adjust.
11334
11335 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
11336
11337         * config/sparc/sparc.c (sparc_option_override): Use
11338         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11339
11340 2011-03-11  Richard Guenther  <rguenther@suse.de>
11341
11342         PR tree-optimization/48067
11343         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11344         multiplication result will be only used once on the target
11345         stmt.
11346
11347 2011-03-11  Richard Guenther  <rguenther@suse.de>
11348
11349         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11350
11351 2011-03-11  Richard Guenther  <rguenther@suse.de>
11352
11353         PR lto/48073
11354         * tree.c (find_decls_types_r): Do not walk types only reachable
11355         from IDENTIFIER_NODEs.
11356
11357 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11358
11359         PR middle-end/48044
11360         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11361         all vnode->force_output nodes as needed.
11362
11363 2011-03-11  Jason Merrill  <jason@redhat.com>
11364
11365         PR c++/48069
11366         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11367         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11368
11369 2011-03-11  Martin Jambor  <mjambor@suse.cz>
11370
11371         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11372         cgraph_node.
11373
11374 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11375
11376         PR tree-optimization/48063
11377         * ipa-inline.c (cgraph_decide_inlining): Don't try to
11378         inline functions called once if !tree_can_inline_p (node->callers).
11379
11380 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
11381
11382         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11383         extra_objs.
11384         * config/score/score3.c: Delete.
11385         * config/score/score3.h: Delete.
11386         * config/score/mul-div.S: Delete.
11387         * config/score/sfp-machine.h: Add new file.
11388         * config/score/constraints.md: Add new file.
11389         * config/score/t-score-softfp: Add new file.
11390         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11391         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11392         (score7_extra_constraint): Delete.
11393         (score7_option_override): Remove unused code.
11394         * config/score/score.c: Remove score3 and score5 define and code.
11395         * config/score/score.h: Remove score3 and score5 define and code.
11396         * config/score/score.md: Remove score3 template and unusual insn.
11397         * config/score/score.opt: Remove score3 and score5 options.
11398
11399 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11400
11401         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11402         when _HPUX_SOURCE is defined.
11403         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11404
11405 2011-03-10  Jason Merrill  <jason@redhat.com>
11406
11407         PR c++/48029
11408         * stor-layout.c (layout_type): Don't set structural equality
11409         on arrays of incomplete type.
11410         * tree.c (type_hash_eq): Handle comparing them properly.
11411
11412 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
11413
11414         PR debug/48043
11415         * config/s390/s390.c (s390_delegitimize_address): Make sure the
11416         result mode matches original rtl mode.
11417
11418 2011-03-10  Nick Clifton  <nickc@redhat.com>
11419
11420         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11421         (andsi3, andsi3_flags): Fix timings for three operand alternative.
11422
11423 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
11424
11425         PR rtl-optimization/47866
11426         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11427         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11428         if target wasn't scalar.
11429         * function.c (assign_stack_temp_for_type): Assert that neither
11430         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11431         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11432         macro.
11433         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11434
11435 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11436
11437         * config/s390/s390-protos.h (s390_label_align): New prototype.
11438         * config/s390/s390.c (s390_label_align): New function.
11439         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11440
11441 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11442
11443         PR target/47755
11444         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11445         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
11446         (output_vec_const_move): Ditto.
11447
11448 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
11449
11450         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11451         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11452         * config/mips/mips.c (mips_preferred_reload_class): Make static.
11453         Change 'rclass' argument and result type to reg_class_t.
11454         (TARGET_PREFERRED_RELOAD_CLASS): Define.
11455
11456 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
11457
11458         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11459         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11460         (TARGET_MEMORY_MOVE_COST): Define.
11461         (avr_register_move_cost, avr_memory_move_cost): New Functions.
11462
11463 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
11464
11465         PR debug/47881
11466         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11467         removed anything.
11468
11469         PR tree-optimization/48022
11470         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11471         for EQ/NE_EXPR.
11472
11473 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
11474
11475         PR debug/47991
11476         * var-tracking.c (find_use_val): Return NULL for
11477         cui->sets && cui->store_p BLKmode MEMs.
11478
11479 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
11480
11481         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11482         Remove.
11483         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11484         xstormy16_print_operand_address): Remove.
11485         * config/stormy16/stormy16.c (xstormy16_print_operand,
11486         xstormy16_print_operand_address): Make static.
11487         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11488
11489 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
11490
11491         PR target/47862
11492         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11493         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11494         before definition.
11495
11496 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
11497
11498         PR bootstrap/48000
11499         * cfgloopmanip.c (fix_bb_placements): Return immediately
11500         if FROM is BASE_LOOP's header.
11501
11502 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
11503
11504         * gimplify.c (gimplify_function_tree): Fix building calls
11505         to __builtin_return_address.
11506
11507 2011-03-07  Alan Modra  <amodra@gmail.com>
11508
11509         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11510         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11511         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11512         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11513         return_mode args.
11514         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11515         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11516         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11517         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11518         * config/rs6000/rs6000.c
11519         (rs6000_elf_end_indicate_exec_stack): Rename to..
11520         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
11521         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
11522         (rs6000_file_start): ..here.
11523         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11524         file scope variables.
11525         (call_ABI_of_interest): New function.
11526         (init_cumulative_args): Set above vars when function return value
11527         is a float, vector, or small struct.
11528         (rs6000_function_arg_advance_1): Likewise for function args.
11529         (rs6000_va_start): Set rs6000_passes_float if variable arg function
11530         references float args.
11531
11532 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
11533
11534         * doc/cfg.texi: Remove "See" before @ref.
11535         * doc/invoke.texi: Likewise.
11536
11537 2011-03-05  Jason Merrill  <jason@redhat.com>
11538
11539         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11540
11541 2011-03-05  Anthony Green  <green@moxielogic.com>
11542
11543         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11544
11545 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
11546
11547         PR rtl-optimization/47899
11548         * cfgloopmanip.c (fix_bb_placements): Fix first argument
11549         to flow_loop_nested_p when moving the loop upward.
11550
11551 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
11552
11553         PR target/47719
11554         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
11555
11556 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
11557
11558         PR tree-optimization/47967
11559         * ipa-cp.c (build_const_val): Return NULL instead of creating
11560         VIEW_CONVERT_EXPR for mismatching sizes.
11561         (ipcp_create_replace_map): Return NULL if build_const_val failed.
11562         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11563         give up on versioning.
11564
11565 2011-03-05  Alan Modra  <amodra@gmail.com>
11566
11567         PR target/47986
11568         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11569         full cmodel medium/large lo_sum + high addresses.
11570
11571 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11572
11573         * config/s390/s390.c (s390_decompose_address): Reject non-literal
11574         pool references in UNSPEC_LTREL_OFFSET.
11575
11576 2011-03-04  Jan Hubicka  <jh@suse.cz>
11577
11578         PR lto/47497
11579         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11580         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11581         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11582         Add node pointers.
11583         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11584         cgraph_add_thunk): Add node pointers.
11585         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11586         associated to right node.
11587         (input_node): Update use of cgraph_same_body_alias
11588         and cgraph_add_thunk.
11589
11590 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
11591
11592         * config/i386/i386.opt (mprefer-avx128): New flag.
11593         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11594         modes when the flag -mprefer-avx128 is on.
11595
11596 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
11597
11598         * dwarf2out.c (compare_loc_operands): Fix address handling.
11599
11600 2011-03-04  Alan Modra  <amodra@gmail.com>
11601
11602         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11603
11604 2011-03-04  Richard Guenther  <rguenther@suse.de>
11605
11606         PR middle-end/47968
11607         * expmed.c (extract_bit_field_1): Prefer vector modes that
11608         vec_extract patterns can handle.
11609
11610 2011-03-04  Richard Guenther  <rguenther@suse.de>
11611
11612         PR middle-end/47975
11613         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11614
11615 2011-03-04  Richard Henderson  <rth@redhat.com>
11616
11617         * explow.c (emit_stack_save): Remove 'after' parameter.
11618         (emit_stack_restore): Likewise.
11619         * expr.h: Update to match.
11620         * builtins.c, calls.c, stmt.c: Likewise.
11621         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11622         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11623         * function.c (expand_function_end): Insert the emit_stack_save
11624         sequence before parm_birth_insn instead of after.
11625
11626 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
11627
11628         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11629         (ssse3_pmaddubsw128): Ditto.
11630         (ssse3_pmaddubsw): Ditto.
11631
11632 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
11633
11634         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11635
11636 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
11637
11638         PR c/47963
11639         * gimplify.c (omp_add_variable): Only call omp_notice_variable
11640         on TYPE_SIZE_UNIT if it is a DECL.
11641
11642         PR debug/47283
11643         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11644         first operand is not is_gimple_mem_ref_addr, try to fold it.
11645         If the operand still isn't is_gimple_mem_ref_addr, clear
11646         MEM_EXPR on op0.
11647
11648 2011-03-03  Richard Guenther  <rguenther@suse.de>
11649
11650         PR middle-end/47283
11651         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11652         match comment.
11653         (refs_may_alias_p_1): For release branches return true if
11654         we are confused by our input.
11655
11656 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11657
11658         * config/s390/s390.c (s390_function_value): Rename to ...
11659         (s390_function_and_libcall_value): ... this.
11660         (s390_function_value): New function.
11661         (s390_libcall_value): New function.
11662         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11663         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11664         target macro definitions.
11665         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11666
11667 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
11668
11669         * config/i386/freebsd64.h (CC1_SPEC): Define.
11670         * config/i386/linux64.h (CC1_SPEC): Define.
11671         * config/i386/x86-64.h (CC1_SPEC): Don't define.
11672
11673 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
11674
11675         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11676         Remove.
11677         * config/stormy16/stormy16.c: Include reload.h.
11678         (xstormy16_memory_move_cost): New function.
11679         (TARGET_MEMORY_MOVE_COST): Define.
11680
11681 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
11682
11683         PR rtl-optimization/47925
11684         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11685         with side effects.  Remove the more-specific check for volatile asms.
11686
11687 2011-03-02  Alan Modra  <amodra@gmail.com>
11688
11689         PR target/47935
11690         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11691         toc relative addresses for valid offsets.
11692
11693 2011-03-01  Richard Guenther  <rguenther@suse.de>
11694
11695         PR tree-optimization/47890
11696         * tree-vect-loop.c (get_initial_def_for_induction): Set
11697         related stmt properly.
11698
11699 2011-03-01  Richard Guenther  <rguenther@suse.de>
11700
11701         PR lto/47924
11702         * lto-streamer.c (lto_record_common_node): Also register
11703         the canonical type.
11704
11705 2011-03-01  Richard Guenther  <rguenther@suse.de>
11706
11707         PR lto/46911
11708         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11709         Do not stream DECL_ABSTRACT_ORIGIN.
11710         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11711         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11712         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11713         Do not stream DECL_ABSTRACT_ORIGIN.
11714         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11715         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11716
11717 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
11718
11719         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11720         FUNCTION_VALUE_REGNO_P): Remove.
11721         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11722         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11723         Add 'outgoing' argument.
11724         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11725         function.
11726         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11727         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11728
11729 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
11730
11731         PR debug/28047
11732         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11733         (lookup_filename): Likewise.
11734         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11735
11736 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
11737             Jakub Jelinek  <jakub@redhat.com>
11738
11739         PR middle-end/47893
11740         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11741         (assign_stack_local_1): Change last argument type to int.
11742         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11743         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
11744         don't record padding space into frame_space_list nor use those areas.
11745         (assign_stack_local): Adjust caller.
11746         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11747         of assign_stack_local, pass 0 as last argument.
11748         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11749         callers.
11750
11751 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
11752
11753         PR debug/47283
11754         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11755         Use target address_mode and pointer_mode hooks instead of hardcoded
11756         Pmode and ptr_mode.  Handle some simple cases of extending if
11757         POINTERS_EXTEND_UNSIGNED < 0.
11758         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11759         Call convert_debug_memory_address.
11760         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11761         convert_debug_memory_address.
11762
11763         PR middle-end/46790
11764         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11765         * configure: Regenerated.
11766         * config.in: Regenerated.
11767         * varasm.c (default_function_section): Return NULL
11768         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11769
11770 2011-02-28  Martin Jambor  <mjambor@suse.cz>
11771
11772         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11773         the description to match the printed values.
11774
11775 2011-02-28  Richard Guenther  <rguenther@suse.de>
11776
11777         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11778         of the copied scope tree.
11779
11780 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11781
11782         * doc/extend.texi (Function Attributes): Avoid deeply (and
11783         wrongly) nested tables.
11784
11785 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
11786
11787         PR middle-end/47903
11788         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11789         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11790         r isn't op0 nor op1.
11791
11792 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11793
11794         * config/avr/avr.md: Remove magic comment for emacs.
11795
11796 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11797
11798         PR target/45261
11799         * config/avr/avr.c (avr_option_override): Use error on bad options.
11800         (avr_help): New function.
11801         (TARGET_HELP): Define.
11802
11803 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
11804
11805         PR target/42240
11806         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11807         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11808
11809 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
11810
11811         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11812         (ARM Options): Ditto.
11813         (i386 and x86-64 Options): Ditto.
11814         (RX Options): Ditto.
11815         (SPARC Options): Ditto.
11816
11817 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
11818
11819         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11820         FreeBSD 6 and later.  Generally use cpu generic.
11821
11822 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
11823
11824         * doc/cpp.texi: Update copyright years.
11825
11826 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11827
11828         PR target/46898
11829         * config/lm32/lm32.md (ashrsi3): Added needed variable.
11830
11831 2011-02-25  Jon Beniston  <jon@beniston.com>
11832
11833         PR target/46898
11834         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11835         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11836         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11837         (lm32_block_move_inline): Add type cast to remove warning.
11838         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11839         (gen_int_relational): Move declarations to start of function.
11840
11841 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11842
11843         PR tree-optimization/45470
11844         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11845         can throw internally only.
11846         * tree-vect-stmts.c (vectorizable_call): Likewise.
11847
11848 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
11849
11850         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11851         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11852         * config/stormy16/stormy16-protos.h
11853         (xstormy16_preferred_reload_class): Remove.
11854         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11855         static. Change 'rclass' argument and return type to reg_class_t.
11856         (TARGET_PREFERRED_RELOAD_CLASS,
11857         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11858
11859 2011-02-24  Richard Guenther  <rguenther@suse.de>
11860
11861         * lto-streamer-in.c (input_bb): Do not find referenced vars
11862         in debug statements.
11863
11864 2011-02-23  Jason Merrill  <jason@redhat.com>
11865
11866         * common.opt (fabi-version): Document v5 and v6.
11867
11868 2011-02-23  Richard Guenther  <rguenther@suse.de>
11869
11870         PR tree-optimization/47849
11871         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11872
11873 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11874
11875         * opts-common.c (decode_cmdline_option): Print empty string
11876         argument as "" in decoded->orig_option_with_args_text.
11877         * gcc.c (execute): Print empty string argument as ""
11878         in the verbose output.
11879         (do_spec_1): Keep empty string argument.
11880
11881 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
11882
11883         * config.gcc: Declare score-* and crx-* obsolete.
11884
11885 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11886
11887         PR rtl-optimization/47763
11888         * web.c (web_main): Ignore naked clobber when replacing register.
11889
11890 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
11891
11892         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11893         Remove.
11894
11895 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11896
11897         PR doc/47848
11898         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11899
11900 2011-02-22  Mike Stump  <mikestump@comcast.net>
11901
11902         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11903         assembler.
11904         * configure: Regenerate.
11905
11906 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
11907
11908         PR rtl-optimization/46002
11909         * ira-color.c (update_copy_costs): Change class intersection
11910         test to reg_class_contents[] test of 'hard_regno'.
11911
11912 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
11913
11914         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11915         than Driver option.
11916         * config/hpux11.opt (mt): Likewise.
11917         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11918         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11919         * config/vax/elf.opt (mno-asm-pic): Likewise.
11920         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11921
11922 2011-02-21  Mike Stump  <mikestump@comcast.net>
11923
11924         PR target/47822
11925         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11926         tree so we can get save the type.
11927         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11928         for CFString instead of trying to use past the end of the builtins.
11929         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11930         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11931         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11932         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11933         Rename to darwin_builtin_cfstring.
11934         (darwin_init_cfstring_builtins): Return the built type.
11935
11936 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
11937
11938         PR target/47840
11939         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11940         (_mm256_insert_epi64): Use _mm_insert_epi64.
11941
11942 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
11943
11944         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11945         * config/stormy16/stormy16-protos.h
11946         (xstormy16_mode_dependent_address_p): Remove.
11947         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11948         Make static. Change return type to bool. Change argument type to
11949         const_rtx. Remove dead code.
11950         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11951
11952 2011-02-21  Richard Guenther  <rguenther@suse.de>
11953
11954         PR lto/47820
11955         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11956         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11957         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11958         TUs context.
11959         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11960         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11961
11962 2011-02-20  Richard Guenther  <rguenther@suse.de>
11963
11964         PR lto/47822
11965         * tree.c (free_lang_data_in_decl): Clean builtins from
11966         the TU decl BLOCK_VARS.
11967
11968 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
11969
11970         PR debug/47620
11971         PR debug/47630
11972         * haifa-sched.c (fix_tick_ready): Skip tick computation
11973         for debug insns.
11974
11975 2011-02-19  Richard Guenther  <rguenther@suse.de>
11976
11977         PR lto/47647
11978         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11979         Remove lazy BLOCK_VARS streaming.
11980         (lto_input_ts_block_tree_pointers): Likewise.
11981         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11982
11983 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11984
11985         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11986
11987 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11988
11989         * config/i386/biarch32.h, config/i386/mach.h,
11990         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11991
11992 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11993
11994         PR target/47800
11995         * config/i386/i386.md (peephole2 for shift and plus): Use
11996         operands[1] original mode in the first insn.
11997
11998 2011-02-18  Mike Stump  <mikestump@comcast.net>
11999
12000         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
12001
12002 2011-02-18  Jan Hubicka  <jh@suse.cz>
12003
12004         PR middle-end/47788
12005         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
12006         to zero when the function is not inlinable at all.
12007
12008 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12009
12010         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
12011         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12012         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
12013         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
12014         * config/pa/t-pa64: Likewise.
12015         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
12016
12017 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
12018
12019         PR driver/47787
12020         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
12021
12022 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12023
12024         PR target/47792
12025         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
12026
12027 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
12028
12029         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12030         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
12031         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
12032         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12033         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
12034         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
12035         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
12036         m32r_load_postinc_p, m32r_store_preinc_predec_p,
12037         m32r_legitimate_address_p): New functions.
12038         * config/m32r/constraints.md (constraint "S"): Don't use
12039         STORE_PREINC_PREDEC_P.
12040         (constraint "U"): Don't use LOAD_POSTINC_P.
12041
12042 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
12043
12044         PR rtl-optimization/46178
12045         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
12046         compute ira_hard_regno_cover_class[].
12047
12048 2011-02-18  Richard Guenther  <rguenther@suse.de>
12049
12050         PR lto/47798
12051         * lto-streamer.h (lto_global_var_decls): Declare.
12052         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
12053         statics for global var processing.
12054
12055 2011-02-18  Richard Guenther  <rguenther@suse.de>
12056
12057         PR tree-optimization/47737
12058         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
12059         edge dominance check.
12060
12061 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
12062
12063         PR debug/47780
12064         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
12065         avoid invalid rtx sharing.
12066
12067 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
12068
12069         * doc/cpp.texi (Obsolete Features): Add background on the
12070         origin of assertions.
12071
12072 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
12073
12074         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
12075         objc_abi == 2.
12076         * config/darwin.c (output_objc_section_asm_op): Added support for
12077         ABI v1 and v2.
12078         (is_objc_metadata): New.
12079         (darwin_objc2_section): New.
12080         (darwin_objc1_section): New.
12081         (machopic_select_section): Added support for ABI v1 and v2.
12082         (darwin_emit_objc_zeroed): New.
12083         (darwin_output_aligned_bss): Detect objc metadata and treat it
12084         appropriately.
12085         (darwin_asm_output_aligned_decl_common): Same.
12086         (darwin_asm_output_aligned_decl_local): Same.
12087         * config/darwin-sections.def: Updated for ABI v1 and v2.
12088         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12089         compiling Objective-C code for the NeXT runtime, default to using
12090         ABI version 0 for 32-bit, and version 2 for 64-bit.
12091
12092 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12093
12094         * common.opt (optimize_fast): New Variable.
12095         * opts.c (default_options_optimization): Use opts->x_optimize_fast
12096         instead of local variable ofast.
12097
12098 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
12099
12100         * doc/invoke.texi (fobjc-abi-version): Documented.
12101         (fobjc-nilcheck): Documented.
12102         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12103         version.
12104
12105 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12106
12107         PR driver/47390
12108         * common.opt (export-dynamic): New Driver option.
12109         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12110
12111 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12112
12113         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12114
12115 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
12116             Jan Hubicka  <jh@suse.cz>
12117
12118         PR debug/47106
12119         PR debug/47402
12120         * cfgexpand.c (account_used_vars_for_block): Remove.
12121         (estimated_stack_frame_size): Use referenced vars.
12122         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12123         that were referenced in the original function.  Test src_fn
12124         rather than cfun.  Drop redundant get_var_ann.
12125         (setup_one_parameter): Drop redundant get_var_ann.
12126         (declare_return_variable): Likewise.
12127         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12128         (copy_arguments_for_versioning): Drop redundant get_var_ann.
12129         * ipa-inline.c (compute_inline_parameters): Do not compute
12130         disregard_inline_limits here.
12131         (compute_inlinable_for_current, pass_inlinable): New.
12132         (pass_inline_parameters): Require PROP_referenced_vars.
12133         * cgraphunit.c (cgraph_process_new_functions): Don't run
12134         compute_inline_parameters explicitly unless function is in SSA form.
12135         (cgraph_analyze_function): Set .disregard_inline_limits.
12136         * tree-sra.c (convert_callers): Compute inliner parameters
12137         only for functions already in SSA form.
12138
12139 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12140
12141         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12142         -mlittle-endian-data.
12143
12144 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12145
12146         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12147         -mno-fpu, not -fpu and -no-fpu.
12148         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12149         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12150
12151 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
12152
12153         PR target/43653
12154         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12155         input reload with PLUS RTX.
12156
12157 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12158
12159         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12160         of InverseVar(MDMX).
12161
12162 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12163
12164         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12165         --m4-340.
12166
12167 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12168
12169         * config/mn10300/mn10300.opt (mno-crt0): New.
12170
12171 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12172
12173         * config/m68k/uclinux.opt (static-libc): New Driver option.
12174
12175 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12176
12177         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12178
12179 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12180
12181         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12182         %{muser-extend-enabled}.
12183
12184 2011-02-16  Richard Guenther  <rguenther@suse.de>
12185
12186         PR tree-optimization/47738
12187         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12188         the TODO from tree_predictive_commoning.
12189
12190 2011-02-15  Jeff Law  <law@redhat.com>
12191
12192         Revert
12193         2011-01-25  Jeff Law  <law@redhat.com>
12194
12195         PR rtl-optimization/37273
12196         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12197         handle them like argument loads from stack slots.  Do not double
12198         count memory for memory constants and argument loads from stack slots.
12199
12200 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12201
12202         PR middle-end/47725
12203         * combine.c (cant_combine_insn_p): Revert the last change.
12204
12205 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
12206
12207         PR target/47755
12208         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12209         mode for vector constants.  Remove code that checks for TImode.
12210
12211 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12212
12213         PR debug/47106
12214         PR debug/47402
12215         * cgraph.h (compute_inline_parameters): Return void.
12216         * ipa-inline.c (compute_inline_parameters): Adjust.
12217
12218 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12219
12220         PR debug/47106
12221         PR debug/47402
12222         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12223         rather than decl.
12224         * cfgexpand.c (estimated_stack_frame_size): Likewise.
12225         * ipa-inline.c (compute_inline_parameters): Adjust.
12226
12227 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12228
12229         PR debug/47106
12230         PR debug/47402
12231         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12232         Adjust all users.  Pass FN to...
12233         * tree-flow-inline.h (first_referenced_var): ... this.  Add
12234         fn argument.
12235         * ipa-struct-reorg.c: Adjust.
12236         * tree-dfa.c: Adjust.
12237         * tree-into-ssa.c: Adjust.
12238         * tree-sra.c: Adjust.
12239         * tree-ssa-alias.c: Adjust.
12240         * tree-ssa-live.c: Adjust.
12241         * tree-ssa.c: Adjust.
12242         * tree-ssanames.c: Adjust.
12243         * tree-tailcall.c: Adjust.
12244
12245 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12246
12247         PR debug/47106
12248         PR debug/47402
12249         * tree-flow.h (referenced_var_lookup): Add fn parameter.
12250         Adjust all callers.
12251         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12252         * tree-flow-inline.h: Adjust.
12253         * gimple-pretty-print.c: Adjust.
12254         * tree-into-ssa.c: Adjust.
12255         * tree-ssa.c: Adjust.
12256         * cfgexpand.c: Adjust.
12257
12258 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12259
12260         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12261         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12262         (EXTRA_CONSTRAINT): Delete.
12263         * config/iq2000/constraints.md: New file.
12264         * config/iq2000/iq2000.md: Include it.
12265         (define_insn ""): Delete.
12266         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12267         unsupported constraint letters from patterns.
12268         (call_value, call_value_internal1): Likewise.
12269         (call_value_multiple_internal1): Likewise.
12270
12271 2011-02-15  Nick Clifton  <nickc@redhat.com>
12272
12273         * config/mn10300/mn10300.c: Include tm-constrs.h.
12274         (struct liw_data): New data structure describing an LIW candidate
12275         instruction.
12276         (extract_bundle): Use struct liw_data.  Allow small integer
12277         operands for some instructions.
12278         (check_liw_constraints): Use struct liw_data.  Remove swapped
12279         parameter.  Add comments describing the checks.  Fix bug when
12280         assigning the source of liw1 to the source of liw2.
12281         (liw_candidate): Delete.  Code moved into extract_bundle.
12282         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
12283         before swapping.
12284         * config/mn10300/predicates.md (liw_operand): New predicate.
12285         Allows registers and small integer constants.
12286         * config/mn10300/constraints.md (O): New constraint.  Accetps
12287         integers in the range -8 to +7 inclusive.
12288         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12289         for moving a small integer into a register.  Give this alternative
12290         LIW attributes.
12291         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12292         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12293         using the J,K,L and M constraints,
12294         (liw): Remove SI mode on second operands to allow for HI and QI
12295         mode values.
12296         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
12297         instruction.
12298
12299 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12300
12301         PR middle-end/47725
12302         * combine.c (cant_combine_insn_p): Check zero/sign extended
12303         hard registers.
12304
12305 2011-02-15  Richard Guenther  <rguenther@suse.de>
12306
12307         PR tree-optimization/47743
12308         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12309         for a non-type-compatible VN lookup bail out.
12310
12311 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12312
12313         * config/fr30/constraints.md: New file.
12314         * config/fr30/fr30.md: Include it.
12315         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12316         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12317         (EXTRA_CONSTRAINT): Delete.
12318
12319 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12320
12321         * config/frv/constraints.md: New file.
12322         * config/frv/predicates.md: Include it.
12323         * config/frv/frv.c (reg_class_from_letter): Delete.
12324         (frv_option_override): Don't initialize it.
12325         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12326         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12327         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12328         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12329         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12330         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12331         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12332         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12333         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12334         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12335         (REG_CLASS_FROM_CONSTRAINT): Delete.
12336
12337 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
12338
12339         PR middle-end/47581
12340         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12341         if frame size is 0 in a leaf function.
12342
12343 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12344
12345         PR pch/14940
12346         * config/alpha/host-osf.c: New file.
12347         * config/alpha/x-osf: New file.
12348         * config.host (alpha*-dec-osf*): Use it.
12349
12350 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12351
12352         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12353         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12354         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12355         (rx_mode_dependent_address_p): ...this. Make static. Change argument
12356         type to const_rtx.
12357         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12358
12359 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12360
12361         * config/stormy16/constraints.md: New file.
12362         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12363         Use satisfies_constraint_Q and satisfies_constraint_R.
12364         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12365         Delete.
12366         (xstormy16_legitiamte_address_p): Declare.
12367         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12368         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12369         (EXTRA_CONSTRAINT): Delete.
12370         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12371         Un-staticize.
12372         (xstormy16_extra_constraint_p): Delete.
12373
12374 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
12375
12376         PR tree-optimization/46494
12377         * loop-unroll.c (split_edge_and_insert): Adjust comment.
12378         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12379         (pass_rtl_loop_done): Add TODO_verify_flow.
12380         * fwprop.c (pass_rtl_fwprop): Likewise.
12381         * modulo-sched.c (pass_sms): Likewise.
12382         * tree-ssa-dom.c (pass_dominator): Likewise.
12383         * tree-ssa-loop-ch.c (pass_ch): Likewise.
12384         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12385         (pass_tree_loop_done): Likewise.
12386         * tree-ssa-pre.c (execute_pre): Likewise.
12387         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12388         * tree-ssa-sink.c (pass_sink_code): Likewise.
12389         * tree-vrp.c (pass_vrp): Likewise.
12390
12391 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12392
12393         * config/v850/constraints.md: New file.
12394         * config/v850/v850.md: Include it.
12395         * config/v850/predicates.md (reg_or_0_operand): Use
12396         satisfies_constraint_G.
12397         (special_symbolref_operand): Use satisfies_constraint_K.
12398         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12399         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12400         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12401         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12402         (EXTRA_CONSTRAINT): Delete.
12403         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12404         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12405         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12406
12407 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12408
12409         PR target/47696
12410         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12411         description.
12412
12413 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12414
12415         * config/mcore/constraints.md: New file.
12416         * config/mcore/mcore.md: Include it.
12417         * config/mcore/mcore.c (reg_class_from_letter): Delete.
12418         * config/mcore/mcore.h (reg_class_from_letter): Delete.
12419         (REG_CLASS_FROM_LETTER): Delete.
12420         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12421         insn_const_int_ok_for_constraint.
12422         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12423         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12424         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12425         (EXTRA_CONSTRAINT): Delete.
12426
12427 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12428
12429         PR ada/41929
12430         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12431         (IS_SIGHANDLER): Define.
12432         (sparc64_is_sighandler): New function, split off from
12433         sparc64_fallback_frame_state.
12434         (sparc_is_sighandler): New function, split off from
12435         sparc_fallback_frame_state.
12436         (sparc64_fallback_frame_state): Merge with ...
12437         (sparc_fallback_frame_state): ... this into ...
12438         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12439         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
12440         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
12441         stack instead of hardcoded offsets.
12442
12443 2011-02-14  Andriy Gapon  <avg@freebsd.org>
12444
12445         PR target/45808
12446         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12447
12448 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12449
12450         * configure: Regenerate.
12451
12452 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
12453
12454         PR driver/45731
12455         * gcc.c (asm_options): Correct spec matching --target-help.
12456
12457 2011-02-12  Martin Jambor  <mjambor@suse.cz>
12458
12459         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12460         to gimple call error.
12461
12462 2011-02-12  Mike Stump  <mikestump@comcast.net>
12463
12464         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12465         comments in backslash regions.
12466
12467 2011-02-12  Mike Stump  <mikestump@comcast.net>
12468             Jakub Jelinek  <jakub@redhat.com>
12469             Iain Sandoe  <iains@gcc.gnu.org>
12470
12471         PR target/47324
12472         * dwarf2out.c (output_cfa_loc): When required, apply the
12473         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12474         (output_loc_sequence): Likewise.
12475         (output_loc_operands_raw): Likewise.
12476         (output_loc_sequence_raw): Likewise.
12477         (output_cfa_loc): Likewise.
12478         (output_loc_list): Suppress register number adjustment when
12479         calling output_loc_sequence()
12480         (output_die): Likewise.
12481
12482 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
12483
12484         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12485         Remove macros.
12486         * config/xtensa/xtensa.c (xtensa_register_move_cost,
12487         xtensa_memory_move_cost): New functions.
12488         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12489
12490 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
12491
12492         PR lto/47225
12493         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12494         in the current directory.
12495         * configure: Rebuilt.
12496
12497 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12498
12499         * config/darwin.c (darwin_override_options): Add a hunk missed
12500         from the commit of r168571.  Trim comment line lengths and
12501         correct indents of the preceding block.
12502
12503 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12504
12505         * gcc.c (driver_handle_option): Concatenate the argument to -F with
12506         the switch.
12507
12508 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12509
12510         * common.opt (nostartfiles): New Driver option.
12511
12512 2011-02-11  Xinliang David Li  <davidxl@google.com>
12513
12514         PR tree-optimization/47707
12515         * tree-chrec.c (convert_affine_scev): Keep type precision.
12516
12517 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
12518
12519         PR tree-optimization/47420
12520         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12521
12522 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
12523
12524         PR rtl-optimization/47614
12525         * rtl.h (check_for_inc_dec): Declare.
12526         * dse.c (check_for_inc_dec): Externalize...
12527         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12528         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12529
12530 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12531
12532         PR driver/47678
12533         * gcc.c (main): Do not compile inputs if there were errors in
12534         option handling.
12535         * opts-common.c (read_cmdline_option): Check for wrong language
12536         after other error checks.
12537
12538 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
12539
12540         * cgraph.c: Fix comment typos.
12541         * cgraph.h: Likewise.
12542         * cgraphunit.c: Likewise.
12543         * ipa-cp.c: Likewise.
12544         * ipa-inline.c: Likewise.
12545         * ipa-prop.c: Likewise.
12546         * ipa-pure-const.c: Likewise.
12547         * ipa-ref.c: Likewise.
12548         * ipa-reference.c: Likewise.
12549
12550 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
12551
12552         PR debug/47684
12553         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12554
12555 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12556
12557         PR testsuite/47400
12558         * doc/sourcebuild.texi (Require Support): Document
12559         dg-require-ascii-locale.
12560
12561 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
12562
12563         * doc/lto.texi (Write summary): Fix missing parentheses.
12564
12565 2011-02-10  DJ Delorie  <dj@redhat.com>
12566
12567         * config/m32c/m32c.c (m32c_option_override): Disable
12568         -fcombine-stack-adjustments until flag value tracking and compare
12569         optimization can be rewritten.
12570
12571 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
12572
12573         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12574         PROCESSOR_POWER7.
12575         (PROCESSOR_DEFAULT64): Likewise.
12576
12577 2011-02-10  Richard Henderson  <rth@redhat.com>
12578
12579         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12580         change from 2011-02-03.
12581         * config/rx/rx.c (flags_from_code): Likewise.
12582         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12583         is valid, n/pz otherwise.
12584         (rx_select_cc_mode): Return CCmode if Y is not zero.
12585
12586 2011-02-10  Richard Guenther  <rguenther@suse.de>
12587
12588         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12589
12590 2011-02-10  Richard Guenther  <rguenther@suse.de>
12591
12592         PR tree-optimization/47677
12593         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12594
12595 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
12596
12597         PR target/47665
12598         * combine.c (make_compound_operation): Only change shifts into
12599         multiplication for SCALAR_INT_MODE_P.
12600
12601 2011-02-10  Jie Zhang  <jie@codesourcery.com>
12602
12603         PR testsuite/47622
12604         Revert
12605         2011-02-05  Jie Zhang  <jie@codesourcery.com>
12606         PR debug/42631
12607         * web.c (entry_register): Don't clobber the number of the
12608         first uninitialized reference in used[].
12609
12610 2011-02-09  Richard Guenther  <rguenther@suse.de>
12611
12612         PR tree-optimization/47664
12613         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12614         all edges again.
12615
12616 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
12617
12618         PR target/46481
12619         PR target/47032
12620         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12621         PROCESSOR_POWER7.
12622         (PROCESSOR_DEFAULT64): Same.
12623         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12624
12625 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12626
12627         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12628
12629 2011-02-09  Martin Jambor  <mjambor@suse.cz>
12630
12631         PR middle-end/45505
12632         * tree-sra.c (struct access): New flags grp_scalar_read and
12633         grp_scalar_write.  Changed description of assignment read and write
12634         flags.
12635         (dump_access): Dump new flags, reorder all of them.
12636         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12637         to detect multiple scalar reads.
12638         (analyze_access_subtree): Use the new scalar read write flags instead
12639         of the old flags.  Adjusted comments.
12640
12641 2011-02-08  DJ Delorie  <dj@redhat.com>
12642
12643         PR target/47548
12644         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12645         patterns.
12646
12647 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12648
12649         * config/m68k/uclinux.opt: New.
12650         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12651
12652 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12653
12654         * config/cris/elf.opt (sim): New Driver option.
12655
12656 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12657
12658         * config/xtensa/elf.opt: New.
12659         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12660
12661 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12662
12663         * config/vax/elf.opt: New.
12664         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12665
12666 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12667
12668         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12669
12670 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12671
12672         * config/gnu-user.opt: New.
12673         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12674         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12675         *-*-uclinux*): Use gnu-user.opt.
12676
12677 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
12678
12679         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12680         * config/i386/gnu.h (CPP_SPEC): Likewise.
12681
12682 2011-02-08  Ian Lance Taylor  <iant@google.com>
12683
12684         * common.opt (fcx-limited-range): Add SetByCombined flag.
12685         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12686         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12687         (fassociative-math, freciprocal-math): Likewise.
12688         (funsafe-math-optimizations): Likewise.
12689         * opth-gen.awk: Handle SetByCombined.
12690         * optc-gen.awk: Likewise.
12691         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12692         (set_unsafe_math_optimizations_flags): Likewise.
12693         * doc/options.texi (Option properties): Document SetByCombined.
12694
12695 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12696
12697         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12698         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12699         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12700         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12701         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12702
12703 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
12704
12705         PR tree-optimization/46834
12706         PR tree-optimization/46994
12707         PR tree-optimization/46995
12708         * graphite-sese-to-poly.c (used_outside_reduction): New.
12709         (detect_commutative_reduction): Call used_outside_reduction.
12710         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12711         translate_scalar_reduction_to_array only when at least one
12712         loop-phi/close-phi tuple has been detected.
12713
12714 2011-02-08  Richard Guenther  <rguenther@suse.de>
12715
12716         PR middle-end/47639
12717         * tree-vect-generic.c (expand_vector_operations_1): Update
12718         stmts here ...
12719         (expand_vector_operations): ... not here.  Cleanup EH info
12720         and the CFG if required.
12721
12722 2011-02-08  Richard Guenther  <rguenther@suse.de>
12723
12724         PR tree-optimization/47641
12725         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12726         require type compatibility.
12727
12728 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12729
12730         * gimple-low.c (lower_function_body): Don't remove the location of
12731         the return statement here.
12732         (lower_gimple_return): Do it here instead but only if the return
12733         statement is actually used twice.
12734
12735 2011-02-08  Richard Guenther  <rguenther@suse.de>
12736
12737         PR tree-optimization/47632
12738         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12739         unused up_to_stmt parameter, return whether cfg-cleanup is
12740         necessary, remove EH info properly.
12741         (forward_propagate_into_gimple_cond): Adjust caller.
12742         (forward_propagate_into_cond): Likewise.
12743         (forward_propagate_comparison): Likewise.
12744         (tree_ssa_forward_propagate_single_use_vars): Make
12745         forward_propagate_comparison case similar to the two others.
12746
12747 2011-02-08  Nick Clifton  <nickc@redhat.com>
12748
12749         * config/mn10300/mn10300.opt (mliw): New command line option.
12750         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12751         (liw_bundling): New automaton.
12752         (liw): New attribute.
12753         (liw_op): New attribute.
12754         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12755         (movsi_internal): Add LIW attributes.
12756         (andsi3): Likewise.
12757         (iorsi3): Likewise.
12758         (xorsi3): Likewise.
12759         (addsi3): Separate register and immediate alternatives.
12760         Add LIW attributes.
12761         (subsi3): Likewise.
12762         (cmpsi): Likewise.
12763         (aslsi3): Likewise.
12764         (lshrsi3): Likewise.
12765         (ashrsi3): Likewise.
12766         (liw): New pattern.
12767         * config/mn10300/mn10300.c (liw_op_names): New
12768         (mn10300_print_operand): Handle 'W' operand descriptor.
12769         (extract_bundle): New function.
12770         (check_liw_constraints): New function.
12771         (liw_candidate): New function.
12772         (mn10300_bundle_liw): New function.
12773         (mn10300_reorg): New function.
12774         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12775         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12776         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12777         __LIW__ or __NO_LIW__.
12778         * doc/invoke.texi: Describe the -mliw command line option.
12779
12780 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12781
12782         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12783         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12784         pthread_mutex_unlock): Remove.
12785         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12786         * config/pa/t-pa64: Likewise.
12787         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12788         shared libc if not linking against libpthread.
12789         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12790
12791 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
12792
12793         PR target/47558
12794         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12795         on 10.6 and later to ensure that we always use the unwinder from
12796         the system.  Only add -no_compact_unwind when tarteting darwin
12797         10.6 or later.
12798
12799 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
12800
12801         PR target/46997
12802         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12803         (vec_interleave_lowv2sf): Ditto.
12804         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12805         (vec_extract_oddv2sf): Ditto.
12806
12807 2011-02-07  Mike Stump  <mikestump@comcast.net>
12808
12809         PR target/42333
12810         Add __ieee_divdc3 entry point.
12811         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12812         entry point.
12813         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12814         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12815         * config/darwin.c (darwin_rename_builtins): Add.
12816         * config/darwin-protos.h (darwin_rename_builtins): Add.
12817
12818 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12819
12820         PR target/47636
12821         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12822         for the condition.
12823
12824 2011-02-07  Mike Stump  <mikestump@comcast.net>
12825
12826         * config/darwin.opt (mmacosx-version-min): Update default OS version.
12827
12828 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
12829
12830         PR target/47534
12831         * config/avr/libgcc.S (exit): Move .endfunc
12832
12833 2011-02-07  Richard Guenther  <rguenther@suse.de>
12834
12835         PR tree-optimization/47615
12836         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12837         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12838         (run_scc_vn): Initialize it.
12839         (visit_reference_op_load): Use it.
12840         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12841
12842 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12843
12844         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12845         DImode trapping arithmetic libfuncs.
12846
12847 2011-02-07  Richard Guenther  <rguenther@suse.de>
12848
12849         PR tree-optimization/47621
12850         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12851         two duplicates ...
12852         (execute_update_addresses_taken): ... here.  Make it more
12853         conservative in what we accept.
12854
12855 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12856
12857         * config/sparc/freebsd.h (ASM_SPEC): Define.
12858         * config/sparc/vxworks.h (ASM_SPEC): Define.
12859
12860 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12861
12862         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12863
12864 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
12865
12866         * doc/invoke.texi: Remove reference to compiler internals from
12867         user documentation.
12868
12869         * reg-notes.def: Remove REG_VALUE_PROFILE.
12870         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12871
12872 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
12873
12874         PR middle-end/47610
12875         * varasm.c (default_section_type_flags): If decl is NULL,
12876         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12877
12878 2011-02-05  Jie Zhang  <jie@codesourcery.com>
12879
12880         PR debug/42631
12881         * web.c (entry_register): Don't clobber the number of the
12882         first uninitialized reference in used[].
12883
12884 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
12885
12886         PR tree-optimization/46194
12887         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12888         (build_classic_dist_vector_1): Do not represent classic distance
12889         vectors when the access functions are variating in different loops.
12890
12891 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12892
12893         * config/mips/iris6.opt: New.
12894         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12895
12896 2011-02-04  Richard Henderson  <rth@redhat.com>
12897             Steve Ellcey  <sje@cup.hp.com>
12898
12899         PR target/46997
12900         * config/ia64/predicates.md (mux1_brcst_element): New.
12901         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12902         * config/ia64/ia64.c (ia64_unpack_assemble): New.
12903         (ia64_unpack_sign): New.
12904         (ia64_expand_unpack): Rewrite using new routines.
12905         (ia64_expand_widen_sum): Ditto.
12906         (ia64_expand_dot_prod_v8qi): Ditto.
12907         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12908         routines, add endian check.
12909         (pmpy2_even): Rename from pmpy2_r, add endian check.
12910         (pmpy2_odd): Rename from pmpy2_l, add endian check.
12911         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12912         (vec_widen_smult_hi_v4hi): Ditto.
12913         (vec_widen_umult_lo_v4hi): Ditto.
12914         (vec_widen_umult_hi_v4hi): Ditto.
12915         (mulv2si3): Change endian checks.
12916         (sdot_prodv4hi): Rewrite with new calls.
12917         (udot_prodv4hi): New.
12918         (vec_pack_ssat_v4hi): Add endian check.
12919         (vec_pack_usat_v4hi): Ditto.
12920         (vec_pack_ssat_v2si): Ditto.
12921         (max1_even): Rename from max1_r, add endian check.
12922         (max1_odd): Rename from max1_l, add endian check.
12923         (*mux1_rev): Format change.
12924         (*mux1_mix): Ditto.
12925         (*mux1_shuf): Ditto.
12926         (*mux1_alt): Ditto.
12927         (*mux1_brcst_v8qi): Use new predicate.
12928         (vec_extract_evenv8qi): Remove endian check.
12929         (vec_extract_oddv8qi): Ditto.
12930         (vec_interleave_lowv4hi): Format change.
12931         (vec_interleave_highv4hi): Ditto.
12932         (mix2_even): Rename from mix2_r, add endian check.
12933         (mix2_odd): Rename from mux2_l, add endian check.
12934         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12935         (vec_extract_evenodd_helper): Format change.
12936         (vec_extract_evenv4hi): Remove endian check.
12937         (vec_extract_oddv4hi): Remove endian check.
12938         (vec_interleave_lowv2si): Format change.
12939         (vec_interleave_highv2si): Format change.
12940         (vec_initv2si): Remove endian check.
12941         (vecinit_v2si): Add endian check.
12942         (reduc_splus_v2sf): Add endian check.
12943         (reduc_smax_v2sf): Ditto.
12944         (reduc_smin_v2sf): Ditto.
12945         (vec_initv2sf): Remove endian check.
12946         (fpack): Add endian check.
12947         (fswap): Add endian check.
12948         (vec_interleave_highv2sf): Add endian check.
12949         (vec_interleave_lowv2sf): Add endian check.
12950         (fmix_lr): Add endian check.
12951         (vec_setv2sf): Format change.
12952         (*vec_extractv2sf_0_be): Use shift to extract operand.
12953         (*vec_extractv2sf_1_be): New.
12954         (vec_pack_trunc_v4hi): Add endian check.
12955         (vec_pack_trunc_v2si): Format change.
12956
12957 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
12958
12959         PR inline-asm/23200
12960         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
12961         do bb, locus and block comparison and disallow loads if it is not set.
12962         (stmt_is_replaceable_p): New function.
12963         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12964         callers.
12965         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12966         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12967         SSA_NAME_DEF_STMT.
12968         * tree-flow.h (stmt_is_replaceable_p): New prototype.
12969
12970 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12971
12972         * config/rs6000/xilinx.opt: New.
12973         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12974
12975 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12976
12977         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12978
12979 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12980
12981         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12982         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12983         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12984         secondary_reload_info, xtensa_secondary_reload): Remove.
12985         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12986         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12987         (xtensa_preferred_reload_class): Make static. Change return and
12988         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12989         Use CONST_DOUBLE_P predicate.
12990         (xtensa_preferred_output_reload_class): New function.
12991         (xtensa_secondary_reload): Make static.
12992
12993 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12994
12995         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12996         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12997         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12998
12999 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
13000
13001         PR middle-end/31490
13002         * output.h (SECTION_RELRO): Define.
13003         (SECTION_MACH_DEP): Adjust.
13004         (get_variable_section): New prototype.
13005         * varpool.c (varpool_finalize_named_section_flags): New function.
13006         (varpool_assemble_pending_decls): Call it.
13007         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
13008         * cgraphunit.c (cgraph_output_in_order): Call
13009         varpool_finalize_named_section_flags.
13010         * varasm.c (get_section): Allow section flags conflicts between
13011         relro and read-only sections if the section hasn't been declared yet.
13012         Set SECTION_OVERRIDE after diagnosing section type conflict.
13013         (get_variable_section): No longer static.
13014         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
13015         readonly sections that need relocations.
13016         (decl_readonly_section_1): New function.
13017         (decl_readonly_section): Use it.
13018
13019         Revert:
13020         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
13021                     Steve Ellcey  <sje@cup.hp.com>
13022
13023         PR middle-end/31490
13024         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
13025         if section attribute used.
13026
13027 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
13028
13029         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
13030         * config/darwin.c (SECTION_NO_ANCHOR): Define.
13031         (darwin_init_sections): Remove assertion.
13032
13033 2011-02-03  Nick Clifton  <nickc@redhat.com>
13034
13035         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
13036         lt and ge.
13037         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
13038         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
13039         instead of "n" and "pz".
13040         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
13041         CC_FLAG_S.
13042
13043 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
13044
13045         PR target/47312
13046         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
13047         fma, expand FMA_EXPR as fma{,f,l} call.
13048
13049         PR lto/47274
13050         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
13051         copy them into a unsigned char variable and pass address of it to
13052         lto_output_data_stream.
13053
13054         PR target/47564
13055         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
13056         around backend_init_target and lang_dependent_init_target calls.
13057         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
13058         (verify_cgraph_node): Don't call set_cfun here.  Use
13059         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
13060         Set error_found for incorrectly represented calls to thunks.
13061
13062 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
13063
13064         PR debug/43092
13065         PR rtl-optimization/43494
13066         * rtl.h (for_each_inc_dec_fn): New type.
13067         (for_each_inc_dec): Declare.
13068         * rtlanal.c (struct for_each_inc_dec_ops): New type.
13069         (for_each_inc_dec_find_inc_dec): New fn.
13070         (for_each_inc_dec_find_mem): New fn.
13071         (for_each_inc_dec): New fn.
13072         * dse.c (struct insn_size): Remove.
13073         (replace_inc_dec, replace_inc_dec_mem): Remove.
13074         (emit_inc_dec_insn_before): New fn.
13075         (check_for_inc_dec): Use it, along with for_each_inc_dec.
13076         (canon_address): Pass mem modes to cselib_lookup.
13077         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
13078         (cselib_lookup_from_insn): Likewise.
13079         (cselib_subst_to_values): Likewise.
13080         * cselib.c (find_slot_memmode): New var.
13081         (cselib_find_slot): New fn.  Use it instead of
13082         htab_find_slot_with_hash everywhere.
13083         (entry_and_rtx_equal_p): Use find_slot_memmode.
13084         (autoinc_split): New fn.
13085         (rtx_equal_for_cselib_p): Rename and implement in terms of...
13086         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
13087         Deal with autoinc.  Special-case recursion into MEMs.
13088         (cselib_hash_rtx): Likewise.
13089         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
13090         address and MEM modes.
13091         (cselib_subst_to_values): Add memmode, pass it on.
13092         Deal with autoinc.
13093         (cselib_lookup): Add memmode argument, pass it on.
13094         (cselib_lookup_from_insn): Add memmode.
13095         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13096         (struct cselib_record_autoinc_data): New.
13097         (cselib_record_autoinc_cb): New fn.
13098         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
13099         mode to cselib_lookup.  Reset autoinced REGs here instead of...
13100         (cselib_process_insn): ... here.
13101         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13102         to cselib_lookup.
13103         (add_uses): Likewise, also to cselib_subst_to_values.
13104         (add_stores): Likewise.
13105         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
13106         cselib_subst_to_values.
13107         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
13108         * gcse.c (do_local_cprop): Adjusted.
13109         * postreload.c (reload_cse_simplify_set): Adjusted.
13110         (reload_cse_simplify_operands): Adjusted.
13111         * sel-sched-dump (debug_mem_addr_value): Pass mode.
13112
13113 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
13114
13115         PR tree-optimization/45122
13116         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13117         unsafe assumptions when there's more than one loop exit.
13118
13119 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13120
13121         PR target/47272
13122         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13123         Document using vector double with the load/store builtins, and
13124         that the load/store builtins always use Altivec instructions.
13125
13126         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13127         to use altivec memory instructions, even on VSX.
13128         (vector_altivec_store_<mode>): Ditto.
13129
13130         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13131         function.
13132
13133         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13134         V2DF, V2DI support to load/store overloaded builtins.
13135
13136         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13137         altivec load/store builtins for V2DF/V2DI types.
13138
13139         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13140         set avoid indexed addresses on power6 if -maltivec.
13141         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13142         vector_altivec_load/vector_altivec_store builtins.
13143         (altivec_expand_st_builtin): Ditto.
13144         (altivec_expand_builtin): Add VSX memory builtins.
13145         (rs6000_init_builtins): Add V2DI types to internal types.
13146         (altivec_init_builtins): Add support for V2DF/V2DI altivec
13147         load/store builtins.
13148         (rs6000_address_for_altivec): Insure memory address is appropriate
13149         for Altivec.
13150
13151         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13152         vec_vsx_ld and vec_vsx_st.
13153         (vsx_store_<mode>): Ditto.
13154
13155         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13156         variables to hold long long types for VSX vector memory builtins.
13157         (RS6000_BTI_unsigned_long_long): Ditto.
13158         (long_long_integer_type_internal_node): Ditti.
13159         (long_long_unsigned_type_internal_node): Ditti.
13160
13161         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13162         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13163         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13164
13165         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13166         short cuts.
13167         (vec_vsx_st): Ditto.
13168
13169 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13170
13171         * config/pa/pa-hpux10.opt: New.
13172         * config/hpux11.opt (pthread): New Driver option.
13173         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13174         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13175
13176 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13177
13178         * config/ia64/vms.opt: New.
13179         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13180
13181 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
13182
13183         PR target/47580
13184         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13185         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13186         generator functions.
13187         (vsx_floatuns<VSi><mode>2): Ditto.
13188         (vsx_fix_trunc<mode><VSi>2): Ditto.
13189         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13190
13191 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13192
13193         * config/i386/djgpp.opt (posix): New Driver option.
13194
13195 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
13196
13197         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13198         Move to the unsupported targets list.
13199
13200 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
13201
13202         PR rtl-optimization/47525
13203         * df-scan.c: Update copyright years.
13204         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13205         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13206
13207 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13208
13209         * config/i386/sysv4.h (TARGET_VERSION): Remove.
13210         (SUBTARGET_RETURN_IN_MEMORY): Remove.
13211         (ASM_OUTPUT_ASCII): Remove.
13212         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13213
13214 2011-02-02  Jeff Law  <law@redhat.com>
13215
13216         PR middle-end/47543
13217         * reload.c (find_reloads_address): Handle reg+d address where both
13218         components are invalid by reloading the entire address.
13219
13220 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
13221             Richard Guenther  <rguenther@suse.de>
13222
13223         PR tree-optimization/40979
13224         PR bootstrap/47044
13225         * passes.c (init_optimization_passes): After LIM call copy_prop
13226         and DCE to clean up.
13227         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13228
13229 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
13230
13231         PR tree-optimization/47576
13232         PR tree-optimization/47555
13233         * doc/invoke.texi (scev-max-expr-complexity): Documented.
13234         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13235         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13236         * tree-scalar-evolution.c (follow_ssa_edge): Use
13237         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13238
13239 2011-02-02  Richard Guenther  <rguenther@suse.de>
13240
13241         PR tree-optimization/47566
13242         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13243
13244 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13245
13246         PR debug/47106
13247         PR debug/47402
13248         * tree-inline.c (declare_return_variable): Remove unused caller
13249         variable.
13250
13251         PR debug/47106
13252         PR debug/47402
13253         * tree-flow-inline.h (clear_is_used, is_used_p): New.
13254         * cfgexpand.c (account_used_vars_for_block): Use them.
13255         * tree-nrv.c (tree_nrv): Likewise.
13256         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13257         (dump_scope_block): Likewise.
13258         (remove_unused_locals): Likewise.
13259
13260         PR debug/47106
13261         PR debug/47402
13262         * tree-inline.c (declare_return_variable): Add result decl to
13263         local decls only once.
13264         * gimple-low.c (record_vars_into): Mark newly-created variables
13265         as referenced.
13266
13267 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13268
13269         PR debug/47498
13270         PR debug/47501
13271         PR debug/45136
13272         PR debug/45130
13273         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13274         debug insns.
13275         (no_real_insns_p, schedule_block, set_priorities): Drop special
13276         treatment of boundary debug insns.
13277         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13278         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13279         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13280         (BOUNDARY_DEBUG_INSN_P): Likewise.
13281         (SCHEDULE_DEBUG_INSN_P): Likewise.
13282         * sched-rgn.c (init_ready_list): Drop special treatment of
13283         boundary debug insns.
13284         * final.c (rest_of_clean_state): Clear notes' BB.
13285
13286 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13287
13288         * config/openbsd.opt (assert=): New Driver option.
13289
13290 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13291
13292         * config/i386/nto.opt: New.
13293         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13294
13295 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13296
13297         * config/i386/netware.opt: New.
13298         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13299
13300 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13301
13302         * config/interix.opt (posix): New Driver option.
13303
13304 2011-02-01  DJ Delorie  <dj@redhat.com>
13305
13306         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13307
13308         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13309         class for A0/A1.
13310
13311 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
13312
13313         PR tree-optimization/47561
13314         * toplev.c (process_options): Print the Graphite flags.  Add
13315         flag_loop_flatten to the list of options requiring Graphite.
13316
13317 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13318
13319         * config/i386/cygming.opt (posix): New Driver option.
13320
13321 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13322
13323         * config/arm/vxworks.opt: New.
13324         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13325
13326 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13327
13328         * config/alpha/elf.opt: New.
13329         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13330         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13331
13332 2011-02-01  Richard Guenther  <rguenther@suse.de>
13333
13334         PR tree-optimization/47559
13335         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13336         store-motion on references that can throw.
13337
13338 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
13339
13340         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13341         * tree-pass.h (TDF_CSELIB): New macro.
13342         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13343         cselib_lookup): Check for it rather than for TDF_DETAILS.
13344
13345 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
13346
13347         PR driver/47547
13348         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13349         is HOST_BIT_BUCKET.
13350
13351         * opts.c (finish_options): Don't add x_aux_base_name if it is
13352         HOST_BIT_BUCKET.
13353
13354 2011-02-01  Richard Guenther  <rguenther@suse.de>
13355
13356         PR tree-optimization/47555
13357         Revert
13358         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
13359
13360         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13361
13362 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
13363
13364         PR gcc/46692
13365         * config/lm32/t-lm32: Add multilib for all CPU options.
13366
13367 2011-02-01  Richard Guenther  <rguenther@suse.de>
13368
13369         PR tree-optimization/47541
13370         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13371         sure to have a field at offset zero.
13372
13373 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13374
13375         * config/arc/arc.opt (EB, EL): New Driver options.
13376
13377 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13378
13379         * config/alpha/osf5.opt: New.
13380         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13381
13382 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13383
13384         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13385
13386 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
13387
13388         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13389         -floop-interchange.
13390         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13391         is an alias of -floop-interchange and that it requires the
13392         Graphite infrastructure.
13393         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13394         flag_loop_interchange based on the value of flag_tree_loop_linear.
13395
13396 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
13397             Richard Guenther  <rguenther@suse.de>
13398
13399         PR tree-optimization/47538
13400         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13401         type instead of r1type, except for comparisons.  For right
13402         shifts and comparisons punt if there are mismatches in
13403         sizetype vs. non-sizetype types.
13404
13405 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13406
13407         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13408         avx_runtime.
13409
13410 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13411
13412         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13413         version number.
13414         * configure: Regenerate.
13415
13416 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13417
13418         * configure.ac (gcc_cv_ld_static_option): Define.
13419         (gcc_cv_ld_dynamic_option): Define.
13420         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13421         instead.
13422         (HAVE_LD_STATIC_DYNAMIC): Update message.
13423         (LD_STATIC_OPTION): Define.
13424         (LD_DYNAMIC_OPTION): Define.
13425         * configure: Regenerate.
13426         * config.in: Regenerate.
13427         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13428         HAVE_LD_STATIC_DYNAMIC]: Use them.
13429
13430 2011-01-31  Nick Clifton  <nickc@redhat.com>
13431
13432         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13433         registers inside interrupt handlers if the handler is not a leaf
13434         function.
13435
13436 2011-01-31  Nick Clifton  <nickc@redhat.com>
13437
13438         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13439         reg_renumber returning an INVALID_REGNUM.
13440
13441 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13442
13443         PR libgcj/44341
13444         * doc/install.texi: Document host options discarded when cross
13445         configuring target libraries.
13446
13447 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13448
13449         Reverted:
13450         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13451         PR debug/45136
13452         PR debug/45130
13453         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13454         debug insns.
13455         (no_real_insns_p, schedule_block, set_priorities): Drop special
13456         treatment of boundary debug insns.
13457         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13458         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13459         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13460         (BOUNDARY_DEBUG_INSN_P): Likewise.
13461         (SCHEDULE_DEBUG_INSN_P): Likewise.
13462         * sched-rgn.c (init_ready_list): Drop special treatment of
13463         boundary debug insns.
13464         * final.c (rest_of_clean-state): Clear notes' BB.
13465
13466 2011-01-31  Alan Modra  <amodra@gmail.com>
13467
13468         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13469         toc relative expressions as we do in print_operand_address.
13470
13471 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
13472
13473         * doc/extend.texi: Follow spelling conventions.
13474         * doc/invoke.texi: Fix a typo.
13475
13476 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
13477
13478         * config/hpux11.opt: New.
13479         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13480         ia64*-*-hpux*): Use hpux11.opt.
13481
13482 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
13483
13484         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13485         to tmake_file.
13486
13487 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13488
13489         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13490         support sites.
13491
13492 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13493
13494         * doc/install.texi (Binaries): Remove outdated reference for
13495         Motorola 68HC11/68HC12 downloads.
13496
13497 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13498
13499         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13500         Drepper's paper.
13501
13502 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
13503
13504         PR bootstrap/47147
13505         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13506         used by NetBSD.
13507
13508 2011-01-28  Ahmad Sharif  <asharif@google.com>
13509
13510         * value-prof.c (check_counter): Corrected error message.
13511
13512 2011-01-29  Jie Zhang  <jie@codesourcery.com>
13513
13514         * config/arm/arm.c (arm_legitimize_reload_address): New.
13515         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13516         arm_legitimize_reload_address.
13517         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13518
13519 2011-01-28  Ian Lance Taylor  <iant@google.com>
13520
13521         * godump.c (go_define): Ignore macros whose definitions include
13522         two adjacent operands.
13523
13524 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
13525
13526         PR target/42894
13527         * varasm.c (force_const_mem): Store copy of x in desc->constant
13528         instead of x itself.
13529         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13530         itself into REG_EQUAL note.
13531
13532 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
13533
13534         * config/freebsd.opt (posix, rdynamic): New Driver options.
13535
13536 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13537
13538         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13539         -Bstatic/-Bdynamic.
13540         * configure: Regenerate.
13541
13542 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
13543
13544         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13545         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13546
13547 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
13548
13549         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13550         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13551         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13552         (s390_preferred_reload_class): Make static. Change return and
13553         'rclass' argument type to reg_class_t.
13554
13555 2011-01-27  Jan Hubicka  <jh@suse.cz>
13556
13557         PR middle-end/46949
13558         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13559         (process_function_and_variable_attributes): Check defined weakrefs.
13560
13561 2011-01-27  Martin Jambor  <mjambor@suse.cz>
13562
13563         PR tree-optimization/47228
13564         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13565         build_ref_for_offset.
13566
13567 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13568
13569         * config/spu/spu-elf.h (ASM_SPEC): Remove.
13570
13571 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
13572
13573         PR rtl-optimization/46856
13574         * postreload.c (reload_combine_recognize_const_pattern): Do not
13575         separate cc0 setter and user on cc0 targets.
13576
13577 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
13578
13579         PR c/43082
13580         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13581         passed a VOID_TYPE expression, immediately emit an error and
13582         return error_mark_node.
13583
13584 2011-01-26  Jeff Law  <law@redhat.com>
13585
13586         PR rtl-optimization/47464
13587         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13588         rather than may_trap_p as needed.
13589
13590 2011-01-26  DJ Delorie  <dj@redhat.com>
13591
13592         PR rtl-optimization/46878
13593         * combine.c (insn_a_feeds_b): Check for the implicit cc0
13594         setter/user dependency as well.
13595
13596 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
13597
13598         PR rtl-optimization/44469
13599         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13600         after removing trivially dead basic blocks.
13601
13602 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13603
13604         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13605         * config/frv/frv.h (LINK_SPEC): Likewise.
13606         * config/i386/netware.h (LINK_SPEC): Likewise.
13607         * config/m68k/linux.h (ASM_SPEC): Likewise.
13608         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13609         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13610         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13611         * config/sparc/linux.h (ASM_SPEC): Likewise.
13612         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13613         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13614
13615 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13616
13617         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13618         * config/frv/frv.h (ASM_SPEC): Likewise.
13619         * config/m68k/linux.h (ASM_SPEC): Likewise.
13620         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13621         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13622         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13623         * config/sparc/linux.h (ASM_SPEC): Likewise.
13624         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13625         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13626
13627 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13628
13629         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13630         * config/frv/frv.h (LINK_SPEC): Likewise.
13631         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13632
13633 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13634
13635         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13636         * config/frv/frv.h (ASM_SPEC): Likewise.
13637         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13638         * config/m68k/linux.h (ASM_SPEC): Likewise.
13639         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13640         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13641         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13642         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13643         * config/sparc/linux.h (ASM_SPEC): Likewise.
13644         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13645         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13646         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13647
13648 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
13649
13650         PR target/46997
13651         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13652         (*mux2): Ditto.
13653         (vec_extract_evenodd_help): Ditto.
13654         (vec_extract_evenv4hi): Ditto.
13655         (vec_extract_oddv4hi): Ditto.
13656         (vec_interleave_lowv2si): Ditto.
13657         (vec_interleave_highv2si): Ditto.
13658         (vec_extract_evenv2si): Ditto.
13659         (vec_extract_oddv2si: Ditto.
13660         (vec_pack_trunc_v2si): Ditto.
13661
13662 2011-01-22  Jan Hubicka  <jh@suse.cz>
13663
13664         PR target/47237
13665         * cgraph.h (cgraph_local_info): New field can_change_signature.
13666         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13667         signature can change.
13668         (ipcp_estimate_growth): Call sequence simplify only if calle signature
13669         can change.
13670         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13671         (cgraph_function_versioning): We can not change signature of functions
13672         that don't allow that.
13673         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13674         (lto_input_node): Likewise.
13675         * ipa-inline.c (compute_inline_parameters): Compute
13676         local.can_change_signature.
13677         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13678         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13679         functions that can not change signature.
13680         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13681         init_cumulative_args): Do not use local calling conventions
13682         for functions that can not change signature.
13683
13684 2011-01-22  Jan Hubicka  <jh@suse.cz>
13685
13686         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13687
13688 2011-01-26  Richard Guenther  <rguenther@suse.de>
13689
13690         PR tree-optimization/47190
13691         * cgraphunit.c (process_common_attributes): New function.
13692         (process_function_and_variable_attributes): Use it.
13693
13694 2011-01-26  Richard Guenther  <rguenther@suse.de>
13695
13696         PR lto/47423
13697         * cgraphbuild.c (record_eh_tables): Record reference to personality
13698         function.
13699
13700 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
13701
13702         PR debug/45454
13703         * sel-sched.c (moveup_expr): Don't let debug insns prevent
13704         non-debug insns from moving up.
13705
13706 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13707
13708         PR target/40125
13709         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13710         t-dlldir{,-x} fragment for build and add it to tmake_file.
13711         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13712         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13713         * config/i386/t-dlldir: New file.
13714         (SHLIB_DLLDIR): Define.
13715         * config/i386/t-dlldir-x: New file.
13716         (SHLIB_DLLDIR): Define.
13717         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13718         (SHLIB_INSTALL): Use it.
13719
13720 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
13721
13722         PR target/47246
13723         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13724         lower bound of the allowed Thumb-2 coprocessor load/store
13725         index range to -256. Add explaining comment.
13726
13727 2011-01-25  Ian Lance Taylor  <iant@google.com>
13728
13729         * godump.c (go_define): Improve lexing of macro expansion to only
13730         accept expressions which match Go spec.
13731
13732 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13733
13734         PR c++/43601
13735         * tree.c (handle_dll_attribute): Handle it.
13736         * doc/extend.texi (@item dllexport): Mention it.
13737         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13738
13739 2011-01-25  Ian Lance Taylor  <iant@google.com>
13740
13741         PR tree-optimization/26854
13742         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13743         (decl_jump_unsafe): Move higher in file, with no other change.
13744         (bind): Set has_jump_unsafe_decl if appropriate.
13745         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13746         (check_earlier_gotos): Likewise.
13747         (c_check_switch_jump_warnings): Likewise.
13748
13749 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
13750
13751         * doc/invoke.texi (Warning Options): Add missing hyphen.
13752         (-fprofile-dir): Minor grammatical fixes.
13753         (-fbranch-probabilities): Likewise.
13754
13755 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13756
13757         PR debug/45136
13758         PR debug/45130
13759         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13760         debug insns.
13761         (no_real_insns_p, schedule_block, set_priorities): Drop special
13762         treatment of boundary debug insns.
13763         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13764         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13765         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13766         (BOUNDARY_DEBUG_INSN_P): Likewise.
13767         (SCHEDULE_DEBUG_INSN_P): Likewise.
13768         * sched-rgn.c (init_ready_list): Drop special treatment of
13769         boundary debug insns.
13770         * final.c (rest_of_clean-state): Clear notes' BB.
13771
13772 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13773
13774         * Makefile.in (LAMBDA_H): Removed.
13775         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13776         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13777         lambda-trans.o, and tree-loop-linear.o.
13778         (lto-symtab.o): Remove dependence on LAMBDA_H.
13779         (tree-loop-linear.o): Remove rule.
13780         (lambda-mat.o): Same.
13781         (lambda-trans.o): Same.
13782         (lambda-code.o): Same.
13783         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13784         (tree-vect-slp.o): Same.
13785         * hwint.h (gcd): Moved here.
13786         (least_common_multiple): Same.
13787         * lambda-code.c: Removed.
13788         * lambda-mat.c: Removed.
13789         * lambda-trans.c: Removed.
13790         * lambda.h: Removed.
13791         * tree-loop-linear.c: Removed.
13792         * lto-symtab.c: Do not include lambda.h.
13793         * omega.c (gcd): Removed.
13794         * passes.c (init_optimization_passes): Remove pass_linear_transform.
13795         * tree-data-ref.c (print_lambda_vector): Moved here.
13796         (lambda_vector_copy): Same.
13797         (lambda_matrix_copy): Same.
13798         (lambda_matrix_id): Same.
13799         (lambda_vector_first_nz): Same.
13800         (lambda_matrix_row_add): Same.
13801         (lambda_matrix_row_exchange): Same.
13802         (lambda_vector_mult_const): Same.
13803         (lambda_vector_negate): Same.
13804         (lambda_matrix_row_negate): Same.
13805         (lambda_vector_equal): Same.
13806         (lambda_matrix_right_hermite): Same.
13807         * tree-data-ref.h: Do not include lambda.h.
13808         (lambda_vector): Moved here.
13809         (lambda_matrix): Same.
13810         (dependence_level): Same.
13811         (lambda_transform_legal_p): Removed declaration.
13812         (lambda_collect_parameters): Same.
13813         (lambda_compute_access_matrices): Same.
13814         (lambda_vector_gcd): Same.
13815         (lambda_vector_new): Same.
13816         (lambda_vector_clear): Same.
13817         (lambda_vector_lexico_pos): Same.
13818         (lambda_vector_zerop): Same.
13819         (lambda_matrix_new): Same.
13820         * tree-flow.h (least_common_multiple): Removed declaration.
13821         * tree-parloops.c (lambda_trans_matrix): Moved here.
13822         (LTM_MATRIX): Same.
13823         (LTM_ROWSIZE): Same.
13824         (LTM_COLSIZE): Same.
13825         (LTM_DENOMINATOR): Same.
13826         (lambda_trans_matrix_new): Same.
13827         (lambda_matrix_vector_mult): Same.
13828         (lambda_transform_legal_p): Same.
13829         * tree-pass.h (pass_linear_transform): Removed declaration.
13830         * tree-ssa-loop.c (tree_linear_transform): Removed.
13831         (gate_tree_linear_transform): Removed.
13832         (pass_linear_transform): Removed.
13833         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13834         flag_loop_interchange.
13835
13836 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13837
13838         PR tree-optimization/47265
13839         PR tree-optimization/47443
13840         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13841         if name still has some uses.
13842
13843 2011-01-25  Martin Jambor  <mjambor@suse.cz>
13844
13845         PR tree-optimization/47382
13846         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13847         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13848
13849 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
13850
13851         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13852         sjlj_except_unwind_info.
13853
13854 2011-01-25  Richard Guenther  <rguenther@suse.de>
13855
13856         PR tree-optimization/47426
13857         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13858         visible functions results escape.
13859
13860 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13861
13862         PR target/45701
13863         * config/arm/arm.c (any_sibcall_uses_r3): New function.
13864         (arm_get_frame_offsets): Use it.
13865
13866 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13867             Jakub Jelinek  <jakub@redhat.com>
13868
13869         PR tree-optimization/47271
13870         * tree-if-conv.c (bb_postdominates_preds): New.
13871         (if_convertible_bb_p): Call bb_postdominates_preds.
13872         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13873         (predicate_scalar_phi): Call bb_postdominates_preds.
13874
13875 2011-01-25  Nick Clifton  <nickc@redhat.com>
13876
13877         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13878         * config/rx/rx.c (rx_function_value): Likewise.
13879         (rx_promote_function_mode): Likewise.
13880         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13881         in order to make it legitimate.
13882         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13883         make sure that the first operand is the same as the result register.
13884         (addsi3_unspec): Delete.
13885         (subdi3): Do not accept immediate operands.
13886         (subdi3_internal): Likewise.
13887
13888 2011-01-25  Jeff Law  <law@redhat.com>
13889
13890         PR rtl-optimization/37273
13891         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13892         handle them like argument loads from stack slots.  Do not double
13893         count memory for memory constants and argument loads from stack slots.
13894
13895 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13896
13897         PR tree-optimization/47427
13898         PR tree-optimization/47428
13899         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13900         coalesce if the new root var would be TREE_READONLY.
13901
13902 2011-01-25  Richard Guenther  <rguenther@suse.de>
13903
13904         PR middle-end/47414
13905         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13906         correct type for TBAA.
13907
13908 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13909
13910         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13911         (close_phi_written_to_memory): Call for_each_index with
13912         dr_indices_valid_in_loop.
13913
13914 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13915
13916         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13917         when it is initialized.
13918
13919 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13920
13921         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13922         call to graphite_find_data_references_in_stmt.
13923         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13924         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
13925         call to graphite_find_data_references_in_stmt.
13926         (analyze_drs_in_stmts): Same.
13927         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13928         in which the scalar analysis of indices is performed.
13929         (create_data_ref): Same.  Update call to dr_analyze_indices.
13930         (find_data_references_in_stmt): Update call to create_data_ref.
13931         (graphite_find_data_references_in_stmt): Same.
13932         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13933         declaration.
13934         (create_data_ref): Same.
13935         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13936         call to create_data_ref.
13937
13938 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13939
13940         * graphite-sese-to-poly.c (build_poly_scop): Move
13941         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13942
13943 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13944
13945         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13946         VAR_DECL, PARM_DECL, and RESULT_DECL.
13947
13948 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13949
13950         * graphite-dependences.c (reduction_dr_1): Allow several reductions
13951         in a reduction PBB.
13952         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13953         that have already been marked as PBB_IS_REDUCTION.
13954
13955 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13956
13957         * graphite-scop-detection.c (same_close_phi_node): New.
13958         (remove_duplicate_close_phi): New.
13959         (make_close_phi_nodes_unique): New.
13960         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13961
13962 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13963
13964         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13965         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13966         of both data references to be the same.
13967
13968 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13969
13970         * graphite-dependences.c (build_lexicographical_constraint): Remove
13971         the gdim parameter.
13972         (build_lexicographical_constraint): Adjust call to
13973         ppl_powerset_is_empty.
13974         (dependence_polyhedron): Same.
13975         (graphite_legal_transform_dr): Same.
13976         (graphite_carried_dependence_level_k): Same.
13977         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13978         parameter.
13979         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13980
13981 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13982
13983         * graphite-sese-to-poly.c
13984         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13985         (close_phi_written_to_memory): New.
13986         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13987         and unshare_expr.
13988
13989 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13990
13991         * doc/install.texi: Update the expected version number of PPL to 0.11.
13992         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13993         #if PPL_VERSION_MINOR < 11.
13994
13995 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13996
13997         * graphite-dependences.c: Include graphite-cloog-util.h.
13998         (new_poly_ddr): Inlined into dependence_polyhedron.
13999         (free_poly_ddr): Moved close by new_poly_ddr.
14000         (dependence_polyhedron_1): Renamed dependence_polyhedron.
14001         Early return NULL when ppl_powerset_is_empty returns true.
14002         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
14003         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
14004         (graphite_legal_transform_dr): Call new_poly_ddr.
14005         (graphite_carried_dependence_level_k): Same.
14006         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
14007         (dot_transformed_deps_stmt_1): Removed.
14008         (dot_deps_stmt_1): Call dot_deps_stmt_2.
14009         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
14010         (dot_deps_1): Call dot_deps_2.
14011         * Makefile.in (graphite-dependences.o): Add missing dependence on
14012         graphite-cloog-util.h.
14013
14014 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14015
14016         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
14017         (build_lexicographical_constraint): Same.
14018         (dependence_polyhedron_1): Same.
14019         (graphite_legal_transform_dr): Same.
14020         (graphite_carried_dependence_level_k): Same.
14021         * graphite-ppl.c (ppl_powerset_is_empty): New.
14022         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
14023         * tree-data-ref.c (dump_data_reference): Print the basic block index.
14024
14025 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14026
14027         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
14028         the "a followed by b" relation and document it.
14029
14030 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14031
14032         * graphite-dependences.c (build_lexicographical_constraint): Stop the
14033         iteration when the bag of constraints is empty.
14034
14035 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14036
14037         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
14038
14039 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14040
14041         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
14042         nest and two loop depths as parameters.
14043         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
14044         lst_perfect_nestify.
14045
14046 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14047
14048         * graphite-dependences.c (print_pddr): Call
14049         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
14050
14051 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
14052
14053         * graphite-ppl.c (debug_gmp_value): New.
14054         * graphite-ppl.h (debug_gmp_value): Declared.
14055
14056 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
14057
14058         * doc/install.texi: Document availability of cloog-0.16.
14059
14060 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
14061
14062         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
14063         invalid postdominance info.
14064
14065 2011-01-24  Jan Hubicka  <jh@suse.cz>
14066
14067         PR c/21659
14068         * doc/extend.texi (weak pragma): Drop claim that it must
14069         appear before definition.
14070         * varasm.c (merge_weak, declare_weak): Only sanity check
14071         that DECL is not output at a time it is declared weak.
14072
14073 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
14074
14075         * machmode.def: Fixed comments.
14076
14077 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
14078
14079         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
14080
14081 2011-01-24  Paul Koning  <ni1d@arrl.net>
14082
14083         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
14084         WORDS_BIG_ENDIAN.
14085
14086 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14087
14088         PR target/46519
14089         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14090         (block_info): Add scanned and prev.
14091         (move_or_delete_vzeroupper_2): Return if the basic block
14092         has been scanned and the upper 128bit state is unchanged
14093         from the last scan.
14094         (move_or_delete_vzeroupper_1): Return true if the exit
14095         state is changed.
14096         (move_or_delete_vzeroupper): Visit basic blocks using the
14097         work-list based algorithm based on vt_find_locations in
14098         var-tracking.c.
14099
14100         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14101
14102 2011-01-24  Nick Clifton  <nickc@redhat.com>
14103
14104         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14105         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14106         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
14107         then define __v850e1__.
14108         * doc/invoke.texi: Document -mv850es.
14109
14110 2011-01-24  Richard Henderson  <rth@redhat.com>
14111
14112         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14113         compound unordered comparisons.
14114         * config/rx/rx.c (rx_split_fp_compare): Remove.
14115         * config/rx/rx-protos.h: Update.
14116         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14117         (cbranchsf4): Don't call rx_split_fp_compare.
14118         (*cbranchsf4): Use rx_split_cbranch.
14119         (*cmpsf): Don't accept "i" constraint.
14120         (*conditional_branch): Only valid after reload.
14121         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
14122
14123 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14124
14125         PR target/47385
14126         * config/rs6000/altivec.md (vector constant splitters): Add
14127         support for creating vector single precision constants if -mvsx is
14128         used and we would create the constant using Altivec primitives.
14129
14130 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
14131             Richard Sandiford  <rdsandiford@googlemail.com>
14132
14133         PR rtl-optimization/47166
14134         * reload1.c (emit_reload_insns): Disable the spill_reg_store
14135         mechanism for PRE_MODIFY and POST_MODIFY.
14136         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14137         reloadreg.
14138
14139 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
14140
14141         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14142
14143 2011-01-22  Jan Hubicka  <jh@suse.cz>
14144
14145         PR lto/47333
14146         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14147
14148 2011-01-22  Jan Hubicka  <jh@suse.cz>
14149
14150         PR tree-optimization/43884
14151         PR lto/44334
14152         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14153         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14154
14155 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
14156
14157         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14158         * config/s390/s390.c (s390_register_move_cost,
14159         s390_memory_move_cost): New.
14160         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14161
14162 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14163
14164         PR middle-end/47401
14165         * except.c (sjlj_assign_call_site_values): Move setting the
14166         crtl->uses_eh_lsda flag to ...
14167         (sjlj_mark_call_sites): ... here.
14168         (sjlj_emit_function_enter): Support NULL dispatch label.
14169         (sjlj_build_landing_pads): In a function with no landing pads
14170         that still has must-not-throw regions, generate code to register
14171         a personality function with empty LSDA.
14172
14173 2011-01-21  Richard Henderson  <rth@redhat.com>
14174
14175         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14176
14177         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14178
14179         * compare-elim.c: New file.
14180         * Makefile.in (OBJS-common): Add it.
14181         (compare-elim.o): New.
14182         * common.opt (fcompare-elim): New.
14183         * opts.c (default_options_table): Add OPT_fcompare_elim.
14184         * tree-pass.h (pass_compare_elim_after_reload): New.
14185         * passes.c (init_optimization_passes): Add it.
14186         * recog.h: Protect against re-inclusion.
14187         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14188         * doc/invoke.texi (-fcompare-elim): Document it.
14189         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14190         * doc/tm.texi: Rebuild.
14191
14192 2011-01-22  Nick Clifton  <nickc@redhat.com>
14193
14194         * config/rx/rx.md (cstoresf4): Pass comparison operator to
14195         rx_split_fp_compare.
14196
14197 2011-01-22  Nick Clifton  <nickc@redhat.com>
14198
14199         * config/rx/rx.md (UNSPEC_CONST): New.
14200         (deallocate_and_return): Wrap the amount popped off the stack in
14201         an UNSPEC_CONST in order to stop it being rejected by
14202         -mmax-constant-size.
14203         (pop_and_return): Add a "(return)" rtx.
14204         (call): Drop the immediate operand.
14205         (call_internal): Likewise.
14206         (call_value): Likewise.
14207         (call_value_internal): Likewise.
14208         (sibcall_internal): Likewise.
14209         (sibcall_value_internal): Likewise.
14210         (sibcall): Likewise.  Generate an explicit call using
14211         sibcall_internal.
14212         (sibcall_value): Likewise.
14213         (mov<>): FAIL if a constant operand is not legitimate.
14214         (addsi3_unpsec): New pattern.
14215
14216         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14217         (ok_for_max_constant): New function.
14218         (gen_safe_add): New function.
14219         (rx_expand_prologue): Use gen_safe_add.
14220         (rx_expand_epilogue): Likewise.
14221         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
14222         UNSPEC CONSTs.
14223
14224 2011-01-21  Jeff Law  <law@redhat.com>
14225
14226         PR tree-optimization/47053
14227         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14228         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14229         statements are deleted.
14230         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
14231         is nonempty, then purge dead edges and cleanup the CFG.
14232
14233 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14234
14235         PR debug/47402
14236         Temporarily revert:
14237         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14238         PR debug/47106
14239         * tree-dfa.c (create_var_ann): Mark variable as used.
14240
14241 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14242
14243         PR middle-end/45566
14244         * except.c (convert_to_eh_region_ranges): Emit queued no-region
14245         notes from other section in hot/cold partitioning even if
14246         last_action is -3.  Increment call_site_base.
14247
14248         PR rtl-optimization/47366
14249         * fwprop.c (forward_propagate_into): Return bool.  If
14250         any changes are made, -fnon-call-exceptions is used and
14251         REG_EH_REGION note is present, call purge_dead_edges
14252         and return true if it purged anything.
14253         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14254         any EH edges were purged.
14255
14256 2011-01-21  Jeff Law  <law@redhat.com>
14257
14258         PR rtl-optimization/41619
14259         * caller-save.c (setup_save_areas): Break out code to determine
14260         which hard regs are live across calls by examining the reload chains
14261         so that it is always used.
14262         Eliminate code which checked REG_N_CALLS_CROSSED.
14263
14264 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14265
14266         PR tree-optimization/47355
14267         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14268         NOP has non-debug uses beyond PHIs in new_bb.
14269
14270 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14271
14272         PR debug/47106
14273         * cfgexpand.c (account_used_vars_for_block): Only account vars
14274         that are annotated as used.
14275         (estimated_stack_frame_size): Don't set TREE_USED.
14276         * tree-dfa.c (create_var_ann): Mark variable as used.
14277
14278 2011-01-21  Richard Guenther  <rguenther@suse.de>
14279
14280         PR middle-end/47395
14281         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14282
14283 2011-01-21  Richard Guenther  <rguenther@suse.de>
14284
14285         PR tree-optimization/47365
14286         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14287         (vn_reference_lookup_pieces): Adjust.
14288         (vn_reference_lookup): Likewise.
14289         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14290         (vn_reference_lookup_3): Only look through kills if in
14291         VN_WALKREWRITE mode.
14292         (vn_reference_lookup_pieces): Adjust.
14293         (vn_reference_lookup): Likewise.
14294         (visit_reference_op_load): Likewise.
14295         (visit_reference_op_store): Likewise.
14296         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14297         (compute_avail): Likewise.
14298         (eliminate): Likewise.
14299
14300 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14301
14302         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14303         DECL_IGNORED_P non-reg vars if they are used.
14304
14305         PR tree-optimization/47391
14306         * varpool.c (const_value_known_p): Return false if
14307         decl is volatile.
14308
14309 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
14310
14311         PR bootstrap/47215
14312         * config/i386/i386.c (ix86_local_alignment): Handle
14313         case for va_list_type_node is nil.
14314         (ix86_canonical_va_list_type): Likewise.
14315
14316 2011-01-21  Alan Modra  <amodra@gmail.com>
14317
14318         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14319         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14320
14321 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14322
14323         * config/arm/arm.md (define_attr type): Rename f_load
14324         and f_store to f_fpa_load and f_fpa_store. Update.
14325         (write_conflict): Deal with rename fallout.
14326         (*push_fp_multi): Likewise.
14327         * config/arm/fpa.md (f_load): Use f_fpa_load.
14328         (f_store): Use f_fpa_store.
14329         (*movsf_fpa): Likewise.
14330         (*movdf_fpa): Likewise.
14331         (*movxf_fpa): Likewise.
14332         (*thumb2_movsf_fpa): Likewise.
14333         (*thumb2_movdf_fpa): Likewise.
14334         (*thumb2_movxf_fpa): Likewise.
14335         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14336         f_loadd and f_stored.
14337         (*thumb2_movdi_vfp): Likewise.
14338         (*thumb2_movsf_vfp): Fix attribute to f_loads.
14339         (*thumb2_movsi_vfp): Likewise.
14340         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14341         Use f_loads instead of f_load.
14342         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14343
14344 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
14345
14346         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14347         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14348         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14349         (xtensa_mode_dependent_address_p): New function.
14350         (constantpool_address_p): Make static. Change return type to bool.
14351         Change argument type to const_rtx. Use CONST_INT_P predicate.
14352
14353 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
14354
14355         PR debug/46583
14356         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14357
14358 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14359
14360         PR debug/47283
14361         * cfgexpand.c (expand_debug_expr): Instead of generating
14362         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14363         etc. handling.
14364
14365 2011-01-20  Richard Guenther  <rguenther@suse.de>
14366
14367         PR middle-end/47370
14368         * tree-inline.c (remap_gimple_op_r): Recurse manually for
14369         the pointer operand of MEM_REFs.
14370
14371 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14372
14373         PR tree-optimization/46130
14374         * ipa-split.c (consider_split): If return_bb contains non-virtual
14375         PHIs other than for retval or if split_function would not adjust it,
14376         refuse to split.
14377
14378 2011-01-20  Richard Guenther  <rguenther@suse.de>
14379
14380         PR tree-optimization/47167
14381         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14382         Revert previous change, only avoid enumeral type changes.
14383
14384 2011-01-19  Mike Stump  <mikestump@comcast.net>
14385
14386         * doc/tm.texi.in (BRANCH_COST): Englishify.
14387         * doc/tm.texi (BRANCH_COST): Likewise.
14388
14389 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
14390
14391         PR c++/47291
14392         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14393         (gen_scheduled_generic_parms_dies): New functions.
14394         (gen_struct_or_union_type_die): Schedule template parameters DIEs
14395         generation for the end of CU compilation.
14396         (dwarf2out_finish): Generate template parameters DIEs here.
14397
14398 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14399
14400         PR debug/46240
14401         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14402         debug bind stmt on merge edges.
14403
14404 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14405
14406         PR debug/47079
14407         PR debug/46724
14408         * function.c (instantiate_expr): Instantiate incoming rtl of
14409         implicit arguments, and recurse on VALUE_EXPRs.
14410         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14411         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14412
14413 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14414
14415         * c-parser.c (c_parser_for_statement): Initialize
14416         collection_expression.
14417
14418 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14419
14420         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14421
14422 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14423
14424         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14425         (LINK_SHLIB_SPEC): Don't use %(link_path).
14426         (SUBTARGET_EXTRA_SPECS): Remove link_path.
14427
14428 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14429
14430         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14431         (NO_SHARED_LIB_SUPPORT): Remove.
14432         (LINK_SHLIB_SPEC): Remove one conditional definition.
14433
14434 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14435
14436         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14437         %{call_shared}.
14438         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14439         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14440         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14441         %{call_shared} and conditionals on these options not being passed.
14442         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14443         %{call_shared}.
14444
14445 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14446
14447         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14448         simplify.
14449
14450         * ipa-split.c: Spelling fixes.
14451
14452 2011-01-19  Richard Henderson  <rth@redhat.com>
14453
14454         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14455         (*mulsi3): Likewise.
14456
14457         * longlong.h [__mn10300__] (count_leading_zeros): New.
14458         [__mn10300__] (umul_ppmm, smul_ppmm): New.
14459         [__mn10300__] (add_ssaaaa, subddmmss): New.
14460         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14461         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14462
14463 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14464
14465         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14466
14467 2011-01-19  Richard Henderson  <rth@redhat.com>
14468
14469         * config/mn10300/mn10300.md (addsi3_flags): New.
14470         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14471         (subsi3_flags, subc_internal, subdi3): New.
14472         (subdi3_internal, *subdi3_degenerate): New.
14473         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14474
14475         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14476         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14477         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
14478         * config/mn10300/mn10300-protos.h: Update.
14479         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14480         (return_ret): Likewise.  Rename from return_internal_regs.
14481         (return_internal): Remove.
14482
14483         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14484         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14485         (mn10300_legitimate_constant_p): Likewise.
14486         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14487         (mn10300_frame_size): New.
14488         (mn10300_expand_prologue): Use it.
14489         (mn10300_expand_epilogue): Likewise.
14490         (mn10300_initial_offset): Likewise.
14491         * config/mn10300/mn10300-protos.h: Update.
14492         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14493         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14494         (prologue, epilogue, return_internal): Tidy output code.
14495         (mn10300_store_multiple_operation, return): Likewise.
14496         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14497         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14498         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14499         (load_pic, am33_load_pic): New.
14500         (mn10300_load_pic0, mn10300_load_pic1): New.
14501
14502         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14503         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14504         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14505         (cc_flags_for_mode, cc_flags_for_code): New.
14506         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14507         overflow flag is not valid.  Validate that the flags we need
14508         for the comparison are valid.
14509         (mn10300_output_cmp): Remove.
14510         (mn10300_output_add): New.
14511         (mn10300_select_cc_mode): Use cc_flags_for_code.
14512         (mn10300_split_cbranch): New.
14513         (mn10300_match_ccmode): New.
14514         (mn10300_split_and_operand_count): New.
14515         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14516         to the function.
14517         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14518         (addsi3): ... here.  Use mn10300_output_add.
14519         (*addsi3_flags): New.
14520         (*am33_subsi3, *mn10300_subsi3): Merge...
14521         (subsi3): ... here.  Use attribute isa.
14522         (*subsi3_flags): New.
14523         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
14524         when possible.
14525         (*am33_andsi3, *mn10300_andsi3): Merge...
14526         (andsi3): ... here.
14527         (*andsi3_flags): New.
14528         (andsi3 splitters): New.
14529         (*am33_iorsi3, *mn10300_iorsi3): Merge...
14530         (iorsi3): ... here.
14531         (*iorsi3_flags): New.
14532         (*am33_xorsi3, *mn10300_xorsi3): Merge...
14533         (xorsi3): ... here.
14534         (*xorsi3_flags): New.
14535         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14536         (one_cmplsi2): ... here.
14537         (*one_cmplsi2_flags): New.
14538         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
14539         instead of "dax" in constraints.  Use mn10300_split_cbranch.
14540         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
14541         use matching constraints to eliminate a self-comparison.
14542         (*integer_conditional_branch): Rename from integer_conditional_branch.
14543         Use int_mode_flags to match CC_REG.
14544         (*cbranchsi4_btst, *btstsi): New.
14545         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
14546         mn10300_split_cbranch.
14547         (*am33_cmpsf): Rename from am33_cmpsf.
14548         (*float_conditional_branch): Rename from float_conditional_branch.
14549         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14550         (zero_extendqisi2): ... here.
14551         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14552         (zero_extendhisi2): ... here.
14553         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14554         (extendqisi2): ... here.
14555         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14556         (extendhisi2): ... here.
14557         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14558         (ashlsi3): ... here.
14559         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14560         (lshrsi3): ... here.
14561         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14562         (ashrsi3): ... here.
14563         (consecutive add peephole): Remove.
14564         * config/mn10300/predicates.md (label_ref_operand): New.
14565         (int_mode_flags): New.
14566         (CCZN_comparison_operator): New.
14567
14568         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14569         (throughput_42_latency_43): New reservation.
14570         (mulsidi3, umulsidi3): New expanders.
14571         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
14572         the MDR register to allocation; separately allocate the low and
14573         high parts of the DImode result.
14574         (umulsidi3_internal): Similarly.
14575         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14576         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
14577         (udivsi3, umodsi3): Remove.
14578         (udivmodsi4, divmodsi4): New expanders.
14579         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
14580         (*divmodsi4): Simiarly.
14581         (ext_internal): New.
14582
14583         * config/mn10300/constraints.md ("z"): New constraint.
14584         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14585         (FIXED_REGISTERS): Don't fix MDR.
14586         (CALL_USED_REGSITERS): Reformat nicely.
14587         (REG_ALLOC_ORDER): Add MDR.
14588         (enum regclass): Add MDR_REGS.
14589         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14590         (IRA_COVER_CLASSES): Add MDR_REGS.
14591         (REGNO_REG_CLASS): Handle MDR_REG.
14592         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14593         (mn10300_register_move_cost): Likewise.
14594         * config/mn10300/mn10300.md (MDR_REG): New.
14595         (*movsi_internal): Handle moves to/from MDR_REGS.
14596
14597         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14598         POST_MODIFY.
14599         (mn10300_secondary_reload): Tidy combination reload classes.
14600         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14601         addresses for AM33.  Allow symbolic offsets for reg+imm.
14602         (mn10300_regno_in_class_p): New.
14603         (mn10300_legitimize_reload_address): New.
14604         * config/mn10300/mn10300.h (enum reg_class): Remove
14605         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14606         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
14607         SP_OR_GENERAL_REGS.
14608         (REG_CLASS_NAMES): Update to match.
14609         (REG_CLASS_CONTENTS): Likewise.
14610         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14611         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14612         (REGNO_IN_RANGE_P): Remove.
14613         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14614         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14615         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14616         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14617         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14618         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14619         (REGNO_GENERAL_P): New.
14620         (HAVE_POST_MODIFY_DISP): New.
14621         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14622         (LEGITIMIZE_RELOAD_ADDRESS): New.
14623         * config/mn10300/mn10300-protos.h: Update.
14624
14625         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14626         DATA_REGS for AM33 stack-pointer destination.
14627         (mn10300_preferred_output_reload_class): Likewise.
14628         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14629         into a form appropriate for ...
14630         (TARGET_SECONDARY_RELOAD): New.
14631         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14632         * config/mn10300/mn10300-protos.h: Update.
14633         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14634         reload_insi; use the "A" constraint for the scratch; handle AM33
14635         moves of sp to non-address registers.
14636
14637         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14638         (*movqi_internal): ... here.
14639         (*am33_movhi, *mn10300_movhi): Merge into...
14640         (*movhi_internal): ... here.
14641         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
14642         as the source/destination of moves from/to SP.
14643         (movsf): Only allow for AM33-2.
14644         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14645         any integer constant constraint.  Only allow for AM33-2.  Tidy
14646         all of the alternative outputs.
14647         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14648         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
14649         for MN103.
14650         (udivsi3, umodsi3): New patterns for MN103 only.
14651
14652 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
14653
14654         * doc/tm.texi.in: Spell out that a lack of register class unions
14655         can lead to ICEs.
14656         * doc/tm.texi: Regenerate.
14657
14658 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14659
14660         PR rtl-optimization/47337
14661         * dce.c (check_argument_store): New function.
14662         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
14663
14664         PR tree-optimization/47290
14665         * tree-eh.c (infinite_empty_loop_p): New function.
14666         (cleanup_empty_eh): Use it.
14667
14668 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
14669
14670         PR target/46997
14671         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14672         (a64_expand_widen_sum): Ditto.
14673         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14674         (vec_extract_evenodd_help): Ditto.
14675         (vec_extract_evenv4hi): Ditto.
14676         (vec_extract_oddv4hi): Ditto.
14677         (vec_extract_evenv2si): Ditto.
14678         (vec_extract_oddv2si): Ditto.
14679         (vec_extract_evenv2sf): Ditto.
14680         (vec_extract_oddv2sf): Ditto.
14681         (vec_pack_trunc_v4hi: Ditto.
14682         (vec_pack_trunc_v2si): Ditto.
14683         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14684         (vec_interleave_highv8qi): Ditto.
14685         (mix1_r): Ditto.
14686         (vec_extract_oddv8qi): Ditto.
14687         (vec_interleave_lowv4hi): Ditto.
14688         (vec_interleave_highv4hi): Ditto.
14689         (vec_interleave_lowv2si): Ditto.
14690         (vec_interleave_highv2si): Ditto.
14691
14692 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14693
14694         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14695         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14696         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
14697         (pa_c_mode_for_suffix): New.
14698         (TARGET_EXPAND_BUILTIN): Define.
14699         (TARGET_C_MODE_FOR_SUFFIX): Define.
14700         (pa_builtins): Define.
14701         (pa_init_builtins): Register __float128 type and init new support
14702         builtins.
14703         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14704         * config/pa/quadlib.c (_U_Qfcopysign): New.
14705
14706 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
14707
14708         PR middle-end/46894
14709         * explow.c (allocate_dynamic_stack_space): Do not assume more than
14710         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14711         are defined.
14712
14713 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14714
14715         PR tree-optimization/47179
14716         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14717         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14718
14719 2011-01-18  Richard Guenther  <rguenther@suse.de>
14720
14721         PR rtl-optimization/47216
14722         * emit-rtl.c: Include tree-flow.h.
14723         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14724         of replicating it with different semantics.
14725         * Makefile.in (emit-rtl.o): Adjust.
14726
14727 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14728
14729         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14730         (cortex_a9_dp): Handle neon types correctly.
14731
14732 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
14733
14734         PR rtl-optimization/47299
14735         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14736         subtarget.  Use normal multiplication if both operands are constants.
14737         * expmed.c (expand_widening_mult): Don't try to optimize constant
14738         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
14739         before using it.
14740
14741 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14742
14743         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
14744         spacing after 'e.g.', typos, comma, hyphenation.
14745
14746 2011-01-17  Richard Henderson  <rth@redhat.com>
14747
14748         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14749         (rx_restricted_mem_operand): New.
14750         (rx_shift_operand): Use register_operand.
14751         (rx_source_operand, rx_compare_operand): Likewise.
14752         * config/rx/rx.md (addsi3_flags): New expander.
14753         (adddi3): Rewrite as expander.
14754         (adc_internal, *adc_flags, adddi3_internal): New patterns.
14755         (subsi3_flags): New expander.
14756         (subdi3): Rewrite as expander.
14757         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14758
14759         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14760         (rx_init_builtins): Remove sat builtin.
14761         (rx_expand_builtin): Likewise.
14762         * config/rx/rx.md (ssaddsi3): New.
14763         (*sat): Rename from sat.  Represent the CC_REG input.
14764
14765         * config/rx/predicates.md (rshift_operator): New.
14766         * config/rx/rx.c (rx_expand_insv): Remove.
14767         * config/rx/rx-protos.h: Update.
14768         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
14769         operand to the canonical position.
14770         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14771         (*bitclr, *bitclr_in_memory): Similarly.
14772         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14773         (insv): Retain the zero_extract in the expansion.
14774
14775         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14776         (bswaphi2, bitinvert, revw): Likewise.
14777
14778         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14779         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14780         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14781         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14782         (bitset, bitset_in_memory): Likewise.
14783         (bitinvert, bitinvert_in_memory): Likewise.
14784         (bitclr, bitclr_in_memory): Likewise.
14785         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14786         (rx_strend, rx_cmpstrn): Likewise.
14787         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
14788         (bitop peep2 patterns): Remove.
14789
14790         * config/rx/rx.c (rx_match_ccmode): New.
14791         * config/rx/rx-protos.h: Update.
14792         * config/rx/rx.md (abssi2): Clobber, don't set flags.
14793         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14794         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14795         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14796         (fix_truncsfsi2, floatsisf2): Likewise.
14797         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14798         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14799         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14800         (*subsi3_flags, *xorsi3_flags): New.
14801
14802         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14803
14804         * config/rx/rx.c (rx_print_operand): Remove workaround for
14805         unsplit comparison operations.
14806
14807         * config/rx/rx.md (movsicc): Split after reload.
14808         (*movsicc): Merge *movsieq and *movsine via match_operator.
14809         (*stcc): New pattern.
14810
14811         * config/rx/rx.c (rx_float_compare_mode): Remove.
14812         * config/rx/rx.h (rx_float_compare_mode): Remove.
14813         * config/rx/rx.md (cstoresi4): Split after reload.
14814         (*sccc): New pattern.
14815
14816         * config/rx/predicates.md (label_ref_operand): New.
14817         (rx_z_comparison_operator): New.
14818         (rx_zs_comparison_operator): New.
14819         (rx_fp_comparison_operator): New.
14820         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14821         Validate that the flags are set properly for the comparison.
14822         (rx_gen_cond_branch_template): Remove.
14823         (rx_cc_modes_compatible): Remove.
14824         (mode_from_flags): New.
14825         (flags_from_code): Rename from flags_needed_for_conditional.
14826         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14827         (rx_select_cc_mode): Likewise.
14828         (rx_split_fp_compare): New.
14829         (rx_split_cbranch): New.
14830         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14831         (*cbranchsi4): Use match_operator and rx_split_cbranch.
14832         (*cbranchsf4): Similarly.
14833         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
14834         match_operator and rx_split_cbranch.
14835         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14836         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
14837         (*cmpsi): Rename from cmpsi.
14838         (*tstsi): Rename from tstsi.
14839         (*cmpsf): Rename from cmpsf; use CC_Fmode.
14840         (*conditional_branch): Rename from conditional_branch.
14841         (*reveresed_conditional_branch): Remove.
14842         (b<code>): Remove expander.
14843         * config/rx/rx-protos.h: Update.
14844
14845         * config/rx/rx.c (rx_compare_redundant): Remove.
14846         * config/rx/rx.md (cmpsi): Don't use it.
14847         * config/rx/rx-protos.h: Update.
14848
14849         * config/rx/rx-modes.def (CC_F): New mode.
14850         * config/rx/rx.c (rx_select_cc_mode): New.
14851         * config/rx/rx.h (SELECT_CC_MODE): Use it.
14852         * config/rx/rx-protos.h: Update.
14853
14854 2011-01-17  Richard Henderson  <rth@redhat.com>
14855
14856         * except.c (dump_eh_tree): Fix stray ; after for statement.
14857
14858 2011-01-17  Richard Guenther  <rguenther@suse.de>
14859
14860         PR tree-optimization/47313
14861         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14862         handling before copying the body.  Properly deal with
14863         by-reference result in SSA form.
14864
14865 2011-01-17  Ian Lance Taylor  <iant@google.com>
14866
14867         PR target/47219
14868         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14869         (struct_value_alias_set): Don't define.
14870         (sparc_option_override): Don't set sparc_sr_alias_set and
14871         struct_value_alias_set.
14872         (save_or_restore_regs): Use gen_frame_mem rather than calling
14873         set_mem_alias_set.
14874         (sparc_struct_value_rtx): Likewise.
14875
14876 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14877
14878         PR target/47318
14879         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14880         (_mm_maskstore_pd): Likewise.
14881         (_mm_maskload_ps): Likewise.
14882         (_mm_maskstore_ps): Likewise.
14883         (_mm256_maskload_pd): Change mask to __m256i.
14884         (_mm256_maskstore_pd): Likewise.
14885         (_mm256_maskload_ps): Likewise.
14886         (_mm256_maskstore_ps): Likewise.
14887
14888         * config/i386/i386-builtin-types.def: Updated.
14889         (ix86_expand_special_args_builtin): Likewise.
14890
14891         * config/i386/i386.c (bdesc_special_args): Update
14892         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14893         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14894         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14895         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14896
14897         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14898         Use <avxpermvecmode> on mask register.
14899         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14900
14901 2011-01-17  Olivier Hainque  <hainque@adacore.com>
14902             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14903             Eric Botcazou  <ebotcazou@adacore.com>
14904
14905         PR target/46655
14906         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14907         if <= USHRT_MAX in 32-bit mode.
14908
14909 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14910
14911         * doc/install.texi (Configuration, Specific): Wrap long
14912         lines in examples.  Allow line wrapping in long options
14913         and URLs where beneficial for PDF output.
14914
14915 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
14916
14917         * config/mips/mips.c (mips_classify_symbol): Don't return
14918         SYMBOL_PC_RELATIVE for nonlocal labels.
14919
14920 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14921
14922         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14923
14924 2011-01-15  Jan Hubicka  <jh@suse.cz>
14925
14926         PR tree-optimization/47276
14927         * ipa.c (function_and_variable_visibility): Do not try to mark alias
14928         declarations as needed.
14929
14930 2011-01-15  Martin Jambor  <mjambor@suse.cz>
14931
14932         * common.opt (fdevirtualize): New flag.
14933         * doc/invoke.texi (Option Summary): Document it.
14934         * opts.c (default_options_table): Add devirtualize flag.
14935         * ipa-prop.c (detect_type_change): Return immediately if
14936         devirtualize flag is not set.
14937         (detect_type_change_ssa): Likewise.
14938         (compute_known_type_jump_func): Likewise.
14939         (ipa_analyze_virtual_call_uses): Likewise.
14940
14941 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14942
14943         PR tree-optimization/45934
14944         PR tree-optimization/46302
14945         * ipa-prop.c (type_change_info): New type.
14946         (stmt_may_be_vtbl_ptr_store): New function.
14947         (check_stmt_for_type_change): Likewise.
14948         (detect_type_change): Likewise.
14949         (detect_type_change_ssa): Likewise.
14950         (compute_complex_assign_jump_func): Check for dynamic type change.
14951         (compute_complex_ancestor_jump_func): Likewise.
14952         (compute_known_type_jump_func): Likewise.
14953         (compute_scalar_jump_functions): Likewise.
14954         (ipa_analyze_virtual_call_uses): Likewise.
14955         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14956
14957 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14958
14959         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14960         * config/i386/i386.opt (msse5): New Alias.
14961
14962 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14963
14964         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14965         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14966         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14967         * config/sparc/sparc.h (CC1_SPEC): Likewise.
14968
14969 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14970
14971         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14972         -mcpu options.
14973         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14974         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14975         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14976         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14977         Likewise.
14978         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14979
14980 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14981
14982         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14983
14984 2011-01-14  Mike Stump  <mikestump@comcast.net>
14985
14986         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14987         * config/fr30/fr30.md: Likweise
14988         (movsi_push): Likewise.
14989         (movsi_pop): Likewise.
14990         (enter_func): Likewise.
14991         * config/moxie/moxie.md (movsi_push): Likewise.
14992         (movsi_pop): Likewise.
14993
14994 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14995
14996         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14997         %{no_archive} %{exact_version}.
14998         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14999         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
15000         %{no_archive} %{exact_version}.
15001         * config/mips/openbsd.h (LINK_SPEC): Likewise.
15002         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
15003         * config/mips/vxworks.h: Likewise.
15004
15005 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15006
15007         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
15008
15009 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15010
15011         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
15012         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
15013
15014 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15015
15016         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
15017         -nodefaultlib.
15018
15019 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15020
15021         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
15022         for mcpu not cpu.
15023         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
15024         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
15025         not cpu.
15026         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
15027         Don't handle -shlib.
15028
15029 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15030
15031         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
15032         (CC1_SPEC): Don't handle -profile.
15033
15034 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15035
15036         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
15037         * config/mips/mips.h (CC1_SPEC): Likewise.
15038
15039 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15040
15041         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
15042         * config/mips/mips.h (CC1_SPEC): Likewise.
15043
15044 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15045
15046         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
15047         * config/m32r/linux.h (LINK_SPEC): Likewise.
15048         * config/mips/linux.h (LINK_SPEC): Likewise.
15049         * config/mips/linux64.h (LINK_SPEC): Likewise.
15050         * config/sparc/linux.h (LINK_SPEC): Likewise.
15051         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
15052         LINK_SPEC): Likewise.
15053         * config/xtensa/linux.h (LINK_SPEC): Likewise.
15054
15055 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15056
15057         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
15058         %{version:-v}.
15059         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
15060
15061 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15062
15063         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
15064         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
15065
15066 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
15067
15068         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
15069
15070 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15071
15072         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
15073         supports -Bstatic/-Bdynamic.
15074         * configure: Regenerate.
15075
15076 2011-01-14  Jan Hubicka  <jh@suse.cz>
15077             Jack Howarth  <howarth@bromo.med.uc.edu>
15078
15079         PR target/46037
15080         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
15081         when checking debug_info_level. Test write_symbols instead of
15082         debug_hooks->var_location when setting flag_var_tracking_uninit.
15083
15084 2011-01-14  Richard Guenther  <rguenther@suse.de>
15085
15086         PR tree-optimization/47179
15087         * target.def (ref_may_alias_errno): New target hook.
15088         * targhooks.h (default_ref_may_alias_errno): Declare.
15089         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15090         (default_ref_may_alias_errno): New function.
15091         * target.h (struct ao_ref_s): Declare.
15092         * tree-ssa-alias.c: Include target.h.
15093         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15094         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15095         (targhooks.o): Likewise.
15096         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15097         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15098
15099 2011-01-14  Richard Guenther  <rguenther@suse.de>
15100
15101         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
15102
15103 2011-01-14  Richard Guenther  <rguenther@suse.de>
15104
15105         PR tree-optimization/47280
15106         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15107         return CFG changes.
15108         (tree_ssa_forward_propagate_single_use_vars): Deal with
15109         CFG changes from associate_plusminus.
15110
15111 2011-01-14  Richard Guenther  <rguenther@suse.de>
15112
15113         PR middle-end/47281
15114         Revert
15115         2011-01-11  Richard Guenther  <rguenther@suse.de>
15116
15117         PR tree-optimization/46076
15118         * tree-ssa.c (useless_type_conversion_p): Conversions from
15119         unprototyped to empty argument list function types are useless.
15120
15121 2011-01-14  Richard Guenther  <rguenther@suse.de>
15122
15123         PR tree-optimization/47286
15124         * tree-ssa-structalias.c (new_var_info): Register variables are global.
15125
15126 2011-01-14  Martin Jambor  <mjambor@suse.cz>
15127
15128         PR middle-end/46823
15129         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15130
15131 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
15132
15133         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15134         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15135         * config/xtensa/xtensa.c (xtensa_libcall_value,
15136         xtensa_function_value_regno_p): New functions.
15137         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15138
15139 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
15140
15141         PR c++/47213
15142         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15143         PE specific hook.
15144         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15145         New function prototype.
15146         * config/i386/winnt.c (i386_pe_assemble_visibility):
15147         Warn only if attribute was specified by user.
15148
15149 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15150
15151         PR target/47251
15152         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15153         floating point.
15154         (floatunsdidf2_fcfidu): Ditto.
15155
15156 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15157
15158         * config/s390/s390.c (print_operand_address): Replace 'error' with
15159         'output_operand_lossage'.
15160         (print_operand): Likewise.
15161
15162 2011-01-13  Jeff Law  <law@redhat.com>
15163
15164         PR rtl-optimization/39077
15165         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15166         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15167         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15168         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15169         * gcse.c (prune_insertions_deletions): New function.
15170         (compute_pre_data): Use it.
15171
15172 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
15173
15174         PR debug/PR46973
15175         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15176         static function.
15177         (prune_unused_types_mark): Use it.
15178
15179 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
15180
15181         PR rtl-optimization/45352
15182         * sel-sched.c: Update copyright years.
15183         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15184         in the advancing loop when we have issued issue_rate insns.
15185
15186 2011-01-12  Richard Henderson  <rth@redhat.com>
15187
15188         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15189         (TARGET_MD_ASM_CLOBBERS): New.
15190
15191         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15192         (TARGET_DELEGITIMIZE_ADDRESS): New.
15193
15194         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15195         (clzsi2, *bsch): New patterns.
15196
15197         * config/mn10300/mn10300.md (INT): New mode iterator.
15198         (*mov<INT>_clr): New pattern, and peep2 to generate it.
15199
15200         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15201         flag_split_wide_types.
15202
15203         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15204         (mn10300_trampoline_init): Rewrite without a template, an immediate
15205         load and a direct branch.
15206         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15207
15208 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
15209
15210         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15211         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15212         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15213         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15214
15215 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
15216
15217         PR debug/47209
15218         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15219         of type.
15220
15221 2011-01-12  Jan Hubicka  <jh@suse.cz>
15222
15223         PR driver/47244
15224         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15225         (PLUGIN_COND_CLOSE): New macro.
15226         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15227
15228 2011-01-12  Richard Guenther  <rguenther@suse.de>
15229
15230         PR lto/47259
15231         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15232         register variables in a MEM_REF.
15233
15234 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
15235
15236         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15237         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15238         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15239         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15240         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15241         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15242         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15243         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15244         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15245         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15246         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15247         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15248         * config/gnu-user.h: New.  Copied from linux.h.
15249         (LINUX_TARGET_STARTFILE_SPEC): Rename to
15250         GNU_USER_TARGET_STARTFILE_SPEC.
15251         (LINUX_TARGET_ENDFILE_SPEC): Rename to
15252         GNU_USER_TARGET_ENDFILE_SPEC.
15253         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15254         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15255         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15256         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15257         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15258         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15259         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15260         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15261         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15262         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15263         * config/arm/linux-eabi.h (CC1_SPEC): Use
15264         GNU_USER_TARGET_CC1_SPEC.
15265         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15266         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15267         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15268         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15269         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15270         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15271         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15272         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15273
15274 2011-01-12  Richard Guenther  <rguenther@suse.de>
15275
15276         PR other/46946
15277         * doc/invoke.texi (ffast-math): Document it is turned on
15278         with -Ofast.
15279
15280 2011-01-12  Jan Hubicka  <jh@suse.cz>
15281
15282         PR tree-optimization/47233
15283         * opts.c (common_handle_option): Disable ipa-reference with profile
15284         feedback.
15285
15286 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15287
15288         * c-parser.c (c_parser_objc_at_property_declaration): Improved
15289         error message.
15290
15291 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15292
15293         * c-parser.c (c_lex_one_token): Updated and reindented some
15294         comments.  No changes in code.
15295
15296 2011-01-11  Ian Lance Taylor  <iant@google.com>
15297
15298         * godump.c (go_output_var): Don't output the variable if there is
15299         already a type with the same name.
15300
15301 2011-01-11  Ian Lance Taylor  <iant@google.com>
15302
15303         * godump.c (go_format_type): Don't generate float80.
15304
15305 2011-01-11  Richard Henderson  <rth@redhat.com>
15306
15307         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15308         declaration.  Rewrite for both speed and size.
15309         (mn10300_address_cost_1): Remove.
15310         (mn10300_register_move_cost): New.
15311         (mn10300_memory_move_cost): New.
15312         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
15313         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
15314         extensions, shifts, BSWAP, CLZ.
15315         (mn10300_wide_const_load_uses_clr): Remove.
15316         (TARGET_REGISTER_MOVE_COST): New.
15317         (TARGET_MEMORY_MOVE_COST): New.
15318         * config/mn10300/mn10300-protos.h: Update.
15319         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15320
15321         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15322         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15323         * config/mn10300/mn10300-protos.h: Update.
15324         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15325         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15326         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15327         (*test_int_bitfield, *test_byte_bitfield): Remove.
15328         (*bit_test, *subreg_bit_test): Remove.
15329         * config/mn10300/predicates.md (const_8bit_operand): Remove.
15330
15331         * config/mn10300/constraints.md ("c"): Rename from "A".
15332         ("A", "D"): New constraint letters.
15333         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15334         (fmssf4, fnmasf4, fnmssf4): Likewise.
15335
15336         * config/mn10300/mn10300.md (isa): New attribute.
15337         (enabled): New attribute.
15338
15339         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15340         (abssf2, negsf2): Define only for hardware fp.
15341         (sqrtsf2): Reformat.
15342         (addsf3, subsf3, mulsf3): Merge expander and insn.
15343
15344         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15345         (DEBUGGER_AUTO_OFFSET): Remove.
15346         (DEBUGGER_ARG_OFFSET): Remove.
15347
15348         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15349         Emit register stores with the same offsets as the hardware.
15350         (mn10300_store_multiple_operation): Don't check that the register
15351         save offsets are monotonic.
15352         * config/mn10300/mn10300-protos.h: Update.
15353
15354         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15355
15356         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15357         in terms of the value on the stack, not the MDR register.
15358
15359 2011-01-11  Jan Hubicka  <jh@suse.cz>
15360
15361         PR lto/45721
15362         PR lto/45375
15363         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15364         (symbol_alias_set_destroy, symbol_alias_set_contains,
15365         propagate_aliases_backward): Declare.
15366         * lto-streamer-out.c (struct sets): New sturcture.
15367         (trivally_defined_alias): New function.
15368         (output_alias_pair_p): Rewrite.
15369         (output_unreferenced_globals): Fix output of alias pairs.
15370         (produce_symtab): Likewise.
15371         * ipa.c (function_and_variable_visibility): Set weak alias destination
15372         as needed in lto.
15373         * varasm.c (symbol_alias_set_t): Remove.
15374         (symbol_alias_set_destroy): Export.
15375         (propagate_aliases_forward, propagate_aliases_backward): New functions
15376         based on ...
15377         (compute_visible_aliases): ... this one; remove.
15378         (trivially_visible_alias): New
15379         (trivially_defined_alias): New.
15380         (remove_unreachable_alias_pairs): Rewrite.
15381         (finish_aliases_1): Reorganize code checking if alias is defined.
15382         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15383         in LTO mode.
15384
15385 2011-01-11  Richard Guenther  <rguenther@suse.de>
15386
15387         PR tree-optimization/46076
15388         * tree-ssa.c (useless_type_conversion_p): Conversions from
15389         unprototyped to empty argument list function types are useless.
15390
15391 2011-01-11  Richard Guenther  <rguenther@suse.de>
15392
15393         PR middle-end/45235
15394         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15395         volatile MEMs as MEM_READONLY_P.
15396
15397 2011-01-11  Richard Guenther  <rguenther@suse.de>
15398
15399         PR tree-optimization/47239
15400         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15401
15402 2011-01-11  Jeff Law  <law@redhat.com>
15403
15404         PR tree-optimization/47086
15405         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15406         IVs from statements that might throw.
15407
15408 2011-01-10  Jan Hubicka  <jh@suse.cz>
15409
15410         PR lto/45375
15411         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15412
15413 2011-01-10  Jan Hubicka  <jh@suse.cz>
15414
15415         PR lto/45375
15416         * profile.c (read_profile_edge_counts): Ignore profile inconistency
15417         when correcting profile.
15418
15419 2011-01-10  Jan Hubicka  <jh@suse.cz>
15420
15421         PR lto/46083
15422         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15423         DECL_FINI_PRIORITY.
15424         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15425         Restore DECL_FINI_PRIORITY.
15426
15427 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15428
15429         * doc/gimple.texi: Fix quoting of multi-word return values in
15430         @deftypefn statements.  Ensure presence of return value.  Wrap
15431         overlong @deftypefn lines.
15432         (is_gimple_operand, is_gimple_min_invariant_address): Remove
15433         descriptions of removed functions.
15434         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15435         of multi-word return value in @deftypefn statement.
15436
15437 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15438
15439         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15440         (Conditional Expressions, Logical Operators)
15441         (Statement and operand traversals): Do not indent smallexample
15442         code.  Fix duplicate function argument in example.
15443
15444 2011-01-10  Jeff Law  <law@redhat.com>
15445
15446         PR tree-optimization/47141
15447         * ipa-split.c (split_function): Handle case where we are
15448         returning a value and the return block has a virtual operand phi.
15449
15450 2011-01-10  Jan Hubicka  <jh@suse.cz>
15451
15452         PR tree-optimization/47234
15453         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15454         (pass_feedback_split_functions): Declare.
15455         * passes.c (init_optimization_passes): Add ipa-split as subpass of
15456         tree-profile.
15457         * ipa-split.c (gate_split_functions): Update comments; disable
15458         split-functions for profile_arc_flag and branch_probabilities.
15459         (gate_feedback_split_functions): New function.
15460         (execute_feedback_split_functions): New function.
15461         (pass_feedback_split_functions): New global var.
15462
15463 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
15464
15465         PR lto/46760
15466         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15467         calling gimple_call_set_cannot_inline.
15468
15469 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
15470
15471         * config/darwin-sections.def: Remove unused section.
15472
15473 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
15474
15475         PR c++/47218
15476         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15477
15478 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
15479
15480         PR objc/47232
15481         * c-parser.c (c_parser_declaration_or_fndef): Improved
15482         error message.
15483
15484 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
15485
15486         * config/i386/winnt.c (i386_pe_start_function): Make sure
15487         to switch back to function's section.
15488
15489 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
15490
15491         PR gcc/46902
15492         PR testsuite/46912
15493         * plugin.c: Move include of dlfcn.h from here...
15494         * system.h: ... to here.
15495
15496 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15497
15498         * doc/cpp.texi (C++ Named Operators): Fix markup for header
15499         file name.
15500         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15501         two extra empty pages in PDF output.
15502
15503 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
15504
15505         PR objc/47078
15506         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15507         for error recovery purposes behave as if it was not specified so
15508         that the default type is usd.
15509
15510 2011-01-07  Jan Hubicka  <jh@suse.cz>
15511
15512         PR tree-optmization/46469
15513         * ipa.c (function_and_variable_visibility): Clear needed flags on
15514         nodes with external decls; handle weakrefs merging correctly.
15515
15516 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
15517
15518         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15519         not false.
15520
15521 2011-01-07  Jan Hubicka  <jh@suse.cz>
15522
15523         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15524         and no longer claim that gold is required for linker plugin.
15525         * configure: Regenerate.
15526         * gcc.c (PLUGIN_COND): New macro.
15527         (LINK_COMMAND_SPEC): Use it.
15528         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15529         * config.in (HAVE_LTO_PLUGIN): New.
15530         * configure.ac (--with-lto-plugin): New parameter; autodetect
15531         HAVE_LTO_PLUGIN.
15532
15533 2011-01-07  Jan Hubicka  <jh@suse.cz>
15534
15535         PR tree-optimization/46367
15536         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15537         when we can update original.
15538         (cgraph_mark_inline_edge): Sanity check.
15539         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15540
15541 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15542
15543         * config/spu/spu.h (ASM_COMMENT_START): Define.
15544
15545 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15546
15547         PR driver/42445
15548         * gcc.c (%>S): New.
15549         (SWITCH_KEEP_FOR_GCC): Likewise.
15550         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15551         (do_spec_1): Handle "%>".
15552
15553         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15554
15555 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
15556
15557         PR target/47201
15558         * config/i386/i386.c (ix86_delegitimize_address): If
15559         simplify_gen_subreg fails, return orig_x.
15560
15561         PR bootstrap/47187
15562         * value-prof.c (gimple_stringop_fixed_value): Handle
15563         lhs of the call properly.
15564
15565 2011-01-07  Jan Hubicka  <jh@suse.cz>
15566
15567         PR lto/45375
15568         * lto-opt.c (lto_reissue_options): Set flag_shlib.
15569
15570 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15571
15572         * target.def (function_switched_text_sections): New hook.
15573         * doc/tm.texi: Regenerated.
15574         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15575         * final.c (default_function_switched_text_sections): New.
15576         (final_scan_insn): Call function_switched_text_sections when a
15577         mid-function section change occurs.
15578         * output.h (default_function_switched_text_sections): Declare.
15579         * config/darwin-protos.h (darwin_function_switched_text_sections):
15580         Likewise.
15581         * config/darwin.c (darwin_function_switched_text_sections): New.
15582         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15583
15584 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15585
15586         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
15587         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
15588         the secondary code fragment when outputting for DWARF == 2.
15589
15590 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
15591
15592         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15593         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15594         Remove.
15595         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15596         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15597
15598 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
15599
15600         PR debug/46704
15601         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15602         when it is not empty.
15603
15604 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
15605
15606         Bobcat Enablement
15607         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15608         (case ${target}): Add btver1.
15609         * config/i386/driver-i386.c (host_detect_local_cpu): Let
15610         -march=native recognize btver1 processors.
15611         * config/i386/i386-c.c (ix86_target_macros_internal): Add
15612         btver1 def_and_undef
15613         * config/i386/i386.c (struct processor_costs btver1_cost): New
15614         btver1 cost table.
15615         (m_BTVER1): New definition.
15616         (m_AMD_MULTIPLE): Includes m_BTVER1.
15617         (initial_ix86_tune_features): Add btver1 tune.
15618         (processor_target_table): Add btver1 entry.
15619         (static const char *const cpu_names): Add btver1 entry.
15620         (software_prefetching_beneficial_p): Add btver1.
15621         (ix86_option_override_internal): Add btver1 instruction sets.
15622         (ix86_issue_rate): Add btver1.
15623         (ix86_adjust_cost): Add btver1.
15624         * config/i386/i386.h (TARGET_BTVER1): New definition.
15625         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15626         (enum processor_type): Add PROCESSOR_BTVER1.
15627         * config/i386/i386.md (define_attr "cpu"): Add btver1.
15628
15629 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15630
15631         PR target/43309
15632         * config/i386/i386.c (legitimize_tls_address)
15633         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15634         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15635         (tls_initial_exec_64_sun): New pattern.
15636
15637 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
15638
15639         * doc/invoke.texi (Overall Options): Improve wording and markup
15640         of the description of -wrapper.
15641
15642 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15643
15644         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15645         rdynamic, threads): New Driver options.
15646
15647 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15648
15649         PR target/38118
15650         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15651         if coming from .tdata.
15652         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15653
15654 2011-01-06  Jan Hubicka  <jh@suse.cz>
15655
15656         PR lto/47188
15657         * collect2.c (main): Do not enable LTOmode when plugin is active.
15658
15659 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15660
15661         PR other/45915
15662         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15663         --version output if supported.
15664         * configure: Regenerate.
15665
15666 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15667
15668         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15669         Driver options.
15670
15671 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
15672
15673         PR c/47150
15674         * c-convert.c (convert): When converting a complex expression
15675         other than COMPLEX_EXPR to a different complex type, ensure
15676         c_save_expr is called instead of save_expr, unless in_late_binary_op.
15677         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15678         when converting COMPLEX_TYPE.
15679
15680 2011-01-06  Ira Rosen  <irar@il.ibm.com>
15681
15682         PR tree-optimization/47139
15683         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15684         only the last reduction value is used outside the loop.  Update
15685         documentation.
15686
15687 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
15688
15689         * config/rtems.opt: New.
15690         * config.gcc (*-*-rtems*): Use rtems.opt.
15691
15692 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
15693
15694         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15695         processors do not support 3DNow instructions.
15696
15697 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15698
15699         * config/spu/spu.c (spu_option_override): Set parameter
15700         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15701
15702 2011-01-05  Jan Hubicka  <jh@suse.cz>
15703
15704         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15705         at the command line.
15706
15707 2011-01-05  Martin Jambor  <mjambor@suse.cz>
15708
15709         PR lto/47162
15710         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15711         deltas on streamed outgoing edges.
15712         (output_node_opt_summary): Output info for outgoing edges only when
15713         the node is in new parameter set.
15714         (output_cgraph_opt_summary): New parameter set, passed to the two
15715         aforementioned functions.  Update its forward declaration and its
15716         callee too.
15717
15718 2011-01-05  Tom Tromey  <tromey@redhat.com>
15719
15720         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15721         operator to c_finish_omp_atomic.
15722         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15723         (build_unary_op): Update.
15724         (build_modify_expr): Update.
15725         (build_asm_expr): Update.
15726
15727 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15728
15729         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15730         newly inserted insns.
15731         (pad_bb): Likewise.
15732         (spu_emit_branch_hint): Likewise.
15733         (insert_hbrp_for_ilb_runout): Likewise.
15734         (spu_machine_dependent_reorg): Call df_finish_pass after
15735         schedule_insns returns.
15736
15737 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15738
15739         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15740
15741 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
15742
15743         PR tree-optimization/47005
15744         * tree-sra.c (struct access): Add 'non_addressable' bit.
15745         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15746         (decide_one_param_reduction): Return 0 if the parameter is passed by
15747         reference and one of the accesses in the group is non_addressable.
15748
15749 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15750
15751         PR tree-optimization/47056
15752         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15753         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
15754         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
15755
15756 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15757
15758         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15759         initializer.  Skip view conversions from aggregate types.
15760
15761 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
15762
15763         PR bootstrap/47055
15764         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15765
15766 2011-01-04  Philipp Thomas  <pth@suse.de>
15767
15768         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15769         obvious typo.
15770
15771 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15772
15773         * function.c (thread_prologue_and_epilogue_insns): Do not crash
15774         on empty epilogue sequences.
15775
15776 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
15777
15778         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15779         non-static): New Driver options.
15780
15781 2011-01-04  Jie Zhang  <jie@codesourcery.com>
15782
15783         PR driver/47137
15784         * gcc.c (default_compilers[]): Set combinable field to 0
15785         for all assembly languages.
15786
15787 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
15788
15789         * config/mips/loongson3a.md: New file.
15790         * config/mips/mips.md: Include loongson3a.md.
15791         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15792         TUNE_LOONGSON_3A.
15793
15794 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15795
15796         PR middle-end/47017
15797         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15798         instead of convert_memory_address_addr_space on the base expression.
15799
15800 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15801
15802         * config/spu/spu.c (spu_option_override): Update error text
15803         for bad -march= / -mtune= values.
15804
15805 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15806
15807         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15808         if branch-hint optimization will be performed.
15809
15810 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15811
15812         PR tree-optimization/47148
15813         * ipa-split.c (split_function): Convert arguments to
15814         DECL_ARG_TYPE if possible.
15815
15816         PR tree-optimization/47155
15817         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15818         when computing uns.
15819
15820         PR rtl-optimization/47157
15821         * combine.c (try_combine): If undobuf.other_insn becomes
15822         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15823         and set *new_direct_jump_p too.
15824
15825 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15826
15827         PR tree-optimization/47021
15828         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15829
15830 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15831
15832         * gcc.c (process_command): Update copyright notice dates.
15833         * gcov.c (print_version): Likewise.
15834         * gcov-dump.c (print_version): Likewise.
15835         * mips-tfile.c (main): Likewise.
15836         * mips-tdump.c (main): Likewise.
15837
15838 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15839
15840         PR tree-optimization/46801
15841         * tree-sra.c (type_internals_preclude_sra_p): Check whether
15842         aggregate fields start at byte boundary instead of the bit-field flag.
15843
15844 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15845
15846         PR driver/47137
15847         * gcc.c (main): Revert revision 168407.
15848
15849 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15850
15851         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15852
15853 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15854
15855         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15856         vector optab to expand vector/scalar shift, update gimple to vector.
15857
15858 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15859
15860         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15861         a thunk.
15862
15863 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15864
15865         PR tree-optimization/46984
15866         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15867         HOST_WIDE_INT.
15868         (cgraph_create_indirect_edge): Fixed line length.
15869         (cgraph_indirect_call_info): Declare.
15870         (cgraph_make_edge_direct) Update declaration.
15871         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15872         (cgraph_create_indirect_edge): Use it.
15873         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
15874         callees.
15875         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15876         the new thunk_delta representation.
15877         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15878         HOST_WIDE_INT.
15879         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15880         (ipa_read_indirect_edge_info): Likewise.
15881         * lto-cgraph.c (output_edge_opt_summary): New function.
15882         (output_node_opt_summary): Call it on all outgoing edges.
15883         (input_edge_opt_summary): New function.
15884         (input_node_opt_summary): Call it on all outgoing edges.
15885
15886 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
15887
15888         PR driver/47137
15889         * gcc.c (main): Don't check have_o when settting combine_inputs.
15890
15891 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15892
15893         * regrename.c: Add general comment describing the pass.
15894         (struct du_head): Remove 'length' field.
15895         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15896         (regrename_optimize): Do not sort chains.  Rework comments, add others.
15897         Force renaming to the preferred class (if any) in the first pass and do
15898         not consider registers that belong to it in the second pass.
15899         (create_new_chain): Do not set 'length' field.
15900         (scan_rtx_reg): Likewise.
15901
15902 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
15903
15904         PR tree-optimization/47140
15905         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15906         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15907         to bit_value_binop.
15908
15909         PR rtl-optimization/47028
15910         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15911         parm_birth_insn instead of at the beginning of first bb.
15912
15913 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
15914
15915         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15916         Remove the word "see" before "@pxref".
15917         * doc/rtl.texi: Remove the word "see" before "@pxref".
15918
15919 2011-01-01  Jan Hubicka  <jh@suse.cz>
15920
15921         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15922         memory.
15923
15924 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
15925
15926         PR target/38662
15927         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15928
15929 \f
15930 Copyright (C) 2011 Free Software Foundation, Inc.
15931
15932 Copying and distribution of this file, with or without modification,
15933 are permitted in any medium without royalty provided the copyright
15934 notice and this notice are preserved.