OSDN Git Service

2011-05-27 Alexander Monakov <amonakov@ispras.ru>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-27  Alexander Monakov  <amonakov@ispras.ru>
2
3         * doc/contrib.texi: Update copyright years.
4         (Contributors): Add Zdenek Sojka.
5
6 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
7
8         * c-decl.c (c_push_function_context): Copy the current statement
9         list stack.
10         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
11         (finish_struct): Call building_stmt_list_p instead of checking
12         cur_stmt_list.
13         * c-parser.c (c_parser_postfix_expression): Likewise.
14         * c-typeck.c (c_end_compound_stmt): Likewise.
15         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
16         * tree-iterator.c (stmt_list_cache): Change to a VEC.
17         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
18         (free_stmt_list): Likewise.
19         * tree.h (struct tree_statement_list): Include typed_tree instead
20         of tree_common.
21         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
22         as TS_TYPED instead of TS_COMMON.
23
24 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
25             Uros Bizjak <ubizjak@gmail.com>
26
27         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
28         (HAVE_AS_IX86_TLSGDPTL): Define.
29         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
30         (HAVE_AS_IX86_TLSLDMPLT): Define.
31         * configure: Regenerate.
32         * config.in: Regenerate.
33         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
34         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
35         TARGET_SUN_TLS, use @tlsgdplt or @plt.
36         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
37         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
38         @tlsldmplt or @plt.
39         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
40
41 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
42
43         * sched-int.h (struct _haifa_deps_insn_data): New members cond
44         and reverse_cond.
45         (INSN_COND, INSN_REVERSE_COND): New macros.
46         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
47         once.
48         (sched_get_condition_with_rev): Cache the results, and look them up
49         if possible.
50         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
51         are clobbered by the current insn.
52         * target.def (exposed_pipline): New sched data hook.
53         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
54         * doc/tm.texi: Regenerate.
55
56 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
57
58         PR tree-optimization/49170
59         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
60         sincos or cexp.
61
62 2011-05-27  Richard Guenther  <rguenther@suse.de>
63
64         PR middle-end/49189
65         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
66         of comparisons.
67
68 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
69
70         * haifa-sched.c (sched_scan_info): Remove.
71         (schedule_block): Call sched_extend_luids rather than sched_init_luids
72         with NULL args.
73         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
74         Remove functions.
75         (sched_scan): Remove.
76         (sched_extend_luids): Renamed from luids_extend_insn and no longer
77         static.  All callers changed.
78         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
79         static.  All callers changed.
80         (sched_init_luids): Remove all arguments except the first.  All
81         callers changed.  Don't use sched_scan.
82         (haifa_init_h_i_d): Likewise.
83         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
84         manually rather than using sched_init_luids.  Likewise with
85         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
86         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
87         rather than sched_init_luids with NULL args.
88         * sel-sched-ir.c (new_insns): Remove variable.
89         (sched_scan): New static function, previously in haifa-sched.c.  Remove
90         all arguments but the first two; all callers changed.
91         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
92         rather than sched_init_luids.
93         (sel_init_bbs): Remove second argument.  All callers changed.
94         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
95         with NULL arguments.
96         (create_insn_rtx_from_pattern): Likewise.
97         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
98         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
99         (sched_init_insn_luid, sched_extend_luids): Declare.
100         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
101         declarations.
102
103 2011-05-27  Richard Guenther  <rguenther@suse.de>
104
105         PR middle-end/49177
106         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
107         A CMP B ? (T) true : (T) false for non-integral types T again.
108
109 2011-05-27  Jan Hubicka  <jh@suse.cz>
110
111         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
112         so 0 means NULL string.
113         (lto_output_string_with_length): ... here.
114         (lto_output_string, output_string_cst, output_identifier): Update
115         handling of NULL strings.
116         (lto_output_location_bitpack): New function.
117         (lto_output_location): Use it.
118         (lto_output_tree_ref): Use output_record_start.
119         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
120         len values.
121         * lto-streamer-in.c (string_for_index): Break out from ...; offset
122         values by 1.
123         (input_string_internal): ... here; 
124         (input_string_cst, input_identifier, lto_input_string): Update handling
125         of NULL strings.
126         (lto_input_location_bitpack): New function
127         (lto_input_location): Use it.
128         (unpack_ts_type_common_value_fields): Pack align & alias in var len
129         values.
130         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
131         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
132         (bp_pack_value): Sanity check the value range.
133         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
134         New functions.
135         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
136         New functions.
137
138 2011-05-27  Hariharan Sandanagobalane <hariharan@picochip.com>
139
140         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
141         call_arg_location instructions down the floor.
142
143 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
144
145         PR rtl-optimization/49154
146         * ira.c (setup_pressure_classes): Process class without sublcasses
147         as a candidate for pressure classes.
148
149 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
150
151         PR rtl-optimization/48575
152         * genrecog.c (position_type): New enum.
153         (position): New structure.
154         (decision): Use position structure instead of a string.
155         (root_pos, peep2_insn_pos_list): New variables.
156         (next_position, compare_positions): New functions.
157         (new_decision): Use position structures instead of strings.
158         (maybe_both_true): Likewise.
159         (change_state): Likewise.
160         (write_tree): Likewise.
161         (make_insn_sequence): Likewise.
162
163 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
164
165         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
166         TS_BASE instead of TS_COMMON.
167         (find_decls_types_r): Check for TS_TYPED structure before looking at
168         TREE_TYPE.
169         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
170         Add chain field.
171         (BLOCK_CHAIN): Use new chain field.
172
173 2011-05-26  Pat Haugen <pthaugen@us.ibm.com>
174
175         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
176         moves expensive on Power7 also.
177
178 2011-05-26  Richard Guenther  <rguenther@suse.de>
179
180         * fold-const.c (fold_unary_loc): Remove bogus code.
181
182 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
183
184         * tree.h (struct tree_identifier): Inherit from tree_typed, not
185         tree_common.
186         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
187         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
188         TS_BASE instead of TS_COMMON.
189         * varasm.c (assemble_name): Remove assert.
190
191 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
192
193         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
194         substituted first.
195         * libgcc-std.ver: Delete file.
196
197 2011-05-26  Richard Guenther  <rguenther@suse.de>
198
199         PR tree-optimization/48702
200         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
201         only when we know the base address is within bounds.
202         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
203         assume the base address of TARGET_MEM_REFs is in bounds.
204
205 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
206
207         PR target/49099
208         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
209         declaration in TARGET_SOLARIS.
210
211 2011-05-26  Hariharan Sandanagobalane <hariharan@picochip.com>
212
213         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
214           The instruction is then expanded explicitly.
215         (supported_compare): Callable instruction.
216         (compare): Likewise.
217
218 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
219
220         PR c++/49165
221         * gimplify.c (shortcut_cond_r): Don't special case
222         COND_EXPRs if they have void type on one of their arms.
223
224 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
225
226         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
227         to reduce duplication, and to achieve a slightly more logical order
228         of operations.
229
230 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
231
232         PR tree-optimization/49161
233         * tree-vrp.c (struct case_info): New type.
234         (compare_case_labels): Sort case_info structs instead of
235         trees, and not primarily by CASE_LABEL uids but by
236         label_for_block indexes.
237         (find_switch_asserts): Put case labels into struct case_info
238         array instead of TREE_VEC, adjust sorting, compare label_for_block
239         values instead of CASE_LABELs.
240
241 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
242
243         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
244         ("orndi3_neon"): Likewise.
245         ("bic<mode>3_neon"): Likewise.
246
247 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
248
249         PR tree-optimization/49038
250         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
251         Ensure at least one epilogue iteration if required by data
252         accesses with gaps.
253         * tree-vectorizer.h (struct _loop_vec_info): Add new field
254         to mark loops that require peeling for gaps.
255         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
256         (vect_get_known_peeling_cost): Take peeling for gaps into
257         account.
258         (vect_transform_loop): Generate epilogue if required by data
259         access with gaps.
260         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
261         loop as requiring an epilogue if there are gaps in the end of
262         the strided group.
263
264 2011-05-25  Ian Lance Taylor  <iant@google.com>
265
266         * godump.c (go_format_type): Output the first field with a usable
267         Go type, if any.
268
269 2011-05-25  Ian Lance Taylor  <iant@google.com>
270
271         * godump.c (go_format_type): Check for invalid type names, pointer
272         target types, and struct field types.
273
274 2011-05-25  Jason Merrill  <jason@redhat.com>
275
276         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
277
278 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
279
280         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
281
282 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
283
284         * config/i386/i386.md (*movqi_extv_1)): Put back
285         "register_operand" check in "type" calculation.
286         (*movqi_extzv_2): Likewise.
287
288 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
289
290         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
291
292 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
293
294         PR bootstrap/49160
295         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
296         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
297         __divxc3, __divtc3): Wrap definitions in #ifndef.
298
299 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
300
301         PR target/49142
302         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
303         "register_operand" check and replace q_regs_operand with
304         QIreg_operand in "type" calculation.
305         (*movqi_extv_1): Likewise.
306         (*movqi_extzv_2_rex64): Likewise.
307         (*movqi_extzv_2): Likewise.
308
309         * config/i386/predicates.md (QIreg_operand): New.
310
311 2011-05-25  Richard Guenther  <rguenther@suse.de>
312
313         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
314         type-based offset disambiguation, streamline MEM_REF and
315         TARGET_MEM_REF handling.
316
317 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
318
319         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
320         (bdesc_special_args): Add pause intrinsic.
321
322         * config/i386/i386.md (UNSPEC_PAUSE): New.
323         (pause): Likewise.
324         (*pause): Likewise.
325         * config/i386/ia32intrin.h (__pause): Likewise.
326
327         * doc/extend.texi (X86 Built-in Functions): Add documentation for
328         pause intrinsic.
329
330 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
331
332         PR tree-optimization/46728
333         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
334         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
335
336 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
337
338         * tree.h (struct tree_exp): Inherit from struct tree_typed.
339         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
340         instead of TS_COMMON.
341
342 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
343
344         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
345         LIBGCC2_GNU_PREFIX is defined.
346         (__N): New macro.
347         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
348         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
349         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
350         __clz_tab): Define using __N.
351         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
352         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
353         * target.def (libfunc_gnu_prefix): New hook.
354         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
355         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
356         * doc/tm.texi: Regenerate.
357         * system.h (LIBGCC2_GNU_PREFIX): Poison.
358         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
359         account.
360         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
361         (init_optabs): Likewise for the bswap libfuncs.
362         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
363         and divide.
364         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
365         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
366         * libgcc-std.ver: Remove.
367         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
368         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
369         libgcc-std.ver.
370         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
371         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
372         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
373         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
374         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
375         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
376         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
377         * config/fixed-bit.h (FIXED_OP): Define differently depending on
378         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
379         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
380
381 2011-05-25  Jan Hubicka  <jh@suse.cz>
382
383         * lto-streamer-out.c (output_record_start): Use lto_output_enum
384         (lto_output_tree): Use output_record_start.
385         * lto-streamer-in.c (input_record_start): Use lto_input_enum
386         (lto_get_pickled_tree): Use input_record_start.
387         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
388         (lto_value_range_error): New function.
389         * lto-streamer.h (lto_value_range_error): Declare.
390         (lto_output_int_in_range, lto_input_int_in_range): New functions.
391         (lto_output_enum, lto_input_enum): New macros.
392
393 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
394
395         * common.opt (flag_stack_usage_info): New variable.
396         (-Wstack-usage): New option.
397         * doc/invoke.texi (Warning options): Document -Wstack-usage.
398         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
399         <OPT_fstack_usage>: Likewise.
400         * toplev.c (output_stack_usage): Handle -Wstack-usage.
401         * calls.c (expand_call): Test flag_stack_usage_info variable instead
402         of flag_stack_usage.
403         (emit_library_call_value_1): Likewise.
404         * explow.c (allocate_dynamic_stack_space): Likewise.
405         * function.c (instantiate_virtual_regs ): Likewise.
406         (prepare_function_start): Likewise.
407         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
408         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
409         * config/arm/arm.c (arm_expand_prologue): Likewise.
410         (thumb1_expand_prologue): Likewise.
411         * config/avr/avr.c (expand_prologue): Likewise.
412         * config/i386/i386.c (ix86_expand_prologue): Likewise.
413         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
414         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
415         * config/mips/mips.c (mips_expand_prologue): Likewise.
416         * config/pa/pa.c (hppa_expand_prologue): Likewise.
417         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
418         * config/s390/s390.c (s390_emit_prologue): Likewise.
419         * config/sh/sh.c (sh_expand_prologue): Likewise.
420         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
421         * config/spu/spu.c (spu_expand_prologue): Likewise.
422
423 2011-05-25  Richard Guenther  <rguenther@suse.de>
424
425         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
426         (gimple_canonical_types_compatible_p): Likewise.
427
428 2011-05-25  Jan Hubicka  <jh@suse.cz>
429
430         PR middle-end/49062
431         * ipa.c (function_and_variable_visibility): Only add to same
432         comdat group list if DECL_ONE_ONLY.
433
434 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
435
436         PR rtl-optimization/49014
437         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
438
439 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
440
441         PR target/49128
442         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
443
444 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
445
446         PR rtl-optimization/48757
447         * ira-build.c (loop_with_eh_edge_p): Rename to
448         loop_with_complex_edge_p, check edges on complexity, make function
449         conditional.
450         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
451         conditional.
452
453 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
454
455         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
456         force flag_ira_share_save_slots to 0.
457
458 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
459
460         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
461         (vt_initialize): Set PROLOGUE_BB unconditionally.
462         Add block comment about CFA_BASE_RTX machinery.
463         Reset FP_CFA_OFFSET to -1 on all invalid paths.
464         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
465
466 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
467
468         PR objc/48187
469         * c-parser.c (c_parser_objc_class_instance_variables): More robust
470         parsing of syntax error in ObjC instance variable lists.  In
471         particular, avoid an infinite loop if there is a stray ']'.
472         Updated error message.
473
474 2011-05-24  Ian Lance Taylor  <iant@google.com>
475
476         * godump.c (go_define): Don't accept a string immediately after
477         another operand.
478
479 2011-05-24  Ian Lance Taylor  <iant@google.com>
480
481         * godump.c (struct godump_container): Add invalid_hash field.
482         (go_format_type): Return false if type is found in invalid_hash.
483         (go_output_typedef): Add invalid type to invalid_hash.
484         (go_finish): Create and delete invalid_hash.
485
486 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
487
488         PR tree-optimization/46728
489         * tree-ssa-math-opts.c (powi_table): New.
490         (powi_lookup_cost): New.
491         (powi_cost): New.
492         (powi_as_mults_1): New.
493         (powi_as_mults): New.
494         (gimple_expand_builtin_powi): New.
495         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
496         (gate_cse_sincos): Remove sincos/cexp restriction.
497
498 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
499
500         PR target/3746
501         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
502         mips-tdump native.
503         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
504         * mips-tdump.c: Likewise.
505
506 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
507
508         PR target/49128
509         * config/i386/driver-i386.c (host_detect_local_cpu): Always
510         add -mno-XXX.  Handle FMA.
511
512 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
513
514         PR rtl-optimization/48633
515         * ira-build.c (loop_with_eh_edge_p): New function.
516         (mark_loops_for_removal): Use it.
517
518 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
519
520         PR rtl-optimization/48971
521         * ira.c (setup_pressure_classes): Don't check register move cost
522         for classes with one registers.  Don't add pressure class if there
523         is a pressure class with the same available hard registers.
524         Check contains_reg_of_mode.  Fix a typo in collecting
525         temp_hard_regset.  Ignore hard registers not belonging to a class.
526
527 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
528
529         PR target/49133
530         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
531
532 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
533             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
534
535         PR gcov-profile/48845
536         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
537
538 2011-05-24  Richard Guenther  <rguenther@suse.de>
539
540         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
541         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
542         (gimple_types_compatible_p_1): Adjust.
543         (iterative_hash_canonical_type): Do not bother about complete vs.
544         incomplete types.
545         (gimple_canonical_types_compatible_p): Likewise.
546
547 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
548
549         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
550
551 2011-05-24  Richard Guenther  <rguenther@suse.de>
552
553         PR bootstrap/49078
554         * gimple.c (gimple_register_canonical_type): Revert
555         previous change.
556         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
557         does not for a tree for the case where it matters.  Cache
558         pointer-type alias-sets.
559
560 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
561
562         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
563         (OBJS): Remove options.o, opts-common.o and prefix.o.
564         (OBJS-libcommon-target): New.
565         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
566         (BACKEND): Include libcommon-target.a.
567         (MOSTLYCLEANFILES): Include libcommon-target.a.
568         (libcommon-target.a): New.
569         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
570         prefix.o.
571
572 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
573
574         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
575         parts of output shared with the driver.
576         * optc-gen.awk: Don't generate parts of output not shared with the
577         driver.
578         * opth-gen.awk: Remove GCC_DRIVER conditionals.
579         * doc/options.texi (SourcerInclude): Mention options-save.c.
580         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
581         (OBJS): Add options-save.o.
582         (options-save.c, options-save.o): New.
583         (options.o): Update dependencies.
584         (gcc-options.o): Remove.
585         (mostlyclean): Remove options-save.c.
586
587 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
588
589         PR debug/49032
590         * dbxout.c: Include cgraph.h.
591         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
592         and without value expr, return NULL if no varpool node exists for
593         it or if it is not needed.
594         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
595
596         PR c/49120
597         * c-decl.c (start_decl): Convert expr to void_type_node.
598
599 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
600
601         PR rtl-optimization/48826
602         * emit-rtl.c (try_split): When splitting a call that is followed
603         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
604
605 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
606
607         * cfgexpand.c (expand_debug_expr): For unused non-addressable
608         parameters passed in memory prefer using DECL_INCOMING_RTL over
609         the pseudos it will be copied into.
610
611 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
612
613         PR target/47315
614         * config/i386/i386.c (ix86_option_override_internal): Save the
615         initial options after checking vzeroupper.
616
617 2011-05-23  David Li  <davidxl@google.com>
618
619         PR tree-optimization/48988
620         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
621         Initialize has_valid_pred for each pred chain.
622
623 2011-05-23  Richard Guenther  <rguenther@suse.de>
624
625         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
626         (iterative_hash_gimple_type): Always hash type names.
627
628 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
629
630         * c-typeck.c (build_function_call_vec): Tweak call to
631         check_function_arguments.
632
633 2011-05-23  Richard Guenther  <rguenther@suse.de>
634
635         PR tree-optimization/49115
636         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
637         is not necessarily carried out, do not claim it kills the ref.
638         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
639
640 2011-05-23  Richard Guenther  <rguenther@suse.de>
641
642         PR middle-end/15419
643         * builtins.c (fold_builtin_memory_op): Be less restrictive about
644         what pointer types we accept for folding.
645
646 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
647
648         * gthr-gnat.c: Remove.
649         * gthr-gnat.h: Remove.
650         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
651         * config/t-freebsd (LIB2ADDEH): Likewise.
652         * config/t-linux (LIB2ADDEH): Likewise.
653         * config/t-sol2 (LIB2ADDEH): Likewise.
654         * config/ia64/t-vms (LIB2ADDEH): Likewise.
655         * configure.ac (target_thread_file): Remove gnat handling.
656         * configure: Regenerate.
657         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
658
659 2011-05-23  Tristan Gingold  <gingold@adacore.com>
660             Eric Botcazou  <ebotcazou@adacore.com>
661
662         * gcov.c (create_file_names): If no object directory is specified,
663         keep the directory of the file.
664
665 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
666
667         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
668         * configure: Regenerate.
669
670 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
671
672         PR middle-end/48973
673         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
674         failed and the comparison has a single bit signed type, use
675         constm1_rtx instead of const1_rtx for true value.
676         (do_store_flag): If ops->type is single bit signed type, disable
677         signel bit test optimization and pass -1 instead of 1 as last
678         parameter to emit_store_flag_force.
679
680 2011-05-23  Tom de Vries  <tom@codesourcery.com>
681
682         PR target/45098
683         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
684         function.
685         (infer_loop_bounds_from_undefined): Use new function.
686
687 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
688
689         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
690         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
691         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
692         and -O0 otherwise.
693         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
694
695 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
696
697         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
698         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
699         returns true.
700
701 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
702
703         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
704
705 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
706
707         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
708         UNSPEC_MOVE_PIC pattern.
709
710 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
711
712         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
713         (sparc-*-rtems*): Likewise.
714         (sparc64-*-elf*): Likewise.
715         (sparc64-*-rtems*): Likewise.
716         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
717         * config/sparc/t-crtin: New file.
718         * config/sparc/t-sol2 (crti.o): Delete rule.
719         (crtn.o): Likewise.
720         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
721         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
722         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
723         (ENDFILE_SPEC): Add crtn.o.
724
725 2011-05-22  Tom de Vries  <tom@codesourcery.com>
726
727         PR middle-end/48689
728         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
729         CODE_CONTAINS_STRUCT (TS_COMMON).
730
731 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
732
733         PR middle-end/49029
734         * expmed.c (extract_fixed_bit_field): Test whether target can be used
735         only after deciding which mode to use.
736
737 2011-05-22  Tom de Vries  <tom@codesourcery.com>
738
739         PR target/45098
740         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
741         for call to get_shiftadd_cost.
742
743 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
744
745         PR target/49104
746         * config/i386/cpuid.h (bit_MMXEXT): New define.
747
748 2011-05-22  Nick Clifton  <nickc@redhat.com>
749
750         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
751         initialisation of non-existant args[2] element.  Use args[] array
752         not arg[] array to pass arguments to build_function_type_list.
753
754 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
755
756         PR tree-optimization/49087
757         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
758
759 2011-05-21  Jason Merrill  <jason@redhat.com>
760
761         PR c++/49092
762         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
763         static storage duration.
764
765 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
766
767         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
768         frame pointer.
769
770 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
771
772         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
773         false if there are call-saved registers here...
774         (sparc_can_use_return_insn_p): ...but here instead.
775         (save_or_restore_regs): Fix thinko.
776         (sparc_expand_prologue): Use current_function_is_leaf.
777         (sparc_frame_pointer_required): Likewise.
778
779 2011-05-21  Nick Clifton  <nickc@redhat.com>
780
781         PR target/49098
782         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
783
784 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
785
786         * gengtype.c (walk_type): Implemented "atomic" GTY option.
787         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
788
789 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
790
791         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
792         * optc-gen.awk: Move common code to opt-read.awk.
793         * opth-gen.awk: Likewise.
794         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
795
796 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
797
798         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
799
800 2011-05-20  Tom de Vries  <tom@codesourcery.com>
801
802         PR target/45098
803         * tree-ssa-loop-ivopts.c: Include expmed.h.
804         (get_shiftadd_cost): New function.
805         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
806
807 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
808
809         PR bootstrap/49086
810         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
811         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
812
813 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
814
815         * Makefile.in: Update comment referring to $(OBJS-common).
816
817 2011-05-20  Ian Lance Taylor  <iant@google.com>
818
819         * godump.c (go_output_typedef): Put enum constants in the macro
820         hash table to avoid duplicate Go const definitions.
821
822 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
823
824         * Makefile.in (LIBDEPS): Add libcommon.a.
825         (LIBS): Likewise.
826         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
827         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
828         pretty-print.o and version.o.
829         (OBJS-libcommon): New.
830         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
831         (BACKEND): Add libcommon.a.
832         (MOSTLYCLEANFILES): Likewise.
833         (libcommon.a): New.
834         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
835         (cpp$(exeext)): Likewise.
836         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
837         pretty-print.o and input.o.
838         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
839         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
840         (errors.o): Remove.
841         (mips-tfile): Don't explicitly use version.o.
842         (mips-tdump): Likewise.
843         (gcov.o): Depend on $(DIAGNOSTIC_H).
844         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
845         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
846         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
847         * gcov-dump.c: Include intl.h and diagnostic.h.
848         (main): Initialize diagnostics.
849         * gcov.c: Include diagnostic.h.
850         (fnotice): Remove.
851         (main): Initialize diagnostics.
852         * lto-wrapper.c: Include diagnostic.h.
853         (main): Initialize diagnostics.
854
855 2011-05-20  Michael Matz  <matz@suse.de>
856
857         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
858
859 2011-05-20  Michael Matz  <matz@suse.de>
860             Richard Guenther  <rguenther@suse.de>
861
862         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
863         use lto_streamer_cache_append directly instead of returning a VEC.
864         (preload_common_node): Remove.
865         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
866         track seen nodes.
867         (lto_streamer_cache_create): Call lto_preload_common_nodes.
868
869 2011-05-20  Richard Guenther  <rguenther@suse.de>
870
871         PR tree-optimization/49079
872         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
873         MEM_REFs correctly for the trailing array access detection.
874         Special case constants the same way as decls for overall size
875         constraining.
876
877 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
878
879         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
880         argument expansion.
881
882 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
883
884         PR tree-optimization/49073
885         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
886         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
887         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
888
889 2011-05-20  Richard Guenther  <rguenther@suse.de>
890
891         PR middle-end/48849
892         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
893         of pointer types the same way the middle-end does.
894
895 2011-05-20  Richard Guenther  <rguenther@suse.de>
896
897         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
898         or pointer-to chains.  Delay all fixup to uniquify_nodes.
899
900 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
901
902         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
903         (fma4_fmaddsub): Likewise
904
905 2011-05-19  Jan Hubicka  <jh@suse.cz>
906
907         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
908         (GIMPLE_TYPE_PAIR_SIZE): New macro.
909         (type_pair_cache): New static var.
910         (lookup_type_pair): Use fixed sized custom hash; make inline.
911         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
912         calls of lookup_type_pair.
913         (print_gimple_types_stats): Remove cache stats.
914         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
915         and gtc_ob.
916
917 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
918
919         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
920         when TARGET_RDRND is active.
921         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
922         Generate dummy SImode target register when target is NULL.
923
924 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
925
926         * config/arm/arm-fpus.def: New.
927         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
928         arm-fpus.def.
929         * config/arm/arm-tables.opt: Regenerate.
930         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
931         (arm_option_override): Don't decode FPU name to string here.
932         * config/arm/arm.opt (mfpu=): Use Enum.
933         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
934         Update dependencies.
935
936 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
937
938         * collect2.c: Include diagnostic.h.
939         (fatal_perror, fatal, error, fancy_abort): Remove.
940         (main): Set progname.  Call xmalloc_set_program_name and
941         diagnostic_initialize.
942         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
943         scan_libraries, resolve_lib_name): Call fatal_error instead of
944         fatal and fatal_perror.
945         * collect2.h (error, fatal, fatal_perror): Don't declare.
946         * tlink.c: Include diagnostic-core.h.
947         (recompile_files): Call fatal_error instead of fatal_perror.
948         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
949         pretty-print.o and input.o.
950         (collect2.o, tlink.o): Update dependencies.
951
952 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
953
954         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
955
956 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
957
958         PR target/40483
959         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
960         COMDAT group syntax, both SPARC and x86 variants.
961         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
962         * configure: Regenerate.
963         * config/sol2.h (TARGET_SOLARIS): Define.
964         (PUSHSECTION_FORMAT): Remove.
965         (SECTION_NAME_FORMAT): Define.
966         * config/sol2.c: Include hashtab.h.
967         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
968         expansion, using SECTION_NAME_FORMAT.
969         (solaris_comdat_htab): New variable.
970         (struct comdat_entry): Define.
971         (comdat_hash): New function.
972         (comdat_eq): New function.
973         (solaris_elf_asm_comdat_section): New function.
974         (solaris_define_comdat_signature): New function.
975         (solaris_code_end): New function.
976         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
977         (solaris_code_end): Declare.
978         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
979         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
980         solaris_code_end.
981         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
982         Remove ATTRIBUTE_UNUSED.
983         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
984         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
985         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
986         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
987         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
988         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
989         (PUSHSECTION_FORMAT): Remove.
990         (SECTION_NAME_FORMAT): Redefine.
991
992 2011-05-19  Kai Tietz  <ktietz@redhat.com>
993
994         * tree-cfg.c (verify_gimple_assign_binary): Barf on
995         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
996         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
997
998 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
999             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1000
1001         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
1002
1003 2011-05-19  Richard Guenther  <rguenther@suse.de>
1004
1005         PR middle-end/48985
1006         * tree-object-size.c (addr_object_size): If the pointed-to
1007         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1008
1009 2011-05-19  Richard Guenther  <rguenther@suse.de>
1010
1011         * gimple.c (gimple_types_compatible_p_1): Compare names of
1012         the types themselves.
1013         (iterative_hash_gimple_type): And hash them that way.
1014         (gimple_register_type_1): If we register a main variant properly
1015         initialize the leader to ourselves.
1016
1017 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1018
1019         PR target/45098
1020         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1021         get_loop_invariant_expr_id.
1022         (get_loop_invariant_expr_id): Use get_expr_id.
1023         (parm_decl_cost): New function.
1024         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1025         Improve bound cost estimation.  Use different inv_expr_id for elim and
1026         express cases.
1027
1028 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1029
1030         PR target/45098
1031         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1032         cost_base.cost == 0.
1033
1034 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1035
1036         PR target/49002
1037         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1038         Properly handle load cast.
1039
1040 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1041
1042         PR tree-optimization/49039
1043         * tree-vrp.c (extract_range_from_binary_expr): For
1044         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1045         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1046
1047 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1048
1049         PR target/45098
1050         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1051
1052 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
1053
1054         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1055         (*tls_global_dynamic_64): Ditto.
1056         (*tls_local_dynamic_base_32_gnu): Ditto.
1057         (*tls_local_dynamic_base_64): Ditto.
1058         (tls_initial_exec_64_sun): Ditto.
1059
1060 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
1061
1062         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1063         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1064         bf592-none.
1065         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1066         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1067         * config/bfin/bfin.c (bfin_cpus): Add bf592.
1068         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1069         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1070         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1071         * config/bfin/elf.h (LIB_SPEC): Add bf592.
1072
1073 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
1074
1075         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1076         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1077         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1078         target_thread_pointer, arm_structure_size_boundary, struct
1079         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1080         struct abi_name, arm_all_abis): Remove.
1081         (arm_option_override) Don't process most enumerated option values here.
1082         Don't process target_fpe_name here.  Work with integer not string for
1083         structure size boundary; use separate diagnostics for each case.
1084         * config/arm/arm.h (enum float_abi_type, enum
1085         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1086         to arm-opts.h.
1087         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1088         arm_structure_size_boundary): Remove.
1089         * config/arm/arm.opt (mabi=): Use Enum and Init.
1090         (arm_abi_type): New Enum and EnumValue entries.
1091         (mfloat-abi=): Use Enum and Init.
1092         (float_abi_type): New Enum and EnumValue entries.
1093         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1094         (mfp16-format=): Use Enum and Init.
1095         (arm_fp16_format_type): New Enum and EnumValue entries.
1096         (mstructure-size-boundary=): Use UInteger and Init.
1097         (mtp=): Use Enum and Init.
1098         (arm_tp_type): New Enum and EnumValue entries.
1099
1100 2011-05-18  Richard Guenther  <rguenther@suse.de>
1101
1102         PR tree-optimization/49018
1103         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1104         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1105         gimple_has_side_effects.
1106
1107 2011-05-18  Richard Guenther  <rguenther@suse.de>
1108
1109         * gimple.c (gimple_register_type_1): New function, split out from ...
1110         (gimple_register_type): ... here.  Avoid infinite recursion.
1111
1112 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
1113
1114         PR tree-optimization/41881
1115         * tree-vectorizer.h (struct _loop_vec_info): Add new field
1116         reduction_chains along with a macro for its access.
1117         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1118         (destroy_loop_vec_info): Free reduction chains.
1119         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1120         (vect_is_slp_reduction): New function.
1121         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1122         (vect_create_epilog_for_reduction): Support SLP reduction chains.
1123         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1124         definition types for reduction chains.
1125         (vect_supported_load_permutation_p): Don't allow permutations for
1126         reduction chains.
1127         (vect_analyze_slp_instance): Support reduction chains.
1128         (vect_analyze_slp): Try to build SLP instance from reduction chains.
1129         (vect_get_constant_vectors):  Handle reduction chains.
1130         (vect_schedule_slp_instance): Mark the first statement of the
1131         reduction chain as reduction.
1132
1133 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
1134
1135         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1136         names for group elements access.
1137         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1138         reduction chains as well.  Remove data reference and interleaving
1139         related words from the fields names.
1140         * tree-vect-loop.c (vect_transform_loop): Use new names for group
1141         elements access.
1142         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1143         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1144         vect_update_interleaving_chain, vect_same_range_drs,
1145         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1146         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1147         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1148         vect_analyze_group_access, vect_analyze_data_ref_access,
1149         vect_create_data_ref_ptr, vect_transform_strided_load,
1150         vect_record_strided_load_vectors): Likewise.
1151         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1152         vect_model_load_cost, vectorizable_store, vectorizable_load,
1153         vect_remove_stores, new_stmt_vec_info): Likewise.
1154         * tree-vect-slp.c (vect_build_slp_tree,
1155         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1156
1157 2011-05-18  Richard Guenther  <rguenther@suse.de>
1158
1159         PR middle-end/48989
1160         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1161         operand verification.
1162         (verify_gimple_assign_binary): Likewise.
1163         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1164         to non-1-precision BOOLEAN_TYPEs.
1165
1166 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1167
1168         PR target/45098
1169         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1170
1171 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1172
1173         PR tree-optimization/49000
1174         * tree-ssa.c (execute_update_addresses_taken): Call
1175         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
1176         be rewritten and decl has been marked for renaming, reset
1177         the debug stmt.
1178
1179 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
1180
1181         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1182         enum_opts_set when testing if attributes have set -mfpmath=.
1183
1184 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
1185
1186         * config/mips/mips.c (mips_handle_option): Remove unused variable.
1187
1188 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1189
1190         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1191         info->entry with 0
1192         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
1193         id.transform_lang_insert_block with NULL.
1194
1195 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1196
1197         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1198         (output_fp_compare): Change args 3 and 4 to bool.
1199         (ix86_expand_call): Change arg 6 to bool.
1200         (ix86_attr_length_immediate_default): Change arg 2 to bool.
1201         (ix86_attr_length_vex_default): Change arg 3 to bool.
1202         * config/i386/i386.md: Update all uses.
1203         * config/i386/i386.c: Ditto.
1204         (ix86_flags_dependent): Change return type to bool.
1205
1206 2011-05-17  Richard Guenther  <rguenther@suse.de>
1207
1208         * gimple.c (type_hash_pair_compare): Fix comparison.
1209
1210 2011-05-17  Richard Guenther  <rguenther@suse.de>
1211
1212         * gimple.c (iterative_hash_gimple_type): Simplify singleton
1213         case some more, fix final hash value of the non-singleton case.
1214
1215 2011-05-17  Richard Guenther  <rguenther@suse.de>
1216
1217         PR bootstrap/49013
1218         Revert
1219         2011-05-16  Richard Guenther  <rguenther@suse.de>
1220
1221         * gimple.c (gimple_types_compatible_p_1): Use names of the
1222         type itself, not its main variant.
1223         (iterative_hash_gimple_type): Likewise.
1224
1225 2011-05-17  Richard Guenther  <rguenther@suse.de>
1226
1227         * gimple.c (gimple_register_canonical_type): Use the main-variant
1228         leader for computing the canonical type.
1229
1230 2011-05-17  Nick Clifton  <nickc@redhat.com>
1231
1232         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1233         moves.
1234
1235         * config/rx/rx.md: Add peephole to remove redundant extensions
1236         after loads.
1237         (bitset_in_memory): Use rx_restricted_mem_operand.
1238         (bitinvert_in_memory): Likewise.
1239         (bitclr_in_memory): Likewise.
1240
1241 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
1242             Nick Clifton  <nickc@redhat.com>
1243
1244         * config/rx/rx.md: Add peepholes to match a register move followed
1245         by a comparison of the moved register.  Replace these with an
1246         addition of zero that does both actions in one instruction.
1247
1248 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
1249
1250         PR target/48986
1251         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1252         predicate to allow CONST_INT.
1253         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1254
1255 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1256
1257         * opts-common.c (opt_enum_arg_to_value): New.
1258         * opts.h (opt_enum_arg_to_value): Declare.
1259         * config/i386/i386.opt (fpmath): Remove.
1260         (mfpmath=): Use Enum, Init and Save.
1261         (fpmath_unit): New Enum and EnumValue entries.
1262         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1263         name for function fpmath state.
1264         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1265         * config/i386/i386.c: Include diagnostic.h.
1266         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1267         (ix86_target_string): Take enum fpmath_unit value instead of string.
1268         (ix86_debug_options): Update call to ix86_target_string.
1269         (ix86_option_override_internal): Don't process fpmath strings here.
1270         (x86_function_specific_save, ix86_function_specific_restore):
1271         Don't handle fpmath state specially.
1272         (ix86_function_specific_print): Pass fpmath state to
1273         ix86_target_string instead of printing in this function.
1274         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1275         Handle enum attributes.
1276         (IX86_ATTR_ENUM, ix86_opt_enum): New.
1277         (ix86_valid_target_attribute_tree): Update option_strings
1278         handling.  Handle fpmath as enum option.
1279         (ix86_can_inline_p): Update field names for function fpmath state.
1280         (ix86_expand_builtin): Update call to ix86_target_string.
1281         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1282         (ix86_fpmath): Remove.
1283         * config/i386/t-i386 (i386.o): Update dependencies.
1284
1285 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1286
1287         PR preprocessor/48677
1288         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1289         from decoded_options[0], not from itself.
1290
1291 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
1292
1293         * config/i386/constraints.md (z): New constraint.
1294         * config/i386/i386.c (c): New mode attribute.
1295         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1296         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1297         constraint for operand 0.
1298         (*call_vzeroupper): Ditto.
1299         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
1300         (*call_rex64_ms_sysv_vzeroupper): Ditto.
1301         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1302         Use "lzm" constraint for operand 0.
1303         (*call_pop_vzeroupper): Ditto.
1304         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1305         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
1306         constraint for operand 0.
1307         (*sibcall_vzeroupper): Ditto.
1308         (*sibcall_rex64_ms_sysv): Ditto.
1309         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1310         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1311         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
1312         (*sibcall_pop_vzeroupper): Ditto.
1313         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1314         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1315         mode iterator.  Use "<c>zm" constraint for operand 1.
1316         (*call_value_vzeroupper): Ditto.
1317         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
1318         for operand 1.
1319         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1320         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1321         *call_value_pop_1.  Use "lzm" constraint for operand 1.
1322         (*call_value_pop_vzeroupper): Ditto.
1323         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1324         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1325         mode iterator.  Use "Uz" constraint for operand 1.
1326         (*sibcall_value_vzeroupper): Ditto.
1327         (*sibcall_value_rex64_ms_sysv): Ditto.
1328         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1329         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
1330         constraint for operand 1.
1331         (*sibcall_value_pop_vzeroupper): Ditto.
1332         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1333         and "z" constraint for operand 2.
1334         (*tls_global_dynamic_32_gnu): Ditto.
1335         (*tls_local_dynamic_base_32_gnu): Ditto.
1336         (*tls_local_dynamic_base_64): Ditto.
1337         (*tls_local_dynamic_32_once): Ditto.
1338         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1339         Update all callers.
1340         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1341
1342 2011-05-16  Richard Guenther  <rguenther@suse.de>
1343
1344         * gimple.c (gimple_types_compatible_p_1): Use names of the
1345         type itself, not its main variant.
1346         (iterative_hash_gimple_type): Likewise.
1347
1348 2011-05-16  Richard Guenther  <rguenther@suse.de>
1349
1350         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1351         always visit pointer target and function result and argument types.
1352
1353 2011-05-16  Jason Merrill  <jason@redhat.com>
1354
1355         PR c++/48999
1356         * tree-inline.c (copy_statement_list): Put back recursion.
1357
1358 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1359
1360         PR target/27663
1361         PR target/41076
1362         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1363         * config/avr/avr.md ("*ior<mode>qi.byte0",
1364         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1365
1366 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1367
1368         PR target/45099
1369         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1370         register is needed for a function argument.
1371
1372 2011-05-16  Richard Guenther  <rguenther@suse.de>
1373
1374         * gimple.c (struct type_hash_pair): New type.
1375         (type_hash_pair_compare): New function.
1376         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1377
1378 2011-05-16  Revital Eres  <revital.eres@linaro.org>
1379
1380         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1381
1382 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1383
1384         * config/i386/i386.md (floating point move splitters): Fix
1385         usage of standard_80387_constant_p.
1386         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1387
1388 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1389
1390         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1391
1392 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
1393
1394         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1395         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1396         (tree_ssa_lim_finalize): Likewise.
1397
1398 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
1399
1400         * config/i386/constraint.md (Yd, Yx): New register constraints.
1401         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
1402         Yd conditional register constraint.
1403         (*movtf_internal): Use standard_sse_constant_opcode.
1404         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
1405         Yx conditional register constraint.
1406         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
1407         Yd conditional register constraint.  Use standard_sse_constant_p to
1408         check for valid SSE constants and call standard_sse_constant_opcode to
1409         output SSE insn.
1410         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1411         constants and call standard_sse_constant_opcode to output SSE insn.
1412         * config/i386/i386.c (ix86_option_ovverride_internal): Set
1413         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
1414         optimize_size is set.
1415         (standard_sse_constant_opcode): Output conditional AVX insn templates.
1416
1417 2011-05-14  Tobias Burnus  <burnus@net-b.de>
1418
1419         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1420
1421 2011-05-13  Martin Jambor  <mjambor@suse.cz>
1422
1423         * ipa-prop.c (ipa_cst_from_jfunc): New function.
1424         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1425         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1426         (evaluate_conditions_for_ipcp_clone): Removed.
1427         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1428         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1429         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1430
1431 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
1432
1433         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1434         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1435         lieu of MAY_HAVE_DEBUG_STMTS.
1436         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1437         debug statements if !MAY_HAVE_DEBUG_STMTS.
1438
1439 2011-05-13  Martin Thuresson  <martint@google.com>
1440
1441         PR gcov-profile/47793
1442         * libgcov.c (gcov_exit): Support relative profile paths.
1443         * doc/invoke.texi (-fprofile-dir): Update for above change.
1444
1445 2011-05-13  Richard Guenther  <rguenther@suse.de>
1446
1447         * gimple.c (gimple_canonical_types_compatible_p): Do not use
1448         type-pair caching, do not compare hashes.
1449
1450 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
1451
1452         PR middle-end/48965
1453         * tree-cfg.c (edge_to_cases_cleanup): Return true.
1454         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1455
1456 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1457
1458         * gimplify.c (gimplify_expr): Make sure operand is boolified.
1459         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1460         compatible type for TRUTH_NOT_EXPR.
1461
1462 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1463
1464         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1465         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
1466         can_create_pseudo_p ().
1467
1468 2011-05-13  Richard Guenther  <rguenther@suse.de>
1469
1470         PR lto/48978
1471         * gimple.c (iterative_hash_gimple_type): Revert change in
1472         pointer target and function result and argument hashing.
1473
1474 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
1475
1476         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1477         (*movxf_internal_nointeger): Ditto.
1478         (*movdf_internal_rex64): Ditto.
1479         (*movdf_internal): Ditto.
1480         (*movdf_internal_nointeger): Ditto.
1481         (*movsf_internal): Ditto.
1482         (sincos splitters): Use can_create_pseudo ().
1483
1484 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
1485
1486         * config/i386/i386-opts.h: New.
1487         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1488         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1489         ix86_section_threshold): Remove.
1490         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
1491         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1492         OPT_mbranch_cost_.
1493         (ix86_option_override_internal): Don't decode strings for options
1494         other than -march=, -mtune= and -mfpmath=.  Don't allow for
1495         __attribute__ uses in remaining diagnostics for options with
1496         string arguments.  Don't check for integer arguments being negative.
1497         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1498         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1499         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1500         ix86_branch_cost, ix86_section_threshold): Remove.
1501         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1502         HeaderInclude.
1503         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1504         but not Var.
1505         (masm=): Use Enum and Init.
1506         (asm_dialect): New Enum and EnumValue entries.
1507         (mbranch-cost=): Use UInteger.
1508         (mlarge-data-threshold=): Use UInteger and Init.
1509         (mcmodel=): Use Enum and Init.
1510         (cmodel): New Enum and EnumValue entries.
1511         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1512         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1513         mregparm=): Use UInteger.
1514         (mstringop-strategy=): Use Enum and Init.
1515         (stringop_alg): New Enum and EnumValue entries.
1516         (mtls-dialect=): Use Enum and Init.
1517         (tls_dialect): New Enum and EnumValue entries.
1518         (mabi=): Use Enum and Init.
1519         (calling_abi): New Enum and EnumValue entries.
1520         (mveclibabi=): Use Enum and Init.
1521         (ix86_veclibabi): New Enum and EnumValue entries.
1522
1523 2011-05-13  Nick Clifton  <nickc@redhat.com>
1524
1525         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1526         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1527
1528 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1529
1530         PR middle-end/48984
1531         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1532         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1533         (gimple_boolify): Check for cast for boolean_type_node instead for
1534         BOOLEAN_TYPE.
1535
1536 2011-05-13  Richard Guenther  <rguenther@suse.de>
1537
1538         PR tree-optimization/48172
1539         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1540         multiplying by number of iterations for equal step.
1541         (vect_create_cond_for_alias_checks): Likewise.
1542
1543 2011-05-13  Andreas Schwab  <schwab@redhat.com>
1544
1545         * configure.ac: Use AS_HELP_STRING throughout.
1546         * configure: Regenerate.
1547
1548 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1549
1550         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1551         (ix86_emit_restore_regs_using_mov): Likewise.
1552         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1553
1554 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
1555
1556         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1557         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1558         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1559         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1560         RTX_OK_FOR_OLO10_P): ...here.
1561         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1562         SYMBOLIC_CONST.
1563
1564 2011-05-12  Kai Tietz  <ktietz@redhat.com>
1565
1566         * gimplify.c (gimple_boolify): Re-boolify expression
1567         arguments even if expression type is of kind BOOLEAN_TYPE.
1568         (gimplify_boolean_expr): Removed.
1569         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1570         and XOR. Additional take care that we keep expression's type.
1571         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1572         of TRUTH_AND|OR|XOR_EXPR.
1573
1574 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1575
1576         PR tree-optimization/48975
1577         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1578         on all bbs here and free and clear ifc_bbs at the end.
1579
1580 2011-05-12  Richard Guenther  <rguenther@suse.de>
1581
1582         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1583         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
1584         until after simple checks.
1585         (gimple_types_compatible_p): Likewise.
1586         (iterative_hash_gimple_type): Always hash pointer targets
1587         and function return and argument types.
1588         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1589         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
1590         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1591         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
1592         completely in the simple compare section.
1593         (gimple_register_canonical_type): Query the cache again after
1594         registering.
1595
1596 2011-05-12  Richard Guenther  <rguenther@suse.de>
1597
1598         PR tree-optimization/48172
1599         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1600         the number of iterations from the segment size calculation.
1601         (vect_create_cond_for_alias_checks): Adjust.
1602
1603 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1604
1605         PR debug/48967
1606         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1607         if validate_subreg fails.
1608
1609 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
1610
1611         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1612         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1613         early.
1614
1615 2011-05-12  DJ Delorie  <dj@redhat.com>
1616
1617         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1618         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1619         created builtin into rx_builtins array.
1620         (rx_builtin_decl): New function.
1621         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
1622
1623 2011-05-12  DJ Delorie  <dj@redhat.com>
1624             Nick Clifton  <nickc@redhat.com>
1625
1626         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1627         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1628         (rx_is_legitimate_address): Add pre-decrement and post-increment
1629         addressing in HImode and QImode.  Fix test for out of range
1630         REG+INT addressing.
1631         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1632         (rx_align_for_label): Test label before extracting its usage count.
1633         (rx_adjust_insn_lengths): Fix selection of insn codes.
1634         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1635
1636 2011-05-11  Jason Merrill  <jason@redhat.com>
1637
1638         * tree.c (type_hash_canon): Use struct tree_type_non_common.
1639
1640 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1641
1642         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1643         reindent the subsequent block.
1644
1645 2011-05-11  Satoru Takabayashi  <satorux@google.com>
1646             Paul Pluzhnikov  <ppluzhnikov@google.com>
1647
1648         * doc/install.texi (Configuration): Document --with-linker-hash-style.
1649         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1650         * config.in: Add LINKER_HASH_STYLE.
1651         * configure.ac: Add --with-linker-hash-style.
1652         * configure: Regenerate.
1653
1654 2011-05-11  Richard Guenther  <rguenther@suse.de>
1655
1656         PR middle-end/48964
1657         * gimple.c (iterative_hash_canonical_type): Fix typo.
1658
1659 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
1660
1661         * config/i386/i386.c (legitimize_tls_address)
1662         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1663         expanders directly for TARGET_GNU2_TLS.  Determine pic and
1664         __tls_get_addr symbol reference here.  Update call to
1665         gen_tls_global_dynamic_{32,64} for added arguments.
1666         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1667         expanders directly for TARGET_GNU2_TLS.  Determine
1668         __tls_get_addr symbol reference here.  Update call to
1669         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
1670         unique UNSPEC REG_EQUIV to libcall block.
1671         (ix86_tls_get_addr): Declare static.
1672         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1673         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1674         Do not determine pic and __tls_get_addr symbol reference here. Do not
1675         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1676         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1677         (tls_global_dynamic_64): Add operand 2.  Do not determine
1678         __tls_get_addr symbol reference here.  Do not call
1679         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1680         (tls_local_dynamic_base64): Ditto for operand 1.
1681
1682 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1683
1684         * function.c (expand_function_start): Initialize stack_check_probe_note
1685         only if the generic stack checking mechanism is used.
1686
1687 2011-05-11  Richard Guenther  <rguenther@suse.de>
1688
1689         PR tree-optimization/15256
1690         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1691         (A & B) | C, combine (A op CST1) op CST2.
1692         (tree_ssa_forward_propagate_single_use_vars): Only bother to
1693         visit assigns that have uses.
1694
1695 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
1696
1697         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1698         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1699         (unpack_ts_type_common_value_fields): ...this.  Update comment.
1700         (unpack_value_fields): Adjust for renaming.
1701         (lto_input_ts_type_tree_pointers): Split into...
1702         (lto_input_ts_type_common_tree_pointer): ...this and...
1703         (lto_input_ts_type_non_common_tree_pointers): ...this.
1704         (lto_input_tree_pointers): Adjust for above split.
1705         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1706         (pack_ts_type_common_value_fields): ...this.  Update comment.
1707         (lto_output_ts_type_tree_pointers): Split into...
1708         (lto_output_ts_type_common_tree_pointers): ...this and...
1709         (lto_output_ts_type_non_common_tree_pointers): ...this.
1710         (lto_output_tree_pointers): Adjust for above split.
1711         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1712         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1713         * stor-layout.c (vector_type_mode): Adjust location of mode field.
1714         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1715         Define.
1716         (struct tree_type): Split into...
1717         (struct tree_type_common: ...this and...
1718         (struct tree_type_with_lang_specific): ...this and...
1719         (struct tree_type_non_common): ...this.  Adjust accessor macros
1720         accordingly.
1721         (TYPE_VALUES_RAW): Define.
1722         (union tree_node): Update for above changes.
1723         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1724         TS_TYPE_NON_COMMON.
1725         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1726         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1727         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1728         * treestructu.def (TS_TYPE): Remove.
1729         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1730         Define.
1731
1732 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
1733
1734         PR debug/48159
1735         * tree-ssa.c (reset_debug_uses): New function.
1736         * tree-flow.h (reset_debug_uses): New prototype.
1737         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1738         * tree-loop-distribution.c (generate_loops_for_partition): Call
1739         reset_debug_uses on the stmts that will be removed.  Keep around
1740         all debug stmts, don't count them as bits in partition bitmap.
1741         (generate_builtin): Don't count debug stmts or labels as bits in
1742         partition bitmap.
1743
1744 2011-05-11  Richard Guenther  <rguenther@suse.de>
1745
1746         * gimple.c (gimple_type_hash_1): Merge with ...
1747         (gimple_type_hash): ... this.
1748         (gtc_visit): Remove mode parameter and simplify accordingly.
1749         (gimple_types_compatible_p_1): Likewise.
1750         (gimple_types_compatible_p): Likewise.
1751         (iterative_hash_gimple_type): Likewise.
1752         (visit): Likewise.
1753         (gimple_type_eq): Adjust.
1754
1755 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1756
1757         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1758         enters the branch create an anti edge in the opposite direction
1759         to prevent the creation of reg-moves.
1760         * modulo-sched.c: Adjust comment to reflect the fact we are
1761         scheduling closing branch.
1762         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1763         (stage_count): New field in struct partial_schedule.
1764         (calculate_stage_count): New function.
1765         (normalize_sched_times): Rename to reset_sched_times and handle
1766         incrementing the sched time of the nodes by a constant value
1767         passed as parameter.
1768         (duplicate_insns_of_cycles): Skip closing branch.
1769         (sms_schedule_by_order): Schedule closing branch.
1770         (ps_insn_find_column): Handle closing branch.
1771         (sms_schedule): Call reset_sched_times and adjust the code to
1772         support scheduling of the closing branch.
1773         (ps_insert_empty_row): Update calls to normalize_sched_times
1774         and rotate_partial_schedule functions.
1775
1776 2011-05-11  Richard Guenther  <rguenther@suse.de>
1777
1778         PR middle-end/48953
1779         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1780
1781 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
1782
1783         * opts.c (finish_options): Move warning settings from process_options.
1784         * toplev.c (process_options): Move warning settings to finish_options.
1785
1786 2011-05-11  Richard Guenther  <rguenther@suse.de>
1787
1788         PR tree-optimization/18041
1789         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1790         (simplify_bitwise_binary): ... this.  Handle operand conversions
1791         by applying them to the result instead.
1792         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
1793
1794 2011-05-11  Richard Guenther  <rguenther@suse.de>
1795
1796         * gimple.c (gimple_canonical_types_compatible_p): Split out
1797         from gimple_types_compatible_p and friends.  Do not recurse
1798         to pointed-to types.
1799         (gimple_canonical_type_eq): Use it.
1800         (iterative_hash_canonical_type): Split out from
1801         iterative_hash_gimple_type and friends.  Do not recurse
1802         to pointed-to types.
1803         (gimple_canonical_type_hash): Use it, allocate the hash here.
1804
1805 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1806
1807         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1808         recognizing doloop.
1809
1810 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1811
1812         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1813         instead of PREV_INSN.
1814
1815 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1816
1817         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1818         * loop-doloop.c (doloop_condition_get): Likewise.
1819         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1820         (doloop_end): New.
1821         * config/arm/arm.md (*addsi3_compare0): Remove "*".
1822
1823 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1824
1825         * tree.def (CASE_LABEL_EXPR): Add an operand.
1826         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1827
1828 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1829
1830         * c-decl.c (c_override_global_bindings_to_false): Remove.
1831         (global_bindings_p): Don't check
1832         c_override_global_bindings_to_false.
1833         * c-tree.h (c_override_global_bindings_to_false): Remove.
1834         * c-typeck.c (composite_type): Don't set
1835         c_override_global_bindings_to_false.
1836
1837 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1838
1839         PR target/48857, 48495
1840         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1841         (VSX_MODE): Ditto.
1842         (VSX_MOVE_MODE): Ditto.
1843         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1844         VSX vector types.  Add V2DImode.
1845         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1846         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1847         (MODES_TIEABLE_P): Ditto.
1848
1849         * config/rs6000/rs6000.c (rs6000_emit_move): Use
1850         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1851         VSX_VECTOR_MODE.
1852         (init_cumulative_args): Ditto.
1853         (rs6000_function_arg_boundary): Ditto.
1854         (rs6000_function_arg_advance_1): Ditto.
1855         (rs6000_function_arg): Ditto.
1856         (rs6000_function_ok_for_sibcall): Ditto.
1857         (emit_frame_save): Ditto.
1858         (rs6000_function_value): Ditto.
1859         (rs6000_libcall_value): Ditto.
1860
1861 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1862
1863         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1864         i386/darwin-lib.h to $libgcc_tm_file.
1865         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1866
1867 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1868
1869         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1870
1871 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1872
1873         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1874         * config/rs6000/rs6000-tables.opt: New file (generated).
1875         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1876         rs6000/rs6000-tables.opt to extra_options.
1877         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1878         * config/rs6000/rs6000.c (rs6000_select): Remove.
1879         (processor_target_table): Move contents to rs6000-cpus.def.
1880         (darwin_rs6000_override_options): Check
1881         global_options_set.x_rs6000_cpu_index instead of
1882         rs6000_select[1].string.
1883         (rs6000_option_override_internal): Likewise.
1884         (rs6000_handle_option): Don't assert that global structures are in
1885         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
1886         (rs6000_default_cpu): New variable.
1887         (rs6000_file_start): Set it instead of local default_cpu.  Check
1888         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1889         global_options_set.x_rs6000_tune_index instead of rs6000_select.
1890         (rs6000_darwin_file_start): Check rs6000_default_cpu and
1891         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1892         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1893         rs6000_select): Remove.
1894         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1895         Remove.
1896         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1897         * config/rs6000/t-rs6000
1898         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1899         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1900         global_options_set.x_rs6000_cpu_index instead of
1901         rs6000_select[1].string.
1902         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1903         global_options_set.x_rs6000_cpu_index instead of
1904         rs6000_select[1].string.
1905
1906 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1907
1908         * config.gcc (libgcc_tm_file): Define instead of including files
1909         from ../../libgcc/config/ in tm_file.
1910         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1911         * configure: Regenerate.
1912         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1913         libgcc_tm.h, cs-libgcc_tm.h): New.
1914         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1915         (clean): Remove libgcc_tm.h.
1916         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1917         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1918         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1919
1920 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
1921
1922         PR target/48896
1923         * config/avr/avr.c (avr_ret_register): Return unsigned int
1924         instead of int.
1925         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1926         it to avr_libcall_value.
1927         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1928         expand_expr.
1929         (avr_expand_binop_builtin): Ditto.
1930         (avr_expand_unop_builtin): Ditto.
1931
1932 2011-05-10  DJ Delorie  <dj@redhat.com>
1933
1934         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1935         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1936         * config/rx/rx.c (rx_align_for_label): Add label and
1937         uses_threshold parameters.  Do not align when the label is not
1938         used enough.
1939         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1940
1941 2011-05-10  Richard Guenther  <rguenther@suse.de>
1942
1943         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1944         a series of conversions and apply foldings similar to what
1945         fold-const does.
1946         (tree_ssa_forward_propagate_single_use_vars): Call it.
1947
1948 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
1949
1950         PR tree-optimization/48611
1951         PR tree-optimization/48794
1952         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1953         referenced from RESX or EH_DISPATCH arguments.
1954
1955         PR debug/48928
1956         * dfp.c (decimal_to_decnumber): Handle conversion from
1957         dconst{1,2,m1,half}.
1958
1959 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1960
1961         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1962         for !flag_prefer_avx128.
1963         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1964
1965 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1966
1967         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1968         (fold_ternary_loc): Use expr_location_or.
1969
1970 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1971
1972         PR debug/48853
1973         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1974         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1975         Pmode and mem_mode is not VOIDmode.
1976
1977 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
1978
1979         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1980         TYPE_QUAL_RESTRICT): Convert to enum.
1981
1982 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1983
1984         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1985         (const_pow2_1_to_8_operand): Ditto.
1986         (const_pow2_1_to_128_operand): Ditto.
1987         (const_pow2_1_to_32768_operand): Ditto.
1988         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1989         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
1990         in insn constraint to check integer value of operand 3.
1991         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1992
1993         (PINSR_MODE): New mode iterator.
1994         (sse2p4_1): New mode attribute.
1995         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1996         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1997         iterator.  Use const_int_operand instead of
1998         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
1999         exact_log2 in insn constraint to check integer value of operand 3.
2000
2001 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2002
2003         * config/i386/sse.md (blendbits): Remove mode attribute.
2004         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2005         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2006         Check integer value of operand 3 in insn constraint.
2007
2008 2011-05-09  Richard Guenther  <rguenther@suse.de>
2009
2010         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2011         for diagnostics.
2012         (lto_symtab_merge): Likewise.  Do not register types here.
2013         (lto_symtab_merge_decls_2): Likewise.
2014         (lto_symtab_merge_decls_1): Likewise.
2015         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2016         * gimple.c (enum gtc_mode): Declare.
2017         (gimple_types_compatible_p): Make static.
2018
2019 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2020
2021         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2022         temporary register to match Pmode.
2023
2024 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2025
2026         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2027         and *vec_concatv4si_1_avx.
2028
2029 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2030
2031         PR rtl-optimization/48927
2032         * ira-conflicts.c (commutative_constraint_p): Use
2033         recog_data.alternative_enabled_p to disable alternatives where
2034         "enabled" attribute is false.
2035         (get_dup_num): Ditto.
2036         * ira-lives.c (single_reg_class): Ditto.
2037         (ira_implicitly_set_insn_hard_regs): Ditto.
2038
2039 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
2040
2041         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2042         (dataflow_set_preserve_mem_locs): Likewise.
2043
2044 2011-05-09  Philipp Thomas  <pth@suse.de>
2045
2046         * config/mep/mep.c (mep_validate_vliw): Syntax description
2047         should not be translated.
2048
2049 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
2050
2051         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2052         * config/mips/mips-tables.opt: New file (generated).
2053         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2054         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2055         MIPS_ARCH_OPTION_NATIVE): Define.
2056         * config/mips/mips.c (mips_cpu_info_table): Move contents to
2057         mips-cpus.def.
2058         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2059         mips_parse_cpu): Remove.
2060         (mips_cpu_info_from_opt, mips_default_arch): New.
2061         (mips_handle_option): Don't assert that global structures are in
2062         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2063         (mips_option_override): Use new variables and functions to set
2064         state of these options.  Use strcmp to check for individual CPU names.
2065         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2066         definition.
2067         * config/mips/mips.opt (march=): Use ToLower and Enum.
2068         (mips): Use ToLower, Enum and Var.
2069         (mtune=): Use ToLower and Enum.
2070         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2071
2072 2011-05-08  Jan Hubicka  <jh@suse.cz>
2073
2074         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2075         Arrange type pairs to be UID ordered.
2076         (gimple_lookup_type_leader): Make inline.
2077
2078 2011-05-09  Nick Clifton  <nickc@redhat.com>
2079
2080         PR target/48899
2081         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2082         PROCESSOR_DEFAULT.
2083
2084         PR target/48897
2085         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2086         variable 's'.
2087
2088 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
2089
2090         * combine.c (simplify_comparison): Abstract out parts into...
2091         (simplify_compare_const): ... new function.
2092         (try_combine): Generalize parallel arithmetic/compare combining
2093         to call simplify_compare_const() and CANONICALIZE_COMPARE().
2094
2095 2011-05-08  Jan Hubicka  <jh@suse.cz>
2096
2097         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2098         (cgraph_create_virtual_clone): Call hooks once virtual clone
2099         is finished.
2100         * cgraph.h (cgraph_clone_node): Update prototype.
2101         * ipa-cp.c (ipcp_estimate_growth): Use
2102         estimate_ipcp_clone_size_and_time.
2103         * ipa-inline-transform.c (clone_inlined_nodes): Update.
2104         * lto-cgraph.c (input_node): Update.
2105         * ipa-inline.c (recursive_inlining): Update.
2106         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2107         (evaluate_conditions_for_known_args): Break out from ...
2108         (evaluate_conditions_for_edge): ... here.
2109         (evaluate_conditions_for_ipcp_clone): New function.
2110         (inline_node_duplication_hook): Update clone summary based
2111         on parameter map.
2112         (estimate_callee_size_and_time): Rename to ...
2113         (estimate_node_size_and_time): take NODE instead of EDGE;
2114         take POSSIBLE_TRUTHS as argument.
2115         (estimate_callee_size_and_time): Update.
2116         (estimate_ipcp_clone_size_and_time): New function.
2117         (do_estimate_edge_time): Update.
2118
2119 2011-05-08  Richard Guenther  <rguenther@suse.de>
2120
2121         PR middle-end/48908
2122         PR middle-end/48905
2123         * expmed.c (expand_shift_1): Compute adjusted constant shift
2124         amount manually.
2125
2126 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
2127
2128         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2129
2130 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
2131
2132         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2133
2134 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
2135
2136         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2137
2138 2011-05-07  Jan Hubicka  <jh@suse.cz>
2139
2140         * ipa-inline-transform.c (inline_call): Account when program size
2141         decreases.
2142         * ipa-inline.c (relative_time_benefit): New function.
2143         (edge_badness): Reorganize to be power 2 based; fix thinko when
2144         computing badness for negative growth; update comments to match
2145         reality; better dumps.
2146
2147 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
2148
2149         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2150         type to bool and adjust comment.
2151         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2152         (fold_mathfn_compare): Remove calls to global_bindings_p.
2153         (fold_inf_compare): Likewise.
2154         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2155         * c-tree.h (global_bindings_p): Adjust prototype.
2156         * c-decl.c (global_bindings_p): Return bool and simplify.
2157
2158 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
2159
2160         PR tree-optimization/48837
2161         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2162         when accumulator transformation is performed.
2163
2164 2011-05-06  Jan Hubicka  <jh@suse.cz>
2165
2166         * i386.h (ix86_tune_indices): Add
2167         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2168         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2169         * i386.c (initial_ix86_tune_features): Add
2170         X86_SOFTARE_PREFETCHING_BENEFICIAL.
2171         (software_prefetching_beneficial_p): Remove predicate.
2172         (ix86_option_override_internal): Use new macro.
2173
2174 2011-05-06  Jan Hubicka  <jh@suse.cz>
2175
2176         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2177
2178 2011-05-06  Jan Hubicka  <jh@suse.cz>
2179
2180         * cgraph.c (cgraph_add_thunk): Create real function node instead
2181         of alias node; finalize it and mark needed/reachale; arrange visibility
2182         to be right and add it into the corresponding same comdat group list.
2183         (dump_cgraph_node): Dump thunks.
2184         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2185         cgraph_function_with_gimple_body_p,
2186         cgraph_first_function_with_gimple_body,
2187         cgraph_next_function_with_gimple_body): New functions.
2188         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2189         New macros.
2190         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2191         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2192         * cgraphunit.c (cgraph_finalize_function): Only look into possible
2193         devirtualization when optimizing.
2194         (verify_cgraph_node): Verify thunks.
2195         (cgraph_analyze_function): Analyze thunks.
2196         (cgraph_mark_functions_to_output): Output thunks only in combination
2197         with function they are assigned to.
2198         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2199         alias into normal node.
2200         (assemble_thunks): New functoin.
2201         (cgraph_expand_function): Use it.
2202         * lto-cgraph.c (lto_output_node): Stream thunks.
2203         (input_overwrite_node): Stream in thunks.
2204         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2205         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2206         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2207         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2208         (inline_analyze_function): Do not care about thunk jump functions.
2209         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2210         * ipa-prop.c (ipa_prop_write_jump_functions): Use
2211         cgraph_function_with_gimple_body_p.
2212         * passes.c (do_per_function_toporder): Use
2213         cgraph_function_with_gimple_body_p.
2214         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2215         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2216         (function_called_by_processed_nodes_p): Likewise.
2217
2218 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2219
2220         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2221         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2222         entries.
2223         (mabi=): Replace with separate entries for mabi=altivec,
2224         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2225         mabi=ieeelongdouble and mabi=ibmlongdouble.
2226         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2227         check for -mabi=spe without SPE ABI support here.
2228         (rs6000_handle_option): Replace OPT_mabi_ handling with
2229         OPT_mabi_altivec and OPT_mabi_spe handling.
2230
2231 2011-05-06  Cary Coutant  <ccoutant@google.com>
2232
2233         * dwarf2out.c (contains_subprogram_definition): New function.
2234         (should_move_die_to_comdat): Call it.
2235
2236 2011-05-06  Jeff Law  <law@redhat.com>
2237
2238         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2239         remove_ctrl_stmt_and_useless_edges.
2240         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2241         (fixup_template_block, thread_single_edge): Likewise.
2242         (mark_threaded_blocks): Use THREAD_TARGET.
2243
2244 2011-05-06  Alan Modra  <amodra@gmail.com>
2245
2246         PR target/48900
2247         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2248         const0_rtx as the arg to the dummy __tls_get_addr libcall.
2249
2250 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2251
2252         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2253         constraint modifier to "r".
2254
2255 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2256
2257         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2258         fall through for OPT_mcmodel_.
2259
2260 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2261
2262         * config/s390/s390.c (s390_asm_trampoline_template): Comment
2263         instruction sizes.
2264         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2265
2266 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2267
2268         PR target/47930
2269         * config/arm/arm.opt (marm): Document it.
2270         (mthumb): Reject negative variant.
2271
2272 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2273
2274         PR target/48898
2275         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2276         Fix typo in "ccvt" variable name.
2277
2278 2011-05-06  Tristan Gingold  <gingold@adacore.com>
2279
2280         PR target/48895
2281         * config/vms/vms-ar.c (main): Remove cwd variable.
2282
2283 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
2284
2285         PR debug/48902
2286         * var-tracking.c (prepare_call_arguments): Move else before #endif.
2287
2288 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
2289
2290         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2291         * gimplify.c (gimplify_switch_expr): Likewise.
2292         * omp-low.c (expand_omp_sections): Likewise.
2293         * tree-eh.c (lower_try_finally_switch): Likewise.
2294         (lower_eh_dispatch): Likewise.
2295         * tree.h (build_case_label): Declare.
2296         * tree.c (build_case_label): Define.
2297
2298 2011-05-05  Jason Merrill  <jason@redhat.com>
2299
2300         PR c++/40975
2301         * tree-inline.c (copy_tree_r): Use copy_statement_list.
2302         (copy_statement_list): Don't recurse.
2303         * stor-layout.c (copy_self_referential_tree_r): Don't allow
2304         STATEMENT_LIST.
2305
2306 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2307
2308         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2309         through from -mfpu= handling.
2310         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2311
2312 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
2313
2314         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2315         POST_MODIFY.
2316
2317 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
2318
2319         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2320         for 11.31.
2321         (hppa[12]*-*-hpux11*): Ditto.
2322         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2323         * config/ia64/hpux-unix2003.h: New.
2324         * config/pa/pa-hpux1131.opt: New.
2325         * config/pa/pa-hpux1131.h: New.
2326         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2327         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2328         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2329
2330 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2331
2332         PR debug/48853
2333         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2334         instead of mode as 3rd argument to recursive call.
2335         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2336         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2337         VOIDmode.
2338         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2339         don't give up if mode is Pmode and mem_mode is not VOIDmode.
2340         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2341         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2342
2343 2011-05-05  Julian Brown  <julian@codesourcery.com>
2344
2345         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2346         parenthesis in D-register case.
2347
2348 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2349
2350         * opt-functions.awk (var_type_struct): Handle Enum options.
2351         * optc-gen.awk: Don't check range of variables of character type.
2352         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2353         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2354         rs6000_sdata_name, rs6000_explicit_options): Remove.
2355         (rs6000_option_override_internal): Check for -malign-power here.
2356         Use global_options_set instead of rs6000_explicit_options.
2357         (rs6000_parse_fpu_option): Remove.
2358         (rs6000_handle_option): Access variables via opts and opts_set
2359         pointers.  Use error_at and warning_at.  Add fall-through
2360         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2361         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2362         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2363         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2364         here.  Don't use rs6000_parse_fpu_option.
2365         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2366         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2367         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2368         (mrecip=): Use Var.
2369         (mspe): Use Var and Save.
2370         (mtraceback=): Use Enum and Var.
2371         (rs6000_traceback_type): New Enum and EnumValue entries.
2372         (mfloat-gprs=): Use Enum, Var and Save.
2373         (rs6000_float_gprs): New Enum and EnumValue entries.
2374         (mlong-double-): use Var and Save.
2375         (msched-costly-dep=, minsert-sched-nops=): Use Var.
2376         (malign-): Use Enum and Var.
2377         (rs6000_alignment_flags): New Enum and EnumValue entries.
2378         (mfpu=): Use Enum.
2379         (fpu_type_t): New Enum and EnumValue entries.
2380         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2381         global_options_set instead of rs6000_explicit_options.
2382         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2383         global_options_set instead of rs6000_explicit_options.
2384         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2385         global_options_set instead of rs6000_explicit_options.
2386         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2387         global_options_set instead of rs6000_explicit_options.
2388         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2389         global_options_set instead of rs6000_explicit_options.
2390         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2391         global_options_set instead of rs6000_explicit_options.
2392         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2393         definition.
2394         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2395         global_options_set instead of rs6000_explicit_options.
2396         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2397         (rs6000_cmodel): New Enum and EnumValue entries.
2398         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2399         global_options_set instead of rs6000_explicit_options.
2400         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2401         (mtls-size=): Use Enum and Var.
2402         (rs6000_tls_size): New Enum and EnumValue entries.
2403
2404 2011-05-05  Michael Matz  <matz@suse.de>
2405
2406         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2407         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2408         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2409         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2410         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2411         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2412         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2413         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2414         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2415         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2416         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2417         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2418         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2419         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2420         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2421         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2422
2423 2011-05-05  Richard Guenther  <rguenther@suse.de>
2424
2425         * expmed.c (expand_variable_shift): Rename to ...
2426         (expand_shift_1): ... this.  Take an expanded shift amount.
2427         For rotates recurse directly not building trees for the shift amount.
2428         (expand_variable_shift): Wrap around expand_shift_1.
2429         (expand_shift): Adjust.
2430
2431 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2432
2433         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2434
2435 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
2436
2437         * tree.h (get_pending_sizes): Remove prototype.
2438         (put_pending_size): Likewise.
2439         (put_pending_sizes): Likewise.
2440         * stor-layout.c (pending_sizes): Delete.
2441         (get_pending_sizes): Likewise.
2442         (put_pending_size): Likewise.
2443         (put_pending_sizes): Likewise.
2444         (variable_size): Do not call put_pending_size and tidy up.
2445         * function.h (struct function): Remove dont_save_pending_sizes_p.
2446         * lto-streamer-in.c (input_function): Do not stream it.
2447         * lto-streamer-out.c (output_function): Likewise.
2448         * tree-inline.c (initialize_cfun): Do not copy it.
2449         * c-decl.c (store_parm_decls): Do not set it.
2450         * omp-low.c (create_task_copyfn): Likewise.
2451         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2452
2453 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
2454
2455         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2456         conditions.
2457         (*movdf_internal): Ditto.
2458         (*movdf_internal_nointeger): Ditto.
2459         (*movsf_internal): Ditto.
2460
2461 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2462
2463         * c-decl.c (finish_decl): Don't call get_pending_sizes.
2464         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
2465         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
2466         (c_variable_size): Remove.
2467         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
2468         call put_pending_sizes.
2469         (get_parm_info): Add parameter expr.  Use it to set
2470         arg_info->pending_sizes.
2471         (store_parm_decls): Use arg_info->pending_sizes instead or calling
2472         get_pending_sizes.
2473         * c-parser.c (c_parser_parms_declarator): Update call to
2474         c_parser_parms_list_declarator.
2475         (c_parser_parms_list_declarator): Take parameter expr.  Update
2476         call to push_parm_decl.  Update recursive call.  Don't call
2477         get_pending_sizes.  Update calls to get_parm_info.
2478         (c_parser_objc_method_definition): Update calls to
2479         c_parser_objc_method_decl and objc_start_method_definition.
2480         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2481         (c_parser_objc_method_decl): Add parameter expr.  Update call to
2482         grokparm.
2483         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2484         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2485         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2486
2487 2011-05-05  Michael Hope  <michael.hope@linaro.org>
2488
2489         PR pch/45979
2490         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2491         __ARM_EABI__ hosts.
2492
2493 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2494
2495         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2496         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2497         (spu_output_mi_thunk): New function.
2498
2499 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2500
2501         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2502         targetm.asm_out.print_operand.
2503         * config/sol2.c: Include target.h.
2504
2505 2011-05-04  Jan Hubicka  <jh@suse.cz>
2506
2507         * ipa-inline.c (reset_edge_caches): New function.
2508         (update_caller_keys): Add check_inlinablity_for; do not
2509         reset edge caches; remove now unnecesary loop.
2510         (update_callee_keys): Add comments; reset node_growth_cache of callee.
2511         (update_all_callee_keys): Likewise.
2512         (inline_small_functions): Sanity check cache; update code
2513         recomputing it.
2514
2515 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
2516
2517         PR rtl-optimization/47612
2518         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2519         as the last insn of the sequence to be moved.
2520
2521 2011-05-04  Tobias Burnus  <burnus@net-b.de>
2522
2523         PR fortran/48864
2524         * doc/invoke.texi (Ofast): Document that it
2525         enables Fortran's -fno-protect-parens.
2526
2527 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2528
2529         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2530
2531 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2532
2533         * stor-layout.c (variable_size): Do not issue errors.
2534
2535 2011-05-04  Richard Guenther  <rguenther@suse.de>
2536
2537         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2538         for array-ref indices.
2539         (tree_coverage_counter_addr): Likewise.
2540         (build_fn_info_type): Use size_int for index types.
2541         (build_gcov_info): Likewise.
2542
2543 2011-05-04  Richard Guenther  <rguenther@suse.de>
2544
2545         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2546         to build_int_cst.
2547         * c-typeck.c (really_start_incremental_init): Use bitsize_int
2548         for constructor indices.
2549         (push_init_level): Likewise.
2550
2551 2011-05-04  Richard Guenther  <rguenther@suse.de>
2552
2553         * explow.c (promote_mode): Move variable declarations before code.
2554
2555 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
2556
2557         * tree.h (build_function_type_array): Declare.
2558         (build_varargs_function_type_array): Declare.
2559         (build_function_type_vec, build_varargs_function_type_vec): Define.
2560         * tree.c (build_function_type_array_1): New function.
2561         (build_function_type_array): New function.
2562         (build_varargs_function_type_array): New function.
2563
2564 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
2565
2566         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2567         before setting STMT_VINFO_TYPE.
2568
2569 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2570
2571         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2572         instead of spu_pass_by_reference.
2573
2574 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2575
2576         * calls.c (emit_library_call_value_1): Invoke
2577         promote_function_mode hook on libcall arguments.
2578         * explow.c (promote_function_mode, promote_mode): Handle TYPE
2579         argument being NULL.
2580         * targhooks.c (default_promote_function_mode): Lisewise.
2581         * config/s390/s390.c (s390_promote_function_mode): Likewise.
2582         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2583
2584         * doc/tm.texi: Document that TYPE argument might be NULL.
2585
2586 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2587
2588         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2589
2590 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2591
2592         From Bernd Schmidt
2593         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2594
2595 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2596
2597         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2598         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2599         Move ...
2600         * mips-tfile.c: ... here.
2601         Don't include coretypes.h, tm.h, filenames.h.
2602         (saber_stop): Remove definition and all calls.
2603         [__SABER__]: Remove.
2604         (__LINE__): Remove default.
2605         (Size_t, Ptrdiff_t): Remove definitions.
2606         Replace by size_t, ptrdiff_t.
2607         [!MIPS_DEBUGGING_INFO]: Remove.
2608         (SHASH_SIZE, THASH_SIZE): Remove defaults.
2609         (progname): Add const.
2610         (STATIC): Remove.
2611         Replace all uses by static.
2612         (ALIGN_SYMTABLE_OFFSET): Remove default.
2613         * mips-tdump.c: Don't include coretypes.h, tm.h.
2614         Remove !MIPS_IS_STAB guard.
2615         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2616         $(TM_H), filenames.h dependencies.
2617         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2618
2619 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2620
2621         From Jie Zhang
2622         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2623         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2624
2625 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2626
2627         From Bernd Schmidt
2628         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2629         account and save/restore RETS.
2630         (PROFILE_BEFORE_PROLOGUE): Define.
2631         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
2632         the push insn to use predecrement.
2633
2634 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2635
2636         From Jie Zhang
2637         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2638
2639 2011-05-04  Nick Clifton  <nickc@redhat.com>
2640
2641         * config/mn10300/mn10300.c: Include cfgloop.h.
2642         (DUMP): New macro.
2643         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
2644         Lcc or a FLcc insn into the instruction stream.
2645         (mn10300_block_contains_call): New function.  Returns true if the
2646         given basic block contains a CALL insn.
2647         (mn10300_loop_contains_call_insn): New function.  Returns true if
2648         the given loop contains a CALL insn.
2649         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
2650         to use the SETLB and Lcc or FLcc insns.
2651         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2652         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2653         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
2654         disable the SETLB optimization.
2655         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2656         __SETLB__ or __NO_SETLB__.
2657         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2658         (movsf_internal): Handle MDR register.
2659         (cmpsi): Make visible.
2660         (setlb): New pattern.
2661         (Lcc): New pattern.
2662         (FLcc): New pattern.
2663
2664 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2665
2666         PR target/48860
2667         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2668         for reg<->xmm moves.
2669         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2670         (vec_concatv2di_rex64_sse): Ditto.
2671         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2672         (*vec_extractv2di_1_rex64): Ditto.
2673
2674         Revert:
2675         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2676
2677         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2678         reg<->xmm moves.
2679         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2680
2681 2011-05-04  Richard Guenther  <rguenther@suse.de>
2682
2683         * tree.h (int_const_binop): Remove notrunc argument.
2684         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
2685         create integer constants that are properly truncated.
2686         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2687         (const_binop): Remove zero notrunc argument to int_const_binop.
2688         (size_binop_loc): Likewise.
2689         (fold_div_compare): Likewise.
2690         (maybe_canonicalize_comparison_1): Likewise.
2691         (fold_comparison): Likewise.
2692         (fold_binary_loc): Likewise.
2693         (multiple_of_p): Likewise.
2694         * expr.c (store_constructor): Likewise.
2695         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2696         (maybe_fold_stmt_addition): Likewise.
2697         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2698         * stor-layout.c (layout_type): Likewise.
2699         * tree-data-ref.c (tree_fold_divides_p): Likewise.
2700         * tree-sra.c (build_ref_for_offset): Likewise.
2701         (build_user_friendly_ref_for_offset): Likewise.
2702         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2703         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2704         * tree-ssa-loop-niter.c (inverse): Likewise.
2705         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2706         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2707         * tree-switch-conversion.c (check_range): Likewise.
2708         (build_constructors): Likewise.
2709         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2710         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2711         (extract_range_from_assert): Likewise.
2712         (vrp_int_const_binop): Likewise.
2713         (extract_range_from_binary_expr): Likewise.
2714         (extract_range_from_unary_expr): Likewise.
2715         (check_array_ref): Likewise.
2716         (find_case_label_range): Likewise.
2717         (simplify_div_or_mod_using_ranges): Likewise.
2718         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2719         comparing case labels for merging.
2720
2721 2011-05-03  Mark Wielaard  <mjw@redhat.com>
2722
2723         * dwarf2out.c (debug_str_hash_forced): Removed.
2724         (gen_label_for_indirect_string): Removed.
2725         (get_debug_string_label): Removed.
2726         (AT_string_form): Generate label directly.
2727         (output_indirect_string): Test indirect_string_node for
2728         DW_FORM_strp instead of checking label and refcount.
2729         (prune_indirect_string): Removed.
2730         (prune_unused_types): Don't check debug_str_hash_forced or
2731         call prune_indirect_string.
2732
2733 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2734
2735         PR other/48093
2736         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2737
2738 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2739
2740         PR debug/47994
2741         PR debug/47919
2742         * combine.c (try_combine): Skip debug insns at m_split tests.
2743
2744 2011-04-26  Mark Wielaard  <mjw@redhat.com>
2745
2746         PR42288
2747         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2748         when info_section_emitted.
2749
2750 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
2751
2752         * config/mips/mips-opts.h: New.
2753         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2754         to mips-opts.h.
2755         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2756         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2757         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
2758         via opts pointer.
2759         * config/mips/mips.h (enum mips_code_readable_setting): Move to
2760         mips-opts.h.
2761         (mips_abi, mips_code_readable): Don't declare.
2762         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2763         (mabi=): Use Enum and Var.
2764         (mips_abi): New Enum and EnumValue entries.
2765         (mcode-readable=): Use Enum and Var.
2766         (mips_code_readable_setting): New Enum and EnumValue entries.
2767         (mr10k-cache-barrier=): Use Enum and Var.
2768         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2769
2770 2011-05-03  Jan Hubicka  <jh@suse.cz>
2771
2772         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2773         replace hash by pointer map.
2774         (cgraph_node_set_element_def, cgraph_node_set_element,
2775         const_cgraph_node_set_element, varpool_node_set_element_def,
2776         varpool_node_set_element, const_varpool_node_set_element): Remove.
2777         (free_cgraph_node_set, free_varpool_node_set): New function.
2778         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2779         * tree-emutls.c: Free varpool node set.
2780         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2781         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2782         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2783         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2784         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2785         Move here from ipa.c; implement using pointer_map
2786         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2787         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2788         debug_cgraph_node_set, varpool_node_set_new,
2789         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2790         dump_varpool_node_set, debug_varpool_node_set):
2791         Move to ipa-uitls.c.
2792         * passes.c (ipa_write_summaries): Update.
2793
2794 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2795
2796         From Mike Frysinger:
2797         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2798         bf542/bf544/bf547/bf548/bf549.
2799
2800 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2801
2802         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2803
2804 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2805
2806         From Bernd Schmidt:
2807         * config/bfin/bfin.md (MOVCC): New mode_macro.
2808         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2809         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
2810         comments from generated assembly.
2811
2812 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2813
2814         From Bernd Schmidt
2815         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2816         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2817         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2818         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2819         * config/bfin/lib1funcs.asm (___muldi3): New function.
2820
2821 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2822
2823         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2824         build_function_type_list instead of build_function_type.
2825         Rearrange initialization of `args' to do so.
2826
2827 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2828
2829         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2830         instead of build_function_type.
2831
2832 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2833
2834         * config/rs6000/rs6000.c (spe_init_builtins): Call
2835         build_function_type_list instead of build_function_type.
2836         (paired_init_builtins, altivec_init_builtins): Likewise.
2837         (builtin_function_type): Likewise.
2838
2839 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2840
2841         * config/sh/sh.c (sh_media_init_builtins): Call
2842         build_function_type_list instead of build_function_type.
2843
2844 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2845
2846         * config/sparc/sparc.c (sparc_file_end): Call
2847         build_function_type_list instead of build_function_type.
2848
2849 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2850
2851         * config/alpha/alpha.c (alpha_init_builtins): Call
2852         build_function_type_list instead of build_function_type.
2853
2854 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2855
2856         * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2857         build_function_type_list instead of build_function_type.
2858
2859 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2860
2861         * config/iq2000/i2000.c (iq2000_init_builtins): Call
2862         build_function_type_list instead of build_function_type.
2863         Delete `endlink' variable.
2864
2865 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2866
2867         * config/avr/avr.c (avr_init_builtins): Call
2868         build_function_type_list instead of build_function_type.
2869
2870 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2871
2872         * config/picochip/picochip.c (picochip_init_builtins): Call
2873         build_function_type_list instead of build_function_type.
2874         Delete `endlink' variable.
2875
2876 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2877
2878         * config/bfin/bfin.c (bfin_init_builtins): Call
2879         build_function_type_list instead of build_function_type.
2880
2881 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2882
2883         From Bernd Schmidt
2884         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2885         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
2886
2887 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2888
2889         From Jie Zhang:
2890         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2891         libbffastfp overrides libgcc when -mfast-fp.
2892
2893 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2894
2895         Originally from Bernd Schmidt
2896         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2897         * config/bfin/bfin.c (override_options): Test it and error if
2898         TARGET_FDPIC.
2899
2900 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2901
2902         Originally From Bernd Schmidt
2903         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2904         FD-PIC.
2905
2906 2011-05-03  Jeff Law  <law@redhat.com>
2907
2908         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2909         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2910         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2911         than accessing AUX field directly.  Free the AUX field before
2912         clearing it.
2913         (thread_block, thread_through_loop_header): Likewise.
2914         (thread_single_edge, mark_threaded_blocks): Likewise.
2915         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
2916         (register_jump_thread): Do not attempt to thread to a NULL edge.
2917
2918 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2919
2920         * function.c (init_function_start): Call decide_function_section.
2921         * varasm.c (decide_function_section): New function.
2922         (assemble_start_function): When not using
2923         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2924         or first_function_block_is_cold.
2925         * rtl.h (decide_function_section): Declare.
2926
2927 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2928             Jakub Jelinek  <jakub@redhat.com>
2929
2930         PR target/48774
2931         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2932         only succeed if req_mode is the same as set_mode.
2933
2934 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2935
2936         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2937         * genemit.c (gen_exp): Handle RETURN.
2938         * emit-rtl.c (verify_rtx_sharing): Likewise.
2939         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2940         * rtl.c (copy_rtx): RETURN is shared.
2941         * rtl.h (enum global_rtl_index): Add GR_RETURN.
2942         (ret_rtx): New.
2943         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2944         * config/s390/s390.c (s390_emit_epilogue): Likewise.
2945         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2946         * config/cris/cris.c (cris_expand_return): Likewise.
2947         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2948         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2949         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2950         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2951         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2952         Likewise.
2953         * config/v850/v850.c (expand_epilogue): Likewise.
2954         * config/bfin/bfin.c (bfin_expand_call): Likewise.
2955         * config/arm/arm.md (epilogue): Likewise.
2956         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2957         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2958         variable to ret_reg.
2959
2960 2011-05-03  Richard Guenther  <rguenther@suse.de>
2961
2962         PR lto/48846
2963         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2964         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2965         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2966
2967 2011-05-03  Richard Guenther  <rguenther@suse.de>
2968
2969         * c-decl.c (grokdeclarator): Instead of looking at
2970         TREE_OVERFLOW check if the constant fits in the index type.
2971
2972 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2973
2974         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2975         (vec_store_lanes<mode><mode>): Likewise.
2976
2977 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2978
2979         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2980         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2981         convert_optab_index values.
2982         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2983         * genopinit.c (optabs): Initialize the new optabs.
2984         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2985         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2986         (expand_STORE_LANES): New functions.
2987         * tree.h (build_array_type_nelts): Declare.
2988         * tree.c (build_array_type_nelts): New function.
2989         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2990         (vect_model_load_cost): Likewise.
2991         (vect_store_lanes_supported, vect_load_lanes_supported)
2992         (vect_record_strided_load_vectors): Declare.
2993         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2994         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2995         (vect_transform_strided_load): Split out statement recording into...
2996         (vect_record_strided_load_vectors): ...this new function.
2997         * tree-vect-stmts.c (create_vector_array, read_vector_array)
2998         (write_vector_array, create_array_ref): New functions.
2999         (vect_model_store_cost): Add store_lanes_p argument.
3000         (vect_model_load_cost): Add load_lanes_p argument.
3001         (vectorizable_store): Try to use store-lanes functions for
3002         interleaved stores.
3003         (vectorizable_load): Likewise load-lanes and loads.
3004         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3005         to vect_model_store_cost.
3006         (vect_build_slp_tree): Likewise vect_model_load_cost.
3007
3008 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3009
3010         * hooks.h (hook_bool_mode_uhwi_false): Declare.
3011         * hooks.c (hook_bool_mode_uhwi_false): New function.
3012         * target.def (array_mode_supported_p): New hook.
3013         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3014         * doc/tm.texi: Regenerate.
3015         * stor-layout.c (mode_for_array): New function.
3016         (layout_type): Use it.
3017         * config/arm/arm.c (arm_array_mode_supported_p): New function.
3018         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3019
3020 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
3021
3022         PR target/48723
3023         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3024         for -fstack-check if the size to allocate is negative.
3025
3026 2011-05-02  Lawrence Crowl  <crowl@google.com>
3027
3028         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3029         (timevar_cond_start): New for starting a timer only when it is not
3030         already running.
3031         (timevar_cond_stop): New for stopping a timer when it was not already
3032         running.
3033
3034         * timevar.c (timevar_stop): Enable start/stop timers to start again.
3035         (timevar_cond_start): New as above.
3036         (timevar_cond_stop): New as above.
3037
3038         * timevar.def: Add start/stop timers for compiler phases,
3039         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3040         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3041         and TV_PHASE_FINALIZE.
3042         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3043         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3044         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3045         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3046         Make unused TV_OVERLOAD into a start/stop timer.
3047
3048         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3049         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3050         to indicate that they are start/stop timers.
3051
3052         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3053         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3054         Move initialization to do_compile.
3055         (do_compile): Add initialization from above.
3056         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3057
3058         * c-decl.c (c_write_global_declarations): Add start/stop of
3059         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3060
3061         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3062         or TV_PARSE_INLINE, as appropriate.
3063         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3064         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3065
3066 2011-05-02  Jason Merrill  <jason@redhat.com>
3067
3068         PR c++/40975
3069         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3070
3071 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
3072
3073         PR c/35445
3074         * c-decl.c (finish_decl): Only create a composite if the types are
3075         compatible.
3076
3077 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
3078
3079         * config/fr30/fr30-protos.h (Mmode): Don't define.
3080         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
3081         definition where used.
3082         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3083         define.  Expand definitions where used.
3084         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3085         Expand definitions where used.
3086         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3087         rx_function_arg, rx_function_arg_advance,
3088         rx_function_arg_boundary): Expand definitions of those macros.
3089         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
3090         definition where used.
3091
3092 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3093
3094         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3095         reg<->xmm moves.
3096         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3097         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
3098         with *movv2sf_internal_rex64_avx.
3099         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3100         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3101         Use %v prefix in insn mnemonic to handle TARGET_AVX.
3102         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
3103         "vex" in "prefix" attribute calculation.
3104         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
3105
3106 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
3107
3108         PR target/47951
3109         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3110         inputs match the output.
3111
3112 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
3113
3114         PR target/47955
3115         * config/m68k/m68k.c (m68k_expand_prologue): Set
3116         current_function_static_stack_size.
3117
3118 2011-05-02   Jan Hubicka  <jh@suse.cz>
3119
3120         * lto-streamer.c (lto_streamer_cache_insert_1,
3121         lto_streamer_cache_lookup, lto_streamer_cache_create,
3122         lto_streamer_cache_delete): Use pointer map instead of hashtable.
3123         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3124
3125 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
3126
3127         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3128         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3129         config/m68k/t-opts: New files.
3130         * config/m68k/m68k-tables.opt: New file (generated).
3131         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3132         extra_options and m68k/t-opts to tmake_file.
3133         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3134         (all_isas): Initialize using m68k-isas.def.
3135         (all_microarchs): Initialize using m68k-microarchs.def.
3136         (m68k_find_selection): Remove.
3137         (m68k_handle_option): Don't assert that global structures are in
3138         use.  Use error_at.  Access variables via opts pointer.  Don't
3139         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
3140         directly for -m68020-40 and -m68020-60.
3141         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3142         m68k_tune_entry here.
3143         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3144         to m68k-opts.h.
3145         (m68k_library_id_string): Remove declaration.
3146         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3147         (m68k_library_id_string): New Variable.
3148         (march=, mcpu=, mtune=): Use Enum and Var.
3149
3150 2011-05-02  Richard Guenther  <rguenther@suse.de>
3151
3152         * varasm.c (output_constructor_regular_field): Compute zero-based
3153         index with double-ints.  Make sure to ICE instead of producing
3154         wrong code.
3155         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3156         in asserts.  Properly use a signed type.
3157
3158 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3159
3160         * config/i386/sse.md (V): New mode iterator.
3161         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
3162         TARGET_SSE2.
3163         (V_256): Rename from AVX256MODE.
3164         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
3165         condition to all users.
3166         (VF1): Ditto.
3167         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
3168         condition to all users.
3169         (VF_128): Make V4SF mode unconditional.
3170         (VF_256): Rename from AVX256MODEF2P.
3171         (VI4F_128): Rename from SSEMODE4S.
3172         (VI8F_128): Rename from SSEMODE2D.
3173         (VI4F_256): Rename from AVX256MODE8P.
3174         (VI8F_256): Rename from AVX256MODE4P.
3175         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3176         (ssescalarmodesuffix): Remove SF and DF modes.
3177         (SSEMODE124): Remove.
3178         (SSEMODE1248): Ditto.
3179         (SSEMODEF2P): Ditto.
3180         (AVXMODEF2P): Ditto.
3181         (AVXMODEFDP): Ditto.
3182         (AVXMODEFSP): Ditto.
3183         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3184         unconditional.
3185         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
3186         unconditional.
3187         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3188         xop_pcmov_<mode>256.  Use V mode iterator.
3189
3190         Adjust RTX patterns globally for renamed mode attributes.
3191
3192 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3193
3194         * haifa-sched.c (sched_emit_insn): Emit insn before first
3195         non-scheduled insn.  Inform back-end about new insn.  Add
3196         new insn to scheduled_insns list.
3197
3198 2011-05-02  Richard Guenther  <rguenther@suse.de>
3199
3200         PR tree-optimization/48822
3201         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3202         (process_scc): Indicate which iteration we start.
3203
3204 2011-05-02  Jan Hubicka  <jh@suse.cz>
3205
3206         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3207         (lto_section_overrun): New.
3208         * lto-section-out.c (append_block): Rename to ...
3209         (lto_append_block): ... this one; export.
3210         (lto_output_1_stream): Move lto lto-streamer.h
3211         (lto_output_data_stream): Update.
3212         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3213         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3214         functions.
3215
3216 2011-05-02  Richard Guenther  <rguenther@suse.de>
3217
3218         * tree.c (tree_code_counts): New global array.
3219         (record_node_allocation_statistics): Count individual tree codes.
3220         (dump_tree_statistics): Dump individual code stats.
3221
3222 2011-05-01  Jan Hubicka  <jh@suse.cz>
3223
3224         * ipa-inline.c (caller_growth_limits): Fix thinko when
3225         looking for largest stack frame.
3226         * ipa-inline.h (dump_inline_summary): Declare.
3227         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3228         on stack usage.
3229         (dump_inline_summary): Export.
3230         (debug_inline_summary): Declare as DEBUG_FUNCTION.
3231
3232 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
3233
3234         * reginfo.c (memory_move_cost): Change rclass argument type form
3235         'enum reg_class' to reg_class_t.
3236         * reload.h (memory_move_cost): Update prototype.
3237         * postreload.c reload_cse_simplify_set): Change type dclass var to
3238         reg_class_t.
3239         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3240         Update prototype.
3241         (ira_allocate_and_set_costs): Change aclass argument type form
3242         'enum reg_class' to reg_class_t.
3243         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3244         Change aclass argument type to reg_class_t.
3245         (update_conflict_hard_reg_costs): Change type aclass and pref vars
3246         to reg_class_t.
3247         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3248         memory_move_cost call.
3249
3250         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3251         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3252         Change type tmp var to reg_class_t.
3253
3254 2011-04-30  Jan Hubicka  <jh@suse.cz>
3255
3256         * ipa-inline.c (can_inline_edge_p): Disregard limits when
3257         inlining into function with flatten attribute.
3258         (want_inline_small_function_p): Be more realistic about inlining
3259         cold calls where callee size grows.
3260
3261 2011-04-30  Jan Hubicka  <jh@suse.cz>
3262
3263         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3264         flags.
3265
3266 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
3267
3268         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3269         PRINT_OPERAND_PUNCT_VALID_P): Remove.
3270         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3271         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3272         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3273         (print_operand): Rename to...
3274         (sparc_print_operand): ...this. Make static. Adjust
3275         sparc_print_operand function call.
3276         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3277         functions.
3278
3279 2011-04-30  Jan Hubicka  <jh@suse.cz>
3280
3281         PR middle-end/48752
3282         * ipa-inline.c (early_inliner): Disable when doing late
3283         addition of function.
3284
3285 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
3286
3287         * dwarf2out.c (get_address_mode): New inline.
3288         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3289         if not dwarf_strict emit
3290         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3291         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3292         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
3293         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3294         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3295         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3296         mem_loc_descriptor callers.
3297         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3298         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3299         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3300         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3301         (base_types): New variable.
3302         (get_base_type_offset, calc_base_type_die_sizes,
3303         base_type_for_mode, mark_base_types, base_type_cmp,
3304         move_marked_base_types): New functions.
3305         (calc_die_sizes): Assert that die_offset is 0 or equal to
3306         next_die_offset.
3307         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3308         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
3309         callers.  If not dwarf_strict, call mem_loc_descriptor even for
3310         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3311         (gen_subprogram_die): Don't give up on call site parameters
3312         with non-integral or large integral modes.  Adjust
3313         mem_loc_descriptor callers.
3314         (prune_unused_types): Call prune_unused_types_mark on base_types
3315         vector entries.
3316         (resolve_addr): Call mark_base_types.
3317         (dwarf2out_finish): Call move_marked_base_types.
3318
3319         PR tree-optimization/48809
3320         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3321         type.
3322         (gen_inbound_check): Don't compute index_expr - range_min in utype
3323         again, instead reuse SSA_NAME initialized in build_arrays.
3324         Remove two useless gsi_for_stmt calls.
3325
3326 2011-04-29  Jeff Law  <law@redhat.com>
3327
3328         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3329
3330 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3331
3332         * cgraph.h (cgraph_postorder): Remove declaration.
3333         * ipa-utils.h (ipa_free_postorder_info): Declare.
3334         (ipa_reverse_postorder): Likewise.
3335         * cgraphunit.c: Include ipa-utils.h.
3336         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3337         * ipa-inline.c: Include ipa-utils.h.
3338         (ipa_inline): Update call to ipa_reverse_postorder.
3339         * ipa-pure-const.c (propagate_pure_const): Update call to
3340         ipa_reduced_postorder and ipa_print_order.  Call
3341         ipa_free_postorder_info to clean up.
3342         (propagate_nothrow): Likewise.
3343         * ipa-reference.c (propagate): Removed a useless call to
3344         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3345         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
3346         * ipa.c: Include ipa-utils.h.
3347         (ipa_profile): Update call to ipa_reverse_postorder.
3348         (cgraph_postorder): Moved to...
3349         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3350         (ipa_utils_print_order): Renamed to ipa_print_order.
3351         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3352         comments.
3353         (ipa_free_postorder_info): New function.
3354         * passes.c: Include ipa-utils.h.
3355         (do_per_function_toporder): Update call to ipa_reverse_postorder.
3356         (ipa_write_summaries): Likewise.
3357         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3358         (cgraphunit.o): Likewise.
3359         (ipa.o): Likewise.
3360         (ipa-inline.o): Likewise.
3361
3362 2011-04-29  Jan Hubicka  <jh@suse.cz>
3363
3364         * gcc.dg/tree-ssa/inline-10.c: New testcase.
3365         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3366         * ipa-inline.h (clause_t): Turn into unsigned int.
3367         * ipa-inline-analysis.c (add_clause): Do more simplification.
3368         (and_predicates): Shortcut more cases.
3369         (predicates_equal_p): Move forward; check that clauses are properly
3370         ordered.
3371         (or_predicates): Shortcut more cases.
3372         (edge_execution_predicate): Rewrite as...
3373         (set_cond_stmt_execution_predicate): ... this function; handle
3374         __builtin_constant_p.
3375         (set_switch_stmt_execution_predicate): New .
3376         (compute_bb_predicates): New.
3377         (will_be_nonconstant_predicate): Update TODO.
3378         (estimate_function_body_sizes): Use compute_bb_predicates
3379         and free them later, always try to estimate if stmt is constant.
3380         (estimate_time_after_inlining, estimate_size_after_inlining):
3381         Gracefully handle optimized out edges.
3382         (read_predicate): Fix off by one error.
3383
3384 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3385
3386         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3387
3388 2011-04-27  Xinliang David Li  <davidxl@google.com>
3389
3390         * tree-profile.c (init_ic_make_global_vars): Set
3391         tls attribute on ic vars.
3392         * coverage.c (coverage_end_function): Initialize
3393         function_list with zero.
3394
3395 2011-04-29  Richard Guenther  <rguenther@suse.de>
3396
3397         * builtins.c (fold_builtin_classify_type): Use integer_type_node
3398         for the type of the result.
3399         (fold_builtin_isascii): Likewise.
3400         (fold_builtin_toascii): Use integer_type_node where appropriate.
3401         (fold_builtin_logb): Likewise.
3402         (fold_builtin_frexp): Likewise.
3403         (fold_builtin_strstr): Likewise.
3404         (fold_builtin_strpbrk): Likewise.
3405         (fold_builtin_fputs): Likewise.
3406         (fold_builtin_sprintf): Likewise.
3407         (fold_builtin_snprintf): Likewise.
3408         (fold_builtin_printf): Likewise.
3409         (do_mpfr_remquo): Use a proper type for the assigned constant.
3410         (do_mpfr_lgamma_r): Likewise.
3411         * dwarf2out.c (resolve_one_addr): Use size_int.
3412         * except.c (init_eh): Likewise.
3413         (assign_filter_values): Use integer_type_node for filter values.
3414         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3415         indices.
3416         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3417         for EH region numbers.
3418         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3419         for the shift amount.
3420
3421 2011-04-29  Richard Guenther  <rguenther@suse.de>
3422
3423         * expr.h (expand_shift): Rename to ...
3424         (expand_variable_shift): ... this.
3425         (expand_shift): Take a constant shift amount.
3426         * expmed.c (expand_shift): Rename to ...
3427         (expand_variable_shift): ... this.
3428         (expand_shift): New wrapper around expand_variable_shift.
3429         * expr.c (convert_move, emit_group_load_1, emit_group_store,
3430         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3431         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3432         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3433         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3434         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3435         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3436         emit_store_flag_1, emit_store_flag): Likewise.
3437         * builtins.c (expand_builtin_signbit): Likewise.
3438         * calls.c (load_register_parameters): Likewise.
3439         * function.c (assign_parm_setup_block): Likewise.
3440         * lower-subreg.c (resolve_shift_zext): Likewise.
3441         * optabs.c (widen_bswap, expand_abs_nojump,
3442         expand_one_cmpl_abs_nojump, expand_float): Likewise.
3443         * spu/spu.c (spu_expand_extv): Likewise.
3444         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3445
3446 2011-04-29  Richard Guenther  <rguenther@suse.de>
3447
3448         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3449         for the remapped region number.
3450         * predict.c (build_predict_expr): Use integer_type_node for the
3451         predict kind.
3452         * fold-const.c (fold_binary_loc): Use integer_type_node for
3453         the shift amount.  Use a proper type for the PLUS_EXPR operand.
3454
3455 2011-04-29  Michael Matz  <matz@suse.de>
3456
3457         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3458         other trees that just builtins.
3459         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3460
3461 2011-04-29  Richard Guenther  <rguenther@suse.de>
3462
3463         * tree-nested.c (get_trampoline_type): Use size_int.
3464         (get_nl_goto_field): Likewise.
3465         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3466         for all indexes.
3467         (lower_eh_constructs_2): Likewise.
3468         (lower_resx): Likewise.
3469         (lower_eh_dispatch): Likewise.
3470         * tree-mudflap.c (mf_build_string): Use size_int.
3471         (mudflap_register_call): Use integer_type_node for the flag.
3472         (mudflap_enqueue_constant): Use size_int.
3473         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3474         instead of rebuilding it.
3475
3476 2011-04-29  Richard Guenther  <rguenther@suse.de>
3477
3478         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3479         Handle OBJ_TYPE_REF.
3480         (find_func_aliases_for_call): Use it more consistently.
3481
3482 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
3483
3484         * haifa-sched.c (last_nondebug_scheduled_insn): New.
3485         (rank_for_schedule): Use it.
3486         (schedule_block): Set it.
3487
3488 2011-04-28  David Li  <davidxl@google.com>
3489
3490         * tree.c (crc32_string): Use crc32_byte.
3491         (crc32_byte): New function.
3492         * tree.h (crc32_byte): New function.
3493         * gcov.c (read_graph_file): Handle new cfg_cksum.
3494         (read_count_file): Ditto.
3495         * profile.c (instrument_values): Ditto.
3496         (get_exec_counts): Ditto.
3497         (read_profile_edge_counts): Ditto.
3498         (compute_branch_probabilities): Ditto.
3499         (compute_value_histograms): Ditto.
3500         (branch_prob): Ditto.
3501         (end_branch_prob): Ditto.
3502         * coverage.c (read_counts_file): Ditto.
3503         (get_coverage_counts): Ditto.
3504         (tree_coverage_counter_addr): Ditto.
3505         (coverage_checksum_string): Ditto.
3506         (coverage_begin_output): Ditto.
3507         (coverage_end_function): Ditto.
3508         (build_fn_info_type): Ditto.
3509         (build_fn_info_value): Ditto.
3510         * libgcov.c (gcov_exit): Ditto.
3511         * gcov-dump.c (tag_function): Ditto.
3512         (compute_checksum): Remove.
3513
3514 2011-04-29  Alan Modra  <amodra@gmail.com>
3515
3516         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3517         unspec plus offset.  Tidy macho code.
3518
3519 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3520
3521         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3522         node instead of a decl.  Update all callers.
3523         * cgraph.h: Update declaration.
3524
3525 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
3526
3527         PR tree-optimization/48765
3528         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3529         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3530         to indicate if loop aware SLP is being used.  Scan the statements
3531         and update the vectorization factor according to the type of
3532         vectorization before statement analysis.
3533         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3534         pass it to vect_analyze_loop_operations.
3535         (vectorizable_reduction): Set number of copies to 1 in case of pure
3536         SLP statement.
3537         * tree-vect-stmts.c (vectorizable_conversion,
3538         vectorizable_assignment, vectorizable_shift,
3539         vectorizable_operation, vectorizable_type_demotion,
3540         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3541         Likewise.
3542         (vectorizable_condition): Move the check that it is not SLP
3543         vectorization before the number of copies check.
3544         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3545         to vectorize the loop using SLP.
3546
3547 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
3548
3549         PR middle-end/48597
3550         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3551         inline asm.
3552
3553 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
3554
3555         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3556         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3557         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3558         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3559         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3560         linux*.h headers.
3561         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3562         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3563         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3564         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3565         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3566         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3567         REG_NAME.
3568         * config/i386/linux.h (REG_NAME): Don't define.
3569         * config/i386/linux64.h (REG_NAME): Don't define.
3570         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3571         Undefine before defining.
3572
3573 2011-04-28  Jan Hubicka  <jh@suse.cz>
3574
3575         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3576         nonconstant_names array.
3577         (estimate_function_body_sizes): Build nonconstant_names array; handle
3578         BUILT_IN_CONSTANT_P.
3579
3580 2011-04-28  Richard Guenther  <rguenther@suse.de>
3581
3582         PR bootstrap/48804
3583         Revert
3584         2011-04-28  Richard Guenther  <rguenther@suse.de>
3585
3586         * tree-ssa-structalias.c (solve_constraints): Build succ graph
3587         as late as possible.
3588
3589 2011-04-28  Richard Guenther  <rguenther@suse.de>
3590
3591         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3592         (debug_constraint): Do it here.
3593         (dump_constraints): And here.
3594         (rewrite_constraints): And here.
3595         (dump_constraint_edge): Remove.
3596         (dump_constraint_graph): Rewrite to produce DOT output.
3597         (solve_constraints): Build succ graph as late as possible.
3598         Dump constraint graphs before and after solving.
3599
3600 2011-04-28  Richard Guenther  <rguenther@suse.de>
3601
3602         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3603         New function split out from ...
3604         (find_func_aliases): ... here.  Call it.
3605         (find_func_aliases_for_call): Likewise.
3606
3607 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3608
3609         * internal-fn.h (internal_fn_name_array): Declare.
3610         (internal_fn_flags_array): Likewise.
3611
3612 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3613
3614         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
3615         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3616         Move from sse.md.
3617         (ssemodefsuffix): Remove.
3618         (ssevecmodesuffix): New mode attribute.
3619         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3620         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3621         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3622         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3623         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3624         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3625         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3626         ssemodesuffix mode attribute.
3627         (float splitters): Use ssevecmodesuffix mode attribute.
3628         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3629         (sseinsmode): Rename from avxvecmode.
3630         (avxsizesuffix): Rename from avxmodesuffix.
3631         (sseintvecmode): Rename from avxpermvecmode.
3632         (ssedoublevecmode): Rename from ssedoublesizemode.
3633         (ssehalfvecmode): Rename from avxhalfvecmode.
3634         (ssescalarmode): Rename from avxscalarmode.
3635         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3636         templates for ssemodesuffix mode attribute.
3637         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3638         mode attribute.
3639
3640         Adjust RTX patterns globally for renamed mode attributes.
3641
3642 2011-04-27  Jan Hubcika  <jh@suse.cz>
3643
3644         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3645         * ipa-inline-analysis.c: Include alloc-pool.h.
3646         (edge_predicate_pool): New.
3647         (trye_predicate_p): New function
3648         (false_predicate_p): New function.
3649         (add_clause): Sanity check that false clauses are "optimized";
3650         never add clauses to predicate that is already known to be false.
3651         (and_predicate): Use flase_predicate_p.
3652         (evaulate_predicate): Rename to ...
3653         (evaluate_predicate): ... this one; update all callers; assert
3654         that false is not listed among possible truths.
3655         (dump_predicate): Use true_predicate_p.
3656         (account_size_time): Use false_predicate_p.
3657         (evaulate_conditions_for_edge): Rename to ...
3658         (evaluate_conditions_for_edge) ... this one.
3659         (edge_set_predicate): New function.
3660         (inline_edge_duplication_hook): Duplicate edge predicates.
3661         (inline_edge_removal_hook): Free edge predicates.
3662         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3663         (dump_inline_summary): Update.
3664         (estimate_function_body_sizes): Set edge predicates.
3665         (estimate_calls_size_and_time): Handle predicates.
3666         (estimate_callee_size_and_time): Update.
3667         (remap_predicate): Add toplev_predicate; update comment.
3668         (remap_edge_predicates): New function.
3669         (inline_merge_summary): Compute toplev predicate; update.
3670         (read_predicate): New function.
3671         (read_inline_edge_summary): Use it.
3672         (inline_read_section): Likewise.
3673         (write_predicate): New function.
3674         (write_inline_edge_summary): Use it.
3675         (inline_write_summary): Likewise.
3676         (inline_free_summary): Free alloc pool and edge summary vec.
3677
3678 2011-04-27  Richard Guenther  <rguenther@suse.de>
3679
3680         * tree-ssa-structalias.c (changed_count): Remove.
3681         (changed): Use a bitmap.
3682         (unify_nodes): Adjust.
3683         (do_sd_constraint): Likewise.
3684         (do_ds_constraint): Likewise.
3685         (do_complex_constraint): Likewise.
3686         (solve_graph): Likewise.
3687
3688 2011-04-27  Jan Hubicka  <jh@suse.cz>
3689
3690         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3691
3692 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3693
3694         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3695         (avx_vperm2f128_*_operand): Ditto.
3696         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3697         Use avx_vpermilp_parallel in insn condition.
3698         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3699         Use avx_vperm2f128_parallel in insn condition.
3700
3701 2011-04-27  Richard Guenther  <rguenther@suse.de>
3702
3703         * Makefile.in (tree-ssa-structalias.o): Remove
3704         gt-tree-ssa-structalias.h dependency.
3705         (GTFILES): Remove tree-ssa-structalias.c.
3706         * tree.c (allocate_decl_uid): New function.
3707         (make_node_stat): Use it.
3708         (copy_node_stat): Likewise.
3709         * tree.h (allocate_decl_uid): Declare.
3710         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3711         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3712         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3713         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3714         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3715         (struct heapvar_map): Likewise.
3716         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3717         heapvar_insert): Likewise.
3718         (make_heapvar_for): Rename to ...
3719         (make_heapvar): ... this.  Simplify.
3720         (fake_var_decl_obstack): New global var.
3721         (build_fake_var_decl): New function.
3722         (make_constraint_from_heapvar): Adjust.
3723         (handle_lhs_call): Likewise.
3724         (create_function_info_for): Likewise.
3725         (intra_create_variable_infos): Likewise.
3726         (init_alias_vars): Allocate fake_var_decl_obstack.
3727         (init_alias_heapvars, delete_alias_heapvars): Remove.
3728         (compute_points_to_sets): Do not call init_alias_heapvars.
3729         (ipa_pta_execute): Likewise.
3730         (delete_points_to_sets): Free fake_var_decl_obstack.
3731
3732 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3733
3734         * config/spu/divmovti4.c (union qword_UTItype): New data type.
3735         (si_from_UTItype, si_to_UTItype): New functions.
3736         (__udivmodti4): Use them to implement type-punning.
3737         * config/spu/multi3.c (union qword_TItype): New data type.
3738         (si_from_TItype, si_to_TItype): New functions.
3739         (__multi3): Use them to implement type-punning.
3740
3741 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3742
3743         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3744
3745 2011-04-27  Jan Hubicka  <jh@suse.cz>
3746
3747         * ipa-prop.c (function_insertion_hook_holder): New holder.
3748         (ipa_add_new_function): New function.
3749         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3750         Register/deregister holder.
3751
3752 2011-04-27  Richard Guenther  <rguenther@suse.de>
3753
3754         PR tree-optimization/48772
3755         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3756
3757 2011-04-27  Richard Guenther  <rguenther@suse.de>
3758
3759         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3760         TARGET_MEM_REF handling.
3761
3762 2011-04-27  Nick Clifton  <nickc@redhat.com>
3763
3764         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3765         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3766         (REG_CLASS_NAMES): Likewise.
3767         (REG_CLASS_CONTENTS): Likewise.
3768         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3769         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3770         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
3771         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
3772         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
3773         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3774         duplicate register classes.
3775         (frv_class_likely_spilled_p): Likewise.
3776         (frv_register_move_cost): Likewise.
3777
3778         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3779         end of the regno_reg_class array.
3780
3781 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
3782
3783         PR c/48742
3784         * c-typeck.c (build_binary_op): Don't wrap arguments if
3785         int_operands is true.
3786
3787 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3788
3789         PR target/48767
3790         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3791         targetm.calls.must_pass_in_stack for void type.
3792
3793 2011-04-26  Jan Hubicka  <jh@suse.cz>
3794
3795         * cgraphbuild.c (build_cgraph_edges): Update call
3796         of cgraph_create_edge and cgraph_create_indirect_edge.
3797         * cgraph.c (cgraph_create_edge_including_clones,
3798         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3799         cgraph_update_edges_for_call_stmt_node): Do not take nest
3800         argument; do not initialize call_stmt_size/time.
3801         (dump_cgraph_node): Do not dump nest.
3802         (cgraph_clone_edge): Do not take loop_nest argument;
3803         do not propagate it; do not clone call_stmt_size/time.
3804         (cgraph_clone_node): Likewise.
3805         (cgraph_create_virtual_clone): Update.
3806         * cgraph.h (struct cgraph_edge): Remove
3807         call_stmt_size/call_stmt_time/loop_nest.
3808         (cgraph_create_edge, cgraph_create_indirect_edge,
3809         cgraph_create_edge_including_clones, cgraph_clone_node): Update
3810         prototype.
3811         * tree-emutls.c (gen_emutls_addr): Update.
3812         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3813         loop_nest; handle indirect calls, too.
3814         (clone_inlined_nodes): Do not care about updating inline summaries.
3815         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3816         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3817         stream call_stmt_size/call_stmt_time/loop_nest.
3818         * ipa-inline.c (edge_badness): Update.
3819         (ipa_inline): dump summaries after inlining.
3820         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3821         New.
3822         (inline_edge_summary): New function.
3823         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3824         (inline_edge_removal_hook): Handle edge summaries.
3825         (inline_edge_duplication_hook): New hook.
3826         (inline_summary_alloc): Alloc hooks.
3827         (initialize_growth_caches): Do not register removal hooks.
3828         (free_growth_caches); Do not free removal hook.
3829         (dump_inline_edge_summary): New function.
3830         (dump_inline_summary): Use it.
3831         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3832         (inline_update_callee_summaries): New function.
3833         (inline_merge_summary): Use it.
3834         (do_estimate_edge_time, do_estimate_edge_growth): Update.
3835         (read_inline_edge_summary): New function.
3836         (inline_read_section): Use it.
3837         (write_inline_edge_summary): New function.
3838         (inline_write_summary): Use it.
3839         (inline_free_summary): Free edge new holders.
3840         * tree-inline.c (copy_bb): Update.
3841
3842 2011-04-26  Jason Merrill  <jason@redhat.com>
3843
3844         * tree-eh.c (lower_try_finally_switch): Create the label along with
3845         the CASE_LABEL_EXPR.
3846
3847 2011-04-26  David S. Miller  <davem@davemloft.net>
3848             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3849
3850         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3851         * configure: Regenerate.
3852
3853 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3854
3855         PR target/48258
3856         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3857         reduction.
3858         (VEC_reduc): New code iterator and splitters for vector reduction.
3859         (VEC_reduc_name): Ditto.
3860         (VEC_reduc_rtx): Ditto.
3861         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3862         (reduc_<VEC_reduc_name>_v4sf): Ditto.
3863
3864         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3865         support for extracting SF on VSX.
3866
3867         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3868         generating xscvspdp.
3869         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3870         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3871         double add, minimum, maximum vector reduction.
3872         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3873         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3874         optimize double vector reduction.
3875         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3876
3877 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
3878
3879         * config/fr30/fr30.h (inhibit_libc): Don't define.
3880         * config/m32r/m32r-protos.h: Correct comment.
3881         * config/v850/v850.h (GHS_default_section_names,
3882         GHS_current_section_names): Use tree, not union tree_node *.
3883
3884 2011-04-26  Xinliang David Li  <davidxl@google.com>
3885
3886         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3887         * c-family/c-opts.c (c_common_handle_option): Set
3888         warn_maybe_uninitialized.
3889         * opts.c (common_handle_option): Ditto.
3890         * common.opt:  New option.
3891         * tree-ssa.c (warn_uninit): Add one more parameter.
3892         (warn_uninitialized_var): Pass warning code.
3893         * tree-flow.h: Interface change.
3894
3895
3896 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3897
3898         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3899         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3900         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3901
3902 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3903
3904         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3905         * config/mips/mips.opt (mmips-tfile): Remove.
3906
3907         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3908         mips-tdump reference to ...
3909         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3910         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3911         reference by Tru64 UNIX.
3912
3913 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3914
3915         PR debug/48768
3916         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3917         is error_mark_node, set value to NULL.
3918
3919         PR tree-optimization/48734
3920         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3921         if return value from maybe_fold_*_comparsions isn't something
3922         the code is prepared to handle.
3923
3924 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
3925
3926         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3927         mode check.
3928         (ext_QIreg_nomode_operands): Remove.
3929         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3930         (*andsi_1): Ditto.
3931         (*andhi_1): Ditto.
3932
3933 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
3934
3935         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3936
3937 2011-04-26  Richard Guenther  <rguenther@suse.de>
3938
3939         * c-typeck.c (build_unary_op): Do not expand array-refs via
3940         pointer arithmetic.  Only adjust qualifiers for function types.
3941
3942 2011-04-26  Richard Guenther  <rguenther@suse.de>
3943
3944         PR middle-end/48694
3945         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3946         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3947         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
3948         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3949
3950 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3951
3952         * doc/extend.texi: Document __underlying_type.
3953
3954 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
3955
3956         * config/rs6000/titan.md (automata_option "progress"): Remove.
3957
3958 2011-04-25  Jeff Law  <law@redhat.com>
3959
3960         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3961
3962 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3963
3964         * system.h (ENUM_BITFIELD): Remove.
3965
3966 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
3967             Eric Botcazou  <ebotcazou@adacore.com>
3968
3969         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3970         for STORE_FLAG_VALUE==-1 case.
3971
3972 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
3973
3974         PR target/43804
3975         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3976         LEGITIMATE_PIC_OPERAND_P.
3977
3978 2011-04-24  Jan Hubicka  <jh@suse.cz>
3979
3980         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3981         WPA hack.
3982         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3983         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3984         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3985         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3986         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3987         Sanity check predicate length.
3988         (remap_predicate): Likewise; sanity check jump functions.
3989         (inline_read_section, inline_write_summary): Sanity check
3990         predicate length.
3991
3992 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
3993
3994         PR other/48748
3995         * doc/extend.texi (Type Traits): Document __is_standard_layout,
3996         __is_literal_type, and __is_trivial; update throughout about
3997         possibly cv-qualified void types.
3998
3999 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
4000
4001         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
4002         testsuite and make it version agnostic.
4003
4004 2011-04-22  Jan Hubicka  <jh@suse.cz>
4005
4006         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4007
4008 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
4009
4010         PR c/48685
4011         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4012         to VOID_TYPE even around MODIFY_EXPR.
4013
4014 2011-04-22  Mike Stump  <mikestump@comcast.net>
4015
4016         * gensupport.c (read_md_rtx): Fix typo in comment.
4017         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4018         comment.
4019
4020 2011-04-22  Jan Hubicka  <jh@suse.cz>
4021
4022         * gengtype.c (open_base_files): Add ipa-inline.h include.
4023         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4024         ipa-prop.c; update all uses.
4025         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4026         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4027         merge summary of inlined function into former caller.
4028         * ipa-inline.c (max_benefit): Remove.
4029         (edge_badness): Compensate for removal of benefits.
4030         (update_caller_keys): Use
4031         reset_node_growth_cache/reset_edge_growth_cache.
4032         (update_callee_keys): Likewise.
4033         (update_all_callee_keys): Likewise.
4034         (inline_small_functions): Do not collect max_benefit; do not reset
4035         estimated_growth; call free_growth_caches and initialize_growth_caches.
4036         * ipa-inline.h (struct condition, type clause_t, struct predicate,
4037         struct size_time_entry): New structures.
4038         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4039         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4040         and estimated_growth.
4041         (edge_growth_cache_entry): New structure.
4042         (node_growth_cache, edge_growth_cache): New global vars.
4043         (estimate_growth): Turn into inline.
4044         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4045         initialize_growth_caches, free_growth_caches): Declare.
4046         (estimate_edge_growth): Rewrite.
4047         (estimate_edge_time): Implement as inline cache lookup.
4048         (reset_node_growth_cache, reset_edge_growth_cache): New inline
4049         functions.
4050         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4051         (NUM_CONDITIONS): New constant.
4052         (predicate_conditions): New enum.
4053         (IS_NOT_CONSTANT): New constant.
4054         (edge_removal_hook_holder): New var.
4055         (node_growth_cache, edge_growth_cache): New global vars.
4056         (true_predicate, single_cond_predicate, false_predicate,
4057         not_inlined_predicate, add_condition, add_clause, and_predicates,
4058         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4059         dump_clause, dump_predicate, account_size_time,
4060         evaulate_conditions_for_edge): New functions.
4061         (inline_summary_alloc): Move to heap.
4062         (inline_node_removal_hook): Clear condition and entry vectors.
4063         (inline_edge_removal_hook): New function.
4064         (initialize_growth_caches, free_growth_caches): New function.
4065         (dump_inline_summary): Update.
4066         (edge_execution_predicate): New function.
4067         (will_be_nonconstant_predicate): New function.
4068         (estimate_function_body_sizes): Compute BB and constantness predicates.
4069         (compute_inline_parameters): Do not clear estimated_growth.
4070         (estimate_edge_size_and_time): New function.
4071         (estimate_calls_size_and_time): New function.
4072         (estimate_callee_size_and_time): New function.
4073         (remap_predicate): New function.
4074         (inline_merge_summary): New function.
4075         (do_estimate_edge_time): New function based on...
4076         (estimate_edge_time): ... this one.
4077         (do_estimate_edge_growth): New function.
4078         (do_estimate_growth): New function based on....
4079         (estimate_growth): ... this one.
4080         (inline_analyze_function): Analyze after deciding on jump functions.
4081         (inline_read_section): New function.
4082         (inline_read_summary): Use it.
4083         (inline_write_summary): Write all the new data.
4084         * ipa-prop.c (ipa_get_param_decl_index): Export.
4085         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4086         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4087         Declare.
4088         (ipa_get_lattice): Move here from ipa-cp.c
4089         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4090         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4091         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4092         cgraph_edge_inlinable_p): Remove.
4093         * cgraphunit.c: Include ipainline.h
4094         (cgraph_process_new_functions): Update call of
4095         compute_inline_parameters.
4096
4097 2011-04-22  Richard Guenther  <rguenther@suse.de>
4098
4099         * tree.c (build_int_cst): Properly create canonicalized integer
4100         constants.
4101         (build_int_cst_type): Remove scary comments.
4102
4103 2011-04-22  Xinliang David Li  <davidxl@google.com>
4104
4105         * toplev.c (process_options): Enable -Werror=coverage-mismatch
4106         by default when -Wno-error is not specified.
4107         * opts-global.c (decode_options): Remove call to
4108         control_warning_options.
4109
4110 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
4111
4112         PR tree-optimization/48717
4113         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4114         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4115
4116 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
4117
4118         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
4119         definition where used.
4120
4121 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
4122
4123         PR c/48716
4124         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4125         TREE_STATIC variables declared inside of some OpenMP construct.
4126
4127 2011-04-22  Martin Jambor  <mjambor@suse.cz>
4128
4129         PR middle-end/48585
4130         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4131
4132 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
4133
4134         PR c/36750
4135         * c-typeck.c (pop_init_level): Do not warn about initializing
4136         with ` = {0}'.
4137
4138 2011-04-22  Alan Modra  <amodra@gmail.com>
4139
4140         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4141         when returning call_cookie.
4142         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4143         pointers, to functions with no more vector args than the current
4144         function, and some non-local calls for ABI_V4.
4145         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4146         sibcall_nonlocal_aix64): Combine to ..
4147         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
4148         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4149         (sibcall_value_nonlocal_aix<mode>): ..likewise.
4150         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4151         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
4152         operand.
4153         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4154         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4155         sibcall_value_symbolic_64): Delete.
4156
4157 2011-04-21  Xinliang David Li  <davidxl@google.com>
4158
4159         * cgraph.h: Remove pid.
4160         * cgraph.c: Remove pid.
4161         * value-prof.c (init_node_map): New function.
4162         (del_node_map): New function.
4163         (find_func_by_funcdef_no): New function.
4164         (gimple_ic_transform): Call new function.
4165         * cgraphunit.c (cgraph_finalize_function): Remove pid.
4166         * function.c (get_last_funcdef_no): New function.
4167         * function.h (get_last_funcdef_no): New function.
4168         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4169         to libgcov function.
4170         (tree-profiling): Call node map init and delete function.
4171
4172 2011-04-21  Ian Lance Taylor  <iant@google.com>
4173
4174         * godump.c (go_format_type): Use exported Go name for anonymous
4175         field name.
4176
4177 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4178
4179         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4180         Call builtin_function_type_list instead of builtin_function_type.
4181         (UNARY, BINARY, TRINARY, QUAD): Likewise.
4182
4183 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4184
4185         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4186         build_function_type_list instead of build_function_type.
4187         Delete variable `endlink'.
4188
4189 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4190
4191         * config/s390/s390.c (s390_init_builtins): Call
4192         build_function_type_list instead of build_function_type.
4193
4194 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4195
4196         * config/ia64/ia64.c (ia64_init_builtins): Call
4197         build_function_type_list instead of builtin_function_type.
4198
4199 2011-04-21  Easwaran Raman  <eraman@google.com>
4200
4201         * cfgexpand.c (stack_var): Remove OFFSET...
4202         (add_stack_var): ...and its reference here...
4203         (expand_stack_vars): ...and here.
4204         (stack_var_cmp): Sort by descending order of size.
4205         (partition_stack_vars): Change heuristic.
4206         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4207         (dump_stack_var_partition): Add newline after each partition.
4208
4209 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
4210             Jeff Law  <law@redhat.com>
4211
4212         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4213         * gengtype.c (matching_file_name_substitute): Likewise.
4214
4215 2011-04-21  Richard Guenther  <rguenther@suse.de>
4216
4217         PR lto/48703
4218         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4219
4220 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
4221
4222         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4223
4224 2011-04-21  Richard Guenther  <rguenther@suse.de>
4225
4226         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4227         file name.
4228
4229 2011-04-21  Richard Guenther  <rguenther@suse.de>
4230
4231         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4232         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4233         Use DECL_P, not SSA_VAR_P.
4234         (ptr_derefs_may_alias_p): Likewise.
4235         (ptr_deref_may_alias_ref_p_1): Likewise.
4236         (decl_refs_may_alias_p): Likewise.
4237         (refs_may_alias_p_1): Likewise.
4238         (ref_maybe_used_by_call_p_1): Likewise.
4239         (call_may_clobber_ref_p_1): Likewise.
4240         (indirect_ref_may_alias_decl_p): Assume indirect refrences
4241         are either MEM_REF or TARGET_MEM_REF.
4242         (indirect_refs_may_alias_p): Likewise.
4243         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4244         for MEM_EXPR of indirect calls.
4245
4246 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4247
4248         * vmsdbgout.c (write_srccorr): Compute file length from the string.
4249         (dst_file_info_struct): Remove flen field.
4250         (lookup_filename): Remove code that set flen field.
4251
4252 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4253
4254         * config/ia64/ia64.c (ia64_start_function): Add a guard.
4255
4256 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
4257
4258         PR target/48708
4259         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4260         vec_extract and vec_concat for non-SSE4_1 targets.
4261
4262 2011-04-21  Richard Guenther  <rguenther@suse.de>
4263
4264         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4265         return statements.
4266
4267 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4268
4269         * config/i386/cygming.h (union tree_node, TREE): Don't define or
4270         undefine.
4271         (FILE): Don't undefine.
4272
4273 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4274
4275         * config/alpha/alpha.c (struct machine_function): Use rtx, not
4276         struct rtx_def *.
4277         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4278         struct rtx_def *.
4279         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4280         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4281         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4282         rtx_def *.
4283         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
4284         definitions where used.
4285         * config/microblaze/microblaze.h (struct microblaze_args): Use
4286         rtx, not struct rtx_def *.
4287         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4288         rtx_def *.
4289         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4290         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4291         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4292         not struct rtx_def *.
4293         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4294         struct rtx_def *.
4295         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4296         rtx_def *.
4297         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4298
4299 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4300
4301         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4302         operand_equal_p to compare DR_BASE_ADDRESSes.
4303         (vect_check_interleaving): Likewise.
4304
4305 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4306
4307         PR target/46329
4308         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4309         for all Neon struct constants.
4310
4311 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4312
4313         * target.def (legitimate_constant_p): New hook.
4314         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4315         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4316         * doc/tm.texi: Regenerate.
4317         * hooks.h (hook_bool_mode_rtx_true): Declare.
4318         * hooks.c (hook_bool_mode_rtx_true): Define.
4319         * system.h (LEGITIMATE_CONSTANT_P): Poison.
4320         * calls.c (precompute_register_parameters): Replace uses of
4321         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4322         (emit_library_call_value_1): Likewise.
4323         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4324         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4325         * ira-costs.c (scan_one_insn): Likewise.
4326         * recog.c (general_operand, immediate_operand): Likewise.
4327         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4328         * reload1.c (init_eliminable_invariants): Likewise.
4329
4330         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4331         mode argument.
4332         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4333         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4334         argument.
4335         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4336         * config/alpha/predicates.md (input_operand): Update call to
4337         alpha_legitimate_constant_p.
4338
4339         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4340         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4341         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4342         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4343         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4344         (arm_legitimate_constant_p): New functions.
4345         (arm_cannot_force_const_mem): Make static.
4346
4347         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4348
4349         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4350         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4351         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4352         instead of bfin_legitimate_constant_p.
4353         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
4354         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4355
4356         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4357
4358         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4359
4360         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4361         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4362         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4363         (frv_legitimate_constant_p): Make static.  Add a mode argument.
4364
4365         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4366         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4367         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4368
4369         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4370         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4371         * config/i386/i386.c (legitimate_constant_p): Rename to...
4372         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
4373         argument.
4374         (ix86_cannot_force_const_mem): Update accordingly.
4375         (ix86_legitimate_address_p): Likewise.
4376         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4377         * config/i386/i386.md: Update commentary.
4378
4379         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4380         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4381         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4382         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
4383
4384         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4385
4386         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4387         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4388         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4389         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
4390
4391         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4392         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4393         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4394
4395         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4396         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4397         (m32r_legitimate_constant_p): New function.
4398
4399         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4400         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4401         LEGITIMATE_CONSTANT_P.
4402         (LEGITIMATE_CONSTANT_P): Delete.
4403         * config/m68k/m68k.c (m68k_expand_prologue): Call
4404         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4405         (m68k_legitimate_constant_p): New function.
4406         * config/m68k/m68k.md: Update comments.
4407
4408         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4409         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4410         (mcore_legitimate_constant_p): New function.
4411
4412         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4413         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4414         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4415         Add a mode argument.
4416         (mep_legitimate_address): Update accordingly.
4417         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4418
4419         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4420         Delete.
4421         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4422         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4423         static.  Check OP's mode for VOIDmode.
4424         (microblaze_legitimate_constant_p): New function.
4425         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4426
4427         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4428         * config/mips/mips.c (mips_legitimate_constant_p): New function.
4429         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4430         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4431         * config/mips/predicates.md: Update comments.
4432
4433         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4434         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4435         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4436         (mmix_legitimate_constant_p): Make static, return a bool, and take
4437         a mode argument.
4438         (mmix_print_operand_address): Update accordingly.
4439
4440         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4441         Delete.
4442         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4443         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4444         static.  Add a mode argument.
4445         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4446
4447         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4448
4449         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4450         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4451         (pa_legitimate_constant_p): New function.
4452
4453         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4454
4455         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4456         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4457         (pdp11_legitimate_constant_p): New function.
4458
4459         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4460         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4461         (rs6000_legitimate_constant_p): New function.
4462
4463         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4464         (rx_legitimate_constant_p): ...this.
4465         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4466         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4467         (rx_legitimate_constant_p): ...this.
4468         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4469         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4470
4471         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4472         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4473         * config/s390/s390.c (legitimate_constant_p): Rename to...
4474         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
4475         and add a mode argument.
4476         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4477
4478         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4479
4480         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4481         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4482         (sh_legitimate_constant_p): New function.
4483
4484         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4485         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4486         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4487         (legitimate_constant_p): Rename to...
4488         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
4489         argument.
4490         (constant_address_p): Update accordingly.
4491
4492         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4493         argument and return a bool.
4494         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4495         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4496         (spu_legitimate_constant_p): Add a mode argument and return a bool.
4497         (spu_rtx_costs): Update accordingly.
4498         * config/spu/predicates.md (vec_imm_operand): Likewise.
4499
4500         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4501
4502         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4503         * config/v850/v850.c (v850_legitimate_constant_p): New function.
4504         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4505
4506         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4507         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4508         * config/vax/vax.c (legitimate_constant_p): Likewise.
4509
4510         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4511         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4512         (xtensa_legitimate_constant_p): New function.
4513
4514 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4515
4516         * target.def (cannot_force_const_mem): Add a mode argument.
4517         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4518         * doc/tm.texi: Regenerate.
4519         * hooks.h (hook_bool_mode_rtx_false): Declare.
4520         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4521         (hook_bool_mode_const_rtx_true): Likewise.
4522         (hook_bool_mode_rtx_false): New function.
4523         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4524         to be non-VOID.  Update call to cannot_force_const_mem.
4525         (find_reloads): Update accordingly.
4526         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4527         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4528         argument.
4529         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4530         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4531         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4532         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4533         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4534         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4535         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4536         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4537         (m68k_cannot_force_const_mem): ...this new function.
4538         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4539         argument.
4540         (mips_const_insns, mips_legitimize_const_move): Update calls.
4541         (mips_secondary_reload_class): Likewise.
4542         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4543         (pa_cannot_force_const_mem): ...this new function.
4544         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4545         (rs6000_cannot_force_const_mem): ...this new function.
4546         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4547         argument.
4548         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4549         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4550         to...
4551         (xtensa_cannot_force_const_mem): ...this new function.
4552
4553 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4554
4555         * config/mips/mips.c (mips16_build_function_stub): Call
4556         build_function_type_list instead of build_function_type.
4557         (mips16_build_call_stub): Likewise.
4558
4559 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4560
4561         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4562         instead of build_function_type.
4563
4564 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4565
4566         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4567         instead of build_function_type.
4568
4569 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
4570
4571         PR target/48678
4572         * config/i386/i386.md (insv): Change operand 0 constraint to
4573         "register_operand".  Change operand 1 and 2 constraint to
4574         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
4575         * config/i386/sse.md (sse4_1_pinsrb): Export.
4576         (sse2_pinsrw): Ditto.
4577         (sse4_1_pinsrd): Ditto.
4578         (sse4_1_pinsrq): Ditto.
4579         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4580         * config/i386/i386.c (ix86_expand_pinsr): New.
4581
4582 2011-04-20  Easwaran Raman  <eraman@google.com>
4583
4584         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4585         containing union type only with -fstrict-aliasing.
4586
4587 2011-04-20  Jim Meyering  <meyering@redhat.com>
4588
4589         Remove useless if-before-free tests.
4590         * calls.c (expand_call, save_area): Likewise.
4591         * cfgcleanup.c (try_forward_edges): Likewise.
4592         * collect2.c (collect_execute): Likewise.
4593         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4594         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4595         * coverage.c (coverage_checksum_string): Likewise.
4596         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4597         * cselib.c (cselib_init): Likewise.
4598         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4599         (df_set_clean_cfg): Likewise.
4600         * function.c (free_after_compilation): Likewise.
4601         * gcc.c (do_spec_1, main): Likewise.
4602         * gcov.c (create_file_names): Likewise.
4603         * gensupport.c (identify_predicable_attribute): Likewise.
4604         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4605         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4606         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4607         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4608         * ipa-pure-const.c (local_pure_const): Likewise.
4609         * ipa-reference.c (propagate): Likewise.
4610         * ira-costs.c (free_ira_costs): Likewise.
4611         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4612         * matrix-reorg.c (mat_free): Likewise.
4613         * prefix.c (get_key_value): Likewise.
4614         * profile.c (compute_value_histograms): Likewise.
4615         * reload1.c (free_reg_equiv): Likewise.
4616         * sched-deps.c (free_deps): Likewise.
4617         * sel-sched-ir.c (fence_clear): Likewise.
4618         * sese.c (set_rename, if_region_set_false_region): Likewise.
4619         * tree-data-ref.c (free_rdg): Likewise.
4620         * tree-eh.c (lower_try_finally): Likewise.
4621         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4622         * tree-ssa-live.c (delete_var_map): Likewise.
4623         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4624         * tree-ssa-pre.c (phi_trans_add): Likewise.
4625
4626 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
4627
4628         PR tree-optimization/48611
4629         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4630         beyond ERT_MUST_NOT_THROW region.
4631
4632 2011-04-20  Catherine Moore  <clm@codesourcery.com>
4633
4634         * config/mips/mips.opt (mfix-24k): New.
4635         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4636         * config/mips/mips.md (length): Increase by 4 for stores if
4637         fixing 24K errata.
4638         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4639         all noreorder if fixing 24K errata.
4640         * doc/invoke.texi: Document mfix-24k.
4641
4642 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
4643
4644         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4645         quad-word modes, reduce to 9-bit index range when above 1016 limit.
4646
4647 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4648
4649         * config/arm/arm.c (arm_gen_constant): Move movw support ....
4650         (const_ok_for_op): ... to here.
4651
4652 2011-04-20  Kai Tietz  <ktietz@redhat.com>
4653
4654         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4655         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4656
4657 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4658
4659         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4660
4661 2011-04-20  Richard Guenther  <rguenther@suse.de>
4662
4663         PR tree-optimization/47892
4664         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4665         are if-convertible.
4666
4667 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4668
4669         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4670
4671 2011-04-20  Tristan Gingold  <gingold@adacore.com>
4672
4673         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4674
4675 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
4676
4677         PR target/18145
4678
4679         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4680         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4681         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4682         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4683         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4684
4685         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4686         New prototype.
4687
4688         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4689         (avr_asm_named_section, avr_asm_output_aligned_common,
4690         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4691         New functions to update...
4692         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4693         (avr_asm_init_sections): Overwrite section callbacks for
4694         data_section, bss_section.
4695         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4696         from here to...
4697         (avr_file_end): ...here.
4698
4699 2011-04-20  Richard Guenther  <rguenther@suse.de>
4700
4701         PR middle-end/48695
4702         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4703         objects and types here.  Adjust for their offset before comparing.
4704
4705 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4706
4707         * tree-vect-stmts.c (vectorizable_store): Only chain one related
4708         statement per copy.
4709
4710 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4711
4712         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4713         (GIMPLE_H): Include $(INTERNAL_FN_H).
4714         (OBJS-common): Add internal-fn.o.
4715         (internal-fn.o): New rule.
4716         * internal-fn.def: New file.
4717         * internal-fn.h: Likewise.
4718         * internal-fn.c: Likewise.
4719         * gimple.h: Include internal-fn.h.
4720         (GF_CALL_INTERNAL): New gf_mask.
4721         (gimple_statement_call): Put fntype into a union with a new
4722         internal_fn field.
4723         (gimple_build_call_internal): Declare.
4724         (gimple_build_call_internal_vec): Likewise.
4725         (gimple_call_same_target_p): Likewise.
4726         (gimple_call_internal_p): New function.
4727         (gimple_call_internal_fn): Likewise.
4728         (gimple_call_fntype): Return null for internal calls.
4729         (gimple_call_set_fntype): Assert that the function is not internal.
4730         (gimple_call_set_fn): Likewise.
4731         (gimple_call_set_fndecl): Likewise.
4732         (gimple_call_set_internal_fn): New function.
4733         (gimple_call_addr_fndecl): Handle null functions.
4734         (gimple_call_return_type): Likewise null types.
4735         * gimple.c (gimple_build_call_internal_1): New function.
4736         (gimple_build_call_internal): Likewise.
4737         (gimple_build_call_internal_vec): Likewise.
4738         (gimple_call_same_target_p): Likewise.
4739         (gimple_call_flags): Handle calls to internal functions.
4740         (gimple_call_fnspec): New function.
4741         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4742         (gimple_has_side_effects): Handle null functions.
4743         (gimple_rhs_has_side_effects): Likewise.
4744         (gimple_call_copy_skip_args): Handle calls to internal functions.
4745         * cfgexpand.c (expand_call_stmt): Likewise.
4746         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4747         * gimple-fold.c (gimple_fold_call): Handle null functions.
4748         (gimple_fold_stmt_to_constant_1): Don't fold
4749         calls to internal functions.
4750         * gimple-low.c (gimple_check_call_args): Handle calls to internal
4751         functions.
4752         * gimple-pretty-print.c (dump_gimple_call): Likewise.
4753         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4754         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4755         (do_warn_unused_result): Likewise.
4756         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4757         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4758         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4759         the target of a call.
4760         (initialize_hash_element): Update accordingly.
4761         (hashable_expr_equal_p): Use gimple_call_same_target_p.
4762         (iterative_hash_hashable_expr): Handle calls to internal functions.
4763         (print_expr_hash_elt): Likewise.
4764         * tree-ssa-pre.c (can_value_number_call): Likewise.
4765         (eliminate): Handle null functions.
4766         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4767         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4768         (find_func_aliases): Likewise.
4769         * value-prof.c (gimple_ic_transform): Likewise.
4770         (gimple_indirect_call_to_profile): Likewise.
4771         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4772         * lto-streamer-out.c (output_gimple_stmt): Likewise.
4773
4774 2011-04-19  Jan Hubicka  <jh@suse.cz>
4775
4776         * ipa-inline-transform.c (save_inline_function_body): Add comments.
4777         * ipa-inline.c (inline_small_functions): Compute summaries first,
4778         populate heap later.
4779
4780 2011-04-19  Jan Hubicka  <jh@suse.cz>
4781
4782         * cgraph.h (save_inline_function_body): Remove.
4783         * ipa-inline-transform.c: New file, broke out of...
4784         * ipa-inline.c: ... this one; Update toplevel comment.
4785         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4786         make global.
4787         (update_noncloned_frequencies): Move to ipa-inline-transform.c
4788         (cgraph_mark_inline_edge): Rename to inline_call; move to
4789         ipa-inline-transform.c.
4790         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4791         move to ipa-inline-transform.c
4792         (recursive_inlining, inline_small_functions, flatten_function,
4793         ipa_inline, inline_always_inline_functions,
4794         early_inline_small_functions): Update.
4795         (inline_transform): Move to ipa-inline-transform.c.
4796         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4797         Declare.
4798         * Makefile.in (ipa-inline-transform.o): New file.
4799         * cgraphunit.c (save_inline_function_body): Move to
4800         ipa-inline-transform.c
4801
4802 2011-04-19  DJ Delorie  <dj@redhat.com>
4803
4804         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4805         registers if we already know there aren't any.
4806         (m32c_emit_epilogue): Don't emit a barrier here.
4807         (m32c_emit_eh_epilogue): Likewise.
4808         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4809         operands at expand time.
4810         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4811         int" wchar type.
4812         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4813         duplicates.  Provide aliases instead.
4814         * config/m32c/prologue.md (eh_return): Emit a barrier here.
4815         (eh_epilogue): Add a "(return)" here as a hint to other parts of
4816         the compiler.
4817
4818 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
4819
4820         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4821         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4822         (general_or_i64_p, sparc_register_move_cost): New function.
4823
4824 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4825
4826         * doc/install.texi (Configuration, --enable-threads): Remove mach.
4827         Add lynx, mipssde.  Sort table.
4828
4829 2011-04-19  Xinliang David Li  <davidxl@google.com>
4830
4831         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4832         not negative.
4833
4834 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
4835
4836         PR target/48678
4837         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4838         is a SUBREG with non-MODE_INT mode inside of it.
4839
4840 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4841
4842         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4843         also according to actual contants.
4844         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4845         (gimple_fold_call): Use it.
4846         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4847
4848 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4849
4850         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4851         non-pointer assignments.
4852
4853 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4854
4855         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4856         account anc_offset and otr_type from the indirect edge info.
4857         * ipa-prop.c (get_ancestor_addr_info): New function.
4858         (compute_complex_ancestor_jump_func): Assignment analysis moved to
4859         get_ancestor_addr_info, call it.
4860         (ipa_note_param_call): Do not initialize information about polymorphic
4861         calls, return the indirect call graph edge.  Remove the last
4862         parameter, adjust all callers.
4863         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4864         parameters.  Initialize polymorphic information in the indirect edge.
4865
4866 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4867
4868         PR lto/48148
4869         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4870         the types if they have different enumeration identifiers.
4871
4872 2011-04-19  Jan Hubicka  <jh@suse.cz>
4873
4874         * cgraph.h (cgraph_optimize_for_size_p): Declare.
4875         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4876         * predict.c (cgraph_optimize_for_size_p): Break out from ...
4877         (optimize_function_for_size_p) ... here.
4878
4879 2011-04-19  Richard Guenther  <rguenther@suse.de>
4880
4881         PR lto/48207
4882         * tree.c (free_lang_data): Do not reset the decl-assembler-name
4883         langhook.
4884
4885 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4886
4887         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4888         if DECL_NO_INLINE_WARNING_P is set on the function.
4889
4890 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
4891
4892         PR fortran/47976
4893         * reload1.c (inc_for_reload): Return void. All callers changed.
4894         (emit_input_reload_insns): Don't try to delete previous output
4895         reloads to a register, or record spill_reg_store for autoincs.
4896
4897 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4898
4899         * gengtype.h: Updated copyright year.
4900         (struct input_file_st): Add inpisplugin field.
4901         (type_fileloc): New function.
4902         * gengtype.c
4903         (write_typed_struct_alloc_def): Add gcc_assert.
4904         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4905         (write_typed_alloc_defns): Don't output for plugin files.
4906         (input_file_by_name): Clear inpisplugin field.
4907         (main): Set inpisplugin field for plugin files.
4908
4909 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4910
4911         * gengtype-state.c (string_eq): New.
4912         (read_state): Use string_eq instead of strcmp when creating the
4913         state_ident_tab.
4914
4915 2011-04-19  Wei Guozhi  <carrot@google.com>
4916
4917         PR target/47855
4918         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4919         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4920         linkage.
4921         * config/arm/constraints.md (Uu): New constraint.
4922         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4923
4924 2011-04-19  Tristan Gingold  <gingold@adacore.com>
4925
4926         * config.gcc (-*-*-*vms): Added.
4927         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4928         definitions moved.
4929         * config/vms/vms-ld.c: New file.
4930         * config/vms/vms-ar.c: New file.
4931         * config/vms/t-vmsnative: New file.
4932
4933 2011-04-18  Xinliang David Li  <davidxl@google.com>
4934
4935         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4936
4937 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4938
4939         PR middle-end/48661
4940         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4941         if TREE_TYPE (v) is non-NULL.
4942
4943         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4944         gimple_get_virt_mehtod_for_binfo.
4945         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4946         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4947         callers.
4948         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4949
4950 2011-04-18  Michael Matz  <matz@suse.de>
4951             Steve Ellcey  <sje@cup.hp.com>
4952
4953         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4954         use its mode as source mode if it isn't VOIDmode.
4955
4956 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
4957
4958         * doc/passes.texi: Fill crossref nodes.
4959
4960 2011-04-18  Jim Meyering  <meyering@redhat.com>
4961
4962         Fix doubled-word typos in comments and strings
4963         * config/alpha/vms-unwind.h: s/for for/for/
4964         * config/arm/unwind-arm.h: Likewise.
4965         * config/microblaze/microblaze.c: Likewise.
4966         * config/sh/constraints.md: s/in in/in/
4967         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4968
4969 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
4970
4971         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4972         (AVX_FLOAT_MODE_P): Ditto.
4973         (AVX128_VEC_FLOAT_MODE_P): Ditto.
4974         (AVX256_VEC_FLOAT_MODE_P): Ditto.
4975         (AVX_VEC_FLOAT_MODE_P): Ditto.
4976         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4977         (UNSPEC_MASKSTORE): Ditto.
4978         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4979         Merge from <sse>_movmsk<ssemodesuffix> and
4980         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
4981         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
4982         iterator.
4983         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4984         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4985         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4986
4987 2011-04-18  Jan Hubicka  <jh@suse.cz>
4988
4989         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4990
4991         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4992         (want_inline_function_called_once_p): Break out the logic from
4993         ipa_inline.
4994         (edge_badness): Ensure that profile is not misupdated.
4995         (lookup_recursive_calls): Prioritize by call frequencies.
4996         (inline_small_functions): Move program size estimates here;
4997         actually process whole queue even when unit growth has been
4998         met. (to properly compute inline_failed reasons and for the
4999         case unit size decrease.) Revisit comments on recursive inlining.
5000         (ipa_inline): Remove unit summary code; first inline hot calls
5001         of functions called once, cold calls next.
5002         (order, nnodes): Remove unused variables.
5003         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
5004         (GTFILES): Remove ipa-inline.c
5005         * sel-sched.c (fill_insns): Silence uninitialized var warning.
5006
5007 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5008
5009         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5010
5011 2011-04-18  Jie Zhang  <jie@codesourcery.com>
5012             Richard Earnshaw  <rearnsha@arm.com>
5013
5014         * arm.c (neon_builtin_type_bits): Remove.
5015         (typedef enum neon_builtin_mode): New.
5016         (T_MAX): Don't define.
5017         (typedef enum neon_builtin_datum): Remove bits, codes[],
5018         num_vars and base_fcode.  Add mode, code and fcode.
5019         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5020         VAR10): Change accordingly.
5021         (neon_builtin_data[]): Change accordingly
5022         (arm_init_neon_builtins): Change accordingly.
5023         (neon_builtin_compare): Remove.
5024         (locate_neon_builtin_icode): Remove.
5025         (arm_expand_neon_builtin): Change accordingly.
5026
5027         * arm.h (enum arm_builtins): Move to ...
5028         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5029
5030         * arm.c (arm_builtin_decl): Declare.
5031         (TARGET_BUILTIN_DECL): Define.
5032         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5033         (arm_builtin_decls[]): New.
5034         (arm_init_neon_builtins): Store builtin declarations in
5035         arm_builtin_decls[].
5036         (arm_init_tls_builtins): Likewise.
5037         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
5038         (arm_builtin_decl): New.
5039
5040 2011-04-18  Richard Guenther  <rguenther@suse.de>
5041
5042         * tree.c (upper_bound_in_type): Build properly canonicalized
5043         INTEGER_CSTs.
5044         (lower_bound_in_type): Likewise.
5045
5046 2011-04-18  Richard Guenther  <rguenther@suse.de>
5047
5048         * gimple.h (gimple_call_addr_fndecl): New function.
5049         (gimple_call_fndecl): Use it.
5050         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5051         for direct calls.
5052         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5053         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5054
5055 2011-04-18  Richard Guenther  <rguenther@suse.de>
5056
5057         PR middle-end/48650
5058         * tree.c (build_string): STRING_CST is now derived from tree_typed.
5059
5060 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5061
5062         PR lto/48492
5063         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5064         DECL_IN_CONSTANT_POOL without RTL.
5065
5066 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
5067             Ira Rosen  <ira.rosen@linaro.org>
5068
5069         PR target/48252
5070         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5071         to match neon_vzip/vuzp/vtrn_internal.
5072         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5073         outputs explicitly dependent on both inputs.
5074         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5075
5076 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
5077
5078         PR tree-optimization/48616
5079         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5080         whether the shift is by scalar or vector based on whether all SLP
5081         scalar stmts have the same rhs.
5082
5083 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
5084
5085         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5086         memory operands.
5087
5088 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
5089
5090         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5091         registers.
5092
5093 2011-04-17  Jan Hubicka  <jh@suse.cz>
5094
5095         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5096         * cgrpahunit.c (cgraph_finalize_function): Do not set
5097         finalized_by_frontend.
5098         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5099         finalized_by_frontend.
5100
5101 2011-04-17  Jan Hubicka  <jh@suse.cz>
5102
5103         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5104         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5105         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5106         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5107         method.
5108         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5109         gimple-fold.c
5110         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5111
5112 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
5113
5114         PR lto/48538
5115         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5116         is non-null before accessing it.
5117         (input_cgraph): Remove trailing spaces.
5118
5119 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5120
5121         * params.def (sms-min-sc): New param flag.
5122         * modulo-sched.c (sms_schedule): Use it.
5123         * doc/invoke.texi (sms-min-sc): Document it.
5124
5125 2011-04-17  Jan Hubicka  <jh@suse.cz>
5126
5127         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5128         present, also set gimple_call_set_cannot_inline.
5129         * ipa-inline.c: Update toplevel comment.
5130         (MAX_TIME): Remove.
5131         (cgraph_clone_inlined_nodes): Fix linebreaks.
5132         (cgraph_check_inline_limits): Restructure to ...
5133         (caller_growth_limits): ... this one; be more tolerant
5134         on growth in nested inline chains; add explanatory comment;
5135         fix stack accounting thinko introduced by previous patch.
5136         (cgraph_default_inline_p): Remove.
5137         (report_inline_failed_reason): New function.
5138         (can_inline_edge_p): New function.
5139         (can_early_inline_edge_p): New function.
5140         (leaf_node_p): Move upwards in file.
5141         (want_early_inline_function_p): New function.
5142         (want_inline_small_function_p): New function.
5143         (want_inline_self_recursive_call_p): New function.
5144         (cgraph_edge_badness): Rename to ...
5145         (edge_badness) ... this one; fix linebreaks.
5146         (update_edge_key): Update call of edge_baddness; add
5147         detailed dump about queue updates.
5148         (update_caller_keys): Use can_inline_edge_p and
5149         want_inline_small_function_p.
5150         (cgraph_decide_recursive_inlining): Rename to...
5151         (recursive_inlining): Use can_inline_edge_p and
5152         want_inline_self_recursive_call_p; simplify and remove no longer
5153         valid FIXME.
5154         (cgraph_set_inline_failed): Remove.
5155         (add_new_edges_to_heap): Use can_inline_edge_p and
5156         want_inline_small_function_p.
5157         (cgraph_decide_inlining_of_small_functions): Rename to ...
5158         (inline_small_functions): ... this one; cleanup; use
5159         can/want predicates; cleanup debug ouput; work edges till fibheap
5160         is exhausted and do not stop once unit growth is reached; remove
5161         later loop processing remaining edges.
5162         (cgraph_flatten): Rename to ...
5163         (flatten_function): ... this one; use can_inline_edge_p
5164         and can_early_inline_edge_p predicates.
5165         (cgraph_decide_inlining): Rename to ...
5166         (ipa_inline): ... this one; remove unreachable nodes before
5167         inlining functions called once; simplify the pass.
5168         (cgraph_perform_always_inlining): Rename to ...
5169         (inline_always_inline_functions): ... this one; use
5170         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5171         (cgraph_decide_inlining_incrementally): Rename to ...
5172         (early_inline_small_functions): ... this one; simplify
5173         using new predicates; cleanup; make dumps prettier.
5174         (cgraph_early_inlining): Rename to ...
5175         (early_inliner): newer inline regular functions into always-inlines;
5176         fix updating of call stmt summaries.
5177         (pass_early_inline): Update for new names.
5178         (inline_transform): Fix formating.
5179         (gate_cgraph_decide_inlining): Rename to ...
5180         (pass_ipa_inline): ... this one.
5181         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5182         * ipa-inline-analysis.c (dump_inline_summary): Update.
5183         (compute_inline_parameters): Do not compute disregard_inline_limits;
5184         look for mismatching arguments.
5185         (estimate_growth): Fix handlig of non-trivial self recursion.
5186         (inline_read_summary): Do not read info->disregard_inline_limits.
5187         (inline_write_summary): Do not write info->disregard_inline_limits.
5188         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5189         and move all checks into can_inline_edge_p predicate; re-enable code
5190         comparing optimization levels.
5191         (expand_call_inline): Do not test inline_forbidden_into_p.
5192         * Makefile.in (ipa-inline.o): Update arguments.
5193
5194 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5195
5196         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5197
5198 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5199
5200         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5201
5202 2011-04-17  Michael Matz  <matz@suse.de>
5203
5204         PR tree-optimization/48622
5205         PR lto/48645
5206         * ipa-inline-analysis.c (inline_read_summary): Read size/time
5207         in same order as they're written.
5208
5209 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5210
5211         * config/pa/predicates.md: Reorganize and simplify predicates.
5212         Eliminate duplicate code checks.
5213         (arith_operand): Rename to arith14_operand
5214         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5215         * config/pa/pa.md: Use renamed operands.
5216         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5217         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5218         arith11_operand, adddi3_operand, indexed_memory_operand,
5219         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5220         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5221         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5222         move_dest_operand, move_src_operand, prefetch_cc_operand,
5223         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5224         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5225         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5226         div_operand, int5_operand, movb_comparison_operator,
5227         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5228         arith_double_operand, ireg_operand, lhs_lshift_operand,
5229         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5230         integer_store_memory_operand): Likewise.
5231         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5232         (integer_store_memory_operand, read_only_operand,
5233         function_label_operand, borx_reg_operand,
5234         non_hard_reg_operand): Likewise.
5235         (eq_neq_comparison_operator): Delete unused operator.
5236         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5237         function_label_operand.
5238         (emit_move_sequence): Likewise.
5239
5240 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5241
5242         * config/i386/sse.md (sseunpackmode): New mode attribute.
5243         (ssepackmode): Ditto.
5244         (vec_pack_trunc_<mode>): Macroize expander from
5245         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5246         (vec_unpacks_lo_<mode>): Macroize expander from
5247         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5248         (vec_unpacks_hi_<mode>): Macroize expander from
5249         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5250         (vec_unpacku_lo_<mode>): Macroize expander from
5251         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5252         (vec_unpacku_hi_<mode>): Macroize expander from
5253         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5254         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5255         ix86_expand_sse4_unpack.
5256         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5257
5258 2011-04-16  Jan Hubicka  <jh@suse.cz>
5259
5260         * cgraphbuild.c: Include ipa-inline.h.
5261         (reset_inline_failed): Use initialize_inline_failed.
5262         * cgraph.c: Include ipa-inline.h.
5263         (cgraph_create_node_1): Do not initialize estimated_growth.
5264         (initialize_inline_failed): More to ipa-inline-analysis.c
5265         (dump_cgraph_node): Do not dump inline flags.
5266         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5267         and disregard_inline_limits flags.
5268         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5269         time, size, estimated_growth.
5270         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5271         Update.
5272         * cgraphunit.c (cgraph_decide_is_function_needed): Use
5273         DECL_DISREGARD_INLINE_LIMITS.
5274         (cgraph_analyze_function): Do not initialize
5275         node->local.disregard_inline_limits.
5276         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5277         inlinable, versionable and disregard_inline_limits.
5278         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5279         cgraph_check_inline_limits, cgraph_default_inline_p,
5280         cgraph_edge_badness, update_caller_keys, update_callee_keys,
5281         add_new_edges_to_heap): Update.
5282         (cgraph_decide_inlining_of_small_function): Update; set
5283         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5284         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5285         cgraph_decide_inlining_incrementally): Update.
5286         * ipa-inline.h (inline_summary): Add inlinable, versionable,
5287         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5288         time, size and estimated_growth parameters.
5289         (estimate_edge_growth): Update.
5290         (initialize_inline_failed): Declare.
5291         * ipa-split.c: Include ipa-inline.h
5292         (execute_split_functions): Update.
5293         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5294         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5295         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5296         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5297         estimated_growth to INT_MIN.
5298         (inline_node_duplication_hook): Likewise.
5299         (dump_inline_summary): Dump new fields.
5300         (compute_inline_parameters): Update.
5301         (estimate_edge_time, estimate_time_after_inlining,
5302         estimate_size_after_inlining, estimate_growth, inline_read_summary,
5303         inline_write_summary):
5304         (initialize_inline_failed): Move here from cgraph.c.
5305         * tree-sra.c: Include ipa-inline.h.
5306         (ipa_sra_preliminary_function_checks): Update.
5307         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5308         ipa-inline.h.
5309
5310 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5311
5312         * config/i386/sse.md (V16): New mode iterator.
5313         (VI1, VI8): Ditto.
5314         (AVXMODEQI, AVXMODEDI): Remove.
5315         (sse2, sse3): New mode attribute.
5316         (mov<mode>): Use V16 mode iterator.
5317         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5318         (push<mode>1): Use V16 mode iterator.
5319         (movmisalign<mode>): Ditto.
5320         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5321         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5322         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5323         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5324         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5325         avx_movdqu<avxmodesuffix>.
5326         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5327         *avx_movdqu<avxmodesuffix>.
5328         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5329         avx_lddqu<avxmodesuffix>.
5330         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5331         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5332         avx_movnt<AVXMODEDI:mode>.
5333         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5334         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5335
5336 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
5337
5338         PR target/48629
5339         * haifa-sched.c (prune_ready_list, schedule_block): Use
5340         sched_pressure_p rather than flag_sched_pressure.
5341
5342 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
5343
5344         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5345         cgraph_get_node instead of cgraph_get_create_node.
5346
5347 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
5348
5349         * cfgexpand.c (expand_debug_expr): Use
5350         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5351
5352 2011-04-15  Michael Matz  <matz@suse.de>
5353
5354         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5355         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5356         * function.c (gimplify_parameters): Ditto.
5357         * gimplify.c (gimplify_vla_decl): Ditto.
5358
5359         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5360         (gimple_call_set_alloca_for_var): New inline function.
5361         (gimple_call_alloca_for_var_p): Ditto.
5362         * gimple.c (gimple_build_call_from_tree): Remember
5363         CALL_ALLOCA_FOR_VAR_P state.
5364         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5365
5366         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5367         calls if they were for VLA objects.
5368
5369 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5370
5371         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5372         of ADR_EXPRs.
5373
5374 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5375
5376         PR middle-end/48601
5377         * tree-emutls.c (lower_emutls_function_body): Call
5378         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
5379         result is non-NULL.
5380
5381 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
5382
5383         * c-decl.c (detect_field_duplicates): Call
5384         objc_detect_field_duplicates instead of objc_get_interface_ivars.
5385
5386 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
5387
5388         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5389         * gimple.c (gimple_asm_clobbers_memory_p): Define.
5390         * ipa-pure-const.c (check_stmt): Call it.
5391         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5392
5393 2011-04-15  Richard Guenther  <rguenther@suse.de>
5394
5395         PR tree-optimization/48290
5396         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5397         Properly decide inhibiting propagation based on the valueized
5398         operand.  Do loop-closed SSA form preserving here ...
5399         (init_copy_prop): ... not here.
5400
5401 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
5402
5403         PR target/48612
5404         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5405         (*ieee_smax<mode>3): Likewise.
5406
5407 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5408
5409         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5410         Replace match_operand with match_dup for the third operand in
5411         these expanders.
5412
5413 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5414
5415         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5416         to track processing of conditionals.  Update all callers.
5417         (try_combine, simplify_if_then_else): Update.
5418
5419 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5420
5421         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5422         -fsched-pressure.
5423
5424 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
5425
5426         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5427         instead of match_operand for operand 3.
5428
5429 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
5430
5431         * recog.h (insn_operand_data): Add an "allows_mem" field.
5432         * genoutput.c (output_operand_data): Initialize it.
5433         * optabs.c (maybe_legitimize_operand_same_code): New function.
5434         (maybe_legitimize_operand): Use it when matching the original
5435         op->value.
5436
5437 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5438
5439         * gimplify.c: Fix issues in comments throughout.
5440         (voidify_wrapper_expr): Fix long line.
5441         (build_stack_save_restore): Likewise.
5442         (gimplify_loop_expr): Likewise.
5443         (gimplify_compound_lval): Likewise.
5444         (gimplify_init_ctor_eval): Likewise.
5445         (gimplify_modify_expr_rhs): Likewise.
5446         (omp_notice_threadprivate_variable): Likewise.
5447
5448 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5449
5450         * cfgexpand.c (expand_call_stmt): Convert the function type to the
5451         original one if this is not a builtin function.
5452
5453 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
5454
5455         PR target/48605
5456         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5457         offset it as needed based on top 2 bits in operands[3], change
5458         MEM mode to SFmode and mask those 2 bits away from operands[3].
5459
5460 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5461
5462         * c-parser.c (c_parser_objc_protocol_definition): Updated for
5463         change from objc_declare_protocols() to objc_declare_protocol().
5464
5465 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
5466
5467         * config/i386/sse.md (sse4_1): New mode attribute.
5468         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5469         avx_blend<ssemodesuffix><avxmodesuffix> and
5470         sse4_1_blend<ssemodesuffix> using VF mode iterator.
5471         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5472         avx_blendv<ssemodesuffix><avxmodesuffix> and
5473         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5474         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5475         avx_dp<ssemodesuffix><avxmodesuffix> and
5476         sse4_1_dp<ssemodesuffix> using VF mode iterator.
5477         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5478         (sse4_1_packusdw): Merge with *avx_packusdw.
5479         (sse4_1_pblendvb): Merge with *avx_pblendvb.
5480         (sse4_1_pblendw): Merge with *avx_pblendw.
5481         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5482         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5483         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5484         VF mode iterator.
5485         (sse4_1_round<ssescalarmodesuffix>): Merge with
5486         *avx_round<ssescalarmodesuffix>.
5487         (aesenc): Merge with *avx_aesenc.
5488         (aesenclast): Merge with *avx_aesenclast.
5489         (aesdec): Merge with *avx_aesdec.
5490         (aesdeclast): Merge with *avx_aesdeclast.
5491         (pclmulqdq): Merge with *pclmulqdq.
5492         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5493         New predicate.
5494         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5495
5496 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
5497
5498         PR middle-end/48608
5499         * cfgexpand.c (get_decl_align_unit): Renamed to ...
5500         (align_local_variable): This.  Update DECL_ALIGN.
5501         (add_stack_var): Updated.
5502         (expand_one_stack_var): Likewise.
5503
5504 2011-04-14  Richard Guenther  <rguenther@suse.de>
5505
5506         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5507         Remove.
5508         (dse_initialize_block_local_data, dse_leave_block,
5509         record_voperand_set, get_stmt_uid): Likewise.
5510         (dse_possible_dead_store_p): Allow any kind of killing stmt.
5511         (dse_optimize_stmt): Remove voperand set handling code.
5512         Simplify and improve to handle any kind of killing stmt.
5513         (dse_record_phi): Remove.
5514         (dse_enter_block): Simplify.
5515         (tree_ssa_dse): Likewise.
5516         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5517
5518 2011-04-14  Jan Hubicka  <jh@suse.cz>
5519
5520         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5521         * cgraph.h (struct inline_summary): Move to ipa-inline.h
5522         (cgraph_local_info): Remove inline_summary.
5523         * ipa-cp.c: Include ipa-inline.h.
5524         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5525         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5526         accesor.
5527         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5528         (input_overwrite_node): Do not set inline summary.
5529         (input_node): Do not stream inline summary.
5530         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5531         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5532         growth; we do not have inline parameters computed for that anyway.
5533         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5534         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5535         (inline_summary_t): New type and VECtor.
5536         (debug_inline_summary, dump_inline_summaries): Declare.
5537         (inline_summary): Use VOCtor.
5538         (estimate_edge_growth): Kill hack computing call stmt size directly.
5539         * lto-section-in.c (lto_section_name): Add inline section.
5540         * ipa-inline-analysis.c: Include lto-streamer.h
5541         (node_removal_hook_holder, node_duplication_hook_holder): New holders
5542         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5543         (inline_summary_vec): Define.
5544         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5545         dump_inline_summaries): New functions.
5546         (estimate_function_body_sizes): Properly compute size/time of outgoing
5547         calls.
5548         (compute_inline_parameters): Alloc inline_summary; do not compute
5549         size/time of incomming calls.
5550         (estimate_edge_time): Avoid missing time summary hack.
5551         (inline_read_summary): Read inline summary info.
5552         (inline_write_summary): Write inline summary info.
5553         (inline_free_summary): Free all hooks and inline summary vector.
5554         * lto-streamer.h: Add LTO_section_inline_summary section.
5555         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5556         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5557
5558 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5559
5560         * tree-vectorizer.h (vect_strided_store_supported): Add a
5561         HOST_WIDE_INT argument.
5562         (vect_strided_load_supported): Likewise.
5563         (vect_permute_store_chain): Return void.
5564         (vect_transform_strided_load): Likewise.
5565         (vect_permute_load_chain): Delete.
5566         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5567         count argument.  Check that the count is a power of two.
5568         (vect_strided_load_supported): Likewise.
5569         (vect_permute_store_chain): Return void.  Update after above changes.
5570         Assert that the access is supported.
5571         (vect_permute_load_chain): Likewise.
5572         (vect_transform_strided_load): Return void.
5573         * tree-vect-stmts.c (vectorizable_store): Update calls after
5574         above interface changes.
5575         (vectorizable_load): Likewise.
5576         (vect_analyze_stmt): Don't check for strided powers of two here.
5577
5578 2011-04-14  Richard Guenther  <rguenther@suse.de>
5579
5580         PR tree-optimization/48590
5581         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5582         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5583         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5584         BUILT_IN_STACK_SAVE.
5585         * tree-ssa-dce.c (propagate_necessity): Handle
5586         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5587
5588 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5589
5590         * c-parser.c (c_parser_objc_class_declaration): Updated call to
5591         objc_declare_class.
5592
5593 2011-04-14  Richard Guenther  <rguenther@suse.de>
5594
5595         * tree.h (get_object_alignment_1): Declare.
5596         * builtins.c (get_object_alignment_1): Split out worker from ...
5597         (get_object_alignment): ... here.
5598         * fold-const.c (get_pointer_modulus_and_residue): Use
5599         get_object_alignment_1.
5600
5601 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5602
5603         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5604         type parameter.
5605         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5606         parameter.  Generalise code to handle arrays as well as vectors.
5607         (vect_setup_realignment): Update accordingly.
5608         * tree-vect-stmts.c (vectorizable_store): Likewise.
5609         (vectorizable_load): Likewise.
5610
5611 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5612
5613         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5614         within the per-copy loop.
5615
5616 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5617
5618         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5619         in the dump file.
5620
5621 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5622
5623         * doc/options.texi (Negative): Explicitly mention that the
5624         Negative chain must be circular.
5625
5626 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
5627
5628         * function.h (block_chainon): Declare.
5629         * function.c (block_chainon): Define.
5630
5631 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
5632             Eric Weddington  <eric.weddington@atmel.com>
5633             Georg-Johann Lay  <avr@gjlay.de>
5634
5635         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5636         New Includes
5637         (avr_init_builtins, avr_expand_builtin,
5638         avr_expand_delay_cycles, avr_expand_unop_builtin,
5639         avr_expand_binop_builtin ): New functions.
5640         (avr_builtin_id): New enum
5641         (struct avr_builtin_description): New struct
5642         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5643         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5644
5645         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5646         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5647         UNSPECV_DELAY_CYCLES): new enumeration values
5648         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5649         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5650         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5651         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5652         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5653         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5654         "fmulsu"): New insns
5655
5656         * config/avr/avr-c.c: fix line endings
5657         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5658         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5659         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5660         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5661         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5662
5663         * doc/extend.texi (AVR Built-in Functions): New node
5664         (Target Builtins): Add documentation of AVR
5665         built-in functions.
5666
5667 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
5668
5669         PR target/44643
5670         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5671         alone. Error if non-const data has attribute progmem.
5672
5673 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5674
5675         * tree.h (struct tree_constructor): Include tree_typed instead of
5676         tree_common.
5677         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5678         TS_TYPED instead of TS_COMMON.
5679
5680 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5681
5682         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5683         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5684         (sse2_psadbw): Merge with *avx_psadbw.
5685         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5686         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5687         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5688         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5689         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5690         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5691         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5692         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5693         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5694         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5695         (ssse3_palignrti): Merge with *avx_palignrti.
5696
5697 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5698
5699         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5700         * tree-ssanames.c (fini_ssanames): VEC_free it.
5701         (make_ssa_name_fn): Update for VECness of free_ssanames.
5702         (release_ssa_name, release_dead_ssa_names): Likewise.
5703         * tree.h (struct tree_ssa_name): Include tree_typed instead of
5704         tree_common.
5705         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5706         TS_TYPED instead of TS_COMMON.
5707
5708 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5709
5710         * postreload-gcse.c (gcse_after_reload_main): Add calls to
5711         statistics_counter_event.
5712         * tree-ssa-copyrename.c (stats): Define.
5713         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
5714         statistics_counter_event.
5715         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5716         (bswap_stats, widen_mul_stats): Define.
5717         (insert_reciprocals): Increment rdivs_inserted.
5718         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
5719         rfuncs_inserted.  Add calls to statistics_counter_event.
5720         (execute_cse_sincos_1): Increment inserted.
5721         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
5722         statistics_counter_event.
5723         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
5724         of bswap_stats.  Add calls to statistics_counter_event.
5725         (convert_mult_to_widen): Increment widen_mults_inserted.
5726         (convert_plusminus_to_widen): Increment maccs_inserted.
5727         (convert_mult_to_fma): Increment fmas_inserted.
5728         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
5729         calls to statistics_counter_event.
5730
5731 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5732
5733         PR rtl-optimization/48455
5734         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5735         `temp_costs->mem_cost'.
5736
5737 2011-04-13  Jan Hubicka  <jh@suse.cz>
5738
5739         * ipa-inline.h: New file.
5740         * ipa-inline-analysis.c: New file. Broken out of ...
5741         * ipa-inline.c: ... this file; update toplevel comment;
5742         include ipa-inline.h
5743         (inline_summary): Move to ipa-inline.h
5744         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5745         ipa-inline-analysis.c.
5746         (cgraph_estimate_time_after_inlining): Rename to
5747         estiamte_time_after_inlining; move to ipa-inline-analysis.c
5748         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5749         to estimate_edge_growth.
5750         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5751         rename to estimate_size_after_inlining.
5752         (cgraph_mark_inline_edge): Update for new naming convention.
5753         (cgraph_check_inline_limits): Likewise.
5754         (cgraph_edge_badness): Likewise.
5755         (cgraph_decide_recursive_inlining): Likewise.
5756         (cgraph_decide_inlining_of_small_functions): Likewise.
5757         (cgraph_decide_inlining_incrementally): Likewise.
5758         (cgraph_estimate_growth): Rename to estimate_growth; move to
5759         ipa-inline-analysis.c.
5760         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5761         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5762         (compute_inline_parameters): Likewise.
5763         (compute_inline_parameters_for_current): Likewise.
5764         (pass_inline_parameters): Likewise.
5765         (inline_indirect_intraprocedural_analysis): Likewise.
5766         (analyze_function): Rename to inline_analyze_function; likewise.
5767         (add_new_function): Move to ipa-inline-analysis.c.
5768         (inline_generate_summary): Likewise.
5769         (inline_read_summary): Likewise.
5770         (inline_write_summary): Likewise.
5771         * Makefile.in (ipa-inline-analysis.c): New file.
5772
5773 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5774
5775         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5776         * configure: Regenerate.
5777
5778 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5779
5780         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5781         instead of tree_common.
5782         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5783         Likewise.
5784         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5785         TS_TYPED rather than TS_COMMON.
5786         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5787
5788 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
5789
5790         PR target/45263
5791         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5792         r20 around calls of __tablejump_elpm__
5793
5794 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
5795
5796         PR middle-end/48591
5797         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5798         NULL.
5799         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5800
5801 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
5802
5803         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5804         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5805         (cfi_vec): New typedef.
5806         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5807         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5808         (cie_cfi_vec): New static variable.
5809         (cie_cfi_head): Delete.
5810         (add_cfi): Accept a cfi_vec * as first argument. All callers and
5811         declaration changed. Use vector rather than list operations.
5812         (new_cfi): Don't initialize the dw_cfi_next field.
5813         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5814         rather than list operations.
5815         (lookup_cfa): Use vector rather than list operations.
5816         (output_cfis): New argument upto. Accept a cfi_vec rather than
5817         a dw_cfi_ref list head as argument. All callers changed.
5818         Iterate over the vector using upto as a maximum index.
5819         (output_all_cfis): New static function.
5820         (output_fde): Use vector rather than list operations. Use the
5821         new upto argument for output_cfis rather than manipulating a
5822         list.
5823         (dwarf2out_begin_prologue): Change initializations to match
5824         new struct members.
5825         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5826         from the vector length rather than searching for the end of a list.
5827         Use output_all_cfis.
5828         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5829
5830 2011-04-13  Nick Clifton  <nickc@redhat.com>
5831
5832         * config/rx/rx.md (movmemsi): Do not use this pattern when
5833         volatile pointers are involved.
5834
5835 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5836
5837         * config/i386/sse.md (pinsrbits): Remove.
5838         (sse2_packsswb): Merge with *avx_packsswb.
5839         (sse2_packssdw): Merge with *avx_packssdw.
5840         (sse2_packuswb): Merge with *avx_packuswb.
5841         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5842         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5843         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5844         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5845         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5846         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5847         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5848         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5849         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5850         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5851         (sse2_loadld): Merge with *avx_loadld.
5852         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5853         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5854         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5855         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5856         (vec_concatv2di): Merge with *vec_concatv2di_avx.
5857
5858 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
5859
5860         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5861         calling TREE_CHAIN.
5862         * print-tree.c (print_node): Likewise.
5863         * tree-inline.c (copy_tree_r): Likewise.
5864         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5865         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5866         instead of TS_COMMON.
5867         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5868         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5869         (copy_node_stat): Zero TREE_CHAIN only if necessary.
5870         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5871         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5872         ...and these...
5873         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5874         * tree.h: ...here.
5875         (TREE_CHAIN): Check for a TS_COMMON structure.
5876         (TREE_TYPE): Check for a TS_TYPED structure.
5877
5878 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
5879
5880         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5881         cgraph_get_create_node instead of cgraph_node.
5882
5883 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5884
5885         * c-parser.c (c_parser_initelt): Updated call to
5886         objc_build_message_expr.
5887         (c_parser_postfix_expression): Likewise.
5888
5889 2011-04-12  Kai Tietz  <ktietz@redhat.com>
5890
5891         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5892         MASK_MS_BITFIELD_LAYOUT bit.
5893
5894 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5895
5896         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5897         assert it is always true.
5898         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5899         moves.
5900
5901 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5902
5903         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5904         compiling Objective-C to be more efficient.
5905
5906 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5907
5908         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5909         argv_copied.
5910
5911 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5912
5913         * recog.h, genoutput.c, optabs.c: Revert last patch.
5914
5915 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5916
5917         PR target/48090
5918         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5919
5920 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5921
5922         * recog.h (insn_operand_data): Add an "allows_mem" field.
5923         * genoutput.c (output_operand_data): Initialize it.
5924         * optabs.c (maybe_legitimize_operand_same_code): New function.
5925         (maybe_legitimize_operand): Use it when matching the original
5926         op->value.
5927
5928 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5929
5930         * genpreds.c (process_define_predicate): Move most processing
5931         to gensupport.c.  Continue to validate the expression.
5932         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5933         (process_define_predicate): Move processing to gensupport.c.
5934         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5935         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5936         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
5937         argument.
5938         (valid_predicate_name_p): New function, split out from old
5939         genpreds.c:process_define_predicate.
5940         (process_define_predicate): New function, combining code from
5941         old genpreds.c and genrecog.c functions.
5942         (process_rtx): Call it for DEFINE_PREDICATE and
5943         DEFINE_SPECIAL_PREDICATE.
5944
5945 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5946
5947         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5948         size of a '%A' memory reference.
5949         (T_DREG, T_QREG): New neon_builtin_type_bits.
5950         (arm_init_neon_builtins): Assert that the load and store operands
5951         are neon_struct_operands.
5952         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5953         (NEON_ARG_MEMORY): New builtin_arg.
5954         (neon_dereference_pointer): New function.
5955         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5956         Handle NEON_ARG_MEMORY.
5957         (arm_expand_neon_builtin): Update after above interface changes.
5958         Use NEON_ARG_MEMORY for loads and stores.
5959         * config/arm/predicates.md (neon_struct_operand): New predicate.
5960         * config/arm/iterators.md (V_two_elem): Tweak formatting.
5961         (V_three_elem): Use BLKmode for accesses that have no associated mode.
5962         (V_four_elem): Tweak formatting.
5963         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5964         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5965         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5966         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5967         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5968         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5969         (neon_vst4<mode>): Replace pointer operand with a memory operand.
5970         Use %A in the output template.
5971         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5972         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5973         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5974         the width of the memory access.  Remove post-increment.
5975         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5976
5977 2011-04-12  Nick Clifton  <nickc@redhat.com>
5978
5979         * config/v850/v850.c (expand_prologue): Do not use the CALLT
5980         instruction for interrupt handlers if the target is the basic V850
5981         architecture.
5982         (expand_epilogue): Likewise.
5983
5984 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5985
5986         PR rtl-optimization/48549
5987         * combine.c (propagate_for_debug): Also stop after BB_END of
5988         this_basic_block.  Process LAST and just stop processing after it.
5989         (combine_instructions): If last_combined_insn has been deleted,
5990         set last_combined_insn to its PREV_INSN.
5991
5992 2011-04-12  Richard Guenther  <rguenther@suse.de>
5993
5994         PR tree-optimization/46076
5995         * gimple.h (struct gimple_statement_call): Add fntype field.
5996         (gimple_call_fntype): Adjust.
5997         (gimple_call_set_fntype): New function.
5998         * gimple.c (gimple_build_call_1): Set the call function type.
5999         * gimplify.c (gimplify_call_expr): Preserve the function
6000         type the frontend used for the call.
6001         (gimplify_modify_expr): Likewise.
6002         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
6003         function type.
6004         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6005         function type.
6006         * tree-ssa.c (useless_type_conversion_p): Function pointer
6007         conversions are useless.
6008
6009 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6010
6011         * cgraph.h (cgraph_node): Remove function declaration.
6012         (cgraph_create_node): Declare.
6013         (cgraph_get_create_node): Likewise.
6014         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6015         Updated all callers.
6016         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6017         the decl does not already exist.  Call cgraph_get_create_node instead
6018         of cgraph_node.
6019         (cgraph_get_create_node): New function.
6020         (cgraph_same_body_alias): Update comment.
6021         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6022         assert it does not return NULL.
6023         (cgraph_update_edges_for_call_stmt): Likewise.
6024         (cgraph_clone_edge): Likewise.
6025         (cgraph_create_virtual_clone): Likewise.
6026         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6027         instead of cgraph_node.
6028         (cgraph_add_new_function): Call cgraph_create_node or
6029         cgraph_get_create_node instead of cgraph_node.
6030         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6031         instead of cgraph_node.
6032         (record_eh_tables): Likewise.
6033         (mark_address): Likewise.
6034         (mark_load): Likewise.
6035         (build_cgraph_edges): Call cgraph_get_create_node instead
6036         of cgraph_node.
6037         (rebuild_cgraph_edges): Likewise.
6038         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6039         instead of cgraph_node.
6040         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6041         cgraph_node.
6042         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6043         cgraph_create_node instead of cgraph_node.
6044         * c-decl.c (finish_function): Call cgraph_get_create_node instead
6045         of cgraph_node.
6046         * lto-cgraph.c (input_node): Likewise.
6047         * lto-streamer-in.c (input_function): Likewise.
6048         * varasm.c (mark_decl_referenced): Likewise.
6049         (assemble_alias): Likewise.
6050
6051 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6052
6053         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6054         instead of cgraph_node and assert it does not return NULL.
6055         * lto-streamer-in.c (lto_read_body): Likewise.
6056         * omp-low.c (new_omp_context): Likewise.
6057         (create_task_copyfn): Likewise.
6058         * tree-emutls.c (lower_emutls_function_body): Likewise.
6059         * matrix-reorg.c (transform_allocation_sites): Likewise.
6060
6061 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6062
6063         PR c/48552
6064         * c-typeck.c (build_asm_expr): Error out on attempts to use
6065         void type outputs or inputs for constraints that allow reg or
6066         don't allow memory.
6067
6068 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
6069             Richard Earnshaw  <rearnsha@arm.com>
6070
6071         PR target/48250
6072         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6073         to use sign-magnitude offsets. Reject unsupported unaligned
6074         cases. Add detailed description in comments.
6075         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6076         condition from TARGET_32BIT to TARGET_ARM.
6077
6078 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
6079
6080         * tree.h (struct typed_tree): New.
6081         (struct tree_common): Include it instead of tree_base.
6082         (TREE_TYPE): Update for new location of type field.
6083         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6084         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6085         (union tree_node): Add typed field.
6086         * treestruct.def (TS_TYPED): New.
6087         * lto-streamer.c (check_handled_ts_structures): Handle it.
6088         * tree.c (MARK_TS_TYPED): New macro.
6089         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6090
6091 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6092
6093         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6094         (force_nonfallthru): Do not alter the loop nest if no basic block
6095         was created.
6096
6097 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6098
6099         * config/i386/sse.md (VI): New mode iterator.
6100         (SSEMODEI): Remove.
6101         (AVX256MODEI): Ditto.
6102         (AVXMODEF4P): Ditto.
6103         (avxvecpsmode): Ditto.
6104         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
6105         (sse2_andnot<mode>3): New expander.
6106         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6107         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
6108         (<any_logic:code><mode>3): Use VI mode iterator.
6109         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6110         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
6111         (*andnottf3): Handle AVX three-operand constraints.
6112         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6113
6114 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6115             Robert Millan  <rmh@gnu.org>
6116
6117         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6118         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6119         GNU_USER_DYNAMIC_LINKER64): Define.
6120         (REG_NAME): Don't undefine.
6121         (MD_UNWIND_SUPPORT): Undefine.
6122         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6123         (REG_NAME): Don't undefine.
6124         (MD_UNWIND_SUPPORT): Undefine.
6125         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6126
6127 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6128
6129         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6130         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6131
6132 2011-04-11  Xinliang David Li  <davidxl@google.com>
6133
6134         * value-profile.c (check_ic_target): New function.
6135         (gimple_ic_transform): Sanity check indirect call target.
6136         * gimple-low.c (gimple_check_call_args): Interface change.
6137         (gimple_check_call_matching_types): New function.
6138         * tree-inline.c (tree_can_inline_p): Call new function.
6139
6140 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
6141
6142         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6143         tree-pretty-print.h & realmpfr.h.
6144
6145 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
6146
6147         PR middle-end/48464
6148         * ira.c (setup_pressure_classes): Fix typo in loop condition.
6149         (setup_allocno_and_important_classes): Ditto.
6150
6151 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6152
6153         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6154         GNU_USER_DYNAMIC_LINKER.
6155         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6156         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6157         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6158         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6159         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6160         GNU_USER_TARGET_OS_CPP_BUILTINS.
6161         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6162         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6163         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6164         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6165         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6166         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6167         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6168         GNU_USER_TARGET_OS_CPP_BUILTINS.
6169         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6170         GNU_USER_DYNAMIC_LINKER.
6171         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6172         GNU_USER_TARGET_OS_CPP_BUILTINS.
6173         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6174         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6175         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6176         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6177         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6178         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6179         GNU_USER_DYNAMIC_LINKER64): Remove.
6180         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6181         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6182         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6183         GNU_USER_DYNAMIC_LINKER.
6184         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6185         GNU_USER_TARGET_OS_CPP_BUILTINS.
6186         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6187         GNU_USER_TARGET_OS_CPP_BUILTINS.
6188         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6189         to GNU_USER_TARGET_OS_CPP_BUILTINS.
6190         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6191         GNU_USER_TARGET_OS_CPP_BUILTINS.
6192         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6193         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6194         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6195         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6196         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6197         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6198         GNU_USER_DYNAMIC_LINKER.
6199         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6200         GNU_USER_TARGET_OS_CPP_BUILTINS.
6201         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6202         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6203         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6204         GNU_USER_DYNAMIC_LINKER.
6205         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6206         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6207         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6208         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6209         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6210         GNU_USER_DYNAMIC_LINKER.
6211         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6212         GNU_USER_DYNAMIC_LINKERN32.
6213         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6214         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
6215         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
6216         GNU_USER_DYNAMIC_LINKER32.
6217         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6218         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6219         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6220         GNU_USER_DYNAMIC_LINKER.
6221         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6222         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6223         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6224         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6225         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6226         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6227         GNU_USER_DYNAMIC_LINKER32.
6228         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6229         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6230         GNU_USER_DYNAMIC_LINKER.
6231         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6232         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6233         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6234         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
6235         GNU_USER_DYNAMIC_LINKER64.
6236         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6237         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6238         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6239         GNU_USER_DYNAMIC_LINKER.
6240         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6241         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6242         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6243         GNU_USER_DYNAMIC_LINKER.
6244         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6245         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6246         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6247         GNU_USER_DYNAMIC_LINKER32.
6248         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6249         GNU_USER_DYNAMIC_LINKER64.
6250         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6251         GNU_USER_DYNAMIC_LINKER64.
6252         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6253         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6254         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6255         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6256         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6257
6258 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6259
6260         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
6261         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6262         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6263         GNU_USER_DYNAMIC_LINKER.
6264         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6265         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
6266         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6267         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6268         GNU_USER_DYNAMIC_LINKER64.
6269         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6270         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6271         GNU_USER_LINK_EMULATION.
6272         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6273         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6274         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6275         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6276         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6277         CPP_SPEC, CC1_SPEC): Remove.
6278         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6279         (GNU_USER_DYNAMIC_LINKER): Define.
6280         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6281         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6282         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6283         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6284         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6285         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6286         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6287         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6288         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6289         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6290         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6291         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6292         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6293         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6294         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6295         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6296         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6297         GNU_USER_DYNAMIC_LINKER.
6298         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6299         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6300         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6301         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6302         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6303         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6304         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6305         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6306         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6307         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6308
6309 2011-04-11  Kai Tietz  <ktietz@redhat.com>
6310
6311         PR target/9601
6312         PR target/11772
6313         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6314         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6315         comment.
6316         (ix86_is_msabi_thiscall): Removed.
6317         (ix86_is_type_thiscall): Likewise.
6318         (ix86_get_callcvt): New function.
6319         (ix86_comp_type_attributes): Simplify check.
6320         (ix86_function_regparm): Use ix86_get_callcvt for calling
6321         convention attribute checks.
6322         (ix86_return_pops_args): Likewise.
6323         (ix86_static_chain): Likewise.
6324         (x86_this_parameter): Likewise.
6325         (x86_output_mi_thunk): Likewise.
6326         (ix86_function_type_abi): Optimize check for types without attributes.
6327         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6328         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6329         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6330         by flag-values.
6331         (IX86_BASE_CALLCVT): Helper macro.
6332         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6333         Use ix86_get_callcvt for calling convention attribute checks and avoid
6334         symbol-decoration for stdcall in TARGET_RTD case.
6335         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6336         Likewise.
6337         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6338         for declaration.
6339
6340 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6341
6342         * config/i386/sse.md (VI_128): New mode iterator.
6343         (VI12_128): Rename from SSEMODE12.
6344         (VI14_128): Rename from SSEMODE14.
6345         (VI124_128): New mode iterator.
6346         (VI24_128): Rename from SSEMODE248.
6347         (VI248_128): Rename from SSEMODE248.
6348         (SSEMODE124C8): Remove.
6349         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6350         (*sse2_<plusminus_insn><mode>3): Merge with
6351         *avx_<plusminus_insn><mode>3.
6352         (*mulv8hi3): Merge with *avx_mulv8hi3.
6353         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6354         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6355         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6356         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6357         (ashr<mode>3): Merge with *avx_ashr<mode>3.
6358         (lshr<mode>3): Merge with *avx_lshr<mode>3.
6359         (ashl<mode>3): Merge with *avx_ashl<mode>3.
6360         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6361         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6362         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6363         (*<smaxmin:code>v8hi3): Ditto.
6364         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6365         (*<smaxmin:code>v16qi3): Ditto.
6366         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6367         (*sse2_eq<mode>3): Ditto.
6368         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6369         (*sse2_gt<mode>3): Ditto.
6370         (vcondv2di): Split out of vcond<mode>.
6371         (vconduv2di): Split out of vcondu<mode>.
6372
6373 2011-04-11  Richard Guenther  <rguenther@suse.de>
6374
6375         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6376         before calling tree_low_cst.
6377
6378 2011-04-11  Richard Guenther  <rguenther@suse.de>
6379
6380         * stor-layout.c (layout_type): Compute all array index size operations
6381         in the original type.
6382         (initialize_sizetypes): Add comment.
6383         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6384
6385 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6386
6387         * common.opt (Tbss=, Tdata=, Ttext=): New options.
6388
6389 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6390
6391         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6392         of cgraph_node, handle NULL return value.
6393         (cgraph_global_info): Likewise.
6394         (cgraph_rtl_info): Likewise.
6395         * tree-inline.c (estimate_num_insns): Likewise.
6396         * gimplify.c (unshare_body): Likewise.
6397         (unvisit_body): Likewise.
6398         (gimplify_body): Likewise.
6399         * predict.c (optimize_function_for_size_p): Likewise.
6400         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6401         (call_may_clobber_ref_p_1): Likewise.
6402         * varasm.c (function_section_1): Likewise.
6403         (assemble_start_function): Likewise.
6404
6405 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6406
6407         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6408         of cgraph_node.
6409         * final.c (rest_of_clean_state): Likewise.
6410         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6411         * passes.c (pass_init_dump_file): Likewise.
6412         (execute_all_ipa_transforms): Likewise.
6413         (function_called_by_processed_nodes_p): Likewise.
6414         * predict.c (maybe_hot_frequency_p): Likewise.
6415         (probably_never_executed_bb_p): Likewise.
6416         (compute_function_frequency): Likewise.
6417         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6418         (unnest_nesting_tree_1): Likewise.
6419         (lower_nested_functions): Likewise.
6420         * tree-optimize.c (execute_fixup_cfg): Likewise.
6421         (tree_rest_of_compilation): Likewise.
6422         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6423         * tree-sra.c (ipa_early_sra): Likewise.
6424         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6425         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6426         * ipa.c (record_cdtor_fn): Likewise.
6427         * ipa-inline.c (cgraph_early_inlining): Likewise.
6428         (compute_inline_parameters_for_current): Likewise.
6429         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6430         * ipa-pure-const.c (local_pure_const): Likewise.
6431         * ipa-split.c (split_function): Likewise.
6432         (execute_split_functions): Likewise.
6433         * cgraphbuild.c (build_cgraph_edges): Likewise.
6434         (rebuild_cgraph_edges): Likewise.
6435         (cgraph_rebuild_references): Likewise.
6436         (remove_cgraph_callee_edges): Likewise.
6437         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6438         (verify_cgraph_node): Likewise.
6439         (cgraph_analyze_functions): Likewise.
6440         (cgraph_preserve_function_body_p): Likewise.
6441         (save_inline_function_body): Likewise.
6442         (save_inline_function_body): Likewise.
6443         * tree-inline.c (copy_bb): Likewise.
6444         (optimize_inline_calls): Likewise.
6445
6446 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6447
6448         PR tree-optimization/48195
6449         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6450         ipa_check_create_edge_args.
6451         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6452         ipa_check_create_edge_args.
6453         * ipa-inline.c (inline_generate_summary): Do not call
6454         ipa_check_create_node_params and ipa_check_create_edge_args.
6455         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6456         ipa_check_create_edge_args.
6457
6458 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
6459
6460         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6461         instead of loop.
6462         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6463         * function.c (record_hard_reg_sets): Likewise.
6464         * ira.c (compute_regs_asm_clobbered): Likewise.
6465         * sched-deps.c (sched_analyze_1): Likewise.
6466         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6467
6468 2011-04-09  Xinliang David Li  <davidxl@google.com>
6469
6470         PR tree-optimization/PR48484
6471         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6472         has_valid_pred lazily
6473
6474 2011-04-09  Duncan Sands  <baldrick@free.fr>
6475
6476         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6477
6478 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6479
6480         * combine.c (combine_validate_cost): Adjust comments.  Set registered
6481         cost of I0 to zero at the end, if any.
6482
6483 2011-04-08  Xinliang David Li  <davidxl@google.com>
6484
6485         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6486         to insane profile data.
6487
6488 2011-04-08  Xinliang David Li  <davidxl@google.com>
6489
6490         * ipa-cp.c (ipcp_update_profiling): Correct
6491          negative scale factor due to insane profile data.
6492
6493 2011-04-08  Xinliang David Li  <davidxl@google.com>
6494
6495         * final.c (dump_basic_block_info): New function.
6496         (final): Dump basic block.
6497         (final_scan_insn): Remove old dump.
6498
6499 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
6500
6501         PR target/47829
6502         * config.gcc (i386-*-freebsd): Disable unwind table generation for
6503         crtbegin/crtend.
6504
6505 2011-04-08  Michael Matz  <matz@suse.de>
6506
6507         PR middle-end/48389
6508         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6509         functions.
6510         (rebuild_jump_labels): Call rebuild_jump_labels_1.
6511         * rtl.h (rebuild_jump_labels_chain): Declare.
6512         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6513         insns inserted on edges.
6514
6515 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
6516
6517         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6518         * config/arm/arm-arches.def: New.
6519         * config/arm/arm-opts.h: New.
6520         * config/arm/genopt.sh: New.
6521         * config/arm/arm-tables.opt: New (generated).
6522         * config/arm/arm.c (arm_handle_option, arm_target_help,
6523         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6524         (all_architectures): Get most table contents from arm-arches.def.
6525         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6526         arm_selected_tune here.
6527         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6528         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6529         (march=, mcpu=, mtune=): Use Enum and Var.
6530         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6531         (arm.o): Update dependencies.
6532
6533 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
6534
6535         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6536         of header_file.
6537         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6538         (write_typed_alloc_defns): Likewise.
6539         (main): Calls write_typed_alloc_defns with output_header.
6540
6541 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
6542
6543         PR inline-asm/48435
6544         * ira-color.c (setup_profitable_hard_regs): Add comments.
6545         Don't take prohibited hard regs into account.
6546         (setup_conflict_profitable_regs): Rename to
6547         get_conflict_profitable_regs.
6548         (check_hard_reg_p): Check prohibited hard regs.
6549
6550 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
6551
6552         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6553         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6554         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6555
6556 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6557
6558         PR target/48366
6559         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6560         move from floating point to shift amount register.
6561         (emit_move_sequence): Remove secondary reload support for floating
6562         point to shift amount amount register copies.
6563         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6564         amount register copies.
6565         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6566         register, return false if mode isn't a scalar integer mode.
6567         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6568
6569 2011-04-08  Richard Guenther  <rguenther@suse.de>
6570
6571         * gimple.c (gimple_call_flags): Remove kludge.
6572
6573 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6574
6575         * sel-sched.c (sel_region_init): Move call to
6576         sel_setup_region_sched_flags after setup_current_loop_nest.
6577
6578 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
6579
6580         PR rtl-optimization/48272
6581         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6582         init_insn_reg_pressure_info.  Adjust a caller.
6583         * sched-int.h (init_insn_reg_pressure_info): Declare.
6584         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6585         when sched-pressure is enabled.
6586
6587 2011-04-08  Richard Guenther  <rguenther@suse.de>
6588
6589         * gimple.c (gimple_set_modified): Do not queue calls to
6590         MODIFIED_NORETURN_CALLS here ...
6591         * tree-ssa-operands.c (update_stmt_operands): ... but here.
6592
6593 2011-04-08  Richard Guenther  <rguenther@suse.de>
6594
6595         PR lto/48467
6596         * toplev.c (lang_dependent_init): Do not open asm_out_file
6597         in WPA mode, nor perform debug machinery initialization.
6598         (finalize): Do not unlink asm_out_file in WPA mode.
6599
6600 2011-04-08  Richard Guenther  <rguenther@suse.de>
6601
6602         * gimple.h (gimple_call_fntype): New function.
6603         (gimple_call_return_type): Use it.
6604         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6605         * gimple-low.c (gimple_check_call_args): Likewise.
6606         * gimple.c (gimple_call_flags): Likewise.
6607         (gimple_call_arg_flags): Likewise.
6608         (gimple_call_return_flags): Likewise.
6609         * tree-cfg.c (verify_gimple_call): Likewise.
6610         (do_warn_unused_result): Likewise.
6611         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6612         * value-prof.c (gimple_ic_transform): Fix fndecl check.
6613
6614 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
6615
6616         PR rtl-optimization/48235
6617         * sel-sched.c (code_motion_process_successors): Recompute the last
6618         insn in basic block if control flow changed.
6619         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
6620         Update condition for ilist_remove.
6621
6622 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6623
6624         PR rtl-optimization/48302
6625         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6626         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
6627         it to record added preheader blocks.
6628         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
6629         on to sel_add_loop_preheaders.
6630         (sel_region_init): Move call to setup_current_loop_nest after
6631         sel_init_bbs.
6632
6633 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6634
6635         PR target/48273
6636         * cfgloop.h (loop_has_exit_edges): New helper.
6637         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6638         non-clonable.
6639         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6640         that have no exit edges.
6641
6642 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6643
6644         PR rtl-optimization/48442
6645         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
6646         all callers.  Adjust assert.
6647
6648 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
6649
6650         PR tree-optimization/48377
6651         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6652         is_packed to true even for types with smaller TYPE_ALIGN than
6653         TYPE_SIZE.
6654
6655 2011-04-08  Richard Guenther  <rguenther@suse.de>
6656
6657         PR bootstrap/48513
6658         * doc/tm.texi: Re-generate.
6659
6660 2011-04-08  Wei Guozhi  <carrot@google.com>
6661
6662         PR target/47855
6663         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6664         * config/arm/arm.c (arm_attr_length_push_multi): New function.
6665         * config/arm/arm.md (*push_multi): Change the length computation to
6666         call a C function.
6667
6668 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
6669
6670         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6671         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6672         * doc/tm.texi: Regenerate.
6673         * system.h (ASM_OUTPUT_BSS): Poison.
6674         * varasm.c (asm_output_bss): Remove function.
6675         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6676
6677         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6678         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6679         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6680         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6681         Likewise.
6682         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6683         Likewise.
6684         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6685         Likewise.
6686         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6687
6688 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6689
6690         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6691         EnumValue lines.
6692
6693 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6694
6695         * config/m68k/m68k.c (m68k_handle_option): Don't handle
6696         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6697         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6698         OPT_mcpu32.
6699         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6700         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6701         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6702         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6703         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6704         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6705         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6706         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6707         options.  Don't map other m68k options manually.  Don't handle
6708         old-style options as canonical.
6709         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6710         * doc/install.texi (m68k-*-*): Document binutils version requirement.
6711
6712 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6713
6714         * basic-block.h (force_nonfallthru): Move to...
6715         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6716         (force_nonfallthru): ...here.
6717         * cfghooks.c (force_nonfallthru): New function.
6718         * cfgrtl.c (force_nonfallthru): Rename into...
6719         (rtl_force_nonfallthru): ...this.
6720         (commit_one_edge_insertion): Do not set AUX field.
6721         (commit_edge_insertions): Do not discover new basic blocks.
6722         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6723         (cfg_layout_rtl_cfg_hooks): Likewise.
6724         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6725         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
6726         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6727
6728 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
6729
6730         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6731         Remove macros.
6732
6733 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
6734
6735         * config/i386/sse.md: Update copyright year.
6736         (avxcvtvecmode): Remove.
6737         (sse_movhlps): Merge with *avx_movhlps.
6738         (sse_movlhps): Merge with *avx_movlhps.
6739         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6740         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6741         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6742         (sse_loadhps): Merge with *avx_loadhps.
6743         (sse_storelps): Merge with *avx_storelps.
6744         (sse_loadlps): Merge with *avx_loadlps.
6745         (sse_movss): Merge with *avx_movss.
6746         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6747         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6748         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6749         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6750         (vec_set<mode>_0): Ditto.
6751         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6752         (sse4_1_insertps): Merge with *avx_insertps.
6753         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6754         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6755         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6756         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6757         (sse2_storehpd): Merge with *avx_storehpd.
6758         (sse2_loadhpd): Merge with *avx_loadhpd.
6759         (sse2_loadlpd): Merge with *avx_loadlpd.
6760         (sse2_movsd): Merge with *avx_movsd.
6761         (*vec_concatv2df): Merge with *vec_concatv2df.
6762
6763 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
6764
6765         PR debug/48343
6766         * combine.c (combine_instructions): Add last_combined_insn,
6767         update it if insn is after it, pass it to all try_combine calls.
6768         (try_combine): Add last_combined_insn parameter, pass it instead of
6769         i3 to propagate_for_debug.
6770
6771 2011-04-07  Nick Clifton  <nickc@redhat.com>
6772
6773         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6774         to handle MDR <-> data register transfers.
6775         (movhi_internal): Likewise.
6776
6777 2011-04-07  Alan Modra  <amodra@gmail.com>
6778
6779         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6780         previous stack info.
6781
6782 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6783
6784         PR target/43920
6785         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
6786         flow_find_cross_jump.  Swap variables to implement backward replacement.
6787         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6788
6789 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6790
6791         PR target/43920
6792         * cfgcleanup.c (walk_to_nondebug_insn): New function.
6793         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
6794         and bb2.
6795         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6796         src1 or src2.  Redirect edges to the last basic block.  Update
6797         frequency and count on multiple basic blocks in case of fallthru.
6798
6799 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6800
6801         PR target/43920
6802         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6803         function.
6804         (old_insns_match_p): Change return type.  Replace return false/true
6805         with return dir_none/dir_both.  Use can_replace_by.
6806         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
6807         direction from dir_p.  Register replacement direction in dir, last_dir
6808         and afterlast_dir.  Handle new return type of old_insns_match_p using
6809         merge_dir.  Return replacement direction in dir_p.
6810         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6811         return type of old_insns_match_p.
6812         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6813         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6814         flow_find_cross_jump.
6815         * basic-block.h (enum replace_direction): New type.
6816         (flow_find_cross_jump): Add parameter to declaration.
6817
6818 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6819
6820         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6821         (AVXMODEDCVTPS2DQ): Ditto.
6822         (VEC_FLOAT_MODE): Ditto.
6823         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
6824         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6825         (<any_logic:code><mode>3): Use VF mode iterator.
6826         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6827         Use VF mode iterator.
6828         (copysign<mode>3): Use VF mode iterator.
6829         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
6830         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6831         (*<any_logic:code><MODEF:mode>3): Merge with
6832         *avx_<any_logic:code><MODEF:mode>3.
6833         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6834         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6835         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6836         (avx_cvtdq2ps<avxmodesuffix>): Remove.
6837         (sse2_cvtdq2ps): Use %v modifier.
6838         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6839         (avx_cvtps2dq<avxmodesuffix>): Remove.
6840         (sse2_cvtps2dq): Use %v modifier.
6841         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6842         (avx_cvttps2dq<avxmodesuffix>): Remove.
6843         (sse2_cvttps2dq): Use %v modifier.
6844         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6845         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6846         (sse2_cvtsd2siq): Fix insn template.
6847         (sse2_cvtsd2siq_2): Ditto.
6848         (sse2_cvttsd2siq): Ditto.
6849         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6850         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6851
6852 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6853
6854         * gcov-io.c: Use GCC Runtime Library Exception.
6855
6856 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
6857
6858         PR debug/48466
6859         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6860         as base_reg whatever register reg has been eliminated to, instead
6861         of hardcoding STACK_POINTER_REGNUM.
6862
6863 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6864
6865         * doc/tm.texi.in: Document C target hooks as separate from general
6866         target hooks.
6867         * doc/tm.texi: Regenerate.
6868         * genhooks.c (struct hook_desc): Add docname field.
6869         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
6870         docname field.
6871         (hook_array): Include c-target.def.
6872         (emit_documentation): Use docname field in output.
6873         (emit_init_macros): Take docname argument.  Only emit definitions
6874         for hooks matching docname.
6875         (main): Expect additional arguments in all cases.  Pass argument
6876         to emit_init_macros.
6877         * target.def: Move initial macro definitions and comments to
6878         target-hooks-macros.h.
6879         (gcc_targetcm): Move to c-family/c-target.def.
6880         * target.h (targetcm): Move declaration to c-family/c-target.h.
6881         * targhooks.c (default_handle_c_option): Move to
6882         c-family/c-opts.c.
6883         * targhooks.h (default_handle_c_option): Move declaration to
6884         c-family/c-common.h.
6885         * target-hooks-macros.h: New file.
6886         * config.gcc (target_has_targetcm): Define and use to add to
6887         c_target_objs and cxx_target_objs.
6888         * config/default-c.c: New file.
6889         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6890         of target.h and target-def.h.
6891         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6892         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6893         darwin_check_cfstring_format_arg): Make static.
6894         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6895         TARGET_STRING_OBJECT_REF_TYPE_P,
6896         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6897         * config/darwin-protos.h (darwin_objc_construct_string,
6898         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6899         declare.
6900         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6901         TARGET_STRING_OBJECT_REF_TYPE_P,
6902         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6903         * config/t-darwin (darwin-c.o): Update dependencies.
6904         * system.h (TARGET_HAS_TARGETCM): Poison.
6905         * Makefile.in (TARGET_H): Update.
6906         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6907         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6908         (default-c.o): New target.
6909         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6910         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6911         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6912         c-target.def.
6913         (build/genhooks.o): Update dependencies.
6914
6915 2011-04-06  Richard Guenther  <rguenther@suse.de>
6916
6917         * ipa-inline.c (enum inlining_mode): Remove.
6918         (cgraph_flatten): Use some other token.
6919         (cgraph_edge_early_inlinable_p): New function, split out from ...
6920         (cgraph_perform_always_inlining): New function, split out from ...
6921         (cgraph_decide_inlining_incrementally): ... here.
6922         (cgraph_mark_inline_edge): Adjust.
6923         (cgraph_early_inlining): Re-structure.
6924         (pass_early_inline): Require SSA form.
6925
6926 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
6927             Julian Brown  <julian@codesourcery.com>
6928             Mark Shinwell  <shinwell@codesourcery.com>
6929
6930         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6931         LO_REGS only for Thumb-1.
6932         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6933         be used in short instructions when optimising for size on Thumb-2.
6934
6935 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6936
6937         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6938         associated with user returns to be preserved.
6939
6940 2011-04-06  Tristan Gingold  <gingold@adacore.com>
6941
6942         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6943         symbol_queue_size, DBXOUT_DECR_NESTING,
6944         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6945         if XCOFF_DEBUGGING_INFO.
6946
6947 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6948
6949         * config/i386/i386.md (attribute isa): New.
6950         (attribute enabled): New.
6951         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6952         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6953         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6954         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6955         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6956         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6957         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6958         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6959
6960         * config/i386/sse.md (VF): New mode iterator.
6961         (VF1): Ditto.
6962         (VF2): Ditto.
6963         (VF_128): Ditto.
6964         (SSEMODEF4): Remove.
6965         (attribute sse): Handle V8SF and V4DF modes.
6966         (<absneg:code><mode>2): Use VF mode iterator.
6967         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
6968         mode iterator.
6969         (<plusminus_insn><mode>3): Use VF mode iterator.
6970         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6971         Use VF mode iterator.
6972         (<sse>_vm<plusminus_insn><mode>3): Merge with
6973         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
6974         (mul<mode>3): Use VF mode iterator.
6975         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
6976         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
6977         mode iterator.
6978         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6979         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6980         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
6981         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
6982         mode iterator.
6983         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6984         Use VF1 mode iterator.
6985         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6986         (sqrt<VF2:mode>2): New expander.
6987         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6988         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6989         and sqrtv2df2.  Use VF mode iterator.
6990         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
6991         mode iterator.
6992         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6993         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6994         Use VF1 mode iterator.
6995         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6996         (<smaxmin:code><mode>3): Use VF mode iterator.
6997         (*<smaxmin:code><mode>3_finite): Merge with
6998         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
6999         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
7000         (<sse>_vm<smaxmin:code><mode>2): Merge with
7001         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
7002         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
7003         mode iterator.
7004         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
7005         mode iterator.
7006         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7007         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7008         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7009         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7010         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
7011         VF mode iterator.
7012         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7013         Use VF_128 mode iterator.
7014         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
7015         mode iterator.
7016         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
7017         VF_128 mode iterator.
7018         (vcond<mode>): Use VF mode iterator.
7019         * config/i386/predicates.md (sse_comparison_operator): Merge with
7020         avx_comparison_float_operator.  Do not declare as special_predicate.
7021         * config/i386/i386.c (struct builtin_description): Update for renamed
7022         compare patterns.
7023         (ix86_expand_args_builtin): Ditto.
7024         (ix86_expand_sse_compare_mask): Ditto.
7025
7026 2011-04-06  Richard Guenther  <rguenther@suse.de>
7027
7028         * tree-inline.c (estimate_num_insns): For calls simply account
7029         for all passed arguments and a used return value.
7030
7031 2011-04-06  Richard Guenther  <rguenther@suse.de>
7032
7033         PR tree-optimization/47663
7034         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7035         call_stmt_time fields.
7036         (cgraph_edge_inlinable_p): Declare.
7037         (cgraph_edge_recursive_p): New inline function.
7038         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7039         (cgraph_clone_edge): Copy it.
7040         * ipa-inline.c (cgraph_estimate_edge_time): New function.
7041         Account for call stmt time.
7042         (cgraph_estimate_time_after_inlining): Take edge argument.
7043         (cgraph_estimate_edge_growth): Account call stmt size.
7044         (cgraph_estimate_size_after_inlining): Take edge argument.
7045         (cgraph_mark_inline_edge): Adjust.
7046         (cgraph_check_inline_limits): Likewise.
7047         (cgraph_recursive_inlining_p): Remove.
7048         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7049         (cgraph_decide_recursive_inlining): Take edge argument and
7050         adjust.
7051         (cgraph_decide_inlining_of_small_functions): Do not avoid
7052         diags for recursive inlining here.
7053         (cgraph_flatten): Adjust.
7054         (cgraph_decide_inlining_incrementally): Likewise.
7055         (estimate_function_body_sizes): Remove call cost handling.
7056         (compute_inline_parameters): Initialize caller edge call costs.
7057         (cgraph_estimate_edge_growth): New function.
7058         (cgraph_estimate_growth): Use it.
7059         (cgraph_edge_badness): Likewise.
7060         (cgraph_check_inline_limits): Take an edge argument.
7061         (cgraph_decide_inlining_of_small_functions): Adjust.
7062         (cgraph_decide_inlining): Likewise.
7063         * tree-inline.c (estimate_num_insns): Only account for call
7064         return value if it is used.
7065         (expand_call_inline): Avoid diagnostics on recursive inline
7066         functions here.
7067         * lto-cgraph.c (lto_output_edge): Output edge call costs.
7068         (input_edge): Input edge call costs.
7069
7070 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7071
7072         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7073
7074 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
7075
7076         * doc/invoke.texi (Spec Files): Fix typo.
7077
7078 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
7079
7080         * profile.c (branch_prob): Move declaration of local variable.  Remove
7081         obsolete ??? comment.  Expand the location explicitly instead of using
7082         the LOCATION_FILE and LOCATION_LINE macros.
7083
7084 2011-04-06  Wei Guozhi  <carrot@google.com>
7085
7086         PR target/47855
7087         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7088         (arm_cond_branch): Likewise.
7089         (arm_cond_branch_reversed): Likewise.
7090         (arm_jump): Likewise.
7091         (push_multi): Likewise.
7092         * config/arm/constraints.md (Py): New constraint.
7093
7094 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7095
7096         PR bootstrap/48471
7097         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7098         Move these...
7099         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7100         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7101         #ifdef DBX_DEBUGGING_INFO.
7102
7103 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
7104
7105         PR bootstrap/48403
7106         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7107         if old and new states differ.
7108
7109 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7110
7111         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7112         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7113         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7114         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7115         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7116         mcfv4e): Use Alias.
7117         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7118         ColdFire options to -mcpu= options.
7119
7120 2011-04-05  Jeff Law  <law@redhat.com>
7121
7122         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7123         check if BB is a successor of LOOP->header and return
7124         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7125
7126 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7127
7128         * cprop.c (struct reg_use): Remove.
7129         (reg_use_table): Make an array of RTX.
7130         (find_used_regs, constprop_register, local_cprop_pass,
7131         bypass_block): Simplify users of reg_use_table.
7132         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
7133         on one of the uses found by find_used_regs.
7134
7135 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7136
7137         PR bootstrap/48469
7138         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7139         declaration.
7140
7141 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7142
7143         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7144         as an rtx.
7145         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7146
7147 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7148
7149         PR middle-end/48441
7150         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7151
7152 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7153
7154         * combine.c: Include obstack.h.
7155         (struct insn_link): Define.
7156         (uid_log_links): Adjust type.
7157         (FOR_EACH_LOG_LINK): New macro.
7158         (insn_link_obstack): Declare.
7159         (alloc_insn_link): Define.
7160         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
7161         type of link variables.
7162         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7163         (try_combine, record_promoted_values, distribute_notes): Likewise.
7164         (distribute_links): Likewise.  Tweak prototype.
7165         (clear_log_links): Delete.
7166         (adjust_for_new_dest): Call alloc_insn_link.
7167         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7168
7169 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7170
7171         * gcse.c (modify_mem_list): Convert to an array of VECs.
7172         (canon_modify_mem_list, compute_transp): Tweak formatting.
7173         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
7174         (load_killed_in_block_p): Likewise.
7175         (record_last_mem_set_info): Likewise.
7176         (clear_modify_mem_tables): Likewise.
7177
7178 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7179
7180         PR middle-end/48461
7181         * function.c (emit_use_return_register_into_block): Only define if
7182         HAVE_return.
7183
7184 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
7185
7186         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7187
7188 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7189
7190         * config/rx/rx-opts.h: New.
7191         * config/rx/rx.c (rx_cpu_type): Remove.
7192         (rx_handle_option): Don't assert that global structures are in
7193         use.  Access variables via opts pointer.  Defer most handling of
7194         OPT_mint_register_.  Use error_at.
7195         (rx_option_override): Handle deferred OPT_mint_register_ here.
7196         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7197         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7198         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7199         (rx_cpu_types): New Enum and EnumValue entries.
7200         (mint-register=): Use Defer and use Var accordingly.
7201
7202 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7203
7204         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7205         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7206         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7207         Move these...
7208         (debug_free_queue, debug_nesting, symbol_queue_index):
7209         ...and these...
7210         * dbxout.c: ...to here.  Make static.
7211
7212 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7213
7214         * gcse.c (modify_pair): Define.  Define a VEC of it.
7215         (canon_modify_mem_list): Convert to an array of VECs.
7216         (free_insn_expr_list_list): Delete.
7217         (clear_modify_mem_tables): Call VEC_free instead.
7218         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7219         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7220         (canon_list_insert, compute_transp): Likewise.
7221
7222 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7223
7224         PR target/43920
7225         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7226         for size.
7227
7228 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7229
7230         PR target/43920
7231         * function.c (emit_use_return_register_into_block): New function.
7232         (thread_prologue_and_epilogue_insns): Use
7233         emit_use_return_register_into_block.
7234
7235 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7236
7237         PR target/43920
7238         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7239         insn.
7240
7241 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7242
7243         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7244
7245 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
7246
7247         * config/arm/arm.md (define_constants for unspec): Replace with
7248         define_c_enum.
7249         (define_constants for unspecv): Replace with define_c_enum.
7250         * config/arm/neon.md (define_constants for unspec): Replace with
7251         define_c_enum.
7252
7253 2011-04-04  Richard Henderson  <rth@redhat.com>
7254
7255         PR bootstrap/48400
7256         * dwarf2out.c (output_line_info): Always emit line info from
7257         at least one section.
7258         (dwarf2out_init): Create text_section_line_info here ...
7259         (set_cur_line_info_table): ... not here.
7260
7261 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
7262
7263         PR target/48380
7264         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7265         not called.
7266
7267         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7268
7269 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7270
7271         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7272         (expr_equiv_p): Remove.
7273         (insert_set_in_table): Look at <dest, src> pair instead of expr.
7274         (hash_scan_set): Update call to insert_set_in_table.
7275         (dump_hash_table): Dump <dest, src> pair.
7276         (lookup_set): Simplify.  Lookup <dest, src> pair.
7277         (compute_transp): Remove, fold heavily simplified code into...
7278         (compute_local_properties): ...here.  Expect COMP and TRANSP
7279         unconditionally.
7280         (find_avail_set): Take set directly from struct expr.
7281         (find_bypass-set): Likewise.
7282         (bypass_block): Likewise.
7283         (cprop_insn): Likewise.  Remove redundant INSN_P test.
7284
7285         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7286         checks on form of COND from find_implicit_sets to here.
7287         (find_implicit_sets): Cleanup control flow. Split critical edges
7288         if it exposes implicit sets.  Allocate/resize implicit_sets as
7289         necessary.
7290         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7291         changed something.  Run df_analyze after find_implicit_sets if any
7292         edges were split.  Do not allocate implicit_sets here.
7293
7294         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7295         (gcse_obstack): Renamed to cprop_obstack.
7296         (GNEW, GNEWVEC, GNEWVAR): Remove.
7297         (gmalloc): Remove.
7298         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7299         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7300         (gcse_alloc): Likewise, and rename to cprop_alloc.
7301         (alloc_gcse_men, free_gcse_mem): Remove.
7302         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7303         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7304         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7305
7306         * cprop.c (oprs_not_set_p): Remove.
7307         (mark_set, mark_clobber): Remove.
7308         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7309         (reg_not_set_p): New function.
7310         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7311         (cprop_insn): Likewise.
7312         (cprop_jump): Use FOR_EACH_EDGE.
7313
7314 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
7315
7316         PR bootstrap/48403
7317         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7318         (rank_for_schedule): Use scheduled_insns vector instead of
7319         last_scheduled_insn.
7320         (ok_for_early_queue_removal): Likewise.
7321         (queue_to_ready): Search forward in nonscheduled_insns_begin if
7322         we have a dbg_cnt.
7323         (choose_ready): Likewise.
7324         (commit_schedule): Use VEC_iterate.
7325         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
7326         a dbg_cnt, use it and ensure the first insn is in the ready list.
7327         (haifa_sched_init): Allocate scheduled_insns.
7328         (sched_extend_ready_list): Don't allocate it; reserve space.
7329         (haifa_sched_finish): Free it.
7330
7331 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7332
7333         * optc-gen.awk: Always remove type from Variable entry before
7334         recording in var_seen.
7335
7336 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
7337
7338         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7339         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7340         call to tidy_fallthru_edges.
7341
7342 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7343
7344         * doc/options.texi (ToLower): Document.
7345         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7346         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7347         * opts.h (cl_option): Add cl_tolower field.
7348         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7349         arguments with lowercase strings.
7350         * config/rx/rx.opt (mcpu=): Add ToLower.
7351         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7352         argument.
7353
7354 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7355
7356         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7357
7358 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7359
7360         * config/vax/vax.c: Include reload.h.
7361
7362 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
7363
7364         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7365         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7366         (sparc_preferred_reload_class): New function.
7367
7368 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
7369
7370         PR debug/48401
7371         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7372         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7373
7374 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
7375
7376         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7377         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7378
7379 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
7380
7381         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7382         (ASM_OUTPUT_ALIGNED_BSS): Define.
7383
7384 2011-04-03  Michael Matz  <matz@suse.de>
7385
7386         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7387         and next_slot members.
7388         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7389         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7390         (lto_streamer_cache_append): Declare.
7391         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7392         unsigned index, remove offset parameter, ensure that we append
7393         or update existing entries.
7394         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7395         parameter, update next_slot for append.
7396         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7397         parameter.
7398         (lto_streamer_cache_insert_at): Likewise.
7399         (lto_streamer_cache_append): New function.
7400         (lto_streamer_cache_lookup): Use unsigned index.
7401         (lto_streamer_cache_get): Likewise.
7402         (lto_record_common_node): Don't test tree_node_can_be_shared.
7403         (preload_common_node): Adjust call to lto_streamer_cache_insert.
7404         (lto_streamer_cache_delete): Don't free offsets member.
7405         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7406         (lto_output_string_with_length): Use lto_output_data_stream.
7407         (lto_output_tree_header): Remove ix parameter, don't write it.
7408         (lto_output_builtin_tree): Likewise.
7409         (lto_write_tree): Adjust callers to above, don't track and write
7410         offset, write unsigned index.
7411         (output_unreferenced_globals): Don't emit all global vars.
7412         (write_global_references): Use unsigned indices.
7413         (lto_output_decl_state_refs): Likewise.
7414         (write_symbol): Likewise.
7415         * lto-streamer-in.c (lto_input_chain): Move earlier.
7416         (input_function): Use unsigned index.
7417         (input_alias_pairs): Don't read and then ignore all global vars.
7418         (lto_materialize_tree): Remove ix_p parameter, don't read index,
7419         don't pass it back, use lto_streamer_cache_append.
7420         (lto_register_var_decl_in_symtab): Use unsigned index.
7421         (lto_register_function_decl_in_symtab): Likewise.
7422         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7423         index.
7424         (lto_get_builtin_tree): Don't read index, use
7425         lto_streamer_cache_append.
7426         (lto_read_tree): Adjust call to lto_materialize_tree.
7427
7428         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7429         don't use function calls in arguments to MIN.
7430
7431         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7432         twice.
7433
7434         * gimple.c (gimple_type_leader_entry): Mark deletable.
7435
7436 2011-04-03  Alan Modra  <amodra@gmail.com>
7437
7438         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7439
7440 2011-04-03  Michael Matz  <matz@suse.de>
7441
7442         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7443         an integer.
7444         * tree.h (tree_decl_non_common.vindex): Adjust comment.
7445
7446 2011-04-03  Michael Matz  <matz@suse.de>
7447
7448         * cgraphbuild.c (record_reference): Canonicalize constructor values.
7449         * gimple-fold.c (canonicalize_constructor_val): Accept being called
7450         without function context.
7451         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7452         current_function_decl and cfun.
7453
7454 2011-04-03  Michael Matz  <matz@suse.de>
7455
7456         * tree.c (decl_init_priority_insert): Don't create entry for
7457         default priority.
7458         (decl_fini_priority_insert): Ditto.
7459         (fields_compatible_p, find_compatible_field): Remove.
7460         * tree.h (fields_compatible_p, find_compatible_field): Remove.
7461         * gimple.c (gimple_compare_field_offset): Adjust block comment.
7462
7463 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
7464
7465         * combine.c (try_combine): Remove useless local variable.
7466
7467 2011-04-03  Richard Guenther  <rguenther@suse.de>
7468             Ira Rosen  <ira.rosen@linaro.org>
7469
7470         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7471         non-variable offsets and compare the remaining bases of the two
7472         accesses instead of looking for exact same data-ref.
7473
7474 2011-04-02  Kai Tietz  <ktietz@redhat.com>
7475
7476         PR target/48416
7477         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7478
7479         * i386.c (ix86_is_msabi_thiscall): New helper function.
7480         (ix86_is_type_thiscall): New helper function.
7481         (ix86_comp_type_attributes): Handle thiscall for method-functions
7482         special.
7483         (init_cumulative_args): Likewise.
7484         (find_drap_reg): Likewise.
7485         (ix86_static_chain): Likewise.
7486         (x86_this_parameter): Likewise.
7487         (x86_output_mi_thunk): Likewise.
7488
7489 2011-04-01  Olivier Hainque  <hainque@adacore.com>
7490             Nicolas Setton  <setton@adacore.com>
7491             Eric Botcazou  <ebotcazou@adacore.com>
7492
7493         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7494         (add_gnat_descriptive_type_attribute): New function.
7495         (gen_array_type_die): Call it.
7496         (gen_enumeration_type_die): Likewise.
7497         (gen_struct_or_union_type_die): Likewise.
7498         (modified_type_die): Likewise.
7499         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7500         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7501         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7502
7503 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7504
7505         PR bootstrap/48148
7506         * dwarf2out.c (resolve_addr): Don't call force_decl_die
7507         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7508
7509         Revert:
7510         2011-03-17  Richard Guenther  <rguenther@suse.de>
7511
7512         PR bootstrap/48148
7513         * lto-cgraph.c (input_overwrite_node): Clear the abstract
7514         origin for decls in other ltrans units.
7515         (input_varpool_node): Likewise.
7516
7517 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7518
7519         PR middle-end/48335
7520         * expr.c (expand_assignment): Handle all possibilities
7521         if TO_RTX is CONCAT.
7522         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7523         (store_split_bit_field): If SUBREG_REG (op0) or
7524         op0 itself has smaller mode than word, return it
7525         for offset 0 and const0_rtx for out-of-bounds stores.
7526         If word is const0_rtx, skip it.
7527
7528 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
7529
7530         * config/h8300/h8300.c (print_operand_address): Rename to...
7531         (h8300_print_operand_address): ...this. Make static. Adjust comments.
7532         Call h8300_print_operand and h8300_print_operand_address instead of
7533         print_operand and print_operand_address. Declare.
7534         (print_operand): Renake to...
7535         (h8300_print_operand): ...this. Make static. Adjust comments.
7536         Call h8300_print_operand instead of print_operand. Declare.
7537         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7538         (h8300_register_move_cost): Likewise.
7539         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7540         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7541         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7542         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7543         * config/h8300/h8300-protos.h (print_operand): Delete.
7544         (print_operand_address): Delete.
7545
7546 2011-04-01  Richard Henderson  <rth@redhat.com>
7547
7548         PR 48400
7549         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7550         in strict mode before dwarf4.  Re-order tests to early out
7551         before switching sections.
7552
7553 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
7554
7555         * config/h8300/constraints.md: New file.
7556         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
7557         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7558         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7559         * config/h8300/predicates.md (bit_operand): Likewise.
7560         (incdec_operand): Use satisfies_constraint_M and
7561         satisfies_constraint_O.  Don't use C code block.
7562         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7563         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7564         (compute_mov_length): Use satisfies_constraint_G.
7565         (fix_bit_operand): Use satisfies_constraint_U.
7566         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7567         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7568         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7569         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7570         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7571         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7572         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7573         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7574         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7575         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7576         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7577         (EXTRA_MEMORY_CONSTRAINT): Delete.
7578
7579 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
7580             Michael Meissner  <meissner@linux.vnet.ibm.com>
7581
7582         PR target/48262
7583         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7584         operands, as per the specifications.
7585
7586         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7587         (vec_extract_evenv4sf): Ditto.
7588         (vec_extract_evenv8hi): Ditto.
7589         (vec_extract_evenv16qi): Ditto.
7590         (vec_extract_oddv4si): Ditto.
7591
7592 2011-03-31  Mark Wielaard  <mjw@redhat.com>
7593
7594         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7595         high_pc attribute if the CU has no associated code. Only output
7596         DW_AT_entry_pc for CU if not generating strict dwarf and
7597         dwarf_version < 4.
7598
7599 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
7600
7601         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7602         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7603         out of ...
7604         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7605         * final.c (final_start_function): Call the new function rather
7606         than using a NULL argument for dwarf2out_frame_debug.
7607
7608         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7609         that contains the prologue.
7610
7611         * haifa-sched.c (queue_insn): New arg REASON.  All callers
7612         changed.  Print it in debugging output.
7613
7614         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7615
7616         * sched-ebb.c (begin_schedule_ready): Remove second argument.
7617         Split most of the code into...
7618         (begin_move_insn): ... here.  New function.
7619         (ebb_sched_info): Add a pointer to it.
7620         * haifa-sched.c (scheduled_insns): New static variable.
7621         (sched_extend_ready_list): Allocate it.
7622         (schedule_block): Use it to record the order of scheduled insns.
7623         Perform RTL changes to move insns only after all scheduling
7624         decisions have been made.
7625         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7626         begin_move_insn field.
7627         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7628         * sched-int.h (struct haifa_sched_info): Remove second argument
7629         from begin_schedule_ready hook.  Add new member begin_move_insn.
7630         * sched-rgn.c (begin_schedule_ready): Remove second argument.
7631         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7632
7633         * haifa-sched.c (prune_ready_list): New function, broken out of
7634         schedule_block.
7635         (schedule_block): Use it.
7636
7637 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7638
7639         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7640
7641 2011-04-01  Kai Tietz  <ktietz@redhat.com>
7642
7643         * config.gcc (*-*-mingw*): Allow as option the
7644         posix threading model.
7645         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
7646         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7647         definition.
7648         (CPP_SPEC): Add pthread/no-pthread handling.
7649         (LIB_SPEC): Likewise.
7650         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7651         (LIB_SPEC): Likewise.
7652         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7653         flag to pass -pthread option for shared libgcc build.
7654         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7655         for shared libgcc build.
7656         * config/i386/t-mingw-pthread: New file.
7657         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7658         New define to enable use of library pthread by default.
7659         * config/i386/mingw.opt (pthread): New driver option.
7660         (no-pthread): New driver option.
7661         * config/i386/cygming.opt: Make sure trailing empty line is retained.
7662         * config/i386/mingw-w64.opt: Likewise.
7663
7664 2011-04-01  Gary Funck  <gary@intrepid.com>
7665
7666         * c-decl.c (grokdeclarator): Fix formatting.
7667
7668 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7669
7670         * expr.c (emit_block_move_via_movmem): Use n_generator_args
7671         instead of n_operands.
7672         (set_storage_via_setmem): Likewise.
7673         * optabs.c (maybe_gen_insn): Likewise.
7674         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7675         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7676         (mips_expand_builtin_direct): Likewise.
7677         * config/spu/spu.c (expand_builtin_args): Likewise.
7678
7679 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7680
7681         * recog.h (insn_data_d): Add n_generator_args.
7682         * genoutput.c (data): Likewise.
7683         (output_insn_data): Print it.
7684         (max_opno, num_dups): Delete.
7685         (scan_operands): Just fill in "d->operand[...]".
7686         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7687
7688 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7689
7690         * gensupport.h (pattern_stats): New structure.
7691         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7692         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7693         (max_operand_1, max_operand_vec): Delete.
7694         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7695
7696 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
7697
7698         * emit-rtl.c (emit_pattern_after_setloc): New function.
7699         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7700         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7701         (emit_pattern_after): New function.
7702         (emit_insn_after, emit_jump_insn_after): Call it.
7703         (emit_call_insn_after, emit_debug_insn_after): Likewise.
7704         (emit_pattern_before_setloc): New function.
7705         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7706         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7707         Likewise.
7708         (emit_pattern_before): New function.
7709         (emit_insn_before, emit_jump_insn_before): Call it.
7710         (emit_call_insn_before, emit_debug_insn_before): Likewise.
7711
7712 2011-03-31  Richard Henderson  <rth@redhat.com>
7713
7714         * dwarf2out.c (dw_separate_line_info_ref): Remove.
7715         (dw_separate_line_info_entry): Remove.
7716         (enum dw_line_info_opcode): New.
7717         (dw_line_info_entry): Use it.
7718         (dw_line_info_table, dw_line_info_table_p): New.
7719         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7720         (line_info_table, line_info_label_num): Remove.
7721         (line_info_table_in_use): Remove.
7722         (separate_line_info_table): Remove.
7723         (separate_line_info_table_allocated): Remove.
7724         (separate_line_info_table_in_use): Remove.
7725         (LINE_INFO_TABLE_INCREMENT): Remove.
7726         (line_info_label_num): New.
7727         (cur_line_info_table): New.
7728         (text_section_line_info, cold_text_section_line_info): New.
7729         (separate_line_info): New.
7730         (SEPARATE_LINE_CODE_LABEL): Remove.
7731         (print_dwarf_line_table): Remove.
7732         (debug_dwarf): Don't dump it.
7733         (output_one_line_info_table): New.
7734         (output_line_info): Use it.
7735         (new_line_info_table): New.
7736         (set_cur_line_info_table): New.
7737         (dwarf2out_switch_text_section): Use it.
7738         (dwarf2out_begin_function): Likewise.
7739         (push_dw_line_info_entry): New.
7740         (dwarf2out_source_line): Rewrite for new line info tables.
7741         (dwarf2out_init): Remove dead initailizations.
7742
7743 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7744
7745         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
7746         various flags.
7747         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7748         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7749         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7750         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7751         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7752         * opt-functions.awk (flag_init, switch_bit_fields): New.
7753         (switch_flags): Don't handle flags moved to bit-fields.  Don't
7754         generate CL_MISSING_OK or CL_SAVE.
7755         * optc-gen.awk: Update to generate bit-field output as well as
7756         flags field.
7757         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7758         bit-field instead of CL_REJECT_DRIVER flag.
7759         * opts-common.c (generate_canonical_option,
7760         decode_cmdline_option): Use bit-fields instead of CL_* flags.
7761         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7762         instead of CL_REJECT_NEGATIVE flag.
7763         * toplev.c (print_switch_values): Use cl_report bit-field instead
7764         of CL_REPORT flag.
7765
7766 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7767
7768         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7769         a zero minimum index only if it is redundant.
7770
7771 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
7772
7773         PR rtl-optimization/48381
7774         * ira-color.c (assign_hard_reg): Use hard reg set intersection
7775         instead of ira_class_hard_reg_index for calculating conflicting
7776         hard registers.
7777
7778 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
7779
7780         * cprop.c: Clean up hash table building.
7781         (reg_avail_info): Remove.
7782         (oprs_available_p): Remove.
7783         (record_last_reg_set_info): Remove.
7784         (record_last_set_info): Remove.
7785         (reg_available_p): New function.
7786         (gcse_constant_p): Do not treat unfolded conditions as constants.
7787         (make_set_regs_unavailable): New function.
7788         (hash_scan_set): Simplify with new reg_available_p.
7789         (compute_hash_table_work): Traverse insns stream only once.
7790         Do not compute reg_avail_info. Traverse insns in reverse order.
7791         Record implicit sets after recording explicit sets from the block.
7792
7793 2011-03-31  Michael Matz  <matz@suse.de>
7794
7795         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7796
7797 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
7798
7799         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7800         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7801         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7802         (h8300_mode_dependent_address_p): New function.
7803         (h8300_get_index): Make static.
7804
7805 2011-03-31  Jeff Law  <law@redhat.com>
7806
7807         * reload1.c (elimination_effects): Fix typo in recent change.
7808
7809         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7810         typo potentially leading to null pointer dereference.
7811
7812         * caller-save.c (new_saved_hard_reg): Eliminate return value.
7813         (setup_save_areas): Corresponding changes to avoid useless
7814         assignments.
7815
7816         * jump.c (reversed_comparison_code_parts): Avoid successive return
7817         statements when REVERSE_CONDITION is defined.
7818
7819         * expr.c (expand_assignment): Avoid useless assignments.
7820         (expand_expr_real_1): Likewise.
7821         (expand_expr_real_2): Avoid useless statements.
7822
7823         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7824
7825         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7826
7827         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7828         statements.
7829
7830         * stmt.c (expand_expr_stmt): Avoid useless assignment.
7831
7832 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7833
7834         PR target/47109
7835         * doc/tm.texi.in (TARGET_VERSION): Remove.
7836         * doc/tm.texi: Regenerate.
7837         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7838         * collect2.c (main): Don't use TARGET_VERSION.
7839         * mips-tdump.c (main): Don't use TARGET_VERSION.
7840         * mips-tfile.c (main): Don't use TARGET_VERSION.
7841         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7842         * config/rs6000/vxworksae.h: Remove.
7843         * config/alpha/alpha.h (TARGET_VERSION): Remove.
7844         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7845         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7846         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7847         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7848         * config/arm/arm.h (TARGET_VERSION): Remove.
7849         * config/arm/coff.h (TARGET_VERSION): Remove.
7850         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7851         * config/arm/elf.h (TARGET_VERSION): Remove.
7852         * config/arm/freebsd.h (TARGET_VERSION): Remove.
7853         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7854         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7855         * config/arm/pe.h (TARGET_VERSION): Remove.
7856         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7857         * config/arm/semi.h (TARGET_VERSION): Remove.
7858         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7859         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7860         * config/arm/vxworks.h (TARGET_VERSION): Remove.
7861         * config/avr/avr.h (TARGET_VERSION): Remove.
7862         * config/bfin/bfin.h (TARGET_VERSION): Remove.
7863         * config/fr30/fr30.h (TARGET_VERSION): Remove.
7864         * config/frv/frv.h (TARGET_VERSION): Remove.
7865         * config/h8300/h8300.h (TARGET_VERSION): Remove.
7866         * config/i386/cygwin.h (TARGET_VERSION): Remove.
7867         * config/i386/darwin.h (TARGET_VERSION): Remove.
7868         * config/i386/darwin64.h (TARGET_VERSION): Remove.
7869         * config/i386/djgpp.h (TARGET_VERSION): Remove.
7870         * config/i386/freebsd.h (TARGET_VERSION): Remove.
7871         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7872         * config/i386/gnu.h (TARGET_VERSION): Remove.
7873         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7874         * config/i386/i386elf.h (TARGET_VERSION): Remove.
7875         * config/i386/linux.h (TARGET_VERSION): Remove.
7876         * config/i386/linux64.h (TARGET_VERSION): Remove.
7877         * config/i386/lynx.h (TARGET_VERSION): Remove.
7878         * config/i386/mingw32.h (TARGET_VERSION): Remove.
7879         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7880         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7881         * config/i386/netware.h (TARGET_VERSION): Remove.
7882         * config/i386/nto.h (TARGET_VERSION): Remove.
7883         * config/i386/openbsd.h (TARGET_VERSION): Remove.
7884         * config/i386/vxworks.h (TARGET_VERSION): Remove.
7885         * config/ia64/elf.h (TARGET_VERSION): Remove.
7886         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7887         * config/ia64/hpux.h (TARGET_VERSION): Remove.
7888         * config/ia64/linux.h (TARGET_VERSION): Remove.
7889         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7890         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7891         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7892         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7893         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7894         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7895         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7896         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7897         * config/m68k/linux.h (TARGET_VERSION): Remove.
7898         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7899         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7900         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7901         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7902         * config/mep/mep.h (TARGET_VERSION): Remove.
7903         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7904         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7905         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7906         * config/mips/linux.h (TARGET_VERSION): Remove.
7907         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7908         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7909         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7910         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7911         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7912         * config/pa/pa.h (TARGET_VERSION): Remove.
7913         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7914         * config/picochip/picochip.h (TARGET_VERSION): Remove.
7915         * config/rs6000/aix.h (TARGET_VERSION): Remove.
7916         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7917         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7918         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7919         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7920         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7921         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7922         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7923         * config/rs6000/linux.h (TARGET_VERSION): Remove.
7924         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7925         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7926         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7927         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7928         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7929         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7930         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7931         * config/s390/linux.h (TARGET_VERSION): Remove.
7932         * config/s390/s390.h (TARGET_VERSION): Remove.
7933         * config/s390/tpf.h (TARGET_VERSION): Remove.
7934         * config/score/score.h (TARGET_VERSION): Remove.
7935         * config/sh/linux.h (TARGET_VERSION): Remove.
7936         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7937         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7938         * config/sh/sh.h (TARGET_VERSION): Remove.
7939         * config/sh/sh64.h (TARGET_VERSION): Remove.
7940         * config/sh/superh.h (TARGET_VERSION): Remove.
7941         * config/sh/vxworks.h (TARGET_VERSION): Remove.
7942         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7943         * config/sparc/linux.h (TARGET_VERSION): Remove.
7944         * config/sparc/linux64.h (TARGET_VERSION): Remove.
7945         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7946         TARGET_NAME32, TARGET_NAME): Remove.
7947         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7948         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7949         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7950         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7951         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7952         * config/spu/spu.h (TARGET_VERSION): Remove.
7953         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7954         * config/v850/v850.h (TARGET_VERSION): Remove.
7955         * config/vax/linux.h (TARGET_VERSION): Remove.
7956         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7957         * config/xtensa/elf.h (TARGET_VERSION): Remove.
7958         * config/xtensa/linux.h (TARGET_VERSION): Remove.
7959
7960 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7961
7962         PR target/48142
7963         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7964         frame-related from frame-unrelated adjustments to the stack pointer.
7965
7966 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
7967
7968         * common.opt (fdebug-types-section): Move earlier.
7969         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7970
7971 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
7972
7973         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7974         var.
7975
7976 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
7977
7978         * tree.h (CASE_CHAIN): Define.
7979         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7980         (gimple_redirect_edge_and_branch): Likewise.
7981
7982 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7983
7984         PR middle-end/48367
7985         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7986         calculation.
7987
7988 2011-03-30  Jeff Law  <law@redhat.com>
7989
7990         * PR bootstrap/48371
7991         * reload1.c (reload): Fix botch in last change.
7992
7993         * reload.h (struct reload): Fix typo introduced in last change.
7994
7995 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7996
7997         * config/arm/arm.opt (mhard-float, msoft-float): Mark
7998         Undocumented.  Remove help text.
7999         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
8000         -mhard-float.
8001
8002 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8003
8004         * doc/options.texi (NegativeAlias): Document.
8005         (Alias): Mention NegativeAlias.
8006         * opt-functions.awk: Handle NegativeAlias.
8007         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8008         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8009         * opts.h (CL_NEGATIVE_ALIAS): Define.
8010         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8011         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8012         OPT_mspe_.
8013         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8014         Alias entries.
8015         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8016         mno-spe and mno-isel instead of mspe=no and -misel=no.
8017
8018 2011-03-29  Mark Wielaard  <mjw@redhat.com>
8019
8020         * common.opt (fdebug-types-section): New flag.
8021         * doc/invoke.texi: Document new -fno-debug-types-section flag.
8022         * dwarf2out.c (use_debug_types): New define.
8023         (struct die_struct): Mark die_id with GTY desc use_debug_types.
8024         (print_die): Guard output of type unit signatures using
8025         use_debug_types.
8026         (build_abbrev_table): Replace assert of dwarf_version >= 4
8027         with assert on use_debug_types.
8028         (size_of_die): Likewise.
8029         (unmark_dies): Likewise.
8030         (value_format): Decide AT_ref_external form on use_debug_types.
8031         (output_die): Replace dwarf_version version check guard with
8032         use_debug_types where appropriate.
8033         (modified_type_die): Likewise.
8034         (gen_reference_type_die): Likewise.
8035         (dwarf2out_start_source_file): Likewise.
8036         (dwarf2out_end_source_file): Likewise.
8037         (prune_unused_types_walk_attribs): Likewise.
8038         (dwarf2out_finish): Likewise.
8039
8040 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
8041
8042         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8043
8044 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8045
8046         PR rtl-optimization/48332
8047         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8048         mode of input operand N and modeN to its actual mode.
8049
8050 2011-03-30  Jeff Law  <law@redhat.com>
8051
8052         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8053         define accessor macro.
8054         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8055         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8056         (reg_equiv_init): Likewise.
8057         (reg_equivs_size): New variable.
8058         (reg_equiv_init_size): Remove.
8059         (allocate_initial_values): Move prototype to here from....
8060         * integrate.h (allocate_initial_values): Remove prototype.
8061         * integrate.c: Include reload.h.
8062         (allocate_initial_values): Corresponding changes.
8063         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8064         (fix_reg_equiv_init, no_equiv): Corresponding changes.
8065         (update_equiv_regs): Corresponding changes.
8066         (ira): Corresponding changes.
8067         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8068         (push_secondary_reload): Corresponding changes.
8069         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8070         (make_memloc, find_reloads_address): Corresponding changes.
8071         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8072         (find_reloads_address_1): Corresponding changes.
8073         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8074         (refers_to_regno_for_reload_p): Corresponding changes.
8075         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8076         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8077         * reload1.c: Include ggc.h.
8078         (grow_reg_equivs): New function.
8079         (replace_pseudos_in, reload): Corresponding changes.
8080         (calculate_needs_all_insns, alter_regs): Corresponding changes.
8081         (eliminate_regs_1, elimination_effects): Corresponding changes.
8082         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8083         (delete_output_reload): Likewise.
8084         * caller-save.c (mark_referenced_regs): Corresponding changes.
8085         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8086         * frv/predicates.md (frv_load_operand): Corresponding changes.
8087         * microblaze/microblaze.c (double_memory_operand): Corresponding
8088         changes.
8089         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8090         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8091         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8092         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8093         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8094         changes.
8095         * pa/pa.c (emit_move_sequence): Corresponding changes.
8096         * vax/vax.c (nonindexed_address_p): Corresponding changes.
8097
8098 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8099
8100         PR target/47551
8101         * config/arm/arm.c (coproc_secondary_reload_class): Handle
8102         structure modes.  Don't check neon_vector_mem_operand for
8103         vector or structure modes.
8104
8105 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8106             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8107
8108         PR target/43590
8109         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8110         operand 1 and reshuffle the operands to match.
8111         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8112
8113 2011-03-30  Christian Schüler  <cschueler@gmx.de>
8114
8115         PR driver/48208
8116         * config/c.opt (F): Added 'Driver' to -F option.
8117
8118         PR driver/48260
8119         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8120           handler function.
8121         * config/darwin.opt: Added '-arch' option.
8122
8123 2011-03-30  Nick Clifton  <nickc@redhat.com>
8124
8125         * config/rx/rx.md: Add peepholes and patterns to combine
8126         extending loads and simple arithmetic instructions.
8127         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8128         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8129         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8130         modes to use pre-decrement and post-increment addressing.
8131         (rx_is_restricted_memory_address): Add range checking of REG+INT
8132         addresses.
8133         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
8134         (rx_memory_move_cost): Adjust cost of stores.
8135         (rx_adjust_insn_length): New function.
8136
8137 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
8138
8139         PR c/48305
8140         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8141         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8142         matching arg00/arg01 types.
8143
8144 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
8145
8146         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8147         last_location to UNKNOWN_LOCATION.
8148
8149 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
8150
8151         PR target/48349
8152         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8153         FLOAT_SSE_REGS.
8154
8155 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8156             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8157
8158         PR bootstrap/48337
8159         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8160         Init(PROCESSOR_V7).
8161         (sparc_cpu): Likewise.
8162         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8163         PROCESSOR_V7.
8164
8165 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8166
8167         PR target/48336
8168         PR middle-end/48342
8169         PR rtl-optimization/48345
8170         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8171         hard regs for given mode from profitable regs when doing secondary
8172         allocation.
8173
8174 2011-03-29  Jeff Law  <law@redhat.com>
8175
8176         PR bootstrap/48327
8177         * tree-ssa-threadupdate.c (struct redirection_data): Remove
8178         do_not_duplicate field.
8179         (lookup_redirection_data): Corresponding changes.
8180         (create_duplicates): Always create a template block.
8181         (redirect_edges): Remove code which reused the original block
8182         when it was going to become unreachable code.
8183         (thread_block): Don't set do_not_duplicate field.
8184
8185 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
8186
8187         * lto-opts.c (register_user_option_p, lto_register_user_option):
8188         Make type argument unsigned.
8189         * lto-streamer.h (lto_register_user_option): Make type argument
8190         unsigned.
8191         * opth-gen.awk: Make CL_* macros unsigned.
8192         * opts-common.c (find_opt): Make lang_mask argument unsigned.
8193         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8194         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8195         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8196         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8197         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8198         (find_opt): Make lang_mask argument unsigned.
8199
8200 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8201
8202         PR rtl-optimization/48331
8203         PR rtl-optimization/48334
8204         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8205         for any used algorithm.
8206
8207 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8208
8209         * ira-conflicts.c (build_object_conflicts): Add unused attribute
8210         to parent_max.
8211
8212 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
8213
8214         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8215         (alpha_option_override): Don't set alpha_sr_alias_set.
8216         (emit_frame_store_1): Use gen_frame_mem rather than calling
8217         set_mem_alias_set.
8218         (alpha_expand_epilogue): Ditto.
8219
8220 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
8221
8222         PR tree-optimization/48290
8223         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8224         vectorization, check that relevant phis in the basic block after
8225         the inner loop are really inner loop's exit phis.
8226
8227 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
8228
8229         PR debug/48190
8230         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8231         (cached_dw_loc_list_def): New structure.
8232         (cached_dw_loc_list): New typedef.
8233         (cached_dw_loc_list_table): New variable.
8234         (cached_dw_loc_list_table_hash): New function.
8235         (cached_dw_loc_list_table_eq): Likewise.
8236         (add_location_or_const_value_attribute): Take a bool cache_p.
8237         Cache the list when the parameter is true.
8238         (gen_formal_parameter_die): Update caller.
8239         (gen_variable_die): Likewise.
8240         (dwarf2out_finish): Likewise.
8241         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8242         while generating debug info for the decl.
8243         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8244         (dwarf2out_init): Initialize cached_dw_loc_list_table.
8245         (resolve_addr): Cache the result of resolving a chain of
8246         location lists.
8247
8248 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
8249
8250         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8251         conflict object hard regset nodes have intersecting hard reg sets.
8252
8253         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8254         after regstat_init_n_sets_and_refs.
8255
8256         * ira.c: Add more comments at the top.
8257         (setup_stack_reg_pressure_class, setup_pressure_classes):
8258         Add comments how we compute the register pressure classes.
8259         (setup_allocno_and_important_classes): Add more comments.
8260         (setup_class_translate_array, reorder_important_classes)
8261         (setup_reg_class_relations): Add comments.
8262
8263         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
8264         start of the file.
8265
8266         * ira-color.c: Add 2011 to the Copyright line.
8267         (assign_hard_reg):  Add more comments.
8268         (improve_allocation): Ditto.
8269
8270         * ira-costs.c: Add 2011 to the Copyright line.
8271         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8272         comments.
8273         (setup_regno_cost_classes_by_mode): Ditto.
8274
8275         Initial patches from ira-improv branch:
8276
8277         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8278
8279         * ira-build.c (ira_create_object): Remove initialization of
8280         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
8281         (ira_create_allocno): Remove initialization of
8282         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8283         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8284         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8285         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8286         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8287         Initialize ALLOCNO_ADD_DATA.
8288         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8289         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8290         ALLOCNO_REG.
8291         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
8292         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8293
8294         * ira.c (ira_reallocate): Remove.
8295         (setup_pressure_classes): Call
8296         ira_init_register_move_cost_if_necessary.  Use
8297         ira_register_move_cost instead of ira_get_register_move_cost.
8298         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8299         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8300
8301         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8302         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8303         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8304         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8305         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8306         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8307         Fix formatting.
8308         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8309         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8310         (struct allocno_color_data): New.
8311         (allocno_color_data_t): New typedef.
8312         (allocno_color_data): New definition.
8313         (ALLOCNO_COLOR_DATA): New macro.
8314         (struct object_color_data): New.
8315         (object_color_data_t): New typedef.
8316         (object_color_data): New definition.
8317         (OBJECT_COLOR_DATA): New macro.
8318         (update_copy_costs, calculate_allocno_spill_cost): Call
8319         ira_init_register_move_cost_if_necessary.  Use
8320         ira_register_move_cost instead of ira_get_register_move_cost.
8321         (move_spill_restore, update_curr_costs): Ditto.
8322         (allocno_spill_priority): Make it inline.
8323         (color_pass): Allocate and free allocno_color_dat and object_color_data.
8324         (struct coalesce_data, coalesce_data_t): New.
8325         (allocno_coalesce_data): New definition.
8326         (ALLOCNO_COALESCE_DATA): New macro.
8327         (merge_allocnos, coalesced_allocno_conflict_p): Use
8328         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8329         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8330         (coalesce_allocnos): Ditto.
8331         (setup_coalesced_allocno_costs_and_nums): Ditto.
8332         (collect_spilled_coalesced_allocnos): Ditto.
8333         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8334         (setup_slot_coalesced_allocno_live_ranges): Ditto.
8335         (coalesce_spill_slots): Ditto.
8336         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
8337         free allocno_coalesce_data.
8338
8339         * ira-conflicts.c: Fix formatting.
8340         (process_regs_for_copy): Call
8341         ira_init_register_move_cost_if_necessary.  Use
8342         ira_register_move_cost instead of ira_get_register_move_cost.
8343         (build_object_conflicts): Optimize.
8344
8345         * ira-costs.c (record_reg_classes): Optimize.  Call
8346         ira_init_register_move_cost_if_necessary.  Use
8347         ira_register_move_cost, ira_may_move_in_cost, and
8348         ira_may_move_out_cost instead of ira_get_register_move_cost and
8349         ira_get_may_move_cost.
8350         (record_address_regs): Ditto.
8351         (scan_one_insn): Optimize.
8352         (find_costs_and_classes): Optimize.
8353         (process_bb_node_for_hard_reg_moves): Call
8354         ira_init_register_move_cost_if_necessary.  Use
8355         ira_register_move_cost instead of ira_get_register_move_cost.
8356
8357         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8358         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8359         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8360         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8361         definitions.
8362         (ira_initiate_emit_data, ira_finish_emit_data)
8363         (create_new_allocno): New functions.
8364         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8365         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8366         Use ira_register_move_cost instead of ira_get_register_move_cost.
8367
8368         * ira-int.h: Fix some comments.
8369         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8370         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8371         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8372         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
8373         add_data.
8374         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
8375         bitfield after mode.  Make hard_regno a short int.  Make
8376         hard_regno short.  Remove first_coalesced_allocno and
8377         next_coalesced_allocno.  Move mem_optimized_dest_p,
8378         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8379         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
8380         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8381         temp, colorable_p.  Add new member add_data.
8382         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8383         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8384         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8385         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8386         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8387         (ALLOCNO_ADD_DATA): New macro.
8388         (ira_emit_data_t): New typedef.
8389         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
8390         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8391         from struct ira_allocno.
8392         (ALLOCNO_EMIT_DATA): New macro.
8393         (ira_allocno_emit_data, allocno_emit_reg): New.
8394         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8395         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8396         (OBJECT_ADD_DATA): New macro.
8397         (ira_reallocate): Remove.
8398         (ira_initiate_emit_data, ira_finish_emit_data): New.
8399         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8400         (ira_init_register_move_cost_if_necessary): New.
8401         (ira_object_conflict_iter_next): Merge into
8402         ira_object_conflict_iter_cond.
8403         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8404
8405         * ira-live.c (process_single_reg_class_operands): Call
8406         ira_init_register_move_cost_if_necessary.  Use
8407         ira_register_move_cost instead of ira_get_register_move_cost.
8408
8409         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8410
8411         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8412
8413         * ira-costs.c: Fix formatting.
8414         (cost_classes, cost_classes_num): Remove.
8415         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8416         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8417         (cost_classes_del, cost_classes_htab): New.
8418         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8419         (initiate_regno_cost_classes, setup_cost_classes): New.
8420         (setup_regno_cost_classes_by_aclass): New.
8421         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8422         (record_reg_classes): Use regno_cost_classes instead of
8423         cost_classes.  Move checking opposite operand up.
8424         (record_address_regs): Use regno_cost_classes
8425         instead of cost_classes.
8426         (scan_one_insn): Ditto.  Use always general register.
8427         (print_allocno_costs): Use regno_cost_classes instead of
8428         cost_classes.
8429         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
8430         (find_costs_and_classes): Set up cost classes for each registers.
8431         Use also their mode for this.  Use regno_cost_classes instead of
8432         cost_classes.
8433         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8434         cost_classes.
8435         (free_ira_costs, ira_init_costs): Don't use cost_classes.
8436         (ira_costs, ira_set_pseudo_classes): Call
8437         initiate_regno_cost_classes and finish_regno_cost_classes.
8438
8439         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
8440
8441         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8442
8443         * target.def (ira_cover_classes): Remove.
8444
8445         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8446
8447         * doc/tm.texi.in: Ditto.
8448
8449         * ira-conflicts.c: Remove mentioning cover classes from the file.
8450         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
8451         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
8452
8453         * targhooks.c (default_ira_cover_classes): Remove.
8454
8455         * targhooks.h (default_ira_cover_classes): Ditto.
8456
8457         * haifa-sched.c: Remove mentioning cover classes from the file.
8458         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8459         ira_pressure_classes and ira_pressure_classes_num instead of
8460         ira_reg_class_cover_size and ira_reg_class_cover.  Use
8461         sched_regno_pressure_class instead of sched_regno_cover_class.
8462         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8463         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8464
8465         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
8466         classes from the file.
8467         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8468         (struct object_hard_regs, struct object_hard_regs_node): New.
8469         (struct ira_object): New members profitable_hard_regs,
8470         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8471         (struct ira_allocno): Rename cover_class to aclass.  Rename
8472         cover_class_cost and updated_cover_class_cost to class_cost and
8473         updated_class_cost.  Remove splay_removed_p and
8474         left_conflict_size.  Add new members colorable_p.
8475         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8476         (ALLOCNO_COLORABLE_P): New macro.
8477         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8478         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8479         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8480         (OBJECT_...): Rename parameter C to O.
8481         (OBJECT_PROFITABLE_HARD_REGS): New macro.
8482         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8483         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8484         (struct target_ira_int): New members x_ira_max_memory_move_cost,
8485         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8486         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8487         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8488         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
8489         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
8490         x_ira_reg_class_subunion.
8491         (ira_max_memory_move_cost, ira_max_register_move_cost)
8492         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8493         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8494         (ira_important_class_nums, ira_reg_class_superunion): New macros.
8495         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8496         (ira_reg_class_union): Rename to ira_reg_class_subunion.
8497         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8498         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8499         (ira_tune_allocno_costs_and_cover_classes): Rename to
8500         ira_tune_allocno_costs.
8501         (ira_debug_hard_regs_forest): New.
8502         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8503         (ira_object_conflict_iter_next): Fix comments.
8504         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8505         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8506         cover_class to aclass.
8507         (ira_allocate_and_accumulate_costs): Ditto.
8508         (ira_allocate_and_set_or_copy_costs): Ditto.
8509
8510         * opts.c (decode_options): Remove ira_cover_class check.
8511
8512         * ira-color.c: Remove mentioning cover classes from the file.  Use
8513         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8514         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8515         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8516         (splay-tree.h): Remove include.
8517         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8518         before copy_freq_compare_func.
8519         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8520         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8521         New definitions.
8522         (hard_regs_roots, hard_regs_node_vec): Ditto.
8523         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8524         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8525         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8526         (create_new_object_hard_regs_node): Ditto.
8527         (add_new_object_hard_regs_node_to_forest): Ditto.
8528         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8529         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8530         Ditto.
8531         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8532         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8533         (remove_unused_object_hard_regs_nodes): Ditto.
8534         (enumerate_object_hard_regs_nodes): Ditto.
8535         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8536         (object_hard_regs_subnode_t): Ditto.
8537         (struct object_hard_regs_subnode): Ditto.
8538         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8539         (setup_object_hard_regs_subnode_index): Ditto.
8540         (get_object_hard_regs_subnodes_num): Ditto.
8541         (form_object_hard_regs_nodes_forest): Ditto.
8542         (finish_object_hard_regs_nodes_tree): Ditto.
8543         (finish_object_hard_regs_nodes_forest): Ditto.
8544         (allocnos_have_intersected_live_ranges_p): Rename to
8545         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8546         (pseudos_have_intersected_live_ranges_p): Rename to
8547         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8548         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8549         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8550         (update_copy_costs): Remove assert.  Skip cost update if the hard
8551         reg does not belong the class.
8552         (assign_hard_reg): Process only profitable hard regs.
8553         (uncolorable_allocnos_num): Make it scalar.
8554         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8555         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8556         and ira_reg_class_max_nregs.
8557         (bucket_allocno_compare_func): Check frequency first.
8558         (sort_bucket): Add compare function as a parameter.
8559         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8560         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8561         (push_allocno_to_stack): Rewrite for checking new allocno
8562         colorability.
8563         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
8564         (push_only_colorable): Pass new parameter to sort_bucket.
8565         (push_allocno_to_spill): Remove.
8566         (allocno_spill_priority_compare): Make it inline and rewrite.
8567         (splay_tree_allocate, splay_tree_free): Remove.
8568         (allocno_spill_sort_compare): New function.
8569         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
8570         build and use splay tree.  Choose first allocno in uncolorable
8571         allocno bucket to spill.  Remove setting spill cost.
8572         (all_conflicting_hard_regs): Remove.
8573         (setup_allocno_available_regs_num): Check only profitable hard
8574         regs.  Print info about hard regs nodes.
8575         (setup_allocno_left_conflicts_size): Remove.
8576         (put_allocno_into_bucket): Don't call
8577         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
8578         (improve_allocation): New.
8579         (color_allocnos): Call setup_profitable_hard_regs,
8580         form_object_hard_regs_nodes_forest, improve_allocation,
8581         finish_object_hard_regs_nodes_forest.  Setup spill cost.
8582         (print_loop_title): Use pressure classes.
8583         (color_allocnso): Ditto.
8584         (do_coloring): Remove allocation and freeing splay_tree_node_pool
8585         and allocnos_for_spilling.
8586         (ira_sort_regnos_for_alter_reg): Don't setup members
8587         {first,next}_coalesced_allocno.
8588         (color): Remove allocating and freeing removed_splay_allocno_vec.
8589         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8590         prohibited_class_mode_regs.
8591
8592         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
8593         formatting.
8594         (update_allocno_pressure_excess_length): Use pressure classes.
8595         (inc_register_pressure, dec_register_pressure): Check for pressure
8596         class.
8597         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8598         pressure class.  Use ira_reg_class_nregs instead of
8599         ira_reg_class_max_nregs.
8600         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8601         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8602         (single_reg_class): Use ira_reg_class_nregs instead of
8603         ira_reg_class_max_nregs.
8604         (process_bb_node_lives): Use pressure classes.
8605
8606         * ira-emit.c: Remove mentioning cover classes from the file.  Use
8607         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8608         (change_loop): Use pressure classes.
8609         (modify_move_list): Call ira_set_allocno_class instead of
8610         ira_set_allocno_cover_class.
8611
8612         * ira-build.c: Remove mentioning cover classes from the file.  Use
8613         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8614         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
8615         ALLOCNO_UPDATED_CLASS_COST instead of
8616         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8617         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8618         (ira_create_allocno): Remove initialization of
8619         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
8620         ALLOCNO_COLORABLE_P.
8621         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8622         Update conflict regs for the objects.
8623         (create_cap_allocno): Remove assert.  Don't propagate
8624         ALLOCNO_AVAILABLE_REGS_NUM.
8625         (ira_free_allocno_costs): New function.
8626         (finish_allocno): Change a part of code into call of
8627         ira_free_allocno_costs.
8628         (low_pressure_loop_node_p): Use pressure classes.
8629         (object_range_compare_func): Don't compare classes.
8630         (setup_min_max_conflict_allocno_ids): Ditto.
8631
8632         * loop-invariant.c: Remove mentioning cover classes from the file.
8633         Use ira_pressure_classes and ira_pressure_classes_num instead of
8634         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
8635         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8636         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8637         Use reg_allocno_class instead of reg_cover_class.
8638         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8639         STACK_REG_COVER_CLASS.
8640         (get_regno_cover_class): Rename to get_regno_pressure_class.
8641         (move_loop_invariants): Initialize and finalize regstat.
8642
8643         * ira.c: Remove mentioning cover classes from the file.  Add
8644         comments about coloring without cover classes.  Use ALLOCNO_CLASS
8645         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8646         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8647         setup_class_subset_and_memory_move_costs.
8648         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8649         (setup_cover_and_important_classes): Rename to
8650         setup_allocno_and_important_classes.
8651         (setup_class_translate_array): New.
8652         (setup_class_translate): Call it for allocno and pressure classes.
8653         (cover_class_order): Rename to allocno_class_order.
8654         (comp_reg_classes_func): Use ira_allocno_class_translate instead
8655         of ira_class_translate.
8656         (reorder_important_classes): Set up ira_important_class_nums.
8657         (setup_reg_class_relations): Set up ira_reg_class_superunion.
8658         (print_class_cover): Rename to print_classes.  Add parameter.
8659         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8660         Print pressure classes too.
8661         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
8662         setup_reg_subclasses.
8663         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8664         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8665         (setup_prohibited_class_mode_regs): Use
8666         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8667         (clarify_prohibited_class_mode_regs): New function.
8668         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8669         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8670         (ira_init_once): Initialize them.
8671         (free_register_move_costs): Process them.
8672         (ira_init): Move calls of find_reg_classes and
8673         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8674         Call clarify_prohibited_class_mode_regs.
8675         (ira_no_alloc_reg): Remove.
8676         (too_high_register_pressure_p): Use pressure classes.
8677
8678         * sched-deps.c: Remove mentioning cover classes from the file.
8679         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8680         ira_pressure_classes and ira_pressure_classes_num instead of
8681         ira_reg_class_cover_size and ira_reg_class_cover.
8682         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8683         sched_regno_pressure_class instead of sched_regno_cover_class.
8684         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
8685         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8686
8687         * ira.h: Add 2010 to Copyright.
8688         (ira_no_alloc_reg): Remove external.
8689         (struct target_ira): Rename x_ira_hard_regno_cover_class,
8690         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8691         x_ira_class_translate to x_ira_hard_regno_allocno_class,
8692         x_ira_allocno_classes_num, x_ira_allocno_classes, and
8693         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
8694         x_ira_pressure_classes, x_ira_pressure_class_translate, and
8695         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
8696         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
8697         x_ira_no_alloc_regs.
8698         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8699         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8700         ira_allocno_classes_num and ira_allocno_classes.
8701         (ira_class_translate): Rename to ira_allocno_class_translate.
8702         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8703         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8704         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8705         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8706         (ira_no_alloc_regs): New.
8707
8708         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
8709         classes from the file.  Use ALLOCNO_CLASS instead of
8710         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
8711         ALLOCNO_COVER_CLASS_COST.
8712         (regno_cover_class): Rename to regno_aclass.
8713         (record_reg_classes): Use ira_reg_class_subunion instead of
8714         ira_reg_class_union.
8715         (record_address_regs): Check overflow.
8716         (scan_one_insn): Ditto.
8717         (print_allocno_costs): Print total mem cost fore regional allocation.
8718         (print_pseudo_costs): Use REG_N_REFS.
8719         (find_costs_and_classes): Use classes intersected with them on the
8720         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
8721         ira_reg_class_union.  Use ira_allocno_class_translate and
8722         regno_aclass instead of ira_class_translate and regno_cover_class.
8723         Modify code for finding regno_aclass.  Setup preferred classes for
8724         the next pass.
8725         (setup_allocno_cover_class_and_costs): Rename to
8726         setup_allocno_class_and_costs.  Use regno_aclass instead of
8727         regno_cover_class.  Use ira_set_allocno_class instead of
8728         ira_set_allocno_cover_class.
8729         (init_costs, finish_costs): Use regno_aclass instead of
8730         regno_cover_class.
8731         (ira_costs): Use setup_allocno_class_and_costs instead of
8732         setup_allocno_cover_class_and_costs.
8733         (ira_tune_allocno_costs_and_cover_classes): Rename to
8734         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
8735         by processing objects.  Use ira_reg_class_max_nregs instead of
8736         ira_reg_class_nregs.
8737
8738         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8739
8740         * sched-int.h: Remove mentioning cover classes from the file.
8741         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8742
8743         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
8744         classes from the file.
8745         (struct reg_pref): Rename coverclass into allocnoclass.
8746         (reg_cover_class): Rename to reg_allocno_class.
8747
8748         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8749
8750         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8751
8752         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8753
8754         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8755
8756         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8757
8758         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8759
8760         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8761
8762         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8763
8764         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8765
8766         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8767
8768         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8769         (i386_ira_cover_classes): Ditto.
8770
8771         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8772
8773         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8774
8775         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8776
8777         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8778
8779         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8780
8781         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8782
8783         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8784         (mips_ira_cover_classes): Ditto.
8785
8786         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8787
8788         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8789
8790         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8791
8792         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8793
8794         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8795
8796         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8797         (IRA_COVER_CLASSES_VSX): Ditto.
8798
8799         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8800         (rs6000_ira_cover_classes): Ditto.
8801
8802         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8803
8804         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8805
8806         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8807
8808         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8809
8810         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8811
8812         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8813
8814         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8815
8816         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8817
8818         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8819
8820         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8821
8822 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8823
8824         PR debug/48253
8825         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8826         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8827         dw_fde_unlikely_section_end_label, cold_in_std_section,
8828         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8829         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8830         fields.
8831         (output_fde): Use dw_fde_second_{begin,end} if second is
8832         true, otherwise dw_fde_{begin,end}.
8833         (output_call_frame_info): Test dw_fde_second_begin != NULL
8834         instead of dw_fde_switched_sections.
8835         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8836         fields, initialize new fields.  Initialize in_std_section
8837         unconditionally from the first partition.
8838         (dwarf2out_end_epilogue): Don't override dw_fde_end when
8839         dw_fde_second_begin is non-NULL.
8840         (dwarf2out_switch_text_section): Stop initializing removed
8841         dw_fde_struct fields, initialize new fields, initialize
8842         also dw_fde_end here.  Set dw_fde_switch_cfi even when
8843         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
8844         (struct var_loc_list_def): Add last_before_switch field.
8845         (arange_table, arange_table_allocated, arange_table_in_use,
8846         ARANGE_TABLE_INCREMENT, add_arange): Removed.
8847         (size_of_aranges): Count !in_std_section and !second_in_std_section
8848         hunks in fdes, instead of looking at arange_table_in_use.
8849         (output_aranges): Add aranges_length argument, don't call
8850         size_of_aranges here.  Instead of using aranges_table*
8851         emit ranges for fdes when !in_std_section resp.
8852         !second_in_std_section.
8853         (dw_loc_list): Break ranges crossing section switch.
8854         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
8855         use dw_fde_second_end instead of dw_fde_end as end of last range.
8856         (gen_subprogram_die): Don't call add_arange.  Use
8857         dw_fde_{begin,end} for first partition and if switched
8858         section dw_fde_second_{begin,end} for the second.
8859         (var_location_switch_text_section_1,
8860         var_location_switch_text_section): New functions.
8861         (dwarf2out_begin_function): Initialize cold_text_section even
8862         when function_section () isn't text_section.
8863         (prune_unused_types): Don't walk arange_table.
8864         (dwarf2out_finish): Don't needlessly test
8865         flag_reorder_blocks_and_partition when testing cold_text_section_used.
8866         If info_section_emitted, call size_of_aranges and if it indicates
8867         non-empty .debug_aranges, call output_aranges with the computed
8868         size.  Stop using removed dw_fde_struct fields, use
8869         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8870         for second.
8871
8872         PR debug/48203
8873         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8874         create ENTRY_VALUE if incoming or address of incoming's MEM
8875         is a hard REG.
8876         * dwarf2out.c (mem_loc_descriptor): Don't emit
8877         DW_OP_GNU_entry_value of DW_OP_fbreg.
8878         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8879         on ENTRY_VALUE is able to find the canonical parameter VALUE.
8880         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8881         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8882         ENTRY_VALUE_EXPs.
8883         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8884         is a REG_P or MEM_P with REG_P address, compute hash directly
8885         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8886         (preserve_only_constants): Don't clear VALUES forwaring
8887         ENTRY_VALUE to some other VALUE.
8888
8889 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
8890
8891         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8892         instead of GEN_INT.
8893
8894 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8895
8896         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8897         block before expanding the statement.
8898         (expand_gimple_stmt_1): Likewise.  Set them here...
8899         (expand_gimple_stmt): ...and not here.  Tidy.
8900         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8901         unknown.
8902
8903 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8904
8905         * Makefile.in: New rule for cprop.o.
8906         * gcse.c: Move constant/copy propagation to cprop.c.
8907         (compute_local_properties): Only handle expression tables.
8908         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8909         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8910         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8911         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8912         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8913         compute_cprop_data, find_used_regs, try_replace_reg,
8914         find_avail_set, cprop_jump, constprop_register, cprop_insn,
8915         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8916         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8917         find_bypass_set, reg_killed_on_edge, bypass_block,
8918         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8919         execute_rtl_cprop, pass_rtl_cprop): Move to...
8920         * cprop.c: ...here.  New file, constant/copy propagation for RTL
8921         moved from gcse.c to here with minor cleanups in duplicated code.
8922
8923 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8924
8925         * config/i386/i386.c (flag_opts): Fix a typo in
8926         -mavx256-split-unaligned-store.
8927
8928 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8929
8930         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8931         LIBCALL_VALUE): Remove macros.
8932         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8933         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8934         (h8300_function_value, h8300_libcall_value,
8935         h8300_function_value_regno_p): New functions.
8936
8937 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8938
8939         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8940
8941 2011-03-28  Jeff Law  <law@redhat.com>
8942
8943         * tree-ssa-threadupdate.c (redirect_edges): Call
8944         create_edge_and_update_destination_phis as needed.
8945         (create_edge_and_update_destination_phis): Accept new BB argument.
8946         All callers updated.
8947         (thread_block): Do not update the profile when threading around
8948         intermediate blocks.
8949         (thread_single_edge): Likewise.
8950         (determine_bb_domination_status): If BB is not a successor of the
8951         loop header, return NONDOMINATING.
8952         (register_jump_thread): Note when we register a jump thread around
8953         an intermediate block.
8954         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8955         (thread_across_edge): Use it.
8956
8957 2011-03-28  Tristan Gingold  <gingold@adacore.com>
8958
8959         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8960         when for_return is 2.
8961
8962 2011-03-28  Jeff Law  <law@redhat.com>
8963
8964         * var-tracking.c (canonicalize_values_mark): Delete unused
8965         lhs assignment.
8966         (canonicalize_values_star, set_variable_part): Likewise.
8967         (clobber_variable_part, delete_variable_part): Likewise.
8968
8969 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8970
8971         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8972
8973 2011-03-28  Martin Jambor  <mjambor@suse.cz>
8974
8975         * tree-inline.c (expand_call_inline): Do not check that destination
8976         node is analyzed.
8977         (optimize_inline_calls): Assert that destination node is analyzed.
8978         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8979         not call tree_lowering_passes.
8980         * cgraph.h (cgraph_analyze_function): Declare.
8981         * cgraphunit.c (cgraph_analyze_function): Make public.
8982
8983 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
8984
8985         * config/sparc/sparc-opts.h: New.
8986         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8987         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8988         (sparc_option_override): Store processor_type enumeration rather
8989         than string in cpu_default.  Remove name and enumeration from
8990         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
8991         without using sparc_select.  Use target_flags_explicit instead of
8992         fpu_option_set.
8993         * config/sparc/sparc.h (enum processor_type): Move to
8994         sparc-opts.h.
8995         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8996         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8997         HeaderInclude entry.
8998         (mcpu=, mtune=): Use Var and Enum.
8999         (sparc_processor_type): New Enum and EnumValue entries.
9000
9001 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9002             Iain Sandoe  <iains@gcc.gnu.org>
9003
9004         PR target/48245
9005         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9006
9007 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
9008
9009         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9010         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9011         Insert new statements at it in lieu of STMT.
9012         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9013         * tree-vect-stmts.c (vectorizable_store): Likewise.
9014         (vectorizable_load): Likewise.
9015
9016 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
9017
9018         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9019         (divtf3): Ditto.
9020         (multf3): Ditto.
9021         (subtf3): Ditto.
9022
9023 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9024
9025         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9026         unaligned 256bit load/store.
9027         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9028         (*avx_movdqu<avxmodesuffix>): Likewise.
9029
9030 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9031
9032         PR target/48288
9033         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9034         * config/pa/pa.md (iordi3): Use new predicate in expander.
9035         (iorsi3): Likewise.
9036
9037 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
9038
9039         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9040         FUNCTION_VALUE_REGNO_P): Remove macros.
9041         * config/mips/mips-protos.h (mips_function_value): Remove.
9042         * config/mips/mips.c (mips_function_value): Rename to...
9043         (mips_function_value_1): ... this. Make static.  Handle receiving
9044         the function type in 'fn_decl_or_type' argument.
9045         (mips_function_value, mips_libcall_value,
9046         mips_function_value_regno_p): New function.
9047         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9048         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9049
9050 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9051
9052         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9053         and -mavx256-split-unaligned-store.
9054         (ix86_option_override_internal): Split 32-byte AVX unaligned
9055         load/store by default.
9056         (ix86_avx256_split_vector_move_misalign): New.
9057         (ix86_expand_vector_move_misalign): Use it.
9058
9059         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9060         -mavx256-split-unaligned-store.
9061
9062         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9063         256bit load/store.  Generate unaligned store on misaligned memory
9064         operand.
9065         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9066         256bit load/store.
9067         (*avx_movdqu<avxmodesuffix>): Likewise.
9068
9069         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9070         -mavx256-split-unaligned-store.
9071
9072 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9073
9074         PR target/38598
9075         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9076         Update commentary.
9077
9078 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9079
9080         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9081         opno arguments with an expand_operand.  Use create_input_operand.
9082         (mips_prepare_builtin_target): Delete.
9083         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9084         functions.
9085         (mips_expand_builtin_direct): Use create_output_operand and
9086         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
9087         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
9088         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9089
9090 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
9091
9092         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9093         function.
9094         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9095
9096 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
9097
9098         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9099         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
9100         basic blocks and call commit_edge_insertions directly.
9101         (fixup_abnormal_edges): Move from here to...
9102         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
9103         on the edges and return whether some have actually been inserted.
9104         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9105         compensation code.
9106
9107 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
9108
9109         PR rtl-optimization/48144
9110         * sel-sched-ir.c (merge_history_vect): Factor out from ...
9111         (merge_expr_data): ... here.
9112         (av_set_intersect): Rename to av_set_code_motion_filter.
9113         Update all callers.  Call merge_history_vect when an expression
9114         is found in both sets.
9115         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9116
9117 2011-03-26  Alan Modra  <amodra@gmail.com>
9118
9119         * config/rs6000/predicates.md (word_offset_memref_op): Handle
9120         cmodel medium addresses.
9121         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9122         64-bit gpr loads and stores.
9123         (rs6000_secondary_reload_ppc64): New function.
9124         * config/rs6000/rs6000-protos.h: Declare it.
9125         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9126
9127 2011-03-26  Alan Modra  <amodra@gmail.com>
9128
9129         PR target/47487
9130         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9131         GNU Go in traceback table.
9132
9133 2011-03-25  Richard Henderson  <rth@redhat.com>
9134
9135         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9136         if there are exactly 6 operands.
9137         (set_storage_via_setmem): Similarly.
9138
9139 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9140
9141         * collect2.c (write_c_file_stat): Handle backslash
9142         as right-hand directory separator.
9143         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9144         checking just for slash.
9145         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9146         instead of checking for trailing slash.
9147         * gcc.c (record_temp_file): Use filename_cmp instead
9148         of strcmp.
9149         (do_spec_1): Likewise.
9150         (replace_outfile_spec_function): Likewise.
9151         (is_directory): Use filename_ncmp instead of strncmp.
9152         (print_multilib_info): Likewise.
9153         * gcov.c (find_source): Use filename_cmp instead
9154         instead of strcmp.
9155         (make_gcov_file_name): Fix order of slash/backslash
9156         checks.
9157         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9158         (add_standard_paths): Likewise.
9159         * mips-tfile.c (saber_stop): Handle backslash.
9160         * prefix.c (update_path): Use filename_ncmp instead of
9161         strncmp.
9162         * profile.c (output_location): Use filename_cmp instead
9163         of strcmp.
9164         * read-md.c (handle_toplevel_file): Handle backslash.
9165         * tlink.c (frob_extension):  Likewise.
9166         * tree-cfg.c (same_line_p): Use filename_cmp instead of
9167         strcmp.
9168         * tree-dump.c (dequeue_and_dump): Handle backslash.
9169         * tree.c (get_file_function_name): Likewise.
9170         * gengtype.c (read_input_list): Likewise.
9171         (get_file_realbasename): Likewise.
9172         (get_output_file_with_visibility): Use filename_cmp
9173         instead of strcmp.
9174
9175 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
9176
9177         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9178         case to VFPv1.
9179
9180 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9181
9182         * fold-const.c (expr_location_or): New function.
9183         (fold_truth_not_expr): Call it.
9184
9185 2011-03-25  Jeff Law  <law@redhat.com>
9186
9187         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9188         va_end.
9189         * c-family/c-common.c (def_fn_type): Likewise.
9190         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9191         * emit-rtl.c (gen_rtvec): Likewise.
9192         * lto/lto-lang.c (def_fn_type): Likewise.
9193
9194 2011-03-25  Richard Guenther  <rguenther@suse.de>
9195
9196         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9197         also generate copies.
9198         (fini_copy_prop): Handle constant values properly.
9199
9200 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
9201
9202         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9203         mode size instead of bitsize with DWARF2_ADDR_SIZE.
9204         (hash_loc_operands, compare_loc_operands): Handle
9205         DW_OP_GNU_entry_value.
9206
9207 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9208
9209         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9210         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9211         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9212         comment and use macro TARGET_64BIT_MS_ABI instead.
9213         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9214         and change default behavior for 32-bit MS_ABI.
9215         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9216         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9217         32-bit, too.
9218         (ix86_cfun_abi): Likewise.
9219         (ix86_maybe_switch_abi): Adjust comment.
9220         (init_cumulative_args): Check for bit-ness in MS_ABI case.
9221         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9222         instead of checking for SYSV_ABI.
9223         (ix86_nsaved_sseregs): Likewise.
9224         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9225         to 16 bytes.
9226         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9227         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9228         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9229         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9230         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9231
9232 2011-03-25  Richard Guenther  <rguenther@suse.de>
9233
9234         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9235         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9236         (verify_gimple): Remove.
9237         * tree-cfg.c (verify_gimple_call): Merge verification
9238         from verify_stmts.
9239         (verify_gimple_phi): Merge verification from verify_stmts.
9240         (verify_gimple_label): New function.
9241         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9242         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9243         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9244         (verify_stmts): Rename to verify_gimple_in_cfg.
9245         (verify_gimple_in_cfg): New function.
9246         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9247         * tree-ssa.c (verify_ssa): Likewise.
9248         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9249
9250 2011-03-25  Richard Guenther  <rguenther@suse.de>
9251
9252         * passes.c (init_optimization_passes): Add FRE pass after
9253         early SRA.
9254
9255 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
9256             Andrew Stubbs  <ams@codesourcery.com>
9257
9258         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9259         for Cortex-A8.
9260         (arm_movdi_vfp_cortexa8): New pattern.
9261         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9262         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9263         instructions when tuning for Cortex-A8.  Set attribute "arch".
9264         * config/arm/arm.md: Move include arm-tune.md up a bit.
9265         (define_attr "arch"): Add "onlya8" and "nota8" values.
9266         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9267
9268 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9269
9270         PR bootstrap/48282
9271         Revert:
9272         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9273
9274         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9275         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9276         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9277         * passes.c (init_optimization_passes): Move
9278         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9279
9280 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9281
9282         * c-typeck.c (comptypes_internal): Replace target
9283         hook call of comp_type_attributes by version in tree.c file.
9284         * gimple.c (gimple_types_compatible_p_1): Likewise.
9285         * tree-ssa.c (useless_type_conversion_p): Likewise.
9286         * tree.c (build_type_attribute_qual_variant): Likewise.
9287         (attribute_value_equal): New static helper function.
9288         (comp_type_attributes): New function.
9289         (merge_attributes): Use attribute_value_equal for comparison.
9290         (attribute_list_contained): Likewise.
9291         * tree.h (comp_type_attributes): New prototype.
9292
9293 2011-03-25  Richard Guenther  <rguenther@suse.de>
9294
9295         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9296         of complex types at -O0.
9297         (verify_gimple_assign_binary): Likewise.
9298         (verify_gimple_assign_ternary): Likewise.
9299
9300 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9301
9302         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9303         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9304
9305 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9306
9307         PR debug/48041
9308         * dwarf2out.c (output_abbrev_section): Only write table when
9309         abbrev_die_table_in_use > 1.
9310
9311 2011-02-24  Richard Henderson  <rth@redhat.com>
9312
9313         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9314         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9315         (alpha_expand_unaligned_load_words): Use extql.
9316         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9317         (emit_insxl): Handle all modes for consistency.
9318
9319 2011-02-24  Richard Henderson  <rth@redhat.com>
9320
9321         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9322         (alpha_expand_unaligned_load): Likewise.
9323         (alpha_expand_unaligned_store): Likewise.
9324         (alpha_expand_unaligned_load_words): Likewise.
9325         (alpha_expand_unaligned_store_words): Likewise.
9326         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9327         (alpha_split_lock_test_and_set_12): Likewise.
9328         (print_operand, alpha_fold_builtin_extxx): Likewise.
9329         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9330         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9331         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9332         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9333         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9334         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9335         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9336         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9337         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9338         (extwl, extll, extql): Similarly.
9339         (inswh, inslh, insqh): Similarly.
9340         (mskbl, mskwl, mskll, mskql): Similarly.
9341         (mskwh, msklh, mskqh): Similarly.
9342
9343 2011-02-24  Richard Henderson  <rth@redhat.com>
9344
9345         * config/alpha/alpha.md (attribute isa): Add er, ner.
9346         (attribute enabled): Handle them.
9347         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9348
9349 2011-02-24  Richard Henderson  <rth@redhat.com>
9350
9351         * config/alpha/alpha.md (attribute isa): Add vms.
9352         (attribute enabled): Handle it.
9353         (*movsf): Merge *movsf_{nofix,fix,nofp}.
9354         (*movdf): Merge *movdf_{nofix,fix,nofp}.
9355         (*movtf): Rename from *movtf_internal for consistency.
9356         (*movsi): Merge with *movsi_nt_vms.
9357         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9358         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9359         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9360         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9361
9362 2011-02-24  Richard Henderson  <rth@redhat.com>
9363
9364         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9365         (extendqisi2, extendhisi2): Likewise.
9366         (extendqidi2): Simplify BWX/non-BWX expansions.
9367         (extendhidi2): Similarly.
9368
9369 2011-02-24  Richard Henderson  <rth@redhat.com>
9370
9371         * config/alpha/alpha.md (attribute isa): New.
9372         (attribute enabled): New.
9373         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9374         (zero_extendqisi2, zero_extendqidi2): Similarly.
9375         (zero_extendhisi2, zero_extendhidi2): Similarly.
9376         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9377
9378 2011-02-24  Richard Henderson  <rth@redhat.com>
9379
9380         * config/alpha/predicates.md (input_operand): Revert last change;
9381         update comment to mention 32-bit VMS rather than Windows.
9382
9383 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9384
9385         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9386         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9387         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9388         * passes.c (init_optimization_passes): Move
9389         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9390
9391 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9392
9393         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9394
9395 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9396
9397         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9398         correctly.
9399
9400 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
9401
9402         PR debug/48204
9403         * simplify-rtx.c (simplify_const_unary_operation): Call
9404         real_convert when changing mode class with FLOAT_EXTEND.
9405
9406 2011-03-24  Nick Clifton  <nickc@redhat.com>
9407
9408         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9409         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9410         * config/rx/rx.c (rx_option_override): Set align_jumps,
9411         align_loops and align_labels if not set by the user.
9412         (rx_align_for_label): New function.
9413         (rx_max_skip_for_label): New function.
9414         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9415         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9416         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9417         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9418         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9419
9420 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9421
9422         PR rtl-optimization/48263
9423         * optabs.c (expand_binop_directly): Reinstate convert_modes code
9424         and original commutative_p handling.  Use maybe_gen_insn.
9425
9426 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9427
9428         * reload.c (find_reloads_subreg_address): Add address_reloaded
9429         parameter and return true there if the full address has been
9430         reloaded.
9431         (find_reloads_toplev): Pass address_reloaded flag.
9432         (find_reloads_address_1): Don't use address_reloaded parameter.
9433
9434 2011-03-24  Jeff Law  <law@redhat.com>
9435
9436         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9437         unused variable "ann".
9438         (remove_unused_locals): Likewise.
9439
9440         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9441         statement.
9442
9443         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9444         after it is freed.
9445
9446 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9447
9448         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9449         for invalid symbolic addresses.
9450         (s390_secondary_reload): Don't use s390_check_symref_alignment for
9451         larl operands.
9452
9453 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9454
9455         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9456         the argument in calls to fold_truth_not_expr.
9457
9458 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9459
9460         * tree.c (record_node_allocation_statistics): New function.
9461         (make_node_stat, copy_node_stat, build_string): Call it.
9462         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9463         (build1_stat, build_omp_clause): Likewise.
9464
9465 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9466
9467         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9468         last commit.
9469
9470 2011-03-24  Richard Guenther  <rguenther@suse.de>
9471
9472         PR tree-optimization/48271
9473         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9474         blocks that still exist.
9475
9476 2011-03-24  Richard Guenther  <rguenther@suse.de>
9477
9478         PR tree-optimization/48270
9479         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9480         not free datarefs before ddrs.
9481
9482 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9483
9484         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9485         from the address built for a reference with variable offset.
9486
9487 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9488
9489         PR target/48237
9490         * config/i386/i386.md (*movdf_internal_rex64): Do not split
9491         alternatives that can be handled with movq or movabsq insn.
9492         (*movdf_internal): Disable for !TARGET_64BIT.
9493         (*movdf_internal_nointeger): Ditto.
9494         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9495
9496 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9497
9498         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9499         (FUNCTION_ARG_ADVANCE): Likewise.
9500         * tm.texi.in: Change references to them to hook references.
9501         * tm.texi: Regenerate.
9502         * targhooks.c (default_function_arg): Eliminate check for target macro.
9503         (default_function_incoming_arg): Likewise.
9504         (default_function_arg_advance): Likewise.
9505         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9506         (function_arg_advance): Likewise.
9507         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9508
9509 2011-03-24  Richard Guenther  <rguenther@suse.de>
9510
9511         PR middle-end/48269
9512         * tree-object-size.c (addr_object_size): Do not double-account
9513         for MEM_REF offsets.
9514
9515 2011-03-24  Diego Novillo  <dnovillo@google.com>
9516
9517         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9518         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9519         (lto_input_data_block): Move from lto-opts.c.  Make extern.
9520         Update all users.
9521         (lto_input_string): Rename from input_string.  Make extern.
9522         Update all users.
9523         * lto-streamer-out.c (lto_output_string_with_length): Rename from
9524         output_string_with_length.
9525         Output 0 to indicate a non-NULL string.  Update all callers to
9526         not emit 0.
9527         (lto_output_string): Rename from output_string.  Make extern.
9528         Update all users.
9529         (lto_output_decl_state_streams): Make extern.
9530         (lto_output_decl_state_refs): Make extern.
9531         * lto-streamer.h (lto_input_string): Declare.
9532         (lto_input_data_block): Declare.
9533         (lto_output_string): Declare.
9534         (lto_output_string_with_length): Declare.
9535         (lto_output_decl_state_streams): Declare.
9536         (lto_output_decl_state_refs): Declare.
9537
9538 2011-03-24  Richard Guenther  <rguenther@suse.de>
9539
9540         PR tree-optimization/46562
9541         * tree.c (build_invariant_address): New function.
9542         * tree.h (build_invariant_address): Declare.
9543         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9544         a renamed function moved ...
9545         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9546         Take valueization callback parameter.
9547         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9548         * gimple-fold.h: New file.
9549         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9550         (ccp_fold, fold_const_aggregate_ref,
9551         fold_ctor_reference, fold_nonarray_ctor_reference,
9552         fold_array_ctor_reference, fold_string_cst_ctor_reference,
9553         get_base_constructor): Move ...
9554         * gimple-fold.c: ... here.
9555         (gimple_fold_stmt_to_constant_1): New function
9556         split out from ccp_fold.  Take a valueization callback parameter.
9557         Valueize all operands.
9558         (gimple_fold_stmt_to_constant): New wrapper function.
9559         (fold_const_aggregate_ref_1): New function split out from
9560         fold_const_aggregate_ref.  Take a valueization callback parameter.
9561         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9562         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9563         invariant POINTER_PLUS_EXPRs to invariant form.
9564         (vn_valueize): New function.
9565         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9566         * tree-vrp.c (vrp_valueize): New function.
9567         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9568         to fold statements to constants.
9569         * tree-ssa-pre.c (eliminate): Properly guard propagation of
9570         function declarations.
9571         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9572         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9573
9574 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9575
9576         * config/h8300/predicates.md (jump_address_operand): Fix register
9577         mode check.
9578
9579 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
9580
9581         * doc/invoke.texi (max-stores-to-sink): Document.
9582         * params.h (MAX_STORES_TO_SINK): Define.
9583         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9584         if either vectorization or if-conversion is disabled.
9585         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9586         tree-vect-data-refs.c vect_equal_offsets.
9587         (dr_equal_offsets_p): New function.
9588         (find_data_references_in_bb): Remove static.
9589         * tree-data-ref.h (find_data_references_in_bb): Declare.
9590         (dr_equal_offsets_p): Likewise.
9591         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9592         (vect_drs_dependent_in_basic_block): Update calls to
9593         vect_equal_offsets.
9594         (vect_check_interleaving): Likewise.
9595         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9596         (cond_if_else_store_replacement): Rename to...
9597         (cond_if_else_store_replacement_1): ... this.  Change arguments and
9598         documentation.
9599         (cond_if_else_store_replacement): New function.
9600         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9601         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9602
9603 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
9604
9605         PR target/46934
9606         * config/arm/arm.md (casesi): Use the gen_int_mode() function
9607         to subtract lower bound instead of GEN_INT().
9608
9609 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
9610
9611         PR other/48179
9612         PR other/48221
9613         PR other/48234
9614         * doc/extend.texi (Alignment): Move section to match order in TOC.
9615         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9616         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9617
9618 2011-03-23  Jeff Law  <law@redhat.com>
9619
9620         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9621         before removing the edge.
9622
9623         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9624         it may have been freed by redirect_branch_edge or
9625         redirect_edge_succ_nodup.
9626
9627 2011-03-23  Richard Guenther  <rguenther@suse.de>
9628
9629         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9630         (check_va_list_escapes): Likewise.
9631         (check_all_va_list_escapes): Likewise.
9632
9633 2011-03-23  Richard Guenther  <rguenther@suse.de>
9634
9635         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9636         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9637         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9638         (alias.o): Likewise.
9639         (ipa-type-escape.o): Remove.
9640         (ipa-struct-reorg.o): Likewise.
9641         (GTFILES): Remove ipa-struct-reorg.c.
9642         * alias.c: Do not include ipa-type-escape.h.
9643         * tree-ssa-alias.c: Likewise.
9644         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9645         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9646         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9647         and ipa-type-escape passes.
9648         * tree-pass.h (pass_ipa_type_escape): Remove.
9649         (pass_ipa_struct_reorg): Likewise.
9650         * ipa-struct-reorg.h: Remove.
9651         * ipa-struct-reorg.c: Likewise.
9652         * ipa-type-escape.h: Likewise.
9653         * ipa-type-escape.c: Likewise.
9654         * doc/invoke.texi (-fipa-struct-reorg): Remove.
9655         (--param struct-reorg-cold-struct-ratio): Likewise.
9656         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9657         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9658         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9659
9660 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9661
9662         * config/s390/2084.md: Enable all insn reservations also for z9_ec
9663         cpu attribute value.
9664         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9665         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9666         * config/s390/s390.c (processor_flags_table): New constant array.
9667         (s390_handle_arch_option): Remove.
9668         (s390_handle_option): Remove s390_handle_arch_option invocations
9669         and OPT_mwarn_framesize_ handling.
9670         (s390_option_override): Remove s390_handle_arch_option invocation.
9671         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9672         warnings.
9673         * config/s390/s390.md (cpu attribute): Add z9_ec value.
9674         * config/s390/s390.opt (s390_tune, s390_arch)
9675         (march=): Replace s390_arch_option enum and values with
9676         processor_type.  Set variable name to s390_arch.  Set
9677         initialization value.
9678         (mtune=): Replace s390_arch_option with processor_type.  Set
9679         variable name to s390_tune.  Set initialization value.
9680
9681 2011-03-23  Julian Brown  <julian@codesourcery.com>
9682
9683         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9684         accesses which are not naturally aligned.
9685
9686 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9687
9688         PR target/47553
9689         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9690
9691 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9692
9693         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9694         parameter from "int" to "enum insn_code".
9695         (expand_operand_type): New enum.
9696         (expand_operand): New structure.
9697         (create_expand_operand): New function.
9698         (create_fixed_operand, create_output_operand): Likewise
9699         (create_input_operand, create_convert_operand_to): Likewise.
9700         (create_convert_operand_from, create_address_operand): Likewise.
9701         (create_integer_operand): Likewise.
9702         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9703         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9704         (expand_insn, expand_jump_insn): Likewise.
9705         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9706         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9707         (expand_movstr, expand_builtin___clear_cache): Likewise.
9708         (expand_builtin_lock_release): Likewise.
9709         * explow.c (allocate_dynamic_stack_space): Likewise.
9710         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
9711         and use the default handling in that case.
9712         * expmed.c (check_predicate_volatile_ok): Delete.
9713         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9714         (emit_cstore): Likewise.
9715         * expr.c (emit_block_move_via_movmem): Likewise.
9716         (set_storage_via_setmem, expand_assignment): Likewise.
9717         (emit_storent_insn, try_casesi): Likewise.
9718         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
9719         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9720         (expand_vec_shift_expr, expand_binop_directly): Likewise.
9721         (expand_twoval_unop, expand_twoval_binop): Likewise.
9722         (expand_unop_direct, emit_indirect_jump): Likewise.
9723         (emit_conditional_move, vector_compare_rtx): Likewise.
9724         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9725         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9726         (expand_sync_lock_test_and_set): Likewise.
9727         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
9728         (emit_unop_insn): Likewise.
9729         (expand_copysign_absneg): Change icode to an insn_code.
9730         (create_convert_operand_from_type): New function.
9731         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9732         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9733         (expand_insn, expand_jump_insn): Likewise.
9734         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9735         than const_int_operand for operand 2.
9736
9737 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9738
9739         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9740         if possible.
9741
9742 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9743
9744         * emit-rtl.c (emit_pattern_before_noloc): New function.
9745         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9746         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9747         (emit_pattern_after_noloc): New function.
9748         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9749         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9750
9751 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9752
9753         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9754         (__ffsDI2): Likewise.
9755
9756 2011-03-22  Richard Henderson  <rth@redhat.com>
9757
9758         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9759         of !TARGET_ABI_OPEN_VMS.
9760         (alpha_trampoline_init, alpha_start_function): Likewise.
9761         (alpha_expand_epilogue, alpha_file_start): Likewise.
9762         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9763         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9764         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9765         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9766         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9767
9768 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9769
9770         * config/s390/s390-opts.h: New.
9771         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9772         s390_arch_flags, s390_warn_framesize, s390_stack_size,
9773         s390_stack_guard): Remove.
9774         (s390_handle_arch_option): Return void.  Take enum
9775         s390_arch_option value instead of string and searching array.
9776         (s390_handle_option): Don't assert that global structures are in
9777         use.  Access variables via opts pointer.  Use error_at.  Don't use
9778         sscanf for -mstack-guard= or -mstack-size=.  Update call to
9779         s390_handle_arch_option.
9780         (s390_option_override): Update call to s390_handle_arch_option.
9781         (s390_emit_prologue): Use %d format for s390_stack_size in
9782         diagnostic.  Use %wd for HOST_WIDE_INT.
9783         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9784         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9785         * config/s390/s390.opt (config/s390/s390-opts.h): New
9786         HeaderInclude entry.
9787         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9788         s390_arch_flags, s390_warn_framesize): New Variable entries.
9789         (s390_arch_option): New Enum and EnumValue entries.
9790         (march=): Use Enum instead of Var.
9791         (mstack-guard=, mstack-size=): Use UInteger and Var.
9792         (mtune=): Use Enum.
9793
9794 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9795
9796         * config/score/score.c (score_handle_option): Don't assert that
9797         global structures are in use.  Access target_flags via opts
9798         pointer.  Use value of -march= option to determine target_flags
9799         settings.
9800         * config/score/score.opt (march=): Use Enum.
9801         (score_arch): New Enum and EnumValue entries.
9802
9803 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9804
9805         * config/mep/mep.c (option_mtiny_specified): Remove.
9806         (mep_option_override): Move register handling for -mivc2 from
9807         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
9808         instead of option_mtiny_specified.
9809         (mep_handle_option): Access target_flags via opts pointer.  Don't
9810         assert that global structures are in use.  Defer part of -mivc2
9811         handling and move it to mep_option_override.
9812         * config/mep/mep.opt (IVC2): New Mask entry.
9813         (mivc2): Use Var and Defer instead of Mask.
9814
9815 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9816
9817         * config/v850/v850-opts.h: New.
9818         * config/v850/v850.c (small_memory): Replace with
9819         small_memory_physical_max array.  Make that array static const.
9820         (v850_handle_memory_option): Take integer value of argument.  Take
9821         gcc_options pointer, option text and location.  Return void.
9822         Update for changes to small memory structures.
9823         (v850_handle_option): Access target_flags via opts pointer.  Don't
9824         assert that global structures are in use.  Update calls to
9825         v850_handle_memory_option.
9826         (v850_encode_data_area): Update references to small memory settings.
9827         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9828         (enum small_memory_type): Move to v850-opts.h.
9829         * config/v850/v850.opt (config/v850/v850-opts.h): New
9830         HeaderInclude entry.
9831         (small_memory_max): New Variable entry.
9832         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
9833         (mtda, mzda): Likewise.
9834
9835 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9836
9837         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9838         pointer.  Don't assert that global structures are in use.
9839
9840 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9841
9842         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9843         via opts pointer.  Don't assert that global structures are in use.
9844
9845 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9846
9847         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9848         (munix=93): Use Var.
9849         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9850         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9851         * config/pa/pa-opts.h: New.
9852         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9853         (pa_handle_option): Don't assert that global structures are in
9854         use.  Access target_flags via opts pointer.  Don't handle
9855         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9856         OPT_munix_98 here.
9857         (pa_option_override): Handle deferred OPT_mfixed_range_.
9858
9859 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9860
9861         * config/mn10300/mn10300-opts.h: New.
9862         * config/mn10300/mn10300.c (mn10300_processor,
9863         mn10300_tune_string): Remove.
9864         (mn10300_handle_option): Don't assert that global structures are
9865         in use.  Access mn10300_processor via opts pointer.  Don't handle
9866         OPT_mtune_ here.
9867         * config/mn10300/mn10300.h (enum processor_type): Move to
9868         mn10300-opts.h.
9869         (mn10300_processor): Remove.
9870         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9871         HeaderInclude entry.
9872         (mn10300_processor): New Variable entry.
9873         (mtune=): Use Var.
9874
9875 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9876
9877         * config/microblaze/microblaze.c: Don't include opts.h.
9878         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9879         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9880         (mno-clearbss): Use Var and Warn.
9881
9882 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9883
9884         * config/m32r/m32r-opts.h: New.
9885         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9886         (m32r_handle_option): Don't assert that global structures are in
9887         use.  Access target_flags and m32r_cache_flush_func via opts
9888         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
9889         OPT_mno_flush_trap here.
9890         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9891         include of m32r-opts.h.
9892         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9893         HeaderInclude entry.
9894         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9895         (mmodel=): Use Enum and Var.
9896         (m32r_model): New Enum and EnumValue entries.
9897         (mno-flush-trap): Use Var.
9898         (msdata=): Use Enum and Var.
9899         (m32r_sdata): New Enum and EnumValue entries.
9900
9901 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9902
9903         * config/m32c/m32c.c: Don't include opts.h.
9904         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9905         m32c_handle_option): Remove.
9906         (m32c_option_override): Check global_options_set.x_target_memregs
9907         instead of target_memregs_set.
9908         * config/m32c/m32c.h (target_memregs): Remove.
9909         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9910         variable.
9911
9912 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9913
9914         * config/iq2000/iq2000-opts.h: New.
9915         * config/iq2000/iq2000.c: Don't include opts.h.
9916         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9917         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9918         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9919         HeaderInclude entry.
9920         (iq2000_tune): New Variable entry.
9921         (march=): Add comment.  Use Enum.
9922         (iq2000_arch): New Enum and EnumValue entries.
9923         (mcpu=): Use Enum and Var.
9924         (iq2000_tune): New Enum and EnumValue entries.
9925
9926 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9927
9928         * config/ia64/ia64-opts.h: New.
9929         * config/ia64/ia64.c (ia64_tune): Remove.
9930         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9931         here.  Use error_at.
9932         (ia64_option_override): Handle deferred OPT_mfixed_range_.
9933         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9934         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9935         HeaderInclude entry.
9936         (ia64_tune): New Variable entry.
9937         (mfixed-range=): Use Defer and Var.
9938         (mtune=): Use Enum and Var.
9939         (ia64_tune): New Enum and EnumValue entries.
9940
9941 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9942
9943         * config/frv/frv-opts.h: New.
9944         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9945         frv-opts.h.
9946         (frv_cpu_type): Remove.
9947         * config/frv/frv.c: Don't include opts.h.
9948         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9949         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9950         (frv_cpu_type): New Variable entry.
9951         (frv_cpu): New Enum and EnumValue entries.
9952
9953 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9954
9955         * config/cris/cris.c (cris_handle_option): Access target_flags via
9956         opts pointer.  Don't assert that global structures are in use.
9957         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9958         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9959
9960 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9961
9962         * config/bfin/bfin-opts.h: New.
9963         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9964         bfin_si_revision, bfin_workarounds): Remove.
9965         (bfin_cpus): Make static const.
9966         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9967         not bfin_lib_id_given.
9968         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
9969         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9970         pointer. Use error_at.  Don't assert that global structures are in use.
9971         * config/bfin/bfin.h: Include bfin-opts.h.
9972         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9973         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9974         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9975         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9976         entries.
9977
9978 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9979
9980         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9981         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9982         or -msoft-float here.
9983         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9984         -msoft-float and -mhard-float.
9985         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9986         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9987         msoft-float.
9988         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9989         -msoft-float.
9990         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9991         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9992         not mhard-float.
9993         (LIBGCC_SPEC): Don't handle -msoft-float.
9994         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9995         -mhard-float.
9996         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9997         msoft-float.
9998         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9999         -mfloat-abi=*, not -msoft-float and -mhard-float.
10000         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
10001         -msoft-float.
10002         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
10003         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
10004         mhard-float and msoft-float.
10005         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10006         mfloat-abi=soft in comments, not mhard-float and msoft-float.
10007         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10008         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10009         mhard-float.
10010         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10011         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10012         msoft-float.
10013         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10014         not mhard-float.
10015         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10016         not msoft-float.
10017
10018 2011-03-22  Richard Henderson  <rth@redhat.com>
10019
10020         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10021         TARGET_ABI_WINDOWS_NT.
10022         (alpha_output_function_end_prologue): Likewise.
10023         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10024         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10025         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10026         (trap, *movsi_nt_vms): Likewise.
10027         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10028         (*tablejump_osf_nt_internal): Remove.
10029         * config/alpha/predicates.md (input_operand): Only test Pmode.
10030
10031 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10032
10033         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10034         via opts pointer.  Use error_at.  Don't assert that global
10035         structures are in use.
10036
10037 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10038
10039         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10040         (ix86_handle_option): Access ix86_isa_flags and
10041         ix86_isa_flags_explicit via opts pointer.  Don't assert that
10042         global structures are in use.
10043         (ix86_function_specific_save, ix86_function_specific_restore):
10044         Update ix86_isa_flags_explicit field name.
10045         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10046         (ix86_isa_flags_explicit): Rename TargetSave entry to
10047         x_ix86_isa_flags_explicit.
10048
10049 2011-03-22  Richard Henderson  <rth@redhat.com>
10050
10051         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10052         (alpha_option_override, direct_return): Likewise.
10053         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10054         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10055         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10056         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10057         (alpha_expand_epilogue, alpha_end_function): Likewise.
10058         (alpha_init_libfuncs): Likewise.
10059         (struct machine_function): Remove unicosmk members.
10060         (print_operand) ['t']: Remove.
10061         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10062         unicosmk_output_module_name, unicosmk_output_common,
10063         current_section_align, unicosmk_output_text_section_asm_op,
10064         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10065         unicosmk_section_type_flags, unicosmk_unique_section,
10066         unicosmk_asm_named_section, unicosmk_insert_attributes,
10067         unicosmk_output_align, unicosmk_defer_case_vector,
10068         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10069         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10070         unicosmk_output_ssib, unicosmk_add_call_info_word,
10071         unicosmk_extern_head, unicosmk_output_default_externs,
10072         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10073         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10074         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10075         * config/alpha/alpha-protos.h: Update.
10076         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10077         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10078         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10079         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10080         (*mulsi_se, mulvsi3): Likewise.
10081         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10082         (*divmodsi_internal, call, call_value, realign): Likewise.
10083         (moddi3, umoddi3): Likewise; remove duplicate expander.
10084         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10085         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10086         (*movdi_nofix): Remove r/U alternative.
10087         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10088         * config/alpha/constraints.md ("U"): Remove.
10089         * config/alpha/predicates.md (call_operand"): Don't test
10090         TARGET_ABI_UNICOSMK.
10091
10092 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10093
10094         * target.def (handle_option): Take gcc_options and
10095         cl_decoded_option pointers and location_t.
10096         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10097         * doc/tm.texi: Regenerate.
10098         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10099         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10100         * lto-opts.c (lto_reissue_options): Generate option structure for
10101         targetm.handle_option call.
10102         * opts.c (target_handle_option): Update call to
10103         targetm.handle_option.  Remove assertions about values now passed
10104         down to hook.
10105         * targhooks.c (default_target_handle_option): New.
10106         * targhooks.h (default_target_handle_option): Declare.
10107         * config/alpha/alpha.c: Include opts.h.
10108         (alpha_handle_option): Update to new hook interface.
10109         * config/arm/arm.c: Include opts.h.
10110         (arm_handle_option): Update to new hook interface.
10111         * config/arm/t-arm (arm.o): Update dependencies.
10112         * config/bfin/bfin.c: Include opts.h.
10113         (bfin_handle_option): Update to new hook interface.
10114         * config/cris/cris.c: Include opts.h.
10115         (cris_handle_option): Update to new hook interface.
10116         * config/frv/frv.c: Include opts.h.
10117         (frv_handle_option): Update to new hook interface.
10118         * config/i386/i386.c: Include opts.h.
10119         (ix86_handle_option): Update to new hook interface.
10120         (ix86_valid_target_attribute_inner_p): Generate option structure
10121         for call to ix86_handle_option.
10122         * config/i386/t-i386 (i386.o): Update dependencies.
10123         * config/ia64/ia64.c: Include opts.h.
10124         (ia64_handle_option): Update to new hook interface.
10125         * config/ia64/t-ia64 (ia64.o): Update dependencies.
10126         * config/iq2000/iq2000.c: Include opts.h.
10127         (iq2000_handle_option): Update to new hook interface.
10128         * config/m32c/m32c.c: Include opts.h.
10129         (m32c_handle_option): Update to new hook interface.
10130         * config/m32r/m32r.c: Include opts.h.
10131         (m32r_handle_option): Update to new hook interface.
10132         * config/m68k/m68k.c: Include opts.h.
10133         (m68k_handle_option): Update to new hook interface.
10134         * config/mep/mep.c: Include opts.h.
10135         (mep_handle_option): Update to new hook interface.
10136         * config/microblaze/microblaze.c: Include opts.h.
10137         (microblaze_handle_option): Update to new hook interface.
10138         * config/mips/mips.c: Include opts.h.
10139         (mips_handle_option): Update to new hook interface.
10140         * config/mn10300/mn10300.c: Include opts.h.
10141         (mn10300_handle_option): Update to new hook interface.
10142         * config/pa/pa.c: Include opts.h.
10143         (pa_handle_option): Update to new hook interface.
10144         * config/pdp11/pdp11.c: Include opts.h.
10145         (pdp11_handle_option): Update to new hook interface.
10146         * config/rs6000/rs6000.c: Include opts.h.
10147         (rs6000_handle_option): Update to new hook interface.
10148         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10149         * config/rx/rx.c: Include opts.h.
10150         (rx_handle_option): Update to new hook interface.
10151         * config/s390/s390.c: Include opts.h.
10152         (s390_handle_option): Update to new hook interface.
10153         * config/score/score.c: Include opts.h.
10154         (score_handle_option): Update to new hook interface.
10155         * config/sh/sh.c: Include opts.h.
10156         (sh_handle_option): Update to new hook interface.
10157         * config/sparc/sparc.c: Include opts.h.
10158         (sparc_handle_option): Update to new hook interface.
10159         * config/v850/v850.c: Include opts.h.
10160         (v850_handle_option): Update to new hook interface.
10161
10162 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10163
10164         * gcc.c (driver_unknown_option_callback): Only permit and save
10165         unknown -Wno- options.
10166         (driver_wrong_lang_callback): Save options directly instead of via
10167         driver_unknown_option_callback.
10168
10169 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10170
10171         * combine.c (simplify_set): Try harder to find the best CC mode when
10172         simplifying a nested COMPARE on the RHS.
10173
10174 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10175
10176         * config/alpha/gnu.h: Remove.
10177         * config/arc: Remove directory.
10178         * config/arm/netbsd.h: Remove.
10179         * config/arm/t-pe: Remove.
10180         * config/crx: Remove directory.
10181         * config/i386/netbsd.h: Remove.
10182         * config/m68hc11: Remove directory.
10183         * config/m68k/uclinux-oldabi.h: Remove.
10184         * config/mcore/mcore-pe.h: Remove.
10185         * config/mcore/t-mcore-pe: Remove.
10186         * config/netbsd-aout.h: Remove.
10187         * config/rs6000/gnu.h: Remove.
10188         * config/sh/sh-symbian.h: Remove.
10189         * config/sh/symbian-base.c: Remove.
10190         * config/sh/symbian-c.c: Remove.
10191         * config/sh/symbian-cxx.c: Remove.
10192         * config/sh/symbian-post.h: Remove.
10193         * config/sh/symbian-pre.h: Remove.
10194         * config/sh/t-symbian: Remove.
10195         * config/svr3.h: Remove.
10196         * config/vax/netbsd.h: Remove.
10197         * config.build: Don't handle i[34567]86-*-pe.
10198         * config.gcc: Remove handling of deprecations for most deprecated
10199         targets.
10200         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10201         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10202         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10203         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10204         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10205         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10206         Remove cases.
10207         * config.host: Don't handle i[34567]86-*-pe.
10208         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10209         (ASM_SPEC32): Don't handle -mcall-gnu.
10210         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10211         -mcall-gnu.
10212         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10213         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10214         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10215         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10216         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10217         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10218         conditional on SYMBIAN.
10219         * configure.ac: Don't handle powerpc*-*-gnu*.
10220         * configure: Regenerate.
10221         * doc/extend.texi (interrupt attribute): Don't mention CRX.
10222         * doc/install-old.texi (m6811, m6812): Don't mention.
10223         * doc/install.texi (arc-*-elf*): Don't document multilib option.
10224         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10225         (m68k-uclinuxoldabi): Don't mention.
10226         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10227         Remove.
10228         (-mcall-gnu): Remove.
10229         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10230         families): Remove constraint documentation.
10231
10232 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
10233
10234         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10235         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10236         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10237
10238 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10239
10240         PR target/48226
10241         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10242         vector when peeking at the next token for vector, don't expand the
10243         keywords.
10244
10245 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
10246
10247         * config/avr/avr-protos.h (expand_epilogue): Change prototype
10248         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10249         * config/avr/avr.c (init_cumulative_args)
10250         (avr_function_arg_advance): Use it.
10251         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10252         sibcall epilogues.
10253         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10254         (avr_function_ok_for_sibcall): ...this new function.
10255         (avr_lookup_function_attribute1): New static Function.
10256         (avr_naked_function_p, interrupt_function_p)
10257         (signal_function_p, avr_OS_task_function_p)
10258         (avr_OS_main_function_p): Use it.
10259         * config/avr/avr.md ("sibcall", "sibcall_value")
10260         ("sibcall_epilogue"): New expander.
10261         ("*call_insn", "*call_value_insn"): New insn.
10262         ("call_insn", "call_value_insn"): Remove
10263         ("call", "call_value", "epilogue"): Change expander to handle
10264         sibling calls.
10265
10266 2011-03-21  Nick Clifton  <nickc@redhat.com>
10267
10268         * doc/invoke.texi (Overall Options): Move closing brace to end of
10269         options list.
10270         (Optimization Options): Add missing @gol.
10271         (Directory Options): Likewise.
10272         (i386 and x86-64 Options): Likewise.
10273         (RS6000 and PowerPC Options): Likewise.
10274         (i386 and x86-64 Windows Options): Likewise.
10275         (V850 Options): Add text missing from descriptions.
10276
10277 2011-03-22  Richard Henderson  <rth@redhat.com>
10278
10279         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10280         (avr_incoming_return_addr_rtx): New.
10281         (emit_push_byte): New.
10282         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
10283         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
10284         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
10285         (emit_pop_byte): New.
10286         (expand_epilogue): Use it.  Pop frame pointer by bytes.
10287         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10288         (INCOMING_RETURN_ADDR_RTX): New.
10289         (INCOMING_FRAME_SP_OFFSET): New.
10290         (ARG_POINTER_CFA_OFFSET): New.
10291         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10292         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10293         (pophi): Remove.
10294
10295         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10296
10297 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10298
10299         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10300         (FUNCTION_ARG_ADVANCE): Likewise.
10301         * tm.texi.in: Change references to them to hook references.
10302         * tm.texi: Regenerate.
10303         * targhooks.c (default_function_arg): Eliminate check for target
10304         macro.
10305         (default_function_incoming_arg): Likewise.
10306         (default_function_arg_advance): Likewise.
10307         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10308         (function_arg_advance): Likewise.
10309         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10310
10311 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10312
10313         * tree.c (build_call_1): New function.
10314         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10315
10316 2011-03-22  Richard Guenther  <rguenther@suse.de>
10317
10318         PR tree-optimization/48228
10319         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10320         for single-arg PHIs.
10321
10322 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
10323
10324         PR rtl-optimization/48143
10325         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10326         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10327         sse2_cvtps2pd): Likewise.
10328
10329 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10330
10331         * recog.c (canonicalize_change_group): Use validate_unshare_change.
10332
10333 2011-03-22  Richard Guenther  <rguenther@suse.de>
10334
10335         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10336         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10337         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10338         and REALIGN_LOAD_EXPR.
10339         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10340         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10341         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10342         DOT_PROD_EXPR case ...
10343         (expand_expr_real_2): ... here.
10344         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10345         and REALIGN_LOAD_EXPR.
10346         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10347         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10348         (vect_create_epilog_for_reduction): Likewise.
10349         (vectorizable_reduction): Likewise.
10350         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10351         * tree-vect-stmts.c (vectorizable_load): Likewise.
10352
10353 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10354
10355         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10356
10357 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10358
10359         * config/s390/s390.c (s390_delegitimize_address): Fix offset
10360         handling for PLTOFF/GOTOFF.
10361
10362 2011-03-22  Nick Clifton  <nickc@redhat.com>
10363
10364         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10365         trailing backslash from the end of the macro definition.
10366
10367 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10368
10369         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10370         and PLT unspecs.
10371
10372 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
10373
10374         * expr.h (prepare_operand): Move to...
10375         * optabs.h (prepare_operand): ...here and change the insn code
10376         parameter from "int" to "enum insn_code".
10377         (insn_operand_matches): Declare.
10378         * expr.c (init_expr_target): Use insn_operand_matches.
10379         (compress_float_constant): Likewise.
10380         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10381         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10382         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10383         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10384         Likewise.
10385         (gen_cond_trap): Likewise.
10386         (prepare_operand): Likewise.  Change icode to an insn_code.
10387         (insn_operand_matches): New function.
10388         * reload.c (find_reloads_address_1): Use insn_operand_matches.
10389         * reload1.c (gen_reload): Likewise.
10390         * targhooks.c (default_secondary_reload): Likewise.
10391
10392 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10393
10394         * config/alpha/alpha.md (unspec): New define_c_enum.
10395         (unspecv): Ditto.
10396
10397 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10398
10399         PR debug/48214
10400         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10401         between a call and its CALL_ARG_LOCATION note.
10402
10403 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
10404
10405         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10406
10407 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10408
10409         PR c/42544
10410         PR c/48197
10411         * c-common.c (shorten_compare): If primopN is first sign-extended
10412         to opN and then zero-extended to result type, set primopN to opN.
10413
10414 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
10415
10416         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10417         for barrier handlers.
10418
10419 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10420
10421         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10422         UNSPEC constants to be in the unspec enumeration, and redefine
10423         all UNSPECV constants to be in the unspecv enumeration, so that
10424         dumps print which unspec/unspec_volatile this is.
10425         * config/rs6000/vector.md (UNSPEC_*): Ditto.
10426         * config/rs6000/paired.md (UNSPEC_*): Ditto.
10427         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10428         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10429         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10430
10431         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10432         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10433         UNSPECV_LWSYNC, since these are used as unspec_volatile.
10434         * config/rs6000/sync.md (isync, lwsync): Ditto.
10435
10436 2011-03-21  Richard Guenther  <rguenther@suse.de>
10437
10438         * params.def (lto-min-partition): Fix typo.
10439
10440 2011-03-21  Richard Guenther  <rguenther@suse.de>
10441
10442         PR c/47939
10443         * c-decl.c (grokdeclarator): Drop to the main variant only
10444         for array types.  Drop flag_gen_aux_info check.
10445
10446 2011-03-21  Richard Guenther  <rguenther@suse.de>
10447
10448         PR translation/47911
10449         * params.def (lto-partitions): Fix typo.
10450         (lto-min-partition): Fix wording.
10451
10452 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
10453
10454         * config/rs6000/t-freebsd: Remove duplication from file.
10455
10456 2011-03-21  Richard Guenther  <rguenther@suse.de>
10457
10458         PR middle-end/47661
10459         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10460
10461 2011-03-21  Richard Guenther  <rguenther@suse.de>
10462
10463         PR lto/48210
10464         * params.def (lto-partitions): Require at least 1 partition.
10465
10466 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10467
10468         * gthr-solaris.h: Remove.
10469         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10470         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10471         (LIB_SPEC): Likewise.
10472         * config/sol2.opt (threads): Remove.
10473         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10474         (sparc*-*-solaris2*): Likewise.
10475         * configure.ac (enable_threads): Enable solaris support.
10476         * configure: Regenerate.
10477         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10478         * doc/install.texi (Configuration, --enable-threads=lib): Remove
10479         solaris.
10480
10481 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10482
10483         * config.gcc: Obsolete *-*-solaris2.8*.
10484         * doc/install.texi (Specific, *-*-solaris2*): Document it.
10485
10486 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10487
10488         PR bootstrap/48135
10489         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10490         reference.  Solaris 8 perl works.
10491
10492 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10493
10494         PR bootstrap/48135
10495         * doc/install.texi (Prerequisites): Move jar etc. up.
10496         Explain support library version requirements.
10497
10498 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10499
10500         PR bootstrap/48135
10501         * doc/install.texi (Prerequisites): Move Perl to build
10502         requirements.  Always necessary on Solaris 2 with Sun ld.
10503
10504 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10505
10506         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10507         binutils 2.21.
10508         (Specific, i?86-*-solaris2.[89]): Likewise.
10509         (Specific, i?86-*-solaris2.10): Likewise.
10510         (Specific, mips-sgi-irix6): Likewise.
10511         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10512         Update for binutils 2.21.
10513
10514 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10515
10516         * configure.ac (gcc_cv_lto_plugin): Fix typo.
10517         Allow -fuse-linker-plugin for non-default plugin linker.
10518         * configure: Regenerate.
10519
10520 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10521
10522         PR bootstrap/48167
10523         * gengtype.c (files_rules): Added rule for cp/parser.h.
10524
10525 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10526
10527         PR target/48213
10528         * config/s390/s390.c (s390_delegitimize_address): Don't call
10529         lowpart_subreg if orig_x has BLKmode.
10530
10531 2011-03-21  Kai Tietz  <ktietz@redhat.com>
10532
10533         PR target/12171
10534         * doc/plugins.texi: Adjust documentation for plugin register_callback.
10535         * tree.h (attribute_spec): Add new member affects_type_identity.
10536         * attribs.c (empty_attribute_table): Adjust attribute_spec
10537         initializers.
10538         * config/alpha/alpha.c: Likewise.
10539         * config/arc/arc.c: Likewise.
10540         * config/arm/arm.c: Likewise.
10541         * config/avr/avr.c: Likewise.
10542         * config/bfin/bfin.c: Likewise.
10543         * config/crx/crx.c: Likewise.
10544         * config/darwin.h: Likewise.
10545         * config/h8300/h8300.c: Likewise.
10546         * config/i386/cygming.h: Likewise.
10547         * config/i386/i386.c: Likewise.
10548         * config/ia64/ia64.c: Likewise.
10549         * config/m32c/m32c.c: Likewise.
10550         * config/m32r/m32r.c: Likewise.
10551         * config/m68hc11/m68hc11.c: Likewise.
10552         * config/m68k/m68k.c: Likewise.
10553         * config/mcore/mcore.c: Likewise.
10554         * config/mep/mep.c: Likewise.
10555         * config/microblaze/microblaze.c: Likewise.
10556         * config/mips/mips.c: Likewise.
10557         * config/rs6000/rs6000.c: Likewise.
10558         * config/rx/rx.c: Likewise.
10559         * config/sh/sh.c: Likewise.
10560         * config/sol2.h: Likewise.
10561         * config/sparc/sparc.c: Likewise.
10562         * config/spu/spu.c: Likewise.
10563         * config/stormy16/stormy16.c: Likewise.
10564         * config/v850/v850.c: Likewise.
10565
10566 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
10567
10568         * simplify-rtx.c (simplify_binary_operation_1): Handle
10569         (xor (and A B) C) case when B and C are both constants.
10570
10571 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
10572
10573         * tree-dfa.c (add_referenced_var): Fix typo in comment.
10574
10575 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
10576
10577         PR bootstrap/48168
10578         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10579
10580 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
10581
10582         PR rtl-optimization/48156
10583         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10584         assume df and df_lr are not NULL.
10585
10586 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10587
10588         PR debug/48023
10589         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10590         between a call and its CALL_ARG_LOCATION note.
10591
10592 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10593
10594         PR debug/48178
10595         * config/sh/sh.c (find_barrier): Don't emit a constant pool
10596         between a call and its corresponding CALL_ARG_LOCATION note.
10597
10598 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
10599
10600         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10601         instead of loop. Use HARD_REGISTER_NUM_P predicate.
10602         * haifa-sched.c (setup_ref_regs): Ditto.
10603         * caller-save.c (add_used_regs_1): Ditto.
10604         * dse.c (look_for_hardregs): Ditto.
10605         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10606         * sched-rgn.c (check_live_1): Ditto.
10607
10608 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10609
10610         * c-decl.c (diagnose_mismatched_decls): Give an error for
10611         redefining a typedef with variably modified type.
10612
10613 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10614
10615         * c-decl.c (grokfield): Don't allow typedefs for structures or
10616         unions with no tag by default.
10617         * doc/extend.texi (Unnamed Fields): Update.
10618
10619 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
10620
10621         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10622         Rewrite using indirect functions.
10623         (lwp_slwpcb): Ditto.
10624         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10625         (avx_vinsertf128<mode>): Ditto.
10626
10627 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10628
10629         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10630         unspecs.
10631
10632 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10633
10634         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10635         splitting between a call and its corresponding CALL_ARG_LOCATION note.
10636
10637 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10638
10639         PR rtl-optimization/48170
10640         * gcse.c (hoist_code): Remove bogus asserts.
10641
10642 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
10643
10644         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10645         computation for prologue/epilogue.
10646
10647 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10648
10649         * Makefile.in (check-consistency): Remove.
10650
10651 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
10652
10653         PR debug/48176
10654         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10655         arange_table_in_use is 0, but either text_section_used or
10656         cold_text_section_used is true.  Don't call it if
10657         !info_section_emitted.
10658
10659 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
10660
10661         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10662         FUNCTION_VALUE_REGNO_P): Remove.
10663         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10664         Remove.
10665         * config/avr/avr.c (avr_ret_register): Make static inline.
10666         (avr_function_value_regno_p): New function.
10667         (avr_libcall_value): Make static. Add 'func' argument.
10668         (avr_function_value): Make static. Rename 'func' argument to
10669         'fn_decl_or_type', forward it to avr_libcall_value. Call
10670         avr_ret_register function instead of RET_REGISTER macro.
10671         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10672
10673 2011-03-18  Jason Merrill  <jason@redhat.com>
10674
10675         PR c++/23372
10676         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10677
10678 2011-03-18  Richard Guenther  <rguenther@suse.de>
10679
10680         * doc/install.texi (--enable-gold): Remove.
10681         (--with-plugin-ld): Document.
10682         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10683
10684 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
10685
10686         PR middle-end/47790
10687         * expr.c (optimize_bitfield_assignment_op): Revamp to work
10688         again after expansion changes.
10689
10690 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
10691
10692         * combine.c (try_combine): Do simplification only call of
10693         subst() on i2 even when i1 is present. Update comments.
10694
10695 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10696
10697         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10698         and UNSPEC_PCREL_SYMOFF.
10699
10700 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10701
10702         * config/s390/s390.md: Use define_c_enum for the unspec constant
10703         definitions.
10704
10705 2011-03-18  Richard Henderson  <rth@redhat.com>
10706             Jakub Jelinek  <jakub@redhat.com>
10707
10708         PR bootstrap/48161
10709         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10710         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10711
10712 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10713
10714         PR middle-end/47725
10715         * combine.c (cant_combine_insn_p): Don't check zero/sign
10716         extended hard registers.
10717
10718 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10719
10720         PR middle-end/47725
10721         * combine.c (cant_combine_insn_p): Check zero/sign extended
10722         hard registers.
10723
10724 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
10725
10726         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10727         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10728         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10729         Change return type to bool.
10730         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10731
10732 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10733
10734         PR debug/48163
10735         * var-tracking.c (prepare_call_arguments): If CALL target
10736         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10737         pc instead of looking it up using cselib_lookup and use
10738         Pmode for it if x has VOIDmode.
10739         * dwarf2out.c (gen_subprogram_die): If also both first and
10740         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10741
10742         PR debug/48163
10743         * function.c (assign_parms): For data.passed_pointer parms
10744         use MEM of data.entry_parm instead of data.entry_parm itself
10745         as DECL_INCOMING_RTL.
10746         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10747         also when passed and declared mode is the same, DECL_RTL
10748         is a MEM with pseudo as address and DECL_INCOMING_RTL is
10749         a MEM too.
10750
10751 2011-03-16  Jeff Law  <law@redhat.com>
10752
10753         PR rtl-optimization/37273
10754         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10755         handle them like argument loads from stack slots.  Do not double
10756         count memory for memory constants and argument loads from stack slots.
10757
10758 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10759
10760         PR debug/48160
10761         * var-tracking.c (prepare_call_arguments): Check SUBREG.
10762
10763 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10764
10765         PR target/48171
10766         * config/i386/i386.opt: Add Save to -mavx and -mfma.
10767
10768 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10769
10770         PR bootstrap/48153
10771         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10772         if dwarf_strict.
10773         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10774         Clear call_arg_locations and call_arg_loc_last always.
10775
10776         PR middle-end/48152
10777         * var-tracking.c (prepare_call_arguments): If argument needs to be
10778         passed by reference, adjust argtype and mode.
10779
10780 2011-03-17  Richard Guenther  <rguenther@suse.de>
10781
10782         PR middle-end/48134
10783         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10784         a value make sure to fold the statement.
10785
10786 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
10787
10788         PR target/43872
10789         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10790         return condition with !cfun->calls_alloca.
10791
10792 2011-03-17  Richard Guenther  <rguenther@suse.de>
10793
10794         PR bootstrap/48148
10795         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10796         origin for decls in other ltrans units.
10797         (input_varpool_node): Likewise.
10798
10799 2011-03-17  Richard Guenther  <rguenther@suse.de>
10800
10801         PR middle-end/48165
10802         * tree-object-size.c (compute_object_offset): Properly return
10803         the offset operand of MEM_REFs as sizetype.
10804
10805 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10806
10807         PR rtl-optimization/48141
10808         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10809         * dse.c: Include params.h.
10810         (active_local_stores_len): New variable.
10811         (add_wild_read, dse_step1): Clear it when setting active_local_stores
10812         to NULL.
10813         (record_store, check_mem_read_rtx): Decrease it when removing
10814         from the chain.
10815         (scan_insn): Likewise.  Increase it when adding to chain, if it
10816         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10817         set active_local_stores to NULL before the addition.
10818         * Makefile.in (dse.o): Depend on $(PARAMS_H).
10819
10820         PR rtl-optimization/48141
10821         * dse.c (record_store): If no positions are needed in an insn
10822         that cannot be deleted, at least unchain it from active_local_stores.
10823
10824 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
10825
10826         PR debug/47510
10827         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10828         (lookup_type_die_strip_naming_typedef): ... here.
10829         (get_context_die): Use it.
10830         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10831         the anonymous struct named by the naming typedef.
10832
10833 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10834
10835         PR target/48154
10836         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10837         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10838
10839 2011-03-16  Jeff Law  <law@redhat.com>
10840
10841         * tree-vrp.c (identify_jump_threads): Slightly simplify type
10842         check for operands of conditional.  Allow type to be a pointer.
10843
10844 2011-03-16  Richard Guenther  <rguenther@suse.de>
10845
10846         PR tree-optimization/48149
10847         * fold-const.c (fold_binary_loc): Fold
10848         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10849
10850 2011-03-16  Richard Guenther  <rguenther@suse.de>
10851
10852         PR tree-optimization/26134
10853         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10854         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10855         (non_rewritable_mem_ref_base): Handle complex type component
10856         accesses, constrain offsets for vector and complex extracts
10857         more properly.
10858
10859 2011-03-16  Richard Guenther  <rguenther@suse.de>
10860
10861         PR tree-optimization/48146
10862         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10863         operands avoiding the need for renaming.
10864
10865 2011-03-16  Richard Guenther  <rguenther@suse.de>
10866
10867         * gimple-fold.c (maybe_fold_reference): Open-code relevant
10868         constant folding.  Move MEM_REF canonicalization first.
10869         Rely on fold_const_aggregate_ref for initializer folding.
10870         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10871
10872 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10873
10874         PR middle-end/48136
10875         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10876         arg0/arg1 or their arguments are always fold converted to matching
10877         types.
10878
10879         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10880         to nargs.
10881
10882 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10883
10884         PR lto/46944
10885         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10886         Handle in-tree gold.
10887         (ld_vers): Extract binutils version for gold.
10888         (gcc_cv_ld_hidden): Handle gold here.
10889         (gcc_cv_lto_plugin): Determine level of linker plugin support.
10890         * configure: Regenerate.
10891         * config.in: Regenerate.
10892         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10893         -fuse-linker-plugin otherwise.
10894         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10895         (LINK_COMMAND_SPEC): Use it.
10896         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10897
10898 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10899
10900         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10901         * calls.c: Remove debug.h include.
10902         (emit_call_1): Don't call virtual_call_token debug hook.
10903         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10904         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10905         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10906         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10907         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10908         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10909         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10910         dwarf2out_virtual_call): Remove.
10911         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10912         copy_call_info and virtual_call hooks.
10913         (dwarf2out_init): Don't initialize vcall_insn_table,
10914         debug_dcall_section and debug_vcall_section.
10915         (prune_unused_types): Don't mark nodes from dcall_table.
10916         (dwarf2out_finish): Don't output dcall or vcall tables.
10917         * final.c (final_scan_insn): Don't call direct_call or
10918         virtual_call debug hooks.
10919         * debug.h (struct gcc_debug_hooks): Remove direct_call,
10920         virtual_call_token, copy_call_info and virtual_call hooks.
10921         (debug_nothing_uid): Remove prototype.
10922         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10923         copy_call_info and virtual_call hooks.
10924         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10925         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10926         * debug.c (do_nothing_debug_hooks): Likewise.
10927         (debug_nothing_uid): Remove.
10928         * doc/invoke.texi (-fenable-icf-debug): Remove.
10929         * common.opt (-fenable-icf-debug): Likewise.
10930
10931         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10932         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10933         call's MEM.  Handle functions returning aggregate through a hidden
10934         first pointer.  For virtual calls add clobbered pc to call arguments
10935         chain.
10936         * dwarf2out.c (gen_subprogram_die): Emit
10937         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10938         can't be emitted.
10939
10940         PR debug/45882
10941         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10942         * rtl.h (ENTRY_VALUE_EXP): Define.
10943         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10944         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10945         * print-rtl.c (print_rtx): Likewise.
10946         * gengtype.c (adjust_field_rtx_def): Likewise.
10947         * var-tracking.c (vt_add_function_parameter): Adjust
10948         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10949         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10950         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10951         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10952         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10953
10954         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10955         Call var_location debug hook even on CALL_INSNs.
10956         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10957         * rtl.def (ENTRY_VALUE): New.
10958         * dwarf2out.c: Include cfglayout.h.
10959         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10960         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10961         (struct call_arg_loc_node): New type.
10962         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10963         tail_call_site_count): New variables.
10964         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10965         DW_TAG_GNU_call_site_parameter.
10966         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10967         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10968         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10969         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10970         and DW_AT_GNU_all_source_call_sites.
10971         (mem_loc_descriptor): Handle ENTRY_VALUE.
10972         (add_src_coords_attributes): Don't add enything if
10973         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10974         (dwarf2out_abstract_function): Save and clear call_arg_location,
10975         call_site_count and tail_call_site_count around dwarf2out_decl call.
10976         (gen_call_site_die): New function.
10977         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10978         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10979         (dwarf2out_function_decl): Clear call_arg_locations,
10980         call_arg_loc_last, set call_site_count and tail_call_site_count
10981         to -1 and free block_map.
10982         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10983         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
10984         followed by any real instructions.
10985         (dwarf2out_begin_function): Set call_site_count and
10986         tail_call_site_count to 0.
10987         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10988         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10989         attempt to force a DIE for it and worst case remove the attribute.
10990         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10991         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10992         the decl itself.
10993         * var-tracking.c: Include tm_p.h.
10994         (vt_stack_adjustments): For calls call note_register_arguments.
10995         (argument_reg_set): New variable.
10996         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10997         ensure the VALUE is resolved.
10998         (call_arguments): New variable.
10999         (prepare_call_arguments): New function.
11000         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
11001         (struct expand_loc_callback_data): Add ignore_cur_loc field.
11002         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
11003         always use the best expression.
11004         (vt_expand_loc): Add ignore_cur_loc argument.
11005         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11006         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11007         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11008         note for all calls.
11009         (vt_add_function_parameter): Use cselib_lookup_from_insn.
11010         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11011         argument.  Don't call cselib_preserve_only_values and
11012         cselib_reset_table.
11013         (note_register_arguments): New function.
11014         (vt_initialize): Compute argument_reg_set.  Call
11015         vt_add_function_parameters before processing basic blocks instead of
11016         afterwards.  For calls call prepare_call_arguments before calling
11017         cselib_process_insn.
11018         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11019         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11020         (var-tracking.o): Depend on $(TM_P_H).
11021         * cfglayout.h (insn_scope): New prototype.
11022         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11023         * cfglayout.c (insn_scope): No longer static.
11024         * insn-notes.def (CALL_ARG_LOCATION): New.
11025         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11026         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11027         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11028         nothing for DECL_EXTERNAL BLOCK_VARS.
11029
11030 2011-03-16  Alan Modra  <amodra@gmail.com>
11031
11032         PR target/45844
11033         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11034         create invalid offset address for vsx splat insn.
11035         * config/rs6000/predicates.md (splat_input_operand): New.
11036         * config/rs6000/vsx.md (vsx_splat_*): Use it.
11037
11038 2011-03-15  Xinliang David Li  <davidxl@google.com>
11039
11040         PR c/47837
11041         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11042         (normalize_preds): New function.
11043         (is_use_properly_guarded): Normalize def predicates.
11044
11045 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11046
11047         PR target/46788
11048         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11049         in the output template.
11050
11051 2011-03-15  Richard Guenther  <rguenther@suse.de>
11052
11053         PR middle-end/47650
11054         * tree-pretty-print.c (dump_function_declaration): Properly
11055         dump unprototyped and varargs function types.
11056
11057 2011-03-15  Richard Guenther  <rguenther@suse.de>
11058
11059         PR tree-optimization/13954
11060         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11061         and friends.
11062
11063 2011-03-15  Richard Guenther  <rguenther@suse.de>
11064
11065         PR tree-optimization/48037
11066         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11067         selects into BIT_FIELD_REFs.
11068         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11069         vector select.
11070
11071 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
11072
11073         PR tree-optimization/48129
11074         * builtins.c (fold_builtin_snprintf): Convert to type of
11075         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11076         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11077
11078 2011-03-15  Richard Guenther  <rguenther@suse.de>
11079
11080         PR tree-optimization/41490
11081         * tree-ssa-dce.c (propagate_necessity): Handle returns without
11082         value but with VUSE.
11083         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11084         return statements.
11085         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11086         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11087         * tree-tailcall.c (find_tail_calls): Ignore returns.
11088
11089 2011-03-15  Richard Guenther  <rguenther@suse.de>
11090
11091         PR middle-end/48031
11092         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11093         or variable-indexed array accesses when in gimple form.
11094
11095 2011-03-15  Richard Guenther  <rguenther@suse.de>
11096
11097         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11098
11099 2011-03-15  Alan Modra  <amodra@gmail.com>
11100
11101         PR target/48032
11102         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11103         presume symbol_refs without a symbol_ref_decl are suitably
11104         aligned, nor other trees we may see here.  Handle anchor symbols.
11105         (legitimate_constant_pool_address_p): Comment.  Add mode param.
11106         Check cmodel=medium addresses.  Adjust all calls.
11107         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11108         creating cmodel=medium optimized access to locals.
11109         * config/rs6000/constraints.md (R): Pass QImode to
11110         legitimate_constant_pool_address_p.
11111         * config/rs6000/predicates.md (input_operand): Pass mode to
11112         legitimate_constant_pool_address_p.
11113         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11114         Update prototype.
11115
11116 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11117
11118         PR target/48053
11119         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11120         64-bit constants being loaded into registers other than GPRs such
11121         as loading 0 into a VSX register.
11122
11123 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11124
11125         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11126
11127 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11128
11129         PR middle-end/47917
11130         * builtins.c (fold_builtin_snprintf): New function.
11131         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11132         (fold_builtin_4): Likewise.
11133
11134         PR middle-end/38878
11135         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11136         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
11137         and C - X == X also strip nops from +/-/p+ operand.
11138         When optimizing -X == C, fold C to arg0's type.
11139
11140         PR debug/47946
11141         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11142         emit it as add_AT_int instead of add_AT_unsigned.
11143
11144 2011-03-14  Tom Tromey  <tromey@redhat.com>
11145
11146         * unwind-dw2.c: Include sys/sdt.h if it exists.
11147         (_Unwind_DebugHook): Use STAP_PROBE2.
11148         * config.in, configure: Rebuild.
11149         * configure.ac: Check for sys/sdt.h.
11150
11151 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
11152
11153         * config/i386/i386.md (ROUND_FLOOR): New constant.
11154         (ROUND_CEIL): Ditto.
11155         (ROUND_TRUNC): Ditto.
11156         (ROUND_MXCSR): Ditto.
11157         (ROUND_NO_EXC): Ditto.
11158         (rint<mode>2): Use new defines instead of numerical constants.
11159         (floor<mode>2): Ditto.
11160         (ceil<mode>2): Ditto.
11161         (btrunc<mode>2): Ditto.
11162         * config/i386/i386-builtin-types.def: Define ROUND function type
11163         aliases.
11164         * config/i386/i386.c (enum ix86_builtins): Add
11165         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11166         (struct builtin_description): Add
11167         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11168         (ix86_expand_sse_round): New static function.
11169         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11170         function types.
11171         (ix86_builtin_vectorized_function): Handle
11172         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11173
11174 2011-03-14  Tom Tromey  <tromey@redhat.com>
11175
11176         * c-parser.c (c_parser_asm_string_literal): Clear
11177         warn_overlength_strings.
11178
11179 2011-03-14  Tom Tromey  <tromey@redhat.com>
11180
11181         * c-parser.c (disable_extension_diagnostics): Save
11182         warn_overlength_strings.
11183         (restore_extension_diagnostics): Restore warn_overlength_strings.
11184
11185 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11186
11187         * BASE-VER: Change to 4.7.0.
11188
11189 2011-03-14  Richard Guenther  <rguenther@suse.de>
11190
11191         PR middle-end/48098
11192         * tree.c (build_vector_from_val): Adjust assert to requirements
11193         and reality.
11194
11195 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11196
11197         PR bootstrap/48102
11198         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11199
11200 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
11201
11202         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11203         terms of target_flags_explicit. Adjust copyright year.
11204
11205         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11206         * config/rs6000/t-freebsd: New file. Add override for
11207         LIB2FUNCS_EXTRA.
11208
11209 2011-03-13  Chris Demetriou  <cgd@google.com>
11210
11211         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11212         (-fno-diagnostics-show-option): this, to reflect current default.
11213         (-Werror=): Update text about -fno-diagnostics-show-option.
11214
11215 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
11216
11217         PR target/48053
11218         * config/rs6000/predicates.md (easy_vector_constant_add_self,
11219         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11220         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11221         mode is not V2DImode or V2DFmode.
11222         (vspltis_constant): Do not handle V2DImode and V2DFmode.
11223         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11224         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11225         registers to 0.
11226         (movdi_internal64): Likewise.
11227
11228 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
11229
11230         PR tree-optimization/47127
11231         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11232         parameter.
11233         (set_cloog_options): Same.
11234         (scop_to_clast): Same.
11235         (print_clast_stmt): Do not call cloog_state_malloc and
11236         cloog_state_free.
11237         (print_generated_program): Same.
11238         (gloog): Same.
11239         * graphite-clast-to-gimple.h (cloog_state): Declared.
11240         (scop_to_clast): Adjust declaration.
11241         * graphite.c (cloog_state): Defined here.
11242         (graphite_initialize): Call cloog_state_malloc.
11243         (graphite_finalize): Call cloog_state_free.
11244
11245 2011-03-11  Jason Merrill  <jason@redhat.com>
11246
11247         * attribs.c (lookup_attribute_spec): Take const_tree.
11248         * tree.h: Adjust.
11249
11250 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
11251
11252         * config/sparc/sparc.c (sparc_option_override): Use
11253         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11254
11255 2011-03-11  Richard Guenther  <rguenther@suse.de>
11256
11257         PR tree-optimization/48067
11258         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11259         multiplication result will be only used once on the target
11260         stmt.
11261
11262 2011-03-11  Richard Guenther  <rguenther@suse.de>
11263
11264         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11265
11266 2011-03-11  Richard Guenther  <rguenther@suse.de>
11267
11268         PR lto/48073
11269         * tree.c (find_decls_types_r): Do not walk types only reachable
11270         from IDENTIFIER_NODEs.
11271
11272 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11273
11274         PR middle-end/48044
11275         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11276         all vnode->force_output nodes as needed.
11277
11278 2011-03-11  Jason Merrill  <jason@redhat.com>
11279
11280         PR c++/48069
11281         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11282         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11283
11284 2011-03-11  Martin Jambor  <mjambor@suse.cz>
11285
11286         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11287         cgraph_node.
11288
11289 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11290
11291         PR tree-optimization/48063
11292         * ipa-inline.c (cgraph_decide_inlining): Don't try to
11293         inline functions called once if !tree_can_inline_p (node->callers).
11294
11295 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
11296
11297         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11298         extra_objs.
11299         * config/score/score3.c: Delete.
11300         * config/score/score3.h: Delete.
11301         * config/score/mul-div.S: Delete.
11302         * config/score/sfp-machine.h: Add new file.
11303         * config/score/constraints.md: Add new file.
11304         * config/score/t-score-softfp: Add new file.
11305         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11306         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11307         (score7_extra_constraint): Delete.
11308         (score7_option_override): Remove unused code.
11309         * config/score/score.c: Remove score3 and score5 define and code.
11310         * config/score/score.h: Remove score3 and score5 define and code.
11311         * config/score/score.md: Remove score3 template and unusual insn.
11312         * config/score/score.opt: Remove score3 and score5 options.
11313
11314 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11315
11316         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11317         when _HPUX_SOURCE is defined.
11318         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11319
11320 2011-03-10  Jason Merrill  <jason@redhat.com>
11321
11322         PR c++/48029
11323         * stor-layout.c (layout_type): Don't set structural equality
11324         on arrays of incomplete type.
11325         * tree.c (type_hash_eq): Handle comparing them properly.
11326
11327 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
11328
11329         PR debug/48043
11330         * config/s390/s390.c (s390_delegitimize_address): Make sure the
11331         result mode matches original rtl mode.
11332
11333 2011-03-10  Nick Clifton  <nickc@redhat.com>
11334
11335         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11336         (andsi3, andsi3_flags): Fix timings for three operand alternative.
11337
11338 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
11339
11340         PR rtl-optimization/47866
11341         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11342         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11343         if target wasn't scalar.
11344         * function.c (assign_stack_temp_for_type): Assert that neither
11345         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11346         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11347         macro.
11348         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11349
11350 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11351
11352         * config/s390/s390-protos.h (s390_label_align): New prototype.
11353         * config/s390/s390.c (s390_label_align): New function.
11354         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11355
11356 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11357
11358         PR target/47755
11359         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11360         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
11361         (output_vec_const_move): Ditto.
11362
11363 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
11364
11365         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11366         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11367         * config/mips/mips.c (mips_preferred_reload_class): Make static.
11368         Change 'rclass' argument and result type to reg_class_t.
11369         (TARGET_PREFERRED_RELOAD_CLASS): Define.
11370
11371 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
11372
11373         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11374         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11375         (TARGET_MEMORY_MOVE_COST): Define.
11376         (avr_register_move_cost, avr_memory_move_cost): New Functions.
11377
11378 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
11379
11380         PR debug/47881
11381         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11382         removed anything.
11383
11384         PR tree-optimization/48022
11385         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11386         for EQ/NE_EXPR.
11387
11388 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
11389
11390         PR debug/47991
11391         * var-tracking.c (find_use_val): Return NULL for
11392         cui->sets && cui->store_p BLKmode MEMs.
11393
11394 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
11395
11396         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11397         Remove.
11398         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11399         xstormy16_print_operand_address): Remove.
11400         * config/stormy16/stormy16.c (xstormy16_print_operand,
11401         xstormy16_print_operand_address): Make static.
11402         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11403
11404 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
11405
11406         PR target/47862
11407         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11408         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11409         before definition.
11410
11411 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
11412
11413         PR bootstrap/48000
11414         * cfgloopmanip.c (fix_bb_placements): Return immediately
11415         if FROM is BASE_LOOP's header.
11416
11417 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
11418
11419         * gimplify.c (gimplify_function_tree): Fix building calls
11420         to __builtin_return_address.
11421
11422 2011-03-07  Alan Modra  <amodra@gmail.com>
11423
11424         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11425         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11426         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11427         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11428         return_mode args.
11429         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11430         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11431         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11432         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11433         * config/rs6000/rs6000.c
11434         (rs6000_elf_end_indicate_exec_stack): Rename to..
11435         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
11436         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
11437         (rs6000_file_start): ..here.
11438         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11439         file scope variables.
11440         (call_ABI_of_interest): New function.
11441         (init_cumulative_args): Set above vars when function return value
11442         is a float, vector, or small struct.
11443         (rs6000_function_arg_advance_1): Likewise for function args.
11444         (rs6000_va_start): Set rs6000_passes_float if variable arg function
11445         references float args.
11446
11447 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
11448
11449         * doc/cfg.texi: Remove "See" before @ref.
11450         * doc/invoke.texi: Likewise.
11451
11452 2011-03-05  Jason Merrill  <jason@redhat.com>
11453
11454         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11455
11456 2011-03-05  Anthony Green  <green@moxielogic.com>
11457
11458         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11459
11460 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
11461
11462         PR rtl-optimization/47899
11463         * cfgloopmanip.c (fix_bb_placements): Fix first argument
11464         to flow_loop_nested_p when moving the loop upward.
11465
11466 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
11467
11468         PR target/47719
11469         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
11470
11471 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
11472
11473         PR tree-optimization/47967
11474         * ipa-cp.c (build_const_val): Return NULL instead of creating
11475         VIEW_CONVERT_EXPR for mismatching sizes.
11476         (ipcp_create_replace_map): Return NULL if build_const_val failed.
11477         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11478         give up on versioning.
11479
11480 2011-03-05  Alan Modra  <amodra@gmail.com>
11481
11482         PR target/47986
11483         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11484         full cmodel medium/large lo_sum + high addresses.
11485
11486 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11487
11488         * config/s390/s390.c (s390_decompose_address): Reject non-literal
11489         pool references in UNSPEC_LTREL_OFFSET.
11490
11491 2011-03-04  Jan Hubicka  <jh@suse.cz>
11492
11493         PR lto/47497
11494         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11495         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11496         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11497         Add node pointers.
11498         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11499         cgraph_add_thunk): Add node pointers.
11500         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11501         associated to right node.
11502         (input_node): Update use of cgraph_same_body_alias
11503         and cgraph_add_thunk.
11504
11505 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
11506
11507         * config/i386/i386.opt (mprefer-avx128): New flag.
11508         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11509         modes when the flag -mprefer-avx128 is on.
11510
11511 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
11512
11513         * dwarf2out.c (compare_loc_operands): Fix address handling.
11514
11515 2011-03-04  Alan Modra  <amodra@gmail.com>
11516
11517         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11518
11519 2011-03-04  Richard Guenther  <rguenther@suse.de>
11520
11521         PR middle-end/47968
11522         * expmed.c (extract_bit_field_1): Prefer vector modes that
11523         vec_extract patterns can handle.
11524
11525 2011-03-04  Richard Guenther  <rguenther@suse.de>
11526
11527         PR middle-end/47975
11528         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11529
11530 2011-03-04  Richard Henderson  <rth@redhat.com>
11531
11532         * explow.c (emit_stack_save): Remove 'after' parameter.
11533         (emit_stack_restore): Likewise.
11534         * expr.h: Update to match.
11535         * builtins.c, calls.c, stmt.c: Likewise.
11536         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11537         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11538         * function.c (expand_function_end): Insert the emit_stack_save
11539         sequence before parm_birth_insn instead of after.
11540
11541 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
11542
11543         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11544         (ssse3_pmaddubsw128): Ditto.
11545         (ssse3_pmaddubsw): Ditto.
11546
11547 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
11548
11549         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11550
11551 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
11552
11553         PR c/47963
11554         * gimplify.c (omp_add_variable): Only call omp_notice_variable
11555         on TYPE_SIZE_UNIT if it is a DECL.
11556
11557         PR debug/47283
11558         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11559         first operand is not is_gimple_mem_ref_addr, try to fold it.
11560         If the operand still isn't is_gimple_mem_ref_addr, clear
11561         MEM_EXPR on op0.
11562
11563 2011-03-03  Richard Guenther  <rguenther@suse.de>
11564
11565         PR middle-end/47283
11566         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11567         match comment.
11568         (refs_may_alias_p_1): For release branches return true if
11569         we are confused by our input.
11570
11571 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11572
11573         * config/s390/s390.c (s390_function_value): Rename to ...
11574         (s390_function_and_libcall_value): ... this.
11575         (s390_function_value): New function.
11576         (s390_libcall_value): New function.
11577         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11578         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11579         target macro definitions.
11580         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11581
11582 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
11583
11584         * config/i386/freebsd64.h (CC1_SPEC): Define.
11585         * config/i386/linux64.h (CC1_SPEC): Define.
11586         * config/i386/x86-64.h (CC1_SPEC): Don't define.
11587
11588 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
11589
11590         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11591         Remove.
11592         * config/stormy16/stormy16.c: Include reload.h.
11593         (xstormy16_memory_move_cost): New function.
11594         (TARGET_MEMORY_MOVE_COST): Define.
11595
11596 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
11597
11598         PR rtl-optimization/47925
11599         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11600         with side effects.  Remove the more-specific check for volatile asms.
11601
11602 2011-03-02  Alan Modra  <amodra@gmail.com>
11603
11604         PR target/47935
11605         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11606         toc relative addresses for valid offsets.
11607
11608 2011-03-01  Richard Guenther  <rguenther@suse.de>
11609
11610         PR tree-optimization/47890
11611         * tree-vect-loop.c (get_initial_def_for_induction): Set
11612         related stmt properly.
11613
11614 2011-03-01  Richard Guenther  <rguenther@suse.de>
11615
11616         PR lto/47924
11617         * lto-streamer.c (lto_record_common_node): Also register
11618         the canonical type.
11619
11620 2011-03-01  Richard Guenther  <rguenther@suse.de>
11621
11622         PR lto/46911
11623         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11624         Do not stream DECL_ABSTRACT_ORIGIN.
11625         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11626         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11627         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11628         Do not stream DECL_ABSTRACT_ORIGIN.
11629         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11630         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11631
11632 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
11633
11634         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11635         FUNCTION_VALUE_REGNO_P): Remove.
11636         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11637         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11638         Add 'outgoing' argument.
11639         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11640         function.
11641         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11642         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11643
11644 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
11645
11646         PR debug/28047
11647         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11648         (lookup_filename): Likewise.
11649         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11650
11651 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
11652             Jakub Jelinek  <jakub@redhat.com>
11653
11654         PR middle-end/47893
11655         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11656         (assign_stack_local_1): Change last argument type to int.
11657         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11658         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
11659         don't record padding space into frame_space_list nor use those areas.
11660         (assign_stack_local): Adjust caller.
11661         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11662         of assign_stack_local, pass 0 as last argument.
11663         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11664         callers.
11665
11666 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
11667
11668         PR debug/47283
11669         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11670         Use target address_mode and pointer_mode hooks instead of hardcoded
11671         Pmode and ptr_mode.  Handle some simple cases of extending if
11672         POINTERS_EXTEND_UNSIGNED < 0.
11673         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11674         Call convert_debug_memory_address.
11675         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11676         convert_debug_memory_address.
11677
11678         PR middle-end/46790
11679         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11680         * configure: Regenerated.
11681         * config.in: Regenerated.
11682         * varasm.c (default_function_section): Return NULL
11683         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11684
11685 2011-02-28  Martin Jambor  <mjambor@suse.cz>
11686
11687         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11688         the description to match the printed values.
11689
11690 2011-02-28  Richard Guenther  <rguenther@suse.de>
11691
11692         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11693         of the copied scope tree.
11694
11695 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11696
11697         * doc/extend.texi (Function Attributes): Avoid deeply (and
11698         wrongly) nested tables.
11699
11700 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
11701
11702         PR middle-end/47903
11703         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11704         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11705         r isn't op0 nor op1.
11706
11707 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11708
11709         * config/avr/avr.md: Remove magic comment for emacs.
11710
11711 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11712
11713         PR target/45261
11714         * config/avr/avr.c (avr_option_override): Use error on bad options.
11715         (avr_help): New function.
11716         (TARGET_HELP): Define.
11717
11718 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
11719
11720         PR target/42240
11721         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11722         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11723
11724 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
11725
11726         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11727         (ARM Options): Ditto.
11728         (i386 and x86-64 Options): Ditto.
11729         (RX Options): Ditto.
11730         (SPARC Options): Ditto.
11731
11732 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
11733
11734         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11735         FreeBSD 6 and later.  Generally use cpu generic.
11736
11737 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
11738
11739         * doc/cpp.texi: Update copyright years.
11740
11741 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11742
11743         PR target/46898
11744         * config/lm32/lm32.md (ashrsi3): Added needed variable.
11745
11746 2011-02-25  Jon Beniston  <jon@beniston.com>
11747
11748         PR target/46898
11749         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11750         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11751         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11752         (lm32_block_move_inline): Add type cast to remove warning.
11753         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11754         (gen_int_relational): Move declarations to start of function.
11755
11756 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11757
11758         PR tree-optimization/45470
11759         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11760         can throw internally only.
11761         * tree-vect-stmts.c (vectorizable_call): Likewise.
11762
11763 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
11764
11765         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11766         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11767         * config/stormy16/stormy16-protos.h
11768         (xstormy16_preferred_reload_class): Remove.
11769         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11770         static. Change 'rclass' argument and return type to reg_class_t.
11771         (TARGET_PREFERRED_RELOAD_CLASS,
11772         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11773
11774 2011-02-24  Richard Guenther  <rguenther@suse.de>
11775
11776         * lto-streamer-in.c (input_bb): Do not find referenced vars
11777         in debug statements.
11778
11779 2011-02-23  Jason Merrill  <jason@redhat.com>
11780
11781         * common.opt (fabi-version): Document v5 and v6.
11782
11783 2011-02-23  Richard Guenther  <rguenther@suse.de>
11784
11785         PR tree-optimization/47849
11786         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11787
11788 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11789
11790         * opts-common.c (decode_cmdline_option): Print empty string
11791         argument as "" in decoded->orig_option_with_args_text.
11792         * gcc.c (execute): Print empty string argument as ""
11793         in the verbose output.
11794         (do_spec_1): Keep empty string argument.
11795
11796 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
11797
11798         * config.gcc: Declare score-* and crx-* obsolete.
11799
11800 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11801
11802         PR rtl-optimization/47763
11803         * web.c (web_main): Ignore naked clobber when replacing register.
11804
11805 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
11806
11807         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11808         Remove.
11809
11810 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11811
11812         PR doc/47848
11813         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11814
11815 2011-02-22  Mike Stump  <mikestump@comcast.net>
11816
11817         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11818         assembler.
11819         * configure: Regenerate.
11820
11821 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
11822
11823         PR rtl-optimization/46002
11824         * ira-color.c (update_copy_costs): Change class intersection
11825         test to reg_class_contents[] test of 'hard_regno'.
11826
11827 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
11828
11829         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11830         than Driver option.
11831         * config/hpux11.opt (mt): Likewise.
11832         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11833         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11834         * config/vax/elf.opt (mno-asm-pic): Likewise.
11835         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11836
11837 2011-02-21  Mike Stump  <mikestump@comcast.net>
11838
11839         PR target/47822
11840         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11841         tree so we can get save the type.
11842         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11843         for CFString instead of trying to use past the end of the builtins.
11844         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11845         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11846         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11847         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11848         Rename to darwin_builtin_cfstring.
11849         (darwin_init_cfstring_builtins): Return the built type.
11850
11851 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
11852
11853         PR target/47840
11854         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11855         (_mm256_insert_epi64): Use _mm_insert_epi64.
11856
11857 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
11858
11859         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11860         * config/stormy16/stormy16-protos.h
11861         (xstormy16_mode_dependent_address_p): Remove.
11862         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11863         Make static. Change return type to bool. Change argument type to
11864         const_rtx. Remove dead code.
11865         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11866
11867 2011-02-21  Richard Guenther  <rguenther@suse.de>
11868
11869         PR lto/47820
11870         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11871         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11872         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11873         TUs context.
11874         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11875         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11876
11877 2011-02-20  Richard Guenther  <rguenther@suse.de>
11878
11879         PR lto/47822
11880         * tree.c (free_lang_data_in_decl): Clean builtins from
11881         the TU decl BLOCK_VARS.
11882
11883 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
11884
11885         PR debug/47620
11886         PR debug/47630
11887         * haifa-sched.c (fix_tick_ready): Skip tick computation
11888         for debug insns.
11889
11890 2011-02-19  Richard Guenther  <rguenther@suse.de>
11891
11892         PR lto/47647
11893         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11894         Remove lazy BLOCK_VARS streaming.
11895         (lto_input_ts_block_tree_pointers): Likewise.
11896         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11897
11898 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11899
11900         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11901
11902 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11903
11904         * config/i386/biarch32.h, config/i386/mach.h,
11905         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11906
11907 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11908
11909         PR target/47800
11910         * config/i386/i386.md (peephole2 for shift and plus): Use
11911         operands[1] original mode in the first insn.
11912
11913 2011-02-18  Mike Stump  <mikestump@comcast.net>
11914
11915         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11916
11917 2011-02-18  Jan Hubicka  <jh@suse.cz>
11918
11919         PR middle-end/47788
11920         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11921         to zero when the function is not inlinable at all.
11922
11923 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11924
11925         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11926         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11927         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11928         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11929         * config/pa/t-pa64: Likewise.
11930         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11931
11932 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11933
11934         PR driver/47787
11935         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11936
11937 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11938
11939         PR target/47792
11940         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11941
11942 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
11943
11944         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11945         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11946         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11947         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11948         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11949         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11950         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11951         m32r_load_postinc_p, m32r_store_preinc_predec_p,
11952         m32r_legitimate_address_p): New functions.
11953         * config/m32r/constraints.md (constraint "S"): Don't use
11954         STORE_PREINC_PREDEC_P.
11955         (constraint "U"): Don't use LOAD_POSTINC_P.
11956
11957 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
11958
11959         PR rtl-optimization/46178
11960         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11961         compute ira_hard_regno_cover_class[].
11962
11963 2011-02-18  Richard Guenther  <rguenther@suse.de>
11964
11965         PR lto/47798
11966         * lto-streamer.h (lto_global_var_decls): Declare.
11967         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11968         statics for global var processing.
11969
11970 2011-02-18  Richard Guenther  <rguenther@suse.de>
11971
11972         PR tree-optimization/47737
11973         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11974         edge dominance check.
11975
11976 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11977
11978         PR debug/47780
11979         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11980         avoid invalid rtx sharing.
11981
11982 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
11983
11984         * doc/cpp.texi (Obsolete Features): Add background on the
11985         origin of assertions.
11986
11987 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11988
11989         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11990         objc_abi == 2.
11991         * config/darwin.c (output_objc_section_asm_op): Added support for
11992         ABI v1 and v2.
11993         (is_objc_metadata): New.
11994         (darwin_objc2_section): New.
11995         (darwin_objc1_section): New.
11996         (machopic_select_section): Added support for ABI v1 and v2.
11997         (darwin_emit_objc_zeroed): New.
11998         (darwin_output_aligned_bss): Detect objc metadata and treat it
11999         appropriately.
12000         (darwin_asm_output_aligned_decl_common): Same.
12001         (darwin_asm_output_aligned_decl_local): Same.
12002         * config/darwin-sections.def: Updated for ABI v1 and v2.
12003         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
12004         compiling Objective-C code for the NeXT runtime, default to using
12005         ABI version 0 for 32-bit, and version 2 for 64-bit.
12006
12007 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12008
12009         * common.opt (optimize_fast): New Variable.
12010         * opts.c (default_options_optimization): Use opts->x_optimize_fast
12011         instead of local variable ofast.
12012
12013 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
12014
12015         * doc/invoke.texi (fobjc-abi-version): Documented.
12016         (fobjc-nilcheck): Documented.
12017         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12018         version.
12019
12020 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12021
12022         PR driver/47390
12023         * common.opt (export-dynamic): New Driver option.
12024         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12025
12026 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12027
12028         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12029
12030 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
12031             Jan Hubicka  <jh@suse.cz>
12032
12033         PR debug/47106
12034         PR debug/47402
12035         * cfgexpand.c (account_used_vars_for_block): Remove.
12036         (estimated_stack_frame_size): Use referenced vars.
12037         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12038         that were referenced in the original function.  Test src_fn
12039         rather than cfun.  Drop redundant get_var_ann.
12040         (setup_one_parameter): Drop redundant get_var_ann.
12041         (declare_return_variable): Likewise.
12042         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12043         (copy_arguments_for_versioning): Drop redundant get_var_ann.
12044         * ipa-inline.c (compute_inline_parameters): Do not compute
12045         disregard_inline_limits here.
12046         (compute_inlinable_for_current, pass_inlinable): New.
12047         (pass_inline_parameters): Require PROP_referenced_vars.
12048         * cgraphunit.c (cgraph_process_new_functions): Don't run
12049         compute_inline_parameters explicitly unless function is in SSA form.
12050         (cgraph_analyze_function): Set .disregard_inline_limits.
12051         * tree-sra.c (convert_callers): Compute inliner parameters
12052         only for functions already in SSA form.
12053
12054 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12055
12056         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12057         -mlittle-endian-data.
12058
12059 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12060
12061         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12062         -mno-fpu, not -fpu and -no-fpu.
12063         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12064         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12065
12066 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
12067
12068         PR target/43653
12069         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12070         input reload with PLUS RTX.
12071
12072 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12073
12074         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12075         of InverseVar(MDMX).
12076
12077 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12078
12079         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12080         --m4-340.
12081
12082 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12083
12084         * config/mn10300/mn10300.opt (mno-crt0): New.
12085
12086 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12087
12088         * config/m68k/uclinux.opt (static-libc): New Driver option.
12089
12090 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12091
12092         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12093
12094 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12095
12096         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12097         %{muser-extend-enabled}.
12098
12099 2011-02-16  Richard Guenther  <rguenther@suse.de>
12100
12101         PR tree-optimization/47738
12102         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12103         the TODO from tree_predictive_commoning.
12104
12105 2011-02-15  Jeff Law  <law@redhat.com>
12106
12107         Revert
12108         2011-01-25  Jeff Law  <law@redhat.com>
12109
12110         PR rtl-optimization/37273
12111         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12112         handle them like argument loads from stack slots.  Do not double
12113         count memory for memory constants and argument loads from stack slots.
12114
12115 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12116
12117         PR middle-end/47725
12118         * combine.c (cant_combine_insn_p): Revert the last change.
12119
12120 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
12121
12122         PR target/47755
12123         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12124         mode for vector constants.  Remove code that checks for TImode.
12125
12126 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12127
12128         PR debug/47106
12129         PR debug/47402
12130         * cgraph.h (compute_inline_parameters): Return void.
12131         * ipa-inline.c (compute_inline_parameters): Adjust.
12132
12133 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12134
12135         PR debug/47106
12136         PR debug/47402
12137         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12138         rather than decl.
12139         * cfgexpand.c (estimated_stack_frame_size): Likewise.
12140         * ipa-inline.c (compute_inline_parameters): Adjust.
12141
12142 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12143
12144         PR debug/47106
12145         PR debug/47402
12146         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12147         Adjust all users.  Pass FN to...
12148         * tree-flow-inline.h (first_referenced_var): ... this.  Add
12149         fn argument.
12150         * ipa-struct-reorg.c: Adjust.
12151         * tree-dfa.c: Adjust.
12152         * tree-into-ssa.c: Adjust.
12153         * tree-sra.c: Adjust.
12154         * tree-ssa-alias.c: Adjust.
12155         * tree-ssa-live.c: Adjust.
12156         * tree-ssa.c: Adjust.
12157         * tree-ssanames.c: Adjust.
12158         * tree-tailcall.c: Adjust.
12159
12160 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12161
12162         PR debug/47106
12163         PR debug/47402
12164         * tree-flow.h (referenced_var_lookup): Add fn parameter.
12165         Adjust all callers.
12166         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12167         * tree-flow-inline.h: Adjust.
12168         * gimple-pretty-print.c: Adjust.
12169         * tree-into-ssa.c: Adjust.
12170         * tree-ssa.c: Adjust.
12171         * cfgexpand.c: Adjust.
12172
12173 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12174
12175         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12176         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12177         (EXTRA_CONSTRAINT): Delete.
12178         * config/iq2000/constraints.md: New file.
12179         * config/iq2000/iq2000.md: Include it.
12180         (define_insn ""): Delete.
12181         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12182         unsupported constraint letters from patterns.
12183         (call_value, call_value_internal1): Likewise.
12184         (call_value_multiple_internal1): Likewise.
12185
12186 2011-02-15  Nick Clifton  <nickc@redhat.com>
12187
12188         * config/mn10300/mn10300.c: Include tm-constrs.h.
12189         (struct liw_data): New data structure describing an LIW candidate
12190         instruction.
12191         (extract_bundle): Use struct liw_data.  Allow small integer
12192         operands for some instructions.
12193         (check_liw_constraints): Use struct liw_data.  Remove swapped
12194         parameter.  Add comments describing the checks.  Fix bug when
12195         assigning the source of liw1 to the source of liw2.
12196         (liw_candidate): Delete.  Code moved into extract_bundle.
12197         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
12198         before swapping.
12199         * config/mn10300/predicates.md (liw_operand): New predicate.
12200         Allows registers and small integer constants.
12201         * config/mn10300/constraints.md (O): New constraint.  Accetps
12202         integers in the range -8 to +7 inclusive.
12203         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12204         for moving a small integer into a register.  Give this alternative
12205         LIW attributes.
12206         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12207         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12208         using the J,K,L and M constraints,
12209         (liw): Remove SI mode on second operands to allow for HI and QI
12210         mode values.
12211         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
12212         instruction.
12213
12214 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12215
12216         PR middle-end/47725
12217         * combine.c (cant_combine_insn_p): Check zero/sign extended
12218         hard registers.
12219
12220 2011-02-15  Richard Guenther  <rguenther@suse.de>
12221
12222         PR tree-optimization/47743
12223         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12224         for a non-type-compatible VN lookup bail out.
12225
12226 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12227
12228         * config/fr30/constraints.md: New file.
12229         * config/fr30/fr30.md: Include it.
12230         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12231         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12232         (EXTRA_CONSTRAINT): Delete.
12233
12234 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12235
12236         * config/frv/constraints.md: New file.
12237         * config/frv/predicates.md: Include it.
12238         * config/frv/frv.c (reg_class_from_letter): Delete.
12239         (frv_option_override): Don't initialize it.
12240         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12241         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12242         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12243         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12244         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12245         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12246         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12247         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12248         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12249         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12250         (REG_CLASS_FROM_CONSTRAINT): Delete.
12251
12252 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
12253
12254         PR middle-end/47581
12255         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12256         if frame size is 0 in a leaf function.
12257
12258 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12259
12260         PR pch/14940
12261         * config/alpha/host-osf.c: New file.
12262         * config/alpha/x-osf: New file.
12263         * config.host (alpha*-dec-osf*): Use it.
12264
12265 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12266
12267         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12268         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12269         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12270         (rx_mode_dependent_address_p): ...this. Make static. Change argument
12271         type to const_rtx.
12272         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12273
12274 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12275
12276         * config/stormy16/constraints.md: New file.
12277         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12278         Use satisfies_constraint_Q and satisfies_constraint_R.
12279         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12280         Delete.
12281         (xstormy16_legitiamte_address_p): Declare.
12282         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12283         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12284         (EXTRA_CONSTRAINT): Delete.
12285         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12286         Un-staticize.
12287         (xstormy16_extra_constraint_p): Delete.
12288
12289 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
12290
12291         PR tree-optimization/46494
12292         * loop-unroll.c (split_edge_and_insert): Adjust comment.
12293         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12294         (pass_rtl_loop_done): Add TODO_verify_flow.
12295         * fwprop.c (pass_rtl_fwprop): Likewise.
12296         * modulo-sched.c (pass_sms): Likewise.
12297         * tree-ssa-dom.c (pass_dominator): Likewise.
12298         * tree-ssa-loop-ch.c (pass_ch): Likewise.
12299         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12300         (pass_tree_loop_done): Likewise.
12301         * tree-ssa-pre.c (execute_pre): Likewise.
12302         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12303         * tree-ssa-sink.c (pass_sink_code): Likewise.
12304         * tree-vrp.c (pass_vrp): Likewise.
12305
12306 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12307
12308         * config/v850/constraints.md: New file.
12309         * config/v850/v850.md: Include it.
12310         * config/v850/predicates.md (reg_or_0_operand): Use
12311         satisfies_constraint_G.
12312         (special_symbolref_operand): Use satisfies_constraint_K.
12313         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12314         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12315         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12316         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12317         (EXTRA_CONSTRAINT): Delete.
12318         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12319         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12320         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12321
12322 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12323
12324         PR target/47696
12325         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12326         description.
12327
12328 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12329
12330         * config/mcore/constraints.md: New file.
12331         * config/mcore/mcore.md: Include it.
12332         * config/mcore/mcore.c (reg_class_from_letter): Delete.
12333         * config/mcore/mcore.h (reg_class_from_letter): Delete.
12334         (REG_CLASS_FROM_LETTER): Delete.
12335         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12336         insn_const_int_ok_for_constraint.
12337         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12338         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12339         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12340         (EXTRA_CONSTRAINT): Delete.
12341
12342 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12343
12344         PR ada/41929
12345         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12346         (IS_SIGHANDLER): Define.
12347         (sparc64_is_sighandler): New function, split off from
12348         sparc64_fallback_frame_state.
12349         (sparc_is_sighandler): New function, split off from
12350         sparc_fallback_frame_state.
12351         (sparc64_fallback_frame_state): Merge with ...
12352         (sparc_fallback_frame_state): ... this into ...
12353         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12354         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
12355         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
12356         stack instead of hardcoded offsets.
12357
12358 2011-02-14  Andriy Gapon  <avg@freebsd.org>
12359
12360         PR target/45808
12361         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12362
12363 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12364
12365         * configure: Regenerate.
12366
12367 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
12368
12369         PR driver/45731
12370         * gcc.c (asm_options): Correct spec matching --target-help.
12371
12372 2011-02-12  Martin Jambor  <mjambor@suse.cz>
12373
12374         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12375         to gimple call error.
12376
12377 2011-02-12  Mike Stump  <mikestump@comcast.net>
12378
12379         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12380         comments in backslash regions.
12381
12382 2011-02-12  Mike Stump  <mikestump@comcast.net>
12383             Jakub Jelinek  <jakub@redhat.com>
12384             Iain Sandoe  <iains@gcc.gnu.org>
12385
12386         PR target/47324
12387         * dwarf2out.c (output_cfa_loc): When required, apply the
12388         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12389         (output_loc_sequence): Likewise.
12390         (output_loc_operands_raw): Likewise.
12391         (output_loc_sequence_raw): Likewise.
12392         (output_cfa_loc): Likewise.
12393         (output_loc_list): Suppress register number adjustment when
12394         calling output_loc_sequence()
12395         (output_die): Likewise.
12396
12397 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
12398
12399         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12400         Remove macros.
12401         * config/xtensa/xtensa.c (xtensa_register_move_cost,
12402         xtensa_memory_move_cost): New functions.
12403         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12404
12405 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
12406
12407         PR lto/47225
12408         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12409         in the current directory.
12410         * configure: Rebuilt.
12411
12412 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12413
12414         * config/darwin.c (darwin_override_options): Add a hunk missed
12415         from the commit of r168571.  Trim comment line lengths and
12416         correct indents of the preceding block.
12417
12418 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12419
12420         * gcc.c (driver_handle_option): Concatenate the argument to -F with
12421         the switch.
12422
12423 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12424
12425         * common.opt (nostartfiles): New Driver option.
12426
12427 2011-02-11  Xinliang David Li  <davidxl@google.com>
12428
12429         PR tree-optimization/47707
12430         * tree-chrec.c (convert_affine_scev): Keep type precision.
12431
12432 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
12433
12434         PR tree-optimization/47420
12435         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12436
12437 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
12438
12439         PR rtl-optimization/47614
12440         * rtl.h (check_for_inc_dec): Declare.
12441         * dse.c (check_for_inc_dec): Externalize...
12442         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12443         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12444
12445 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12446
12447         PR driver/47678
12448         * gcc.c (main): Do not compile inputs if there were errors in
12449         option handling.
12450         * opts-common.c (read_cmdline_option): Check for wrong language
12451         after other error checks.
12452
12453 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
12454
12455         * cgraph.c: Fix comment typos.
12456         * cgraph.h: Likewise.
12457         * cgraphunit.c: Likewise.
12458         * ipa-cp.c: Likewise.
12459         * ipa-inline.c: Likewise.
12460         * ipa-prop.c: Likewise.
12461         * ipa-pure-const.c: Likewise.
12462         * ipa-ref.c: Likewise.
12463         * ipa-reference.c: Likewise.
12464
12465 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
12466
12467         PR debug/47684
12468         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12469
12470 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12471
12472         PR testsuite/47400
12473         * doc/sourcebuild.texi (Require Support): Document
12474         dg-require-ascii-locale.
12475
12476 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
12477
12478         * doc/lto.texi (Write summary): Fix missing parentheses.
12479
12480 2011-02-10  DJ Delorie  <dj@redhat.com>
12481
12482         * config/m32c/m32c.c (m32c_option_override): Disable
12483         -fcombine-stack-adjustments until flag value tracking and compare
12484         optimization can be rewritten.
12485
12486 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
12487
12488         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12489         PROCESSOR_POWER7.
12490         (PROCESSOR_DEFAULT64): Likewise.
12491
12492 2011-02-10  Richard Henderson  <rth@redhat.com>
12493
12494         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12495         change from 2011-02-03.
12496         * config/rx/rx.c (flags_from_code): Likewise.
12497         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12498         is valid, n/pz otherwise.
12499         (rx_select_cc_mode): Return CCmode if Y is not zero.
12500
12501 2011-02-10  Richard Guenther  <rguenther@suse.de>
12502
12503         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12504
12505 2011-02-10  Richard Guenther  <rguenther@suse.de>
12506
12507         PR tree-optimization/47677
12508         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12509
12510 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
12511
12512         PR target/47665
12513         * combine.c (make_compound_operation): Only change shifts into
12514         multiplication for SCALAR_INT_MODE_P.
12515
12516 2011-02-10  Jie Zhang  <jie@codesourcery.com>
12517
12518         PR testsuite/47622
12519         Revert
12520         2011-02-05  Jie Zhang  <jie@codesourcery.com>
12521         PR debug/42631
12522         * web.c (entry_register): Don't clobber the number of the
12523         first uninitialized reference in used[].
12524
12525 2011-02-09  Richard Guenther  <rguenther@suse.de>
12526
12527         PR tree-optimization/47664
12528         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12529         all edges again.
12530
12531 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
12532
12533         PR target/46481
12534         PR target/47032
12535         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12536         PROCESSOR_POWER7.
12537         (PROCESSOR_DEFAULT64): Same.
12538         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12539
12540 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12541
12542         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12543
12544 2011-02-09  Martin Jambor  <mjambor@suse.cz>
12545
12546         PR middle-end/45505
12547         * tree-sra.c (struct access): New flags grp_scalar_read and
12548         grp_scalar_write.  Changed description of assignment read and write
12549         flags.
12550         (dump_access): Dump new flags, reorder all of them.
12551         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12552         to detect multiple scalar reads.
12553         (analyze_access_subtree): Use the new scalar read write flags instead
12554         of the old flags.  Adjusted comments.
12555
12556 2011-02-08  DJ Delorie  <dj@redhat.com>
12557
12558         PR target/47548
12559         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12560         patterns.
12561
12562 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12563
12564         * config/m68k/uclinux.opt: New.
12565         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12566
12567 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12568
12569         * config/cris/elf.opt (sim): New Driver option.
12570
12571 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12572
12573         * config/xtensa/elf.opt: New.
12574         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12575
12576 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12577
12578         * config/vax/elf.opt: New.
12579         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12580
12581 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12582
12583         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12584
12585 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12586
12587         * config/gnu-user.opt: New.
12588         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12589         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12590         *-*-uclinux*): Use gnu-user.opt.
12591
12592 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
12593
12594         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12595         * config/i386/gnu.h (CPP_SPEC): Likewise.
12596
12597 2011-02-08  Ian Lance Taylor  <iant@google.com>
12598
12599         * common.opt (fcx-limited-range): Add SetByCombined flag.
12600         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12601         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12602         (fassociative-math, freciprocal-math): Likewise.
12603         (funsafe-math-optimizations): Likewise.
12604         * opth-gen.awk: Handle SetByCombined.
12605         * optc-gen.awk: Likewise.
12606         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12607         (set_unsafe_math_optimizations_flags): Likewise.
12608         * doc/options.texi (Option properties): Document SetByCombined.
12609
12610 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12611
12612         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12613         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12614         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12615         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12616         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12617
12618 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
12619
12620         PR tree-optimization/46834
12621         PR tree-optimization/46994
12622         PR tree-optimization/46995
12623         * graphite-sese-to-poly.c (used_outside_reduction): New.
12624         (detect_commutative_reduction): Call used_outside_reduction.
12625         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12626         translate_scalar_reduction_to_array only when at least one
12627         loop-phi/close-phi tuple has been detected.
12628
12629 2011-02-08  Richard Guenther  <rguenther@suse.de>
12630
12631         PR middle-end/47639
12632         * tree-vect-generic.c (expand_vector_operations_1): Update
12633         stmts here ...
12634         (expand_vector_operations): ... not here.  Cleanup EH info
12635         and the CFG if required.
12636
12637 2011-02-08  Richard Guenther  <rguenther@suse.de>
12638
12639         PR tree-optimization/47641
12640         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12641         require type compatibility.
12642
12643 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12644
12645         * gimple-low.c (lower_function_body): Don't remove the location of
12646         the return statement here.
12647         (lower_gimple_return): Do it here instead but only if the return
12648         statement is actually used twice.
12649
12650 2011-02-08  Richard Guenther  <rguenther@suse.de>
12651
12652         PR tree-optimization/47632
12653         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12654         unused up_to_stmt parameter, return whether cfg-cleanup is
12655         necessary, remove EH info properly.
12656         (forward_propagate_into_gimple_cond): Adjust caller.
12657         (forward_propagate_into_cond): Likewise.
12658         (forward_propagate_comparison): Likewise.
12659         (tree_ssa_forward_propagate_single_use_vars): Make
12660         forward_propagate_comparison case similar to the two others.
12661
12662 2011-02-08  Nick Clifton  <nickc@redhat.com>
12663
12664         * config/mn10300/mn10300.opt (mliw): New command line option.
12665         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12666         (liw_bundling): New automaton.
12667         (liw): New attribute.
12668         (liw_op): New attribute.
12669         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12670         (movsi_internal): Add LIW attributes.
12671         (andsi3): Likewise.
12672         (iorsi3): Likewise.
12673         (xorsi3): Likewise.
12674         (addsi3): Separate register and immediate alternatives.
12675         Add LIW attributes.
12676         (subsi3): Likewise.
12677         (cmpsi): Likewise.
12678         (aslsi3): Likewise.
12679         (lshrsi3): Likewise.
12680         (ashrsi3): Likewise.
12681         (liw): New pattern.
12682         * config/mn10300/mn10300.c (liw_op_names): New
12683         (mn10300_print_operand): Handle 'W' operand descriptor.
12684         (extract_bundle): New function.
12685         (check_liw_constraints): New function.
12686         (liw_candidate): New function.
12687         (mn10300_bundle_liw): New function.
12688         (mn10300_reorg): New function.
12689         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12690         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12691         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12692         __LIW__ or __NO_LIW__.
12693         * doc/invoke.texi: Describe the -mliw command line option.
12694
12695 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12696
12697         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12698         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12699         pthread_mutex_unlock): Remove.
12700         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12701         * config/pa/t-pa64: Likewise.
12702         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12703         shared libc if not linking against libpthread.
12704         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12705
12706 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
12707
12708         PR target/47558
12709         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12710         on 10.6 and later to ensure that we always use the unwinder from
12711         the system.  Only add -no_compact_unwind when tarteting darwin
12712         10.6 or later.
12713
12714 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
12715
12716         PR target/46997
12717         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12718         (vec_interleave_lowv2sf): Ditto.
12719         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12720         (vec_extract_oddv2sf): Ditto.
12721
12722 2011-02-07  Mike Stump  <mikestump@comcast.net>
12723
12724         PR target/42333
12725         Add __ieee_divdc3 entry point.
12726         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12727         entry point.
12728         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12729         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12730         * config/darwin.c (darwin_rename_builtins): Add.
12731         * config/darwin-protos.h (darwin_rename_builtins): Add.
12732
12733 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12734
12735         PR target/47636
12736         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12737         for the condition.
12738
12739 2011-02-07  Mike Stump  <mikestump@comcast.net>
12740
12741         * config/darwin.opt (mmacosx-version-min): Update default OS version.
12742
12743 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
12744
12745         PR target/47534
12746         * config/avr/libgcc.S (exit): Move .endfunc
12747
12748 2011-02-07  Richard Guenther  <rguenther@suse.de>
12749
12750         PR tree-optimization/47615
12751         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12752         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12753         (run_scc_vn): Initialize it.
12754         (visit_reference_op_load): Use it.
12755         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12756
12757 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12758
12759         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12760         DImode trapping arithmetic libfuncs.
12761
12762 2011-02-07  Richard Guenther  <rguenther@suse.de>
12763
12764         PR tree-optimization/47621
12765         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12766         two duplicates ...
12767         (execute_update_addresses_taken): ... here.  Make it more
12768         conservative in what we accept.
12769
12770 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12771
12772         * config/sparc/freebsd.h (ASM_SPEC): Define.
12773         * config/sparc/vxworks.h (ASM_SPEC): Define.
12774
12775 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12776
12777         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12778
12779 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
12780
12781         * doc/invoke.texi: Remove reference to compiler internals from
12782         user documentation.
12783
12784         * reg-notes.def: Remove REG_VALUE_PROFILE.
12785         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12786
12787 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
12788
12789         PR middle-end/47610
12790         * varasm.c (default_section_type_flags): If decl is NULL,
12791         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12792
12793 2011-02-05  Jie Zhang  <jie@codesourcery.com>
12794
12795         PR debug/42631
12796         * web.c (entry_register): Don't clobber the number of the
12797         first uninitialized reference in used[].
12798
12799 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
12800
12801         PR tree-optimization/46194
12802         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12803         (build_classic_dist_vector_1): Do not represent classic distance
12804         vectors when the access functions are variating in different loops.
12805
12806 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12807
12808         * config/mips/iris6.opt: New.
12809         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12810
12811 2011-02-04  Richard Henderson  <rth@redhat.com>
12812             Steve Ellcey  <sje@cup.hp.com>
12813
12814         PR target/46997
12815         * config/ia64/predicates.md (mux1_brcst_element): New.
12816         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12817         * config/ia64/ia64.c (ia64_unpack_assemble): New.
12818         (ia64_unpack_sign): New.
12819         (ia64_expand_unpack): Rewrite using new routines.
12820         (ia64_expand_widen_sum): Ditto.
12821         (ia64_expand_dot_prod_v8qi): Ditto.
12822         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12823         routines, add endian check.
12824         (pmpy2_even): Rename from pmpy2_r, add endian check.
12825         (pmpy2_odd): Rename from pmpy2_l, add endian check.
12826         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12827         (vec_widen_smult_hi_v4hi): Ditto.
12828         (vec_widen_umult_lo_v4hi): Ditto.
12829         (vec_widen_umult_hi_v4hi): Ditto.
12830         (mulv2si3): Change endian checks.
12831         (sdot_prodv4hi): Rewrite with new calls.
12832         (udot_prodv4hi): New.
12833         (vec_pack_ssat_v4hi): Add endian check.
12834         (vec_pack_usat_v4hi): Ditto.
12835         (vec_pack_ssat_v2si): Ditto.
12836         (max1_even): Rename from max1_r, add endian check.
12837         (max1_odd): Rename from max1_l, add endian check.
12838         (*mux1_rev): Format change.
12839         (*mux1_mix): Ditto.
12840         (*mux1_shuf): Ditto.
12841         (*mux1_alt): Ditto.
12842         (*mux1_brcst_v8qi): Use new predicate.
12843         (vec_extract_evenv8qi): Remove endian check.
12844         (vec_extract_oddv8qi): Ditto.
12845         (vec_interleave_lowv4hi): Format change.
12846         (vec_interleave_highv4hi): Ditto.
12847         (mix2_even): Rename from mix2_r, add endian check.
12848         (mix2_odd): Rename from mux2_l, add endian check.
12849         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12850         (vec_extract_evenodd_helper): Format change.
12851         (vec_extract_evenv4hi): Remove endian check.
12852         (vec_extract_oddv4hi): Remove endian check.
12853         (vec_interleave_lowv2si): Format change.
12854         (vec_interleave_highv2si): Format change.
12855         (vec_initv2si): Remove endian check.
12856         (vecinit_v2si): Add endian check.
12857         (reduc_splus_v2sf): Add endian check.
12858         (reduc_smax_v2sf): Ditto.
12859         (reduc_smin_v2sf): Ditto.
12860         (vec_initv2sf): Remove endian check.
12861         (fpack): Add endian check.
12862         (fswap): Add endian check.
12863         (vec_interleave_highv2sf): Add endian check.
12864         (vec_interleave_lowv2sf): Add endian check.
12865         (fmix_lr): Add endian check.
12866         (vec_setv2sf): Format change.
12867         (*vec_extractv2sf_0_be): Use shift to extract operand.
12868         (*vec_extractv2sf_1_be): New.
12869         (vec_pack_trunc_v4hi): Add endian check.
12870         (vec_pack_trunc_v2si): Format change.
12871
12872 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
12873
12874         PR inline-asm/23200
12875         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
12876         do bb, locus and block comparison and disallow loads if it is not set.
12877         (stmt_is_replaceable_p): New function.
12878         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12879         callers.
12880         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12881         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12882         SSA_NAME_DEF_STMT.
12883         * tree-flow.h (stmt_is_replaceable_p): New prototype.
12884
12885 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12886
12887         * config/rs6000/xilinx.opt: New.
12888         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12889
12890 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12891
12892         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12893
12894 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12895
12896         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12897         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12898         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12899         secondary_reload_info, xtensa_secondary_reload): Remove.
12900         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12901         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12902         (xtensa_preferred_reload_class): Make static. Change return and
12903         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12904         Use CONST_DOUBLE_P predicate.
12905         (xtensa_preferred_output_reload_class): New function.
12906         (xtensa_secondary_reload): Make static.
12907
12908 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12909
12910         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12911         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12912         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12913
12914 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12915
12916         PR middle-end/31490
12917         * output.h (SECTION_RELRO): Define.
12918         (SECTION_MACH_DEP): Adjust.
12919         (get_variable_section): New prototype.
12920         * varpool.c (varpool_finalize_named_section_flags): New function.
12921         (varpool_assemble_pending_decls): Call it.
12922         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12923         * cgraphunit.c (cgraph_output_in_order): Call
12924         varpool_finalize_named_section_flags.
12925         * varasm.c (get_section): Allow section flags conflicts between
12926         relro and read-only sections if the section hasn't been declared yet.
12927         Set SECTION_OVERRIDE after diagnosing section type conflict.
12928         (get_variable_section): No longer static.
12929         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12930         readonly sections that need relocations.
12931         (decl_readonly_section_1): New function.
12932         (decl_readonly_section): Use it.
12933
12934         Revert:
12935         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
12936                     Steve Ellcey  <sje@cup.hp.com>
12937
12938         PR middle-end/31490
12939         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12940         if section attribute used.
12941
12942 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12943
12944         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12945         * config/darwin.c (SECTION_NO_ANCHOR): Define.
12946         (darwin_init_sections): Remove assertion.
12947
12948 2011-02-03  Nick Clifton  <nickc@redhat.com>
12949
12950         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12951         lt and ge.
12952         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12953         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12954         instead of "n" and "pz".
12955         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12956         CC_FLAG_S.
12957
12958 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12959
12960         PR target/47312
12961         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12962         fma, expand FMA_EXPR as fma{,f,l} call.
12963
12964         PR lto/47274
12965         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12966         copy them into a unsigned char variable and pass address of it to
12967         lto_output_data_stream.
12968
12969         PR target/47564
12970         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12971         around backend_init_target and lang_dependent_init_target calls.
12972         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12973         (verify_cgraph_node): Don't call set_cfun here.  Use
12974         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12975         Set error_found for incorrectly represented calls to thunks.
12976
12977 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12978
12979         PR debug/43092
12980         PR rtl-optimization/43494
12981         * rtl.h (for_each_inc_dec_fn): New type.
12982         (for_each_inc_dec): Declare.
12983         * rtlanal.c (struct for_each_inc_dec_ops): New type.
12984         (for_each_inc_dec_find_inc_dec): New fn.
12985         (for_each_inc_dec_find_mem): New fn.
12986         (for_each_inc_dec): New fn.
12987         * dse.c (struct insn_size): Remove.
12988         (replace_inc_dec, replace_inc_dec_mem): Remove.
12989         (emit_inc_dec_insn_before): New fn.
12990         (check_for_inc_dec): Use it, along with for_each_inc_dec.
12991         (canon_address): Pass mem modes to cselib_lookup.
12992         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
12993         (cselib_lookup_from_insn): Likewise.
12994         (cselib_subst_to_values): Likewise.
12995         * cselib.c (find_slot_memmode): New var.
12996         (cselib_find_slot): New fn.  Use it instead of
12997         htab_find_slot_with_hash everywhere.
12998         (entry_and_rtx_equal_p): Use find_slot_memmode.
12999         (autoinc_split): New fn.
13000         (rtx_equal_for_cselib_p): Rename and implement in terms of...
13001         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
13002         Deal with autoinc.  Special-case recursion into MEMs.
13003         (cselib_hash_rtx): Likewise.
13004         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
13005         address and MEM modes.
13006         (cselib_subst_to_values): Add memmode, pass it on.
13007         Deal with autoinc.
13008         (cselib_lookup): Add memmode argument, pass it on.
13009         (cselib_lookup_from_insn): Add memmode.
13010         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13011         (struct cselib_record_autoinc_data): New.
13012         (cselib_record_autoinc_cb): New fn.
13013         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
13014         mode to cselib_lookup.  Reset autoinced REGs here instead of...
13015         (cselib_process_insn): ... here.
13016         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13017         to cselib_lookup.
13018         (add_uses): Likewise, also to cselib_subst_to_values.
13019         (add_stores): Likewise.
13020         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
13021         cselib_subst_to_values.
13022         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
13023         * gcse.c (do_local_cprop): Adjusted.
13024         * postreload.c (reload_cse_simplify_set): Adjusted.
13025         (reload_cse_simplify_operands): Adjusted.
13026         * sel-sched-dump (debug_mem_addr_value): Pass mode.
13027
13028 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
13029
13030         PR tree-optimization/45122
13031         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13032         unsafe assumptions when there's more than one loop exit.
13033
13034 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13035
13036         PR target/47272
13037         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13038         Document using vector double with the load/store builtins, and
13039         that the load/store builtins always use Altivec instructions.
13040
13041         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13042         to use altivec memory instructions, even on VSX.
13043         (vector_altivec_store_<mode>): Ditto.
13044
13045         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13046         function.
13047
13048         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13049         V2DF, V2DI support to load/store overloaded builtins.
13050
13051         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13052         altivec load/store builtins for V2DF/V2DI types.
13053
13054         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13055         set avoid indexed addresses on power6 if -maltivec.
13056         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13057         vector_altivec_load/vector_altivec_store builtins.
13058         (altivec_expand_st_builtin): Ditto.
13059         (altivec_expand_builtin): Add VSX memory builtins.
13060         (rs6000_init_builtins): Add V2DI types to internal types.
13061         (altivec_init_builtins): Add support for V2DF/V2DI altivec
13062         load/store builtins.
13063         (rs6000_address_for_altivec): Insure memory address is appropriate
13064         for Altivec.
13065
13066         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13067         vec_vsx_ld and vec_vsx_st.
13068         (vsx_store_<mode>): Ditto.
13069
13070         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13071         variables to hold long long types for VSX vector memory builtins.
13072         (RS6000_BTI_unsigned_long_long): Ditto.
13073         (long_long_integer_type_internal_node): Ditti.
13074         (long_long_unsigned_type_internal_node): Ditti.
13075
13076         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13077         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13078         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13079
13080         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13081         short cuts.
13082         (vec_vsx_st): Ditto.
13083
13084 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13085
13086         * config/pa/pa-hpux10.opt: New.
13087         * config/hpux11.opt (pthread): New Driver option.
13088         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13089         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13090
13091 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13092
13093         * config/ia64/vms.opt: New.
13094         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13095
13096 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
13097
13098         PR target/47580
13099         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13100         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13101         generator functions.
13102         (vsx_floatuns<VSi><mode>2): Ditto.
13103         (vsx_fix_trunc<mode><VSi>2): Ditto.
13104         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13105
13106 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13107
13108         * config/i386/djgpp.opt (posix): New Driver option.
13109
13110 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
13111
13112         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13113         Move to the unsupported targets list.
13114
13115 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
13116
13117         PR rtl-optimization/47525
13118         * df-scan.c: Update copyright years.
13119         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13120         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13121
13122 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13123
13124         * config/i386/sysv4.h (TARGET_VERSION): Remove.
13125         (SUBTARGET_RETURN_IN_MEMORY): Remove.
13126         (ASM_OUTPUT_ASCII): Remove.
13127         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13128
13129 2011-02-02  Jeff Law  <law@redhat.com>
13130
13131         PR middle-end/47543
13132         * reload.c (find_reloads_address): Handle reg+d address where both
13133         components are invalid by reloading the entire address.
13134
13135 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
13136             Richard Guenther  <rguenther@suse.de>
13137
13138         PR tree-optimization/40979
13139         PR bootstrap/47044
13140         * passes.c (init_optimization_passes): After LIM call copy_prop
13141         and DCE to clean up.
13142         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13143
13144 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
13145
13146         PR tree-optimization/47576
13147         PR tree-optimization/47555
13148         * doc/invoke.texi (scev-max-expr-complexity): Documented.
13149         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13150         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13151         * tree-scalar-evolution.c (follow_ssa_edge): Use
13152         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13153
13154 2011-02-02  Richard Guenther  <rguenther@suse.de>
13155
13156         PR tree-optimization/47566
13157         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13158
13159 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13160
13161         PR debug/47106
13162         PR debug/47402
13163         * tree-inline.c (declare_return_variable): Remove unused caller
13164         variable.
13165
13166         PR debug/47106
13167         PR debug/47402
13168         * tree-flow-inline.h (clear_is_used, is_used_p): New.
13169         * cfgexpand.c (account_used_vars_for_block): Use them.
13170         * tree-nrv.c (tree_nrv): Likewise.
13171         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13172         (dump_scope_block): Likewise.
13173         (remove_unused_locals): Likewise.
13174
13175         PR debug/47106
13176         PR debug/47402
13177         * tree-inline.c (declare_return_variable): Add result decl to
13178         local decls only once.
13179         * gimple-low.c (record_vars_into): Mark newly-created variables
13180         as referenced.
13181
13182 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13183
13184         PR debug/47498
13185         PR debug/47501
13186         PR debug/45136
13187         PR debug/45130
13188         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13189         debug insns.
13190         (no_real_insns_p, schedule_block, set_priorities): Drop special
13191         treatment of boundary debug insns.
13192         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13193         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13194         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13195         (BOUNDARY_DEBUG_INSN_P): Likewise.
13196         (SCHEDULE_DEBUG_INSN_P): Likewise.
13197         * sched-rgn.c (init_ready_list): Drop special treatment of
13198         boundary debug insns.
13199         * final.c (rest_of_clean_state): Clear notes' BB.
13200
13201 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13202
13203         * config/openbsd.opt (assert=): New Driver option.
13204
13205 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13206
13207         * config/i386/nto.opt: New.
13208         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13209
13210 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13211
13212         * config/i386/netware.opt: New.
13213         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13214
13215 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13216
13217         * config/interix.opt (posix): New Driver option.
13218
13219 2011-02-01  DJ Delorie  <dj@redhat.com>
13220
13221         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13222
13223         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13224         class for A0/A1.
13225
13226 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
13227
13228         PR tree-optimization/47561
13229         * toplev.c (process_options): Print the Graphite flags.  Add
13230         flag_loop_flatten to the list of options requiring Graphite.
13231
13232 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13233
13234         * config/i386/cygming.opt (posix): New Driver option.
13235
13236 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13237
13238         * config/arm/vxworks.opt: New.
13239         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13240
13241 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13242
13243         * config/alpha/elf.opt: New.
13244         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13245         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13246
13247 2011-02-01  Richard Guenther  <rguenther@suse.de>
13248
13249         PR tree-optimization/47559
13250         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13251         store-motion on references that can throw.
13252
13253 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
13254
13255         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13256         * tree-pass.h (TDF_CSELIB): New macro.
13257         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13258         cselib_lookup): Check for it rather than for TDF_DETAILS.
13259
13260 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
13261
13262         PR driver/47547
13263         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13264         is HOST_BIT_BUCKET.
13265
13266         * opts.c (finish_options): Don't add x_aux_base_name if it is
13267         HOST_BIT_BUCKET.
13268
13269 2011-02-01  Richard Guenther  <rguenther@suse.de>
13270
13271         PR tree-optimization/47555
13272         Revert
13273         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
13274
13275         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13276
13277 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
13278
13279         PR gcc/46692
13280         * config/lm32/t-lm32: Add multilib for all CPU options.
13281
13282 2011-02-01  Richard Guenther  <rguenther@suse.de>
13283
13284         PR tree-optimization/47541
13285         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13286         sure to have a field at offset zero.
13287
13288 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13289
13290         * config/arc/arc.opt (EB, EL): New Driver options.
13291
13292 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13293
13294         * config/alpha/osf5.opt: New.
13295         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13296
13297 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13298
13299         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13300
13301 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
13302
13303         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13304         -floop-interchange.
13305         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13306         is an alias of -floop-interchange and that it requires the
13307         Graphite infrastructure.
13308         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13309         flag_loop_interchange based on the value of flag_tree_loop_linear.
13310
13311 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
13312             Richard Guenther  <rguenther@suse.de>
13313
13314         PR tree-optimization/47538
13315         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13316         type instead of r1type, except for comparisons.  For right
13317         shifts and comparisons punt if there are mismatches in
13318         sizetype vs. non-sizetype types.
13319
13320 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13321
13322         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13323         avx_runtime.
13324
13325 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13326
13327         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13328         version number.
13329         * configure: Regenerate.
13330
13331 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13332
13333         * configure.ac (gcc_cv_ld_static_option): Define.
13334         (gcc_cv_ld_dynamic_option): Define.
13335         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13336         instead.
13337         (HAVE_LD_STATIC_DYNAMIC): Update message.
13338         (LD_STATIC_OPTION): Define.
13339         (LD_DYNAMIC_OPTION): Define.
13340         * configure: Regenerate.
13341         * config.in: Regenerate.
13342         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13343         HAVE_LD_STATIC_DYNAMIC]: Use them.
13344
13345 2011-01-31  Nick Clifton  <nickc@redhat.com>
13346
13347         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13348         registers inside interrupt handlers if the handler is not a leaf
13349         function.
13350
13351 2011-01-31  Nick Clifton  <nickc@redhat.com>
13352
13353         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13354         reg_renumber returning an INVALID_REGNUM.
13355
13356 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13357
13358         PR libgcj/44341
13359         * doc/install.texi: Document host options discarded when cross
13360         configuring target libraries.
13361
13362 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13363
13364         Reverted:
13365         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13366         PR debug/45136
13367         PR debug/45130
13368         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13369         debug insns.
13370         (no_real_insns_p, schedule_block, set_priorities): Drop special
13371         treatment of boundary debug insns.
13372         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13373         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13374         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13375         (BOUNDARY_DEBUG_INSN_P): Likewise.
13376         (SCHEDULE_DEBUG_INSN_P): Likewise.
13377         * sched-rgn.c (init_ready_list): Drop special treatment of
13378         boundary debug insns.
13379         * final.c (rest_of_clean-state): Clear notes' BB.
13380
13381 2011-01-31  Alan Modra  <amodra@gmail.com>
13382
13383         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13384         toc relative expressions as we do in print_operand_address.
13385
13386 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
13387
13388         * doc/extend.texi: Follow spelling conventions.
13389         * doc/invoke.texi: Fix a typo.
13390
13391 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
13392
13393         * config/hpux11.opt: New.
13394         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13395         ia64*-*-hpux*): Use hpux11.opt.
13396
13397 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
13398
13399         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13400         to tmake_file.
13401
13402 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13403
13404         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13405         support sites.
13406
13407 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13408
13409         * doc/install.texi (Binaries): Remove outdated reference for
13410         Motorola 68HC11/68HC12 downloads.
13411
13412 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13413
13414         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13415         Drepper's paper.
13416
13417 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
13418
13419         PR bootstrap/47147
13420         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13421         used by NetBSD.
13422
13423 2011-01-28  Ahmad Sharif  <asharif@google.com>
13424
13425         * value-prof.c (check_counter): Corrected error message.
13426
13427 2011-01-29  Jie Zhang  <jie@codesourcery.com>
13428
13429         * config/arm/arm.c (arm_legitimize_reload_address): New.
13430         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13431         arm_legitimize_reload_address.
13432         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13433
13434 2011-01-28  Ian Lance Taylor  <iant@google.com>
13435
13436         * godump.c (go_define): Ignore macros whose definitions include
13437         two adjacent operands.
13438
13439 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
13440
13441         PR target/42894
13442         * varasm.c (force_const_mem): Store copy of x in desc->constant
13443         instead of x itself.
13444         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13445         itself into REG_EQUAL note.
13446
13447 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
13448
13449         * config/freebsd.opt (posix, rdynamic): New Driver options.
13450
13451 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13452
13453         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13454         -Bstatic/-Bdynamic.
13455         * configure: Regenerate.
13456
13457 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
13458
13459         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13460         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13461
13462 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
13463
13464         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13465         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13466         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13467         (s390_preferred_reload_class): Make static. Change return and
13468         'rclass' argument type to reg_class_t.
13469
13470 2011-01-27  Jan Hubicka  <jh@suse.cz>
13471
13472         PR middle-end/46949
13473         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13474         (process_function_and_variable_attributes): Check defined weakrefs.
13475
13476 2011-01-27  Martin Jambor  <mjambor@suse.cz>
13477
13478         PR tree-optimization/47228
13479         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13480         build_ref_for_offset.
13481
13482 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13483
13484         * config/spu/spu-elf.h (ASM_SPEC): Remove.
13485
13486 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
13487
13488         PR rtl-optimization/46856
13489         * postreload.c (reload_combine_recognize_const_pattern): Do not
13490         separate cc0 setter and user on cc0 targets.
13491
13492 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
13493
13494         PR c/43082
13495         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13496         passed a VOID_TYPE expression, immediately emit an error and
13497         return error_mark_node.
13498
13499 2011-01-26  Jeff Law  <law@redhat.com>
13500
13501         PR rtl-optimization/47464
13502         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13503         rather than may_trap_p as needed.
13504
13505 2011-01-26  DJ Delorie  <dj@redhat.com>
13506
13507         PR rtl-optimization/46878
13508         * combine.c (insn_a_feeds_b): Check for the implicit cc0
13509         setter/user dependency as well.
13510
13511 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
13512
13513         PR rtl-optimization/44469
13514         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13515         after removing trivially dead basic blocks.
13516
13517 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13518
13519         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13520         * config/frv/frv.h (LINK_SPEC): Likewise.
13521         * config/i386/netware.h (LINK_SPEC): Likewise.
13522         * config/m68k/linux.h (ASM_SPEC): Likewise.
13523         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13524         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13525         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13526         * config/sparc/linux.h (ASM_SPEC): Likewise.
13527         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13528         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13529
13530 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13531
13532         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13533         * config/frv/frv.h (ASM_SPEC): Likewise.
13534         * config/m68k/linux.h (ASM_SPEC): Likewise.
13535         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13536         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13537         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13538         * config/sparc/linux.h (ASM_SPEC): Likewise.
13539         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13540         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13541
13542 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13543
13544         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13545         * config/frv/frv.h (LINK_SPEC): Likewise.
13546         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13547
13548 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13549
13550         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13551         * config/frv/frv.h (ASM_SPEC): Likewise.
13552         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13553         * config/m68k/linux.h (ASM_SPEC): Likewise.
13554         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13555         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13556         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13557         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13558         * config/sparc/linux.h (ASM_SPEC): Likewise.
13559         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13560         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13561         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13562
13563 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
13564
13565         PR target/46997
13566         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13567         (*mux2): Ditto.
13568         (vec_extract_evenodd_help): Ditto.
13569         (vec_extract_evenv4hi): Ditto.
13570         (vec_extract_oddv4hi): Ditto.
13571         (vec_interleave_lowv2si): Ditto.
13572         (vec_interleave_highv2si): Ditto.
13573         (vec_extract_evenv2si): Ditto.
13574         (vec_extract_oddv2si: Ditto.
13575         (vec_pack_trunc_v2si): Ditto.
13576
13577 2011-01-22  Jan Hubicka  <jh@suse.cz>
13578
13579         PR target/47237
13580         * cgraph.h (cgraph_local_info): New field can_change_signature.
13581         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13582         signature can change.
13583         (ipcp_estimate_growth): Call sequence simplify only if calle signature
13584         can change.
13585         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13586         (cgraph_function_versioning): We can not change signature of functions
13587         that don't allow that.
13588         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13589         (lto_input_node): Likewise.
13590         * ipa-inline.c (compute_inline_parameters): Compute
13591         local.can_change_signature.
13592         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13593         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13594         functions that can not change signature.
13595         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13596         init_cumulative_args): Do not use local calling conventions
13597         for functions that can not change signature.
13598
13599 2011-01-22  Jan Hubicka  <jh@suse.cz>
13600
13601         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13602
13603 2011-01-26  Richard Guenther  <rguenther@suse.de>
13604
13605         PR tree-optimization/47190
13606         * cgraphunit.c (process_common_attributes): New function.
13607         (process_function_and_variable_attributes): Use it.
13608
13609 2011-01-26  Richard Guenther  <rguenther@suse.de>
13610
13611         PR lto/47423
13612         * cgraphbuild.c (record_eh_tables): Record reference to personality
13613         function.
13614
13615 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
13616
13617         PR debug/45454
13618         * sel-sched.c (moveup_expr): Don't let debug insns prevent
13619         non-debug insns from moving up.
13620
13621 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13622
13623         PR target/40125
13624         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13625         t-dlldir{,-x} fragment for build and add it to tmake_file.
13626         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13627         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13628         * config/i386/t-dlldir: New file.
13629         (SHLIB_DLLDIR): Define.
13630         * config/i386/t-dlldir-x: New file.
13631         (SHLIB_DLLDIR): Define.
13632         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13633         (SHLIB_INSTALL): Use it.
13634
13635 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
13636
13637         PR target/47246
13638         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13639         lower bound of the allowed Thumb-2 coprocessor load/store
13640         index range to -256. Add explaining comment.
13641
13642 2011-01-25  Ian Lance Taylor  <iant@google.com>
13643
13644         * godump.c (go_define): Improve lexing of macro expansion to only
13645         accept expressions which match Go spec.
13646
13647 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13648
13649         PR c++/43601
13650         * tree.c (handle_dll_attribute): Handle it.
13651         * doc/extend.texi (@item dllexport): Mention it.
13652         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13653
13654 2011-01-25  Ian Lance Taylor  <iant@google.com>
13655
13656         PR tree-optimization/26854
13657         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13658         (decl_jump_unsafe): Move higher in file, with no other change.
13659         (bind): Set has_jump_unsafe_decl if appropriate.
13660         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13661         (check_earlier_gotos): Likewise.
13662         (c_check_switch_jump_warnings): Likewise.
13663
13664 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
13665
13666         * doc/invoke.texi (Warning Options): Add missing hyphen.
13667         (-fprofile-dir): Minor grammatical fixes.
13668         (-fbranch-probabilities): Likewise.
13669
13670 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13671
13672         PR debug/45136
13673         PR debug/45130
13674         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13675         debug insns.
13676         (no_real_insns_p, schedule_block, set_priorities): Drop special
13677         treatment of boundary debug insns.
13678         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13679         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13680         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13681         (BOUNDARY_DEBUG_INSN_P): Likewise.
13682         (SCHEDULE_DEBUG_INSN_P): Likewise.
13683         * sched-rgn.c (init_ready_list): Drop special treatment of
13684         boundary debug insns.
13685         * final.c (rest_of_clean-state): Clear notes' BB.
13686
13687 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13688
13689         * Makefile.in (LAMBDA_H): Removed.
13690         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13691         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13692         lambda-trans.o, and tree-loop-linear.o.
13693         (lto-symtab.o): Remove dependence on LAMBDA_H.
13694         (tree-loop-linear.o): Remove rule.
13695         (lambda-mat.o): Same.
13696         (lambda-trans.o): Same.
13697         (lambda-code.o): Same.
13698         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13699         (tree-vect-slp.o): Same.
13700         * hwint.h (gcd): Moved here.
13701         (least_common_multiple): Same.
13702         * lambda-code.c: Removed.
13703         * lambda-mat.c: Removed.
13704         * lambda-trans.c: Removed.
13705         * lambda.h: Removed.
13706         * tree-loop-linear.c: Removed.
13707         * lto-symtab.c: Do not include lambda.h.
13708         * omega.c (gcd): Removed.
13709         * passes.c (init_optimization_passes): Remove pass_linear_transform.
13710         * tree-data-ref.c (print_lambda_vector): Moved here.
13711         (lambda_vector_copy): Same.
13712         (lambda_matrix_copy): Same.
13713         (lambda_matrix_id): Same.
13714         (lambda_vector_first_nz): Same.
13715         (lambda_matrix_row_add): Same.
13716         (lambda_matrix_row_exchange): Same.
13717         (lambda_vector_mult_const): Same.
13718         (lambda_vector_negate): Same.
13719         (lambda_matrix_row_negate): Same.
13720         (lambda_vector_equal): Same.
13721         (lambda_matrix_right_hermite): Same.
13722         * tree-data-ref.h: Do not include lambda.h.
13723         (lambda_vector): Moved here.
13724         (lambda_matrix): Same.
13725         (dependence_level): Same.
13726         (lambda_transform_legal_p): Removed declaration.
13727         (lambda_collect_parameters): Same.
13728         (lambda_compute_access_matrices): Same.
13729         (lambda_vector_gcd): Same.
13730         (lambda_vector_new): Same.
13731         (lambda_vector_clear): Same.
13732         (lambda_vector_lexico_pos): Same.
13733         (lambda_vector_zerop): Same.
13734         (lambda_matrix_new): Same.
13735         * tree-flow.h (least_common_multiple): Removed declaration.
13736         * tree-parloops.c (lambda_trans_matrix): Moved here.
13737         (LTM_MATRIX): Same.
13738         (LTM_ROWSIZE): Same.
13739         (LTM_COLSIZE): Same.
13740         (LTM_DENOMINATOR): Same.
13741         (lambda_trans_matrix_new): Same.
13742         (lambda_matrix_vector_mult): Same.
13743         (lambda_transform_legal_p): Same.
13744         * tree-pass.h (pass_linear_transform): Removed declaration.
13745         * tree-ssa-loop.c (tree_linear_transform): Removed.
13746         (gate_tree_linear_transform): Removed.
13747         (pass_linear_transform): Removed.
13748         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13749         flag_loop_interchange.
13750
13751 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13752
13753         PR tree-optimization/47265
13754         PR tree-optimization/47443
13755         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13756         if name still has some uses.
13757
13758 2011-01-25  Martin Jambor  <mjambor@suse.cz>
13759
13760         PR tree-optimization/47382
13761         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13762         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13763
13764 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
13765
13766         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13767         sjlj_except_unwind_info.
13768
13769 2011-01-25  Richard Guenther  <rguenther@suse.de>
13770
13771         PR tree-optimization/47426
13772         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13773         visible functions results escape.
13774
13775 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13776
13777         PR target/45701
13778         * config/arm/arm.c (any_sibcall_uses_r3): New function.
13779         (arm_get_frame_offsets): Use it.
13780
13781 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13782             Jakub Jelinek  <jakub@redhat.com>
13783
13784         PR tree-optimization/47271
13785         * tree-if-conv.c (bb_postdominates_preds): New.
13786         (if_convertible_bb_p): Call bb_postdominates_preds.
13787         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13788         (predicate_scalar_phi): Call bb_postdominates_preds.
13789
13790 2011-01-25  Nick Clifton  <nickc@redhat.com>
13791
13792         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13793         * config/rx/rx.c (rx_function_value): Likewise.
13794         (rx_promote_function_mode): Likewise.
13795         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13796         in order to make it legitimate.
13797         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13798         make sure that the first operand is the same as the result register.
13799         (addsi3_unspec): Delete.
13800         (subdi3): Do not accept immediate operands.
13801         (subdi3_internal): Likewise.
13802
13803 2011-01-25  Jeff Law  <law@redhat.com>
13804
13805         PR rtl-optimization/37273
13806         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13807         handle them like argument loads from stack slots.  Do not double
13808         count memory for memory constants and argument loads from stack slots.
13809
13810 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13811
13812         PR tree-optimization/47427
13813         PR tree-optimization/47428
13814         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13815         coalesce if the new root var would be TREE_READONLY.
13816
13817 2011-01-25  Richard Guenther  <rguenther@suse.de>
13818
13819         PR middle-end/47414
13820         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13821         correct type for TBAA.
13822
13823 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13824
13825         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13826         (close_phi_written_to_memory): Call for_each_index with
13827         dr_indices_valid_in_loop.
13828
13829 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13830
13831         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13832         when it is initialized.
13833
13834 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13835
13836         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13837         call to graphite_find_data_references_in_stmt.
13838         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13839         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
13840         call to graphite_find_data_references_in_stmt.
13841         (analyze_drs_in_stmts): Same.
13842         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13843         in which the scalar analysis of indices is performed.
13844         (create_data_ref): Same.  Update call to dr_analyze_indices.
13845         (find_data_references_in_stmt): Update call to create_data_ref.
13846         (graphite_find_data_references_in_stmt): Same.
13847         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13848         declaration.
13849         (create_data_ref): Same.
13850         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13851         call to create_data_ref.
13852
13853 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13854
13855         * graphite-sese-to-poly.c (build_poly_scop): Move
13856         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13857
13858 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13859
13860         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13861         VAR_DECL, PARM_DECL, and RESULT_DECL.
13862
13863 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13864
13865         * graphite-dependences.c (reduction_dr_1): Allow several reductions
13866         in a reduction PBB.
13867         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13868         that have already been marked as PBB_IS_REDUCTION.
13869
13870 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13871
13872         * graphite-scop-detection.c (same_close_phi_node): New.
13873         (remove_duplicate_close_phi): New.
13874         (make_close_phi_nodes_unique): New.
13875         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13876
13877 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13878
13879         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13880         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13881         of both data references to be the same.
13882
13883 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13884
13885         * graphite-dependences.c (build_lexicographical_constraint): Remove
13886         the gdim parameter.
13887         (build_lexicographical_constraint): Adjust call to
13888         ppl_powerset_is_empty.
13889         (dependence_polyhedron): Same.
13890         (graphite_legal_transform_dr): Same.
13891         (graphite_carried_dependence_level_k): Same.
13892         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13893         parameter.
13894         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13895
13896 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13897
13898         * graphite-sese-to-poly.c
13899         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13900         (close_phi_written_to_memory): New.
13901         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13902         and unshare_expr.
13903
13904 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13905
13906         * doc/install.texi: Update the expected version number of PPL to 0.11.
13907         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13908         #if PPL_VERSION_MINOR < 11.
13909
13910 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13911
13912         * graphite-dependences.c: Include graphite-cloog-util.h.
13913         (new_poly_ddr): Inlined into dependence_polyhedron.
13914         (free_poly_ddr): Moved close by new_poly_ddr.
13915         (dependence_polyhedron_1): Renamed dependence_polyhedron.
13916         Early return NULL when ppl_powerset_is_empty returns true.
13917         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
13918         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
13919         (graphite_legal_transform_dr): Call new_poly_ddr.
13920         (graphite_carried_dependence_level_k): Same.
13921         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
13922         (dot_transformed_deps_stmt_1): Removed.
13923         (dot_deps_stmt_1): Call dot_deps_stmt_2.
13924         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
13925         (dot_deps_1): Call dot_deps_2.
13926         * Makefile.in (graphite-dependences.o): Add missing dependence on
13927         graphite-cloog-util.h.
13928
13929 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13930
13931         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13932         (build_lexicographical_constraint): Same.
13933         (dependence_polyhedron_1): Same.
13934         (graphite_legal_transform_dr): Same.
13935         (graphite_carried_dependence_level_k): Same.
13936         * graphite-ppl.c (ppl_powerset_is_empty): New.
13937         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13938         * tree-data-ref.c (dump_data_reference): Print the basic block index.
13939
13940 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13941
13942         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13943         the "a followed by b" relation and document it.
13944
13945 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13946
13947         * graphite-dependences.c (build_lexicographical_constraint): Stop the
13948         iteration when the bag of constraints is empty.
13949
13950 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13951
13952         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13953
13954 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13955
13956         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13957         nest and two loop depths as parameters.
13958         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13959         lst_perfect_nestify.
13960
13961 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13962
13963         * graphite-dependences.c (print_pddr): Call
13964         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13965
13966 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13967
13968         * graphite-ppl.c (debug_gmp_value): New.
13969         * graphite-ppl.h (debug_gmp_value): Declared.
13970
13971 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
13972
13973         * doc/install.texi: Document availability of cloog-0.16.
13974
13975 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
13976
13977         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13978         invalid postdominance info.
13979
13980 2011-01-24  Jan Hubicka  <jh@suse.cz>
13981
13982         PR c/21659
13983         * doc/extend.texi (weak pragma): Drop claim that it must
13984         appear before definition.
13985         * varasm.c (merge_weak, declare_weak): Only sanity check
13986         that DECL is not output at a time it is declared weak.
13987
13988 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
13989
13990         * machmode.def: Fixed comments.
13991
13992 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
13993
13994         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13995
13996 2011-01-24  Paul Koning  <ni1d@arrl.net>
13997
13998         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13999         WORDS_BIG_ENDIAN.
14000
14001 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
14002
14003         PR target/46519
14004         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14005         (block_info): Add scanned and prev.
14006         (move_or_delete_vzeroupper_2): Return if the basic block
14007         has been scanned and the upper 128bit state is unchanged
14008         from the last scan.
14009         (move_or_delete_vzeroupper_1): Return true if the exit
14010         state is changed.
14011         (move_or_delete_vzeroupper): Visit basic blocks using the
14012         work-list based algorithm based on vt_find_locations in
14013         var-tracking.c.
14014
14015         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14016
14017 2011-01-24  Nick Clifton  <nickc@redhat.com>
14018
14019         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14020         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14021         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
14022         then define __v850e1__.
14023         * doc/invoke.texi: Document -mv850es.
14024
14025 2011-01-24  Richard Henderson  <rth@redhat.com>
14026
14027         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14028         compound unordered comparisons.
14029         * config/rx/rx.c (rx_split_fp_compare): Remove.
14030         * config/rx/rx-protos.h: Update.
14031         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14032         (cbranchsf4): Don't call rx_split_fp_compare.
14033         (*cbranchsf4): Use rx_split_cbranch.
14034         (*cmpsf): Don't accept "i" constraint.
14035         (*conditional_branch): Only valid after reload.
14036         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
14037
14038 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14039
14040         PR target/47385
14041         * config/rs6000/altivec.md (vector constant splitters): Add
14042         support for creating vector single precision constants if -mvsx is
14043         used and we would create the constant using Altivec primitives.
14044
14045 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
14046             Richard Sandiford  <rdsandiford@googlemail.com>
14047
14048         PR rtl-optimization/47166
14049         * reload1.c (emit_reload_insns): Disable the spill_reg_store
14050         mechanism for PRE_MODIFY and POST_MODIFY.
14051         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14052         reloadreg.
14053
14054 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
14055
14056         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14057
14058 2011-01-22  Jan Hubicka  <jh@suse.cz>
14059
14060         PR lto/47333
14061         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14062
14063 2011-01-22  Jan Hubicka  <jh@suse.cz>
14064
14065         PR tree-optimization/43884
14066         PR lto/44334
14067         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14068         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14069
14070 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
14071
14072         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14073         * config/s390/s390.c (s390_register_move_cost,
14074         s390_memory_move_cost): New.
14075         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14076
14077 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14078
14079         PR middle-end/47401
14080         * except.c (sjlj_assign_call_site_values): Move setting the
14081         crtl->uses_eh_lsda flag to ...
14082         (sjlj_mark_call_sites): ... here.
14083         (sjlj_emit_function_enter): Support NULL dispatch label.
14084         (sjlj_build_landing_pads): In a function with no landing pads
14085         that still has must-not-throw regions, generate code to register
14086         a personality function with empty LSDA.
14087
14088 2011-01-21  Richard Henderson  <rth@redhat.com>
14089
14090         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14091
14092         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14093
14094         * compare-elim.c: New file.
14095         * Makefile.in (OBJS-common): Add it.
14096         (compare-elim.o): New.
14097         * common.opt (fcompare-elim): New.
14098         * opts.c (default_options_table): Add OPT_fcompare_elim.
14099         * tree-pass.h (pass_compare_elim_after_reload): New.
14100         * passes.c (init_optimization_passes): Add it.
14101         * recog.h: Protect against re-inclusion.
14102         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14103         * doc/invoke.texi (-fcompare-elim): Document it.
14104         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14105         * doc/tm.texi: Rebuild.
14106
14107 2011-01-22  Nick Clifton  <nickc@redhat.com>
14108
14109         * config/rx/rx.md (cstoresf4): Pass comparison operator to
14110         rx_split_fp_compare.
14111
14112 2011-01-22  Nick Clifton  <nickc@redhat.com>
14113
14114         * config/rx/rx.md (UNSPEC_CONST): New.
14115         (deallocate_and_return): Wrap the amount popped off the stack in
14116         an UNSPEC_CONST in order to stop it being rejected by
14117         -mmax-constant-size.
14118         (pop_and_return): Add a "(return)" rtx.
14119         (call): Drop the immediate operand.
14120         (call_internal): Likewise.
14121         (call_value): Likewise.
14122         (call_value_internal): Likewise.
14123         (sibcall_internal): Likewise.
14124         (sibcall_value_internal): Likewise.
14125         (sibcall): Likewise.  Generate an explicit call using
14126         sibcall_internal.
14127         (sibcall_value): Likewise.
14128         (mov<>): FAIL if a constant operand is not legitimate.
14129         (addsi3_unpsec): New pattern.
14130
14131         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14132         (ok_for_max_constant): New function.
14133         (gen_safe_add): New function.
14134         (rx_expand_prologue): Use gen_safe_add.
14135         (rx_expand_epilogue): Likewise.
14136         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
14137         UNSPEC CONSTs.
14138
14139 2011-01-21  Jeff Law  <law@redhat.com>
14140
14141         PR tree-optimization/47053
14142         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14143         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14144         statements are deleted.
14145         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
14146         is nonempty, then purge dead edges and cleanup the CFG.
14147
14148 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14149
14150         PR debug/47402
14151         Temporarily revert:
14152         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14153         PR debug/47106
14154         * tree-dfa.c (create_var_ann): Mark variable as used.
14155
14156 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14157
14158         PR middle-end/45566
14159         * except.c (convert_to_eh_region_ranges): Emit queued no-region
14160         notes from other section in hot/cold partitioning even if
14161         last_action is -3.  Increment call_site_base.
14162
14163         PR rtl-optimization/47366
14164         * fwprop.c (forward_propagate_into): Return bool.  If
14165         any changes are made, -fnon-call-exceptions is used and
14166         REG_EH_REGION note is present, call purge_dead_edges
14167         and return true if it purged anything.
14168         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14169         any EH edges were purged.
14170
14171 2011-01-21  Jeff Law  <law@redhat.com>
14172
14173         PR rtl-optimization/41619
14174         * caller-save.c (setup_save_areas): Break out code to determine
14175         which hard regs are live across calls by examining the reload chains
14176         so that it is always used.
14177         Eliminate code which checked REG_N_CALLS_CROSSED.
14178
14179 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14180
14181         PR tree-optimization/47355
14182         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14183         NOP has non-debug uses beyond PHIs in new_bb.
14184
14185 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14186
14187         PR debug/47106
14188         * cfgexpand.c (account_used_vars_for_block): Only account vars
14189         that are annotated as used.
14190         (estimated_stack_frame_size): Don't set TREE_USED.
14191         * tree-dfa.c (create_var_ann): Mark variable as used.
14192
14193 2011-01-21  Richard Guenther  <rguenther@suse.de>
14194
14195         PR middle-end/47395
14196         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14197
14198 2011-01-21  Richard Guenther  <rguenther@suse.de>
14199
14200         PR tree-optimization/47365
14201         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14202         (vn_reference_lookup_pieces): Adjust.
14203         (vn_reference_lookup): Likewise.
14204         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14205         (vn_reference_lookup_3): Only look through kills if in
14206         VN_WALKREWRITE mode.
14207         (vn_reference_lookup_pieces): Adjust.
14208         (vn_reference_lookup): Likewise.
14209         (visit_reference_op_load): Likewise.
14210         (visit_reference_op_store): Likewise.
14211         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14212         (compute_avail): Likewise.
14213         (eliminate): Likewise.
14214
14215 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14216
14217         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14218         DECL_IGNORED_P non-reg vars if they are used.
14219
14220         PR tree-optimization/47391
14221         * varpool.c (const_value_known_p): Return false if
14222         decl is volatile.
14223
14224 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
14225
14226         PR bootstrap/47215
14227         * config/i386/i386.c (ix86_local_alignment): Handle
14228         case for va_list_type_node is nil.
14229         (ix86_canonical_va_list_type): Likewise.
14230
14231 2011-01-21  Alan Modra  <amodra@gmail.com>
14232
14233         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14234         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14235
14236 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14237
14238         * config/arm/arm.md (define_attr type): Rename f_load
14239         and f_store to f_fpa_load and f_fpa_store. Update.
14240         (write_conflict): Deal with rename fallout.
14241         (*push_fp_multi): Likewise.
14242         * config/arm/fpa.md (f_load): Use f_fpa_load.
14243         (f_store): Use f_fpa_store.
14244         (*movsf_fpa): Likewise.
14245         (*movdf_fpa): Likewise.
14246         (*movxf_fpa): Likewise.
14247         (*thumb2_movsf_fpa): Likewise.
14248         (*thumb2_movdf_fpa): Likewise.
14249         (*thumb2_movxf_fpa): Likewise.
14250         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14251         f_loadd and f_stored.
14252         (*thumb2_movdi_vfp): Likewise.
14253         (*thumb2_movsf_vfp): Fix attribute to f_loads.
14254         (*thumb2_movsi_vfp): Likewise.
14255         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14256         Use f_loads instead of f_load.
14257         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14258
14259 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
14260
14261         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14262         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14263         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14264         (xtensa_mode_dependent_address_p): New function.
14265         (constantpool_address_p): Make static. Change return type to bool.
14266         Change argument type to const_rtx. Use CONST_INT_P predicate.
14267
14268 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
14269
14270         PR debug/46583
14271         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14272
14273 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14274
14275         PR debug/47283
14276         * cfgexpand.c (expand_debug_expr): Instead of generating
14277         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14278         etc. handling.
14279
14280 2011-01-20  Richard Guenther  <rguenther@suse.de>
14281
14282         PR middle-end/47370
14283         * tree-inline.c (remap_gimple_op_r): Recurse manually for
14284         the pointer operand of MEM_REFs.
14285
14286 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14287
14288         PR tree-optimization/46130
14289         * ipa-split.c (consider_split): If return_bb contains non-virtual
14290         PHIs other than for retval or if split_function would not adjust it,
14291         refuse to split.
14292
14293 2011-01-20  Richard Guenther  <rguenther@suse.de>
14294
14295         PR tree-optimization/47167
14296         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14297         Revert previous change, only avoid enumeral type changes.
14298
14299 2011-01-19  Mike Stump  <mikestump@comcast.net>
14300
14301         * doc/tm.texi.in (BRANCH_COST): Englishify.
14302         * doc/tm.texi (BRANCH_COST): Likewise.
14303
14304 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
14305
14306         PR c++/47291
14307         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14308         (gen_scheduled_generic_parms_dies): New functions.
14309         (gen_struct_or_union_type_die): Schedule template parameters DIEs
14310         generation for the end of CU compilation.
14311         (dwarf2out_finish): Generate template parameters DIEs here.
14312
14313 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14314
14315         PR debug/46240
14316         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14317         debug bind stmt on merge edges.
14318
14319 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14320
14321         PR debug/47079
14322         PR debug/46724
14323         * function.c (instantiate_expr): Instantiate incoming rtl of
14324         implicit arguments, and recurse on VALUE_EXPRs.
14325         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14326         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14327
14328 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14329
14330         * c-parser.c (c_parser_for_statement): Initialize
14331         collection_expression.
14332
14333 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14334
14335         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14336
14337 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14338
14339         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14340         (LINK_SHLIB_SPEC): Don't use %(link_path).
14341         (SUBTARGET_EXTRA_SPECS): Remove link_path.
14342
14343 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14344
14345         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14346         (NO_SHARED_LIB_SUPPORT): Remove.
14347         (LINK_SHLIB_SPEC): Remove one conditional definition.
14348
14349 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14350
14351         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14352         %{call_shared}.
14353         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14354         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14355         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14356         %{call_shared} and conditionals on these options not being passed.
14357         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14358         %{call_shared}.
14359
14360 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14361
14362         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14363         simplify.
14364
14365         * ipa-split.c: Spelling fixes.
14366
14367 2011-01-19  Richard Henderson  <rth@redhat.com>
14368
14369         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14370         (*mulsi3): Likewise.
14371
14372         * longlong.h [__mn10300__] (count_leading_zeros): New.
14373         [__mn10300__] (umul_ppmm, smul_ppmm): New.
14374         [__mn10300__] (add_ssaaaa, subddmmss): New.
14375         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14376         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14377
14378 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14379
14380         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14381
14382 2011-01-19  Richard Henderson  <rth@redhat.com>
14383
14384         * config/mn10300/mn10300.md (addsi3_flags): New.
14385         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14386         (subsi3_flags, subc_internal, subdi3): New.
14387         (subdi3_internal, *subdi3_degenerate): New.
14388         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14389
14390         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14391         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14392         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
14393         * config/mn10300/mn10300-protos.h: Update.
14394         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14395         (return_ret): Likewise.  Rename from return_internal_regs.
14396         (return_internal): Remove.
14397
14398         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14399         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14400         (mn10300_legitimate_constant_p): Likewise.
14401         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14402         (mn10300_frame_size): New.
14403         (mn10300_expand_prologue): Use it.
14404         (mn10300_expand_epilogue): Likewise.
14405         (mn10300_initial_offset): Likewise.
14406         * config/mn10300/mn10300-protos.h: Update.
14407         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14408         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14409         (prologue, epilogue, return_internal): Tidy output code.
14410         (mn10300_store_multiple_operation, return): Likewise.
14411         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14412         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14413         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14414         (load_pic, am33_load_pic): New.
14415         (mn10300_load_pic0, mn10300_load_pic1): New.
14416
14417         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14418         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14419         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14420         (cc_flags_for_mode, cc_flags_for_code): New.
14421         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14422         overflow flag is not valid.  Validate that the flags we need
14423         for the comparison are valid.
14424         (mn10300_output_cmp): Remove.
14425         (mn10300_output_add): New.
14426         (mn10300_select_cc_mode): Use cc_flags_for_code.
14427         (mn10300_split_cbranch): New.
14428         (mn10300_match_ccmode): New.
14429         (mn10300_split_and_operand_count): New.
14430         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14431         to the function.
14432         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14433         (addsi3): ... here.  Use mn10300_output_add.
14434         (*addsi3_flags): New.
14435         (*am33_subsi3, *mn10300_subsi3): Merge...
14436         (subsi3): ... here.  Use attribute isa.
14437         (*subsi3_flags): New.
14438         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
14439         when possible.
14440         (*am33_andsi3, *mn10300_andsi3): Merge...
14441         (andsi3): ... here.
14442         (*andsi3_flags): New.
14443         (andsi3 splitters): New.
14444         (*am33_iorsi3, *mn10300_iorsi3): Merge...
14445         (iorsi3): ... here.
14446         (*iorsi3_flags): New.
14447         (*am33_xorsi3, *mn10300_xorsi3): Merge...
14448         (xorsi3): ... here.
14449         (*xorsi3_flags): New.
14450         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14451         (one_cmplsi2): ... here.
14452         (*one_cmplsi2_flags): New.
14453         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
14454         instead of "dax" in constraints.  Use mn10300_split_cbranch.
14455         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
14456         use matching constraints to eliminate a self-comparison.
14457         (*integer_conditional_branch): Rename from integer_conditional_branch.
14458         Use int_mode_flags to match CC_REG.
14459         (*cbranchsi4_btst, *btstsi): New.
14460         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
14461         mn10300_split_cbranch.
14462         (*am33_cmpsf): Rename from am33_cmpsf.
14463         (*float_conditional_branch): Rename from float_conditional_branch.
14464         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14465         (zero_extendqisi2): ... here.
14466         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14467         (zero_extendhisi2): ... here.
14468         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14469         (extendqisi2): ... here.
14470         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14471         (extendhisi2): ... here.
14472         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14473         (ashlsi3): ... here.
14474         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14475         (lshrsi3): ... here.
14476         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14477         (ashrsi3): ... here.
14478         (consecutive add peephole): Remove.
14479         * config/mn10300/predicates.md (label_ref_operand): New.
14480         (int_mode_flags): New.
14481         (CCZN_comparison_operator): New.
14482
14483         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14484         (throughput_42_latency_43): New reservation.
14485         (mulsidi3, umulsidi3): New expanders.
14486         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
14487         the MDR register to allocation; separately allocate the low and
14488         high parts of the DImode result.
14489         (umulsidi3_internal): Similarly.
14490         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14491         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
14492         (udivsi3, umodsi3): Remove.
14493         (udivmodsi4, divmodsi4): New expanders.
14494         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
14495         (*divmodsi4): Simiarly.
14496         (ext_internal): New.
14497
14498         * config/mn10300/constraints.md ("z"): New constraint.
14499         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14500         (FIXED_REGISTERS): Don't fix MDR.
14501         (CALL_USED_REGSITERS): Reformat nicely.
14502         (REG_ALLOC_ORDER): Add MDR.
14503         (enum regclass): Add MDR_REGS.
14504         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14505         (IRA_COVER_CLASSES): Add MDR_REGS.
14506         (REGNO_REG_CLASS): Handle MDR_REG.
14507         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14508         (mn10300_register_move_cost): Likewise.
14509         * config/mn10300/mn10300.md (MDR_REG): New.
14510         (*movsi_internal): Handle moves to/from MDR_REGS.
14511
14512         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14513         POST_MODIFY.
14514         (mn10300_secondary_reload): Tidy combination reload classes.
14515         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14516         addresses for AM33.  Allow symbolic offsets for reg+imm.
14517         (mn10300_regno_in_class_p): New.
14518         (mn10300_legitimize_reload_address): New.
14519         * config/mn10300/mn10300.h (enum reg_class): Remove
14520         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14521         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
14522         SP_OR_GENERAL_REGS.
14523         (REG_CLASS_NAMES): Update to match.
14524         (REG_CLASS_CONTENTS): Likewise.
14525         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14526         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14527         (REGNO_IN_RANGE_P): Remove.
14528         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14529         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14530         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14531         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14532         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14533         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14534         (REGNO_GENERAL_P): New.
14535         (HAVE_POST_MODIFY_DISP): New.
14536         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14537         (LEGITIMIZE_RELOAD_ADDRESS): New.
14538         * config/mn10300/mn10300-protos.h: Update.
14539
14540         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14541         DATA_REGS for AM33 stack-pointer destination.
14542         (mn10300_preferred_output_reload_class): Likewise.
14543         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14544         into a form appropriate for ...
14545         (TARGET_SECONDARY_RELOAD): New.
14546         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14547         * config/mn10300/mn10300-protos.h: Update.
14548         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14549         reload_insi; use the "A" constraint for the scratch; handle AM33
14550         moves of sp to non-address registers.
14551
14552         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14553         (*movqi_internal): ... here.
14554         (*am33_movhi, *mn10300_movhi): Merge into...
14555         (*movhi_internal): ... here.
14556         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
14557         as the source/destination of moves from/to SP.
14558         (movsf): Only allow for AM33-2.
14559         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14560         any integer constant constraint.  Only allow for AM33-2.  Tidy
14561         all of the alternative outputs.
14562         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14563         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
14564         for MN103.
14565         (udivsi3, umodsi3): New patterns for MN103 only.
14566
14567 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
14568
14569         * doc/tm.texi.in: Spell out that a lack of register class unions
14570         can lead to ICEs.
14571         * doc/tm.texi: Regenerate.
14572
14573 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14574
14575         PR rtl-optimization/47337
14576         * dce.c (check_argument_store): New function.
14577         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
14578
14579         PR tree-optimization/47290
14580         * tree-eh.c (infinite_empty_loop_p): New function.
14581         (cleanup_empty_eh): Use it.
14582
14583 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
14584
14585         PR target/46997
14586         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14587         (a64_expand_widen_sum): Ditto.
14588         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14589         (vec_extract_evenodd_help): Ditto.
14590         (vec_extract_evenv4hi): Ditto.
14591         (vec_extract_oddv4hi): Ditto.
14592         (vec_extract_evenv2si): Ditto.
14593         (vec_extract_oddv2si): Ditto.
14594         (vec_extract_evenv2sf): Ditto.
14595         (vec_extract_oddv2sf): Ditto.
14596         (vec_pack_trunc_v4hi: Ditto.
14597         (vec_pack_trunc_v2si): Ditto.
14598         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14599         (vec_interleave_highv8qi): Ditto.
14600         (mix1_r): Ditto.
14601         (vec_extract_oddv8qi): Ditto.
14602         (vec_interleave_lowv4hi): Ditto.
14603         (vec_interleave_highv4hi): Ditto.
14604         (vec_interleave_lowv2si): Ditto.
14605         (vec_interleave_highv2si): Ditto.
14606
14607 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14608
14609         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14610         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14611         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
14612         (pa_c_mode_for_suffix): New.
14613         (TARGET_EXPAND_BUILTIN): Define.
14614         (TARGET_C_MODE_FOR_SUFFIX): Define.
14615         (pa_builtins): Define.
14616         (pa_init_builtins): Register __float128 type and init new support
14617         builtins.
14618         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14619         * config/pa/quadlib.c (_U_Qfcopysign): New.
14620
14621 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
14622
14623         PR middle-end/46894
14624         * explow.c (allocate_dynamic_stack_space): Do not assume more than
14625         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14626         are defined.
14627
14628 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14629
14630         PR tree-optimization/47179
14631         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14632         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14633
14634 2011-01-18  Richard Guenther  <rguenther@suse.de>
14635
14636         PR rtl-optimization/47216
14637         * emit-rtl.c: Include tree-flow.h.
14638         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14639         of replicating it with different semantics.
14640         * Makefile.in (emit-rtl.o): Adjust.
14641
14642 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14643
14644         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14645         (cortex_a9_dp): Handle neon types correctly.
14646
14647 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
14648
14649         PR rtl-optimization/47299
14650         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14651         subtarget.  Use normal multiplication if both operands are constants.
14652         * expmed.c (expand_widening_mult): Don't try to optimize constant
14653         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
14654         before using it.
14655
14656 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14657
14658         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
14659         spacing after 'e.g.', typos, comma, hyphenation.
14660
14661 2011-01-17  Richard Henderson  <rth@redhat.com>
14662
14663         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14664         (rx_restricted_mem_operand): New.
14665         (rx_shift_operand): Use register_operand.
14666         (rx_source_operand, rx_compare_operand): Likewise.
14667         * config/rx/rx.md (addsi3_flags): New expander.
14668         (adddi3): Rewrite as expander.
14669         (adc_internal, *adc_flags, adddi3_internal): New patterns.
14670         (subsi3_flags): New expander.
14671         (subdi3): Rewrite as expander.
14672         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14673
14674         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14675         (rx_init_builtins): Remove sat builtin.
14676         (rx_expand_builtin): Likewise.
14677         * config/rx/rx.md (ssaddsi3): New.
14678         (*sat): Rename from sat.  Represent the CC_REG input.
14679
14680         * config/rx/predicates.md (rshift_operator): New.
14681         * config/rx/rx.c (rx_expand_insv): Remove.
14682         * config/rx/rx-protos.h: Update.
14683         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
14684         operand to the canonical position.
14685         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14686         (*bitclr, *bitclr_in_memory): Similarly.
14687         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14688         (insv): Retain the zero_extract in the expansion.
14689
14690         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14691         (bswaphi2, bitinvert, revw): Likewise.
14692
14693         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14694         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14695         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14696         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14697         (bitset, bitset_in_memory): Likewise.
14698         (bitinvert, bitinvert_in_memory): Likewise.
14699         (bitclr, bitclr_in_memory): Likewise.
14700         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14701         (rx_strend, rx_cmpstrn): Likewise.
14702         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
14703         (bitop peep2 patterns): Remove.
14704
14705         * config/rx/rx.c (rx_match_ccmode): New.
14706         * config/rx/rx-protos.h: Update.
14707         * config/rx/rx.md (abssi2): Clobber, don't set flags.
14708         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14709         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14710         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14711         (fix_truncsfsi2, floatsisf2): Likewise.
14712         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14713         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14714         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14715         (*subsi3_flags, *xorsi3_flags): New.
14716
14717         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14718
14719         * config/rx/rx.c (rx_print_operand): Remove workaround for
14720         unsplit comparison operations.
14721
14722         * config/rx/rx.md (movsicc): Split after reload.
14723         (*movsicc): Merge *movsieq and *movsine via match_operator.
14724         (*stcc): New pattern.
14725
14726         * config/rx/rx.c (rx_float_compare_mode): Remove.
14727         * config/rx/rx.h (rx_float_compare_mode): Remove.
14728         * config/rx/rx.md (cstoresi4): Split after reload.
14729         (*sccc): New pattern.
14730
14731         * config/rx/predicates.md (label_ref_operand): New.
14732         (rx_z_comparison_operator): New.
14733         (rx_zs_comparison_operator): New.
14734         (rx_fp_comparison_operator): New.
14735         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14736         Validate that the flags are set properly for the comparison.
14737         (rx_gen_cond_branch_template): Remove.
14738         (rx_cc_modes_compatible): Remove.
14739         (mode_from_flags): New.
14740         (flags_from_code): Rename from flags_needed_for_conditional.
14741         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14742         (rx_select_cc_mode): Likewise.
14743         (rx_split_fp_compare): New.
14744         (rx_split_cbranch): New.
14745         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14746         (*cbranchsi4): Use match_operator and rx_split_cbranch.
14747         (*cbranchsf4): Similarly.
14748         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
14749         match_operator and rx_split_cbranch.
14750         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14751         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
14752         (*cmpsi): Rename from cmpsi.
14753         (*tstsi): Rename from tstsi.
14754         (*cmpsf): Rename from cmpsf; use CC_Fmode.
14755         (*conditional_branch): Rename from conditional_branch.
14756         (*reveresed_conditional_branch): Remove.
14757         (b<code>): Remove expander.
14758         * config/rx/rx-protos.h: Update.
14759
14760         * config/rx/rx.c (rx_compare_redundant): Remove.
14761         * config/rx/rx.md (cmpsi): Don't use it.
14762         * config/rx/rx-protos.h: Update.
14763
14764         * config/rx/rx-modes.def (CC_F): New mode.
14765         * config/rx/rx.c (rx_select_cc_mode): New.
14766         * config/rx/rx.h (SELECT_CC_MODE): Use it.
14767         * config/rx/rx-protos.h: Update.
14768
14769 2011-01-17  Richard Henderson  <rth@redhat.com>
14770
14771         * except.c (dump_eh_tree): Fix stray ; after for statement.
14772
14773 2011-01-17  Richard Guenther  <rguenther@suse.de>
14774
14775         PR tree-optimization/47313
14776         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14777         handling before copying the body.  Properly deal with
14778         by-reference result in SSA form.
14779
14780 2011-01-17  Ian Lance Taylor  <iant@google.com>
14781
14782         PR target/47219
14783         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14784         (struct_value_alias_set): Don't define.
14785         (sparc_option_override): Don't set sparc_sr_alias_set and
14786         struct_value_alias_set.
14787         (save_or_restore_regs): Use gen_frame_mem rather than calling
14788         set_mem_alias_set.
14789         (sparc_struct_value_rtx): Likewise.
14790
14791 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14792
14793         PR target/47318
14794         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14795         (_mm_maskstore_pd): Likewise.
14796         (_mm_maskload_ps): Likewise.
14797         (_mm_maskstore_ps): Likewise.
14798         (_mm256_maskload_pd): Change mask to __m256i.
14799         (_mm256_maskstore_pd): Likewise.
14800         (_mm256_maskload_ps): Likewise.
14801         (_mm256_maskstore_ps): Likewise.
14802
14803         * config/i386/i386-builtin-types.def: Updated.
14804         (ix86_expand_special_args_builtin): Likewise.
14805
14806         * config/i386/i386.c (bdesc_special_args): Update
14807         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14808         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14809         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14810         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14811
14812         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14813         Use <avxpermvecmode> on mask register.
14814         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14815
14816 2011-01-17  Olivier Hainque  <hainque@adacore.com>
14817             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14818             Eric Botcazou  <ebotcazou@adacore.com>
14819
14820         PR target/46655
14821         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14822         if <= USHRT_MAX in 32-bit mode.
14823
14824 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14825
14826         * doc/install.texi (Configuration, Specific): Wrap long
14827         lines in examples.  Allow line wrapping in long options
14828         and URLs where beneficial for PDF output.
14829
14830 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
14831
14832         * config/mips/mips.c (mips_classify_symbol): Don't return
14833         SYMBOL_PC_RELATIVE for nonlocal labels.
14834
14835 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14836
14837         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14838
14839 2011-01-15  Jan Hubicka  <jh@suse.cz>
14840
14841         PR tree-optimization/47276
14842         * ipa.c (function_and_variable_visibility): Do not try to mark alias
14843         declarations as needed.
14844
14845 2011-01-15  Martin Jambor  <mjambor@suse.cz>
14846
14847         * common.opt (fdevirtualize): New flag.
14848         * doc/invoke.texi (Option Summary): Document it.
14849         * opts.c (default_options_table): Add devirtualize flag.
14850         * ipa-prop.c (detect_type_change): Return immediately if
14851         devirtualize flag is not set.
14852         (detect_type_change_ssa): Likewise.
14853         (compute_known_type_jump_func): Likewise.
14854         (ipa_analyze_virtual_call_uses): Likewise.
14855
14856 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14857
14858         PR tree-optimization/45934
14859         PR tree-optimization/46302
14860         * ipa-prop.c (type_change_info): New type.
14861         (stmt_may_be_vtbl_ptr_store): New function.
14862         (check_stmt_for_type_change): Likewise.
14863         (detect_type_change): Likewise.
14864         (detect_type_change_ssa): Likewise.
14865         (compute_complex_assign_jump_func): Check for dynamic type change.
14866         (compute_complex_ancestor_jump_func): Likewise.
14867         (compute_known_type_jump_func): Likewise.
14868         (compute_scalar_jump_functions): Likewise.
14869         (ipa_analyze_virtual_call_uses): Likewise.
14870         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14871
14872 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14873
14874         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14875         * config/i386/i386.opt (msse5): New Alias.
14876
14877 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14878
14879         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14880         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14881         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14882         * config/sparc/sparc.h (CC1_SPEC): Likewise.
14883
14884 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14885
14886         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14887         -mcpu options.
14888         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14889         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14890         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14891         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14892         Likewise.
14893         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14894
14895 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14896
14897         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14898
14899 2011-01-14  Mike Stump  <mikestump@comcast.net>
14900
14901         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14902         * config/fr30/fr30.md: Likweise
14903         (movsi_push): Likewise.
14904         (movsi_pop): Likewise.
14905         (enter_func): Likewise.
14906         * config/moxie/moxie.md (movsi_push): Likewise.
14907         (movsi_pop): Likewise.
14908
14909 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14910
14911         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14912         %{no_archive} %{exact_version}.
14913         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14914         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14915         %{no_archive} %{exact_version}.
14916         * config/mips/openbsd.h (LINK_SPEC): Likewise.
14917         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14918         * config/mips/vxworks.h: Likewise.
14919
14920 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14921
14922         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14923
14924 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14925
14926         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14927         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14928
14929 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14930
14931         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14932         -nodefaultlib.
14933
14934 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14935
14936         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14937         for mcpu not cpu.
14938         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14939         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14940         not cpu.
14941         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14942         Don't handle -shlib.
14943
14944 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14945
14946         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14947         (CC1_SPEC): Don't handle -profile.
14948
14949 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14950
14951         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14952         * config/mips/mips.h (CC1_SPEC): Likewise.
14953
14954 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14955
14956         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14957         * config/mips/mips.h (CC1_SPEC): Likewise.
14958
14959 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14960
14961         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14962         * config/m32r/linux.h (LINK_SPEC): Likewise.
14963         * config/mips/linux.h (LINK_SPEC): Likewise.
14964         * config/mips/linux64.h (LINK_SPEC): Likewise.
14965         * config/sparc/linux.h (LINK_SPEC): Likewise.
14966         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14967         LINK_SPEC): Likewise.
14968         * config/xtensa/linux.h (LINK_SPEC): Likewise.
14969
14970 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14971
14972         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14973         %{version:-v}.
14974         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14975
14976 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14977
14978         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14979         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14980
14981 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14982
14983         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14984
14985 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14986
14987         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14988         supports -Bstatic/-Bdynamic.
14989         * configure: Regenerate.
14990
14991 2011-01-14  Jan Hubicka  <jh@suse.cz>
14992             Jack Howarth  <howarth@bromo.med.uc.edu>
14993
14994         PR target/46037
14995         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14996         when checking debug_info_level. Test write_symbols instead of
14997         debug_hooks->var_location when setting flag_var_tracking_uninit.
14998
14999 2011-01-14  Richard Guenther  <rguenther@suse.de>
15000
15001         PR tree-optimization/47179
15002         * target.def (ref_may_alias_errno): New target hook.
15003         * targhooks.h (default_ref_may_alias_errno): Declare.
15004         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15005         (default_ref_may_alias_errno): New function.
15006         * target.h (struct ao_ref_s): Declare.
15007         * tree-ssa-alias.c: Include target.h.
15008         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15009         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15010         (targhooks.o): Likewise.
15011         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15012         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15013
15014 2011-01-14  Richard Guenther  <rguenther@suse.de>
15015
15016         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
15017
15018 2011-01-14  Richard Guenther  <rguenther@suse.de>
15019
15020         PR tree-optimization/47280
15021         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15022         return CFG changes.
15023         (tree_ssa_forward_propagate_single_use_vars): Deal with
15024         CFG changes from associate_plusminus.
15025
15026 2011-01-14  Richard Guenther  <rguenther@suse.de>
15027
15028         PR middle-end/47281
15029         Revert
15030         2011-01-11  Richard Guenther  <rguenther@suse.de>
15031
15032         PR tree-optimization/46076
15033         * tree-ssa.c (useless_type_conversion_p): Conversions from
15034         unprototyped to empty argument list function types are useless.
15035
15036 2011-01-14  Richard Guenther  <rguenther@suse.de>
15037
15038         PR tree-optimization/47286
15039         * tree-ssa-structalias.c (new_var_info): Register variables are global.
15040
15041 2011-01-14  Martin Jambor  <mjambor@suse.cz>
15042
15043         PR middle-end/46823
15044         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15045
15046 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
15047
15048         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15049         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15050         * config/xtensa/xtensa.c (xtensa_libcall_value,
15051         xtensa_function_value_regno_p): New functions.
15052         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15053
15054 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
15055
15056         PR c++/47213
15057         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15058         PE specific hook.
15059         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15060         New function prototype.
15061         * config/i386/winnt.c (i386_pe_assemble_visibility):
15062         Warn only if attribute was specified by user.
15063
15064 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15065
15066         PR target/47251
15067         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15068         floating point.
15069         (floatunsdidf2_fcfidu): Ditto.
15070
15071 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15072
15073         * config/s390/s390.c (print_operand_address): Replace 'error' with
15074         'output_operand_lossage'.
15075         (print_operand): Likewise.
15076
15077 2011-01-13  Jeff Law  <law@redhat.com>
15078
15079         PR rtl-optimization/39077
15080         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15081         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15082         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15083         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15084         * gcse.c (prune_insertions_deletions): New function.
15085         (compute_pre_data): Use it.
15086
15087 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
15088
15089         PR debug/PR46973
15090         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15091         static function.
15092         (prune_unused_types_mark): Use it.
15093
15094 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
15095
15096         PR rtl-optimization/45352
15097         * sel-sched.c: Update copyright years.
15098         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15099         in the advancing loop when we have issued issue_rate insns.
15100
15101 2011-01-12  Richard Henderson  <rth@redhat.com>
15102
15103         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15104         (TARGET_MD_ASM_CLOBBERS): New.
15105
15106         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15107         (TARGET_DELEGITIMIZE_ADDRESS): New.
15108
15109         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15110         (clzsi2, *bsch): New patterns.
15111
15112         * config/mn10300/mn10300.md (INT): New mode iterator.
15113         (*mov<INT>_clr): New pattern, and peep2 to generate it.
15114
15115         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15116         flag_split_wide_types.
15117
15118         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15119         (mn10300_trampoline_init): Rewrite without a template, an immediate
15120         load and a direct branch.
15121         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15122
15123 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
15124
15125         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15126         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15127         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15128         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15129
15130 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
15131
15132         PR debug/47209
15133         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15134         of type.
15135
15136 2011-01-12  Jan Hubicka  <jh@suse.cz>
15137
15138         PR driver/47244
15139         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15140         (PLUGIN_COND_CLOSE): New macro.
15141         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15142
15143 2011-01-12  Richard Guenther  <rguenther@suse.de>
15144
15145         PR lto/47259
15146         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15147         register variables in a MEM_REF.
15148
15149 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
15150
15151         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15152         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15153         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15154         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15155         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15156         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15157         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15158         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15159         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15160         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15161         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15162         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15163         * config/gnu-user.h: New.  Copied from linux.h.
15164         (LINUX_TARGET_STARTFILE_SPEC): Rename to
15165         GNU_USER_TARGET_STARTFILE_SPEC.
15166         (LINUX_TARGET_ENDFILE_SPEC): Rename to
15167         GNU_USER_TARGET_ENDFILE_SPEC.
15168         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15169         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15170         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15171         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15172         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15173         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15174         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15175         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15176         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15177         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15178         * config/arm/linux-eabi.h (CC1_SPEC): Use
15179         GNU_USER_TARGET_CC1_SPEC.
15180         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15181         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15182         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15183         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15184         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15185         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15186         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15187         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15188
15189 2011-01-12  Richard Guenther  <rguenther@suse.de>
15190
15191         PR other/46946
15192         * doc/invoke.texi (ffast-math): Document it is turned on
15193         with -Ofast.
15194
15195 2011-01-12  Jan Hubicka  <jh@suse.cz>
15196
15197         PR tree-optimization/47233
15198         * opts.c (common_handle_option): Disable ipa-reference with profile
15199         feedback.
15200
15201 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15202
15203         * c-parser.c (c_parser_objc_at_property_declaration): Improved
15204         error message.
15205
15206 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15207
15208         * c-parser.c (c_lex_one_token): Updated and reindented some
15209         comments.  No changes in code.
15210
15211 2011-01-11  Ian Lance Taylor  <iant@google.com>
15212
15213         * godump.c (go_output_var): Don't output the variable if there is
15214         already a type with the same name.
15215
15216 2011-01-11  Ian Lance Taylor  <iant@google.com>
15217
15218         * godump.c (go_format_type): Don't generate float80.
15219
15220 2011-01-11  Richard Henderson  <rth@redhat.com>
15221
15222         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15223         declaration.  Rewrite for both speed and size.
15224         (mn10300_address_cost_1): Remove.
15225         (mn10300_register_move_cost): New.
15226         (mn10300_memory_move_cost): New.
15227         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
15228         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
15229         extensions, shifts, BSWAP, CLZ.
15230         (mn10300_wide_const_load_uses_clr): Remove.
15231         (TARGET_REGISTER_MOVE_COST): New.
15232         (TARGET_MEMORY_MOVE_COST): New.
15233         * config/mn10300/mn10300-protos.h: Update.
15234         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15235
15236         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15237         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15238         * config/mn10300/mn10300-protos.h: Update.
15239         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15240         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15241         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15242         (*test_int_bitfield, *test_byte_bitfield): Remove.
15243         (*bit_test, *subreg_bit_test): Remove.
15244         * config/mn10300/predicates.md (const_8bit_operand): Remove.
15245
15246         * config/mn10300/constraints.md ("c"): Rename from "A".
15247         ("A", "D"): New constraint letters.
15248         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15249         (fmssf4, fnmasf4, fnmssf4): Likewise.
15250
15251         * config/mn10300/mn10300.md (isa): New attribute.
15252         (enabled): New attribute.
15253
15254         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15255         (abssf2, negsf2): Define only for hardware fp.
15256         (sqrtsf2): Reformat.
15257         (addsf3, subsf3, mulsf3): Merge expander and insn.
15258
15259         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15260         (DEBUGGER_AUTO_OFFSET): Remove.
15261         (DEBUGGER_ARG_OFFSET): Remove.
15262
15263         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15264         Emit register stores with the same offsets as the hardware.
15265         (mn10300_store_multiple_operation): Don't check that the register
15266         save offsets are monotonic.
15267         * config/mn10300/mn10300-protos.h: Update.
15268
15269         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15270
15271         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15272         in terms of the value on the stack, not the MDR register.
15273
15274 2011-01-11  Jan Hubicka  <jh@suse.cz>
15275
15276         PR lto/45721
15277         PR lto/45375
15278         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15279         (symbol_alias_set_destroy, symbol_alias_set_contains,
15280         propagate_aliases_backward): Declare.
15281         * lto-streamer-out.c (struct sets): New sturcture.
15282         (trivally_defined_alias): New function.
15283         (output_alias_pair_p): Rewrite.
15284         (output_unreferenced_globals): Fix output of alias pairs.
15285         (produce_symtab): Likewise.
15286         * ipa.c (function_and_variable_visibility): Set weak alias destination
15287         as needed in lto.
15288         * varasm.c (symbol_alias_set_t): Remove.
15289         (symbol_alias_set_destroy): Export.
15290         (propagate_aliases_forward, propagate_aliases_backward): New functions
15291         based on ...
15292         (compute_visible_aliases): ... this one; remove.
15293         (trivially_visible_alias): New
15294         (trivially_defined_alias): New.
15295         (remove_unreachable_alias_pairs): Rewrite.
15296         (finish_aliases_1): Reorganize code checking if alias is defined.
15297         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15298         in LTO mode.
15299
15300 2011-01-11  Richard Guenther  <rguenther@suse.de>
15301
15302         PR tree-optimization/46076
15303         * tree-ssa.c (useless_type_conversion_p): Conversions from
15304         unprototyped to empty argument list function types are useless.
15305
15306 2011-01-11  Richard Guenther  <rguenther@suse.de>
15307
15308         PR middle-end/45235
15309         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15310         volatile MEMs as MEM_READONLY_P.
15311
15312 2011-01-11  Richard Guenther  <rguenther@suse.de>
15313
15314         PR tree-optimization/47239
15315         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15316
15317 2011-01-11  Jeff Law  <law@redhat.com>
15318
15319         PR tree-optimization/47086
15320         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15321         IVs from statements that might throw.
15322
15323 2011-01-10  Jan Hubicka  <jh@suse.cz>
15324
15325         PR lto/45375
15326         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15327
15328 2011-01-10  Jan Hubicka  <jh@suse.cz>
15329
15330         PR lto/45375
15331         * profile.c (read_profile_edge_counts): Ignore profile inconistency
15332         when correcting profile.
15333
15334 2011-01-10  Jan Hubicka  <jh@suse.cz>
15335
15336         PR lto/46083
15337         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15338         DECL_FINI_PRIORITY.
15339         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15340         Restore DECL_FINI_PRIORITY.
15341
15342 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15343
15344         * doc/gimple.texi: Fix quoting of multi-word return values in
15345         @deftypefn statements.  Ensure presence of return value.  Wrap
15346         overlong @deftypefn lines.
15347         (is_gimple_operand, is_gimple_min_invariant_address): Remove
15348         descriptions of removed functions.
15349         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15350         of multi-word return value in @deftypefn statement.
15351
15352 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15353
15354         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15355         (Conditional Expressions, Logical Operators)
15356         (Statement and operand traversals): Do not indent smallexample
15357         code.  Fix duplicate function argument in example.
15358
15359 2011-01-10  Jeff Law  <law@redhat.com>
15360
15361         PR tree-optimization/47141
15362         * ipa-split.c (split_function): Handle case where we are
15363         returning a value and the return block has a virtual operand phi.
15364
15365 2011-01-10  Jan Hubicka  <jh@suse.cz>
15366
15367         PR tree-optimization/47234
15368         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15369         (pass_feedback_split_functions): Declare.
15370         * passes.c (init_optimization_passes): Add ipa-split as subpass of
15371         tree-profile.
15372         * ipa-split.c (gate_split_functions): Update comments; disable
15373         split-functions for profile_arc_flag and branch_probabilities.
15374         (gate_feedback_split_functions): New function.
15375         (execute_feedback_split_functions): New function.
15376         (pass_feedback_split_functions): New global var.
15377
15378 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
15379
15380         PR lto/46760
15381         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15382         calling gimple_call_set_cannot_inline.
15383
15384 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
15385
15386         * config/darwin-sections.def: Remove unused section.
15387
15388 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
15389
15390         PR c++/47218
15391         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15392
15393 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
15394
15395         PR objc/47232
15396         * c-parser.c (c_parser_declaration_or_fndef): Improved
15397         error message.
15398
15399 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
15400
15401         * config/i386/winnt.c (i386_pe_start_function): Make sure
15402         to switch back to function's section.
15403
15404 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
15405
15406         PR gcc/46902
15407         PR testsuite/46912
15408         * plugin.c: Move include of dlfcn.h from here...
15409         * system.h: ... to here.
15410
15411 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15412
15413         * doc/cpp.texi (C++ Named Operators): Fix markup for header
15414         file name.
15415         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15416         two extra empty pages in PDF output.
15417
15418 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
15419
15420         PR objc/47078
15421         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15422         for error recovery purposes behave as if it was not specified so
15423         that the default type is usd.
15424
15425 2011-01-07  Jan Hubicka  <jh@suse.cz>
15426
15427         PR tree-optmization/46469
15428         * ipa.c (function_and_variable_visibility): Clear needed flags on
15429         nodes with external decls; handle weakrefs merging correctly.
15430
15431 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
15432
15433         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15434         not false.
15435
15436 2011-01-07  Jan Hubicka  <jh@suse.cz>
15437
15438         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15439         and no longer claim that gold is required for linker plugin.
15440         * configure: Regenerate.
15441         * gcc.c (PLUGIN_COND): New macro.
15442         (LINK_COMMAND_SPEC): Use it.
15443         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15444         * config.in (HAVE_LTO_PLUGIN): New.
15445         * configure.ac (--with-lto-plugin): New parameter; autodetect
15446         HAVE_LTO_PLUGIN.
15447
15448 2011-01-07  Jan Hubicka  <jh@suse.cz>
15449
15450         PR tree-optimization/46367
15451         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15452         when we can update original.
15453         (cgraph_mark_inline_edge): Sanity check.
15454         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15455
15456 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15457
15458         * config/spu/spu.h (ASM_COMMENT_START): Define.
15459
15460 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15461
15462         PR driver/42445
15463         * gcc.c (%>S): New.
15464         (SWITCH_KEEP_FOR_GCC): Likewise.
15465         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15466         (do_spec_1): Handle "%>".
15467
15468         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15469
15470 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
15471
15472         PR target/47201
15473         * config/i386/i386.c (ix86_delegitimize_address): If
15474         simplify_gen_subreg fails, return orig_x.
15475
15476         PR bootstrap/47187
15477         * value-prof.c (gimple_stringop_fixed_value): Handle
15478         lhs of the call properly.
15479
15480 2011-01-07  Jan Hubicka  <jh@suse.cz>
15481
15482         PR lto/45375
15483         * lto-opt.c (lto_reissue_options): Set flag_shlib.
15484
15485 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15486
15487         * target.def (function_switched_text_sections): New hook.
15488         * doc/tm.texi: Regenerated.
15489         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15490         * final.c (default_function_switched_text_sections): New.
15491         (final_scan_insn): Call function_switched_text_sections when a
15492         mid-function section change occurs.
15493         * output.h (default_function_switched_text_sections): Declare.
15494         * config/darwin-protos.h (darwin_function_switched_text_sections):
15495         Likewise.
15496         * config/darwin.c (darwin_function_switched_text_sections): New.
15497         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15498
15499 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15500
15501         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
15502         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
15503         the secondary code fragment when outputting for DWARF == 2.
15504
15505 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
15506
15507         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15508         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15509         Remove.
15510         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15511         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15512
15513 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
15514
15515         PR debug/46704
15516         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15517         when it is not empty.
15518
15519 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
15520
15521         Bobcat Enablement
15522         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15523         (case ${target}): Add btver1.
15524         * config/i386/driver-i386.c (host_detect_local_cpu): Let
15525         -march=native recognize btver1 processors.
15526         * config/i386/i386-c.c (ix86_target_macros_internal): Add
15527         btver1 def_and_undef
15528         * config/i386/i386.c (struct processor_costs btver1_cost): New
15529         btver1 cost table.
15530         (m_BTVER1): New definition.
15531         (m_AMD_MULTIPLE): Includes m_BTVER1.
15532         (initial_ix86_tune_features): Add btver1 tune.
15533         (processor_target_table): Add btver1 entry.
15534         (static const char *const cpu_names): Add btver1 entry.
15535         (software_prefetching_beneficial_p): Add btver1.
15536         (ix86_option_override_internal): Add btver1 instruction sets.
15537         (ix86_issue_rate): Add btver1.
15538         (ix86_adjust_cost): Add btver1.
15539         * config/i386/i386.h (TARGET_BTVER1): New definition.
15540         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15541         (enum processor_type): Add PROCESSOR_BTVER1.
15542         * config/i386/i386.md (define_attr "cpu"): Add btver1.
15543
15544 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15545
15546         PR target/43309
15547         * config/i386/i386.c (legitimize_tls_address)
15548         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15549         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15550         (tls_initial_exec_64_sun): New pattern.
15551
15552 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
15553
15554         * doc/invoke.texi (Overall Options): Improve wording and markup
15555         of the description of -wrapper.
15556
15557 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15558
15559         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15560         rdynamic, threads): New Driver options.
15561
15562 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15563
15564         PR target/38118
15565         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15566         if coming from .tdata.
15567         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15568
15569 2011-01-06  Jan Hubicka  <jh@suse.cz>
15570
15571         PR lto/47188
15572         * collect2.c (main): Do not enable LTOmode when plugin is active.
15573
15574 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15575
15576         PR other/45915
15577         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15578         --version output if supported.
15579         * configure: Regenerate.
15580
15581 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15582
15583         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15584         Driver options.
15585
15586 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
15587
15588         PR c/47150
15589         * c-convert.c (convert): When converting a complex expression
15590         other than COMPLEX_EXPR to a different complex type, ensure
15591         c_save_expr is called instead of save_expr, unless in_late_binary_op.
15592         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15593         when converting COMPLEX_TYPE.
15594
15595 2011-01-06  Ira Rosen  <irar@il.ibm.com>
15596
15597         PR tree-optimization/47139
15598         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15599         only the last reduction value is used outside the loop.  Update
15600         documentation.
15601
15602 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
15603
15604         * config/rtems.opt: New.
15605         * config.gcc (*-*-rtems*): Use rtems.opt.
15606
15607 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
15608
15609         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15610         processors do not support 3DNow instructions.
15611
15612 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15613
15614         * config/spu/spu.c (spu_option_override): Set parameter
15615         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15616
15617 2011-01-05  Jan Hubicka  <jh@suse.cz>
15618
15619         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15620         at the command line.
15621
15622 2011-01-05  Martin Jambor  <mjambor@suse.cz>
15623
15624         PR lto/47162
15625         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15626         deltas on streamed outgoing edges.
15627         (output_node_opt_summary): Output info for outgoing edges only when
15628         the node is in new parameter set.
15629         (output_cgraph_opt_summary): New parameter set, passed to the two
15630         aforementioned functions.  Update its forward declaration and its
15631         callee too.
15632
15633 2011-01-05  Tom Tromey  <tromey@redhat.com>
15634
15635         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15636         operator to c_finish_omp_atomic.
15637         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15638         (build_unary_op): Update.
15639         (build_modify_expr): Update.
15640         (build_asm_expr): Update.
15641
15642 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15643
15644         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15645         newly inserted insns.
15646         (pad_bb): Likewise.
15647         (spu_emit_branch_hint): Likewise.
15648         (insert_hbrp_for_ilb_runout): Likewise.
15649         (spu_machine_dependent_reorg): Call df_finish_pass after
15650         schedule_insns returns.
15651
15652 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15653
15654         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15655
15656 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
15657
15658         PR tree-optimization/47005
15659         * tree-sra.c (struct access): Add 'non_addressable' bit.
15660         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15661         (decide_one_param_reduction): Return 0 if the parameter is passed by
15662         reference and one of the accesses in the group is non_addressable.
15663
15664 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15665
15666         PR tree-optimization/47056
15667         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15668         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
15669         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
15670
15671 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15672
15673         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15674         initializer.  Skip view conversions from aggregate types.
15675
15676 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
15677
15678         PR bootstrap/47055
15679         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15680
15681 2011-01-04  Philipp Thomas  <pth@suse.de>
15682
15683         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15684         obvious typo.
15685
15686 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15687
15688         * function.c (thread_prologue_and_epilogue_insns): Do not crash
15689         on empty epilogue sequences.
15690
15691 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
15692
15693         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15694         non-static): New Driver options.
15695
15696 2011-01-04  Jie Zhang  <jie@codesourcery.com>
15697
15698         PR driver/47137
15699         * gcc.c (default_compilers[]): Set combinable field to 0
15700         for all assembly languages.
15701
15702 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
15703
15704         * config/mips/loongson3a.md: New file.
15705         * config/mips/mips.md: Include loongson3a.md.
15706         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15707         TUNE_LOONGSON_3A.
15708
15709 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15710
15711         PR middle-end/47017
15712         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15713         instead of convert_memory_address_addr_space on the base expression.
15714
15715 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15716
15717         * config/spu/spu.c (spu_option_override): Update error text
15718         for bad -march= / -mtune= values.
15719
15720 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15721
15722         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15723         if branch-hint optimization will be performed.
15724
15725 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15726
15727         PR tree-optimization/47148
15728         * ipa-split.c (split_function): Convert arguments to
15729         DECL_ARG_TYPE if possible.
15730
15731         PR tree-optimization/47155
15732         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15733         when computing uns.
15734
15735         PR rtl-optimization/47157
15736         * combine.c (try_combine): If undobuf.other_insn becomes
15737         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15738         and set *new_direct_jump_p too.
15739
15740 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15741
15742         PR tree-optimization/47021
15743         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15744
15745 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15746
15747         * gcc.c (process_command): Update copyright notice dates.
15748         * gcov.c (print_version): Likewise.
15749         * gcov-dump.c (print_version): Likewise.
15750         * mips-tfile.c (main): Likewise.
15751         * mips-tdump.c (main): Likewise.
15752
15753 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15754
15755         PR tree-optimization/46801
15756         * tree-sra.c (type_internals_preclude_sra_p): Check whether
15757         aggregate fields start at byte boundary instead of the bit-field flag.
15758
15759 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15760
15761         PR driver/47137
15762         * gcc.c (main): Revert revision 168407.
15763
15764 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15765
15766         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15767
15768 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15769
15770         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15771         vector optab to expand vector/scalar shift, update gimple to vector.
15772
15773 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15774
15775         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15776         a thunk.
15777
15778 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15779
15780         PR tree-optimization/46984
15781         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15782         HOST_WIDE_INT.
15783         (cgraph_create_indirect_edge): Fixed line length.
15784         (cgraph_indirect_call_info): Declare.
15785         (cgraph_make_edge_direct) Update declaration.
15786         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15787         (cgraph_create_indirect_edge): Use it.
15788         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
15789         callees.
15790         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15791         the new thunk_delta representation.
15792         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15793         HOST_WIDE_INT.
15794         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15795         (ipa_read_indirect_edge_info): Likewise.
15796         * lto-cgraph.c (output_edge_opt_summary): New function.
15797         (output_node_opt_summary): Call it on all outgoing edges.
15798         (input_edge_opt_summary): New function.
15799         (input_node_opt_summary): Call it on all outgoing edges.
15800
15801 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
15802
15803         PR driver/47137
15804         * gcc.c (main): Don't check have_o when settting combine_inputs.
15805
15806 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15807
15808         * regrename.c: Add general comment describing the pass.
15809         (struct du_head): Remove 'length' field.
15810         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15811         (regrename_optimize): Do not sort chains.  Rework comments, add others.
15812         Force renaming to the preferred class (if any) in the first pass and do
15813         not consider registers that belong to it in the second pass.
15814         (create_new_chain): Do not set 'length' field.
15815         (scan_rtx_reg): Likewise.
15816
15817 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
15818
15819         PR tree-optimization/47140
15820         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15821         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15822         to bit_value_binop.
15823
15824         PR rtl-optimization/47028
15825         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15826         parm_birth_insn instead of at the beginning of first bb.
15827
15828 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
15829
15830         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15831         Remove the word "see" before "@pxref".
15832         * doc/rtl.texi: Remove the word "see" before "@pxref".
15833
15834 2011-01-01  Jan Hubicka  <jh@suse.cz>
15835
15836         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15837         memory.
15838
15839 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
15840
15841         PR target/38662
15842         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15843
15844 \f
15845 Copyright (C) 2011 Free Software Foundation, Inc.
15846
15847 Copying and distribution of this file, with or without modification,
15848 are permitted in any medium without royalty provided the copyright
15849 notice and this notice are preserved.