OSDN Git Service

d0ef664983b736d4abeafe06658296cfeec13355
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2011-05-27  Nathan Froyd  <froydnj@codesourcery.com>
2
3         * c-decl.c (c_push_function_context): Copy the current statement
4         list stack.
5         (add_stmt): Check building_stmt_list_p and push_stmt if necessary.
6         (finish_struct): Call building_stmt_list_p instead of checking
7         cur_stmt_list.
8         * c-parser.c (c_parser_postfix_expression): Likewise.
9         * c-typeck.c (c_end_compound_stmt): Likewise.
10         * print-tree.c (print_node) [STATEMENT_LIST]: Don't print TREE_CHAIN.
11         * tree-iterator.c (stmt_list_cache): Change to a VEC.
12         (alloc_stmt_list): Adjust for stmt_list_cache's new type.
13         (free_stmt_list): Likewise.
14         * tree.h (struct tree_statement_list): Include typed_tree instead
15         of tree_common.
16         * tree.c (initialize_tree_contains_struct): Mark TS_STATEMENT_LIST
17         as TS_TYPED instead of TS_COMMON.
18
19 2011-05-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20             Uros Bizjak <ubizjak@gmail.com>
21
22         * configure.ac (gcc_cv_as_ix86_tlsgdplt): Check for @tlsgdplt
23         (HAVE_AS_IX86_TLSGDPTL): Define.
24         (gcc_cv_as_ix86_tlsldmplt): Check for @tlsldmplt.
25         (HAVE_AS_IX86_TLSLDMPLT): Define.
26         * configure: Regenerate.
27         * config.in: Regenerate.
28         * config/i386/i386.c (ix86_print_operand): Handle code 'p'.
29         * config/i386/i386.md (*tls_global_dynamic_32_gnu): If
30         TARGET_SUN_TLS, use @tlsgdplt or @plt.
31         (*tls_global_dynamic_64): Use @plt if TARGET_SUN_TLS.
32         (*tls_local_dynamic_base_32_gnu): If TARGET_SUN_TLS, use
33         @tlsldmplt or @plt.
34         (*tls_local_dynamic_base_64): Use @plt if TARGET_SUN_TLS.
35
36 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
37
38         * sched-int.h (struct _haifa_deps_insn_data): New members cond
39         and reverse_cond.
40         (INSN_COND, INSN_REVERSE_COND): New macros.
41         * sched-deps.c (deps_analyze_insn): Call sched_get_condition_with_rev
42         once.
43         (sched_get_condition_with_rev): Cache the results, and look them up
44         if possible.
45         (sched_analyze_insn): Destroy INSN_COND of previous insns if they
46         are clobbered by the current insn.
47         * target.def (exposed_pipline): New sched data hook.
48         * doc/tm.texi.in: TARGET_SCHED_EXPOSED_PIPELINE: Add hook.
49         * doc/tm.texi: Regenerate.
50
51 2011-05-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
52
53         PR tree-optimization/49170
54         * tree-ssa-math-opts.c (execute_cse_sincos):  Add checks for
55         sincos or cexp.
56
57 2011-05-27  Richard Guenther  <rguenther@suse.de>
58
59         PR middle-end/49189
60         * fold-const.c (fold_unary_loc): Do not re-fold folding conversions
61         of comparisons.
62
63 2011-05-27  Bernd Schmidt  <bernds@codesourcery.com>
64
65         * haifa-sched.c (sched_scan_info): Remove.
66         (schedule_block): Call sched_extend_luids rather than sched_init_luids
67         with NULL args.
68         (extend_bb, init_bb, extend_insn, init_insn, init_insns_in_bb):
69         Remove functions.
70         (sched_scan): Remove.
71         (sched_extend_luids): Renamed from luids_extend_insn and no longer
72         static.  All callers changed.
73         (sched_init_insn_luid): Renamed from luids_init_insn and no longer
74         static.  All callers changed.
75         (sched_init_luids): Remove all arguments except the first.  All
76         callers changed.  Don't use sched_scan.
77         (haifa_init_h_i_d): Likewise.
78         (haifa_init_insn): Call sched_extend_luids and sched_init_insn_luid
79         manually rather than using sched_init_luids.  Likewise with
80         extend_h_i_d, init_h_i_d and haifa_init_h_i_d.
81         * sel-sched.c (sel_region_target_finish): Call sched_extend_luids
82         rather than sched_init_luids with NULL args.
83         * sel-sched-ir.c (new_insns): Remove variable.
84         (sched_scan): New static function, previously in haifa-sched.c.  Remove
85         all arguments but the first two; all callers changed.
86         (sel_init_new_insn): Call sched_extend_luids and sched_init_insn_luid
87         rather than sched_init_luids.
88         (sel_init_bbs): Remove second argument.  All callers changed.
89         (sel_add_bb): Call sched_extend_luids rather than sched_init_luids
90         with NULL arguments.
91         (create_insn_rtx_from_pattern): Likewise.
92         * sel-sched-ir.h (sel_init_bbs): Adjust declaration.
93         * sched-int.h (sched_init_luids, haifa_init_h_i_d): Likewise.
94         (sched_init_insn_luid, sched_extend_luids): Declare.
95         (sched_scan_info_def, sched_scan_info, sched_scan): Remove
96         declarations.
97
98 2011-05-27  Richard Guenther  <rguenther@suse.de>
99
100         PR middle-end/49177
101         * fold-const.c (fold_unary_loc): Fold (T)(A CMP B) to
102         A CMP B ? (T) true : (T) false for non-integral types T again.
103
104 2011-05-27  Jan Hubicka  <jh@suse.cz>
105
106         * lto-streamer-out.c (lto_string_index): break out from...; offset by 1
107         so 0 means NULL string.
108         (lto_output_string_with_length): ... here.
109         (lto_output_string, output_string_cst, output_identifier): Update
110         handling of NULL strings.
111         (lto_output_location_bitpack): New function.
112         (lto_output_location): Use it.
113         (lto_output_tree_ref): Use output_record_start.
114         (pack_ts_type_common_value_fields): Pack aliagn & alias set in var
115         len values.
116         * lto-streamer-in.c (string_for_index): Break out from ...; offset
117         values by 1.
118         (input_string_internal): ... here; 
119         (input_string_cst, input_identifier, lto_input_string): Update handling
120         of NULL strings.
121         (lto_input_location_bitpack): New function
122         (lto_input_location): Use it.
123         (unpack_ts_type_common_value_fields): Pack align & alias in var len
124         values.
125         * lto-streamer.h (bp_pack_val_len_unsigned, bp_pack_val_len_int,
126         bp_unpack_val_len_unsigned, bp_unpack_val_len_int): Declare.
127         (bp_pack_value): Sanity check the value range.
128         * lto-section-in.c (bp_unpack_val_len_unsigned, bp_unpack_val_len_int):
129         New functions.
130         * lto-section-out.h (bp_pack_val_len_unsigned, bp_pack_val_len_int):
131         New functions.
132
133 2011-05-27  Hariharan Sandanagobalane <hariharan@picochip.com>
134
135         * config/picochip/picochip.c (reorder_var_tracking_notes): Drop
136         call_arg_location instructions down the floor.
137
138 2011-05-26  Vladimir Makarov  <vmakarov@redhat.com>
139
140         PR rtl-optimization/49154
141         * ira.c (setup_pressure_classes): Process class without sublcasses
142         as a candidate for pressure classes.
143
144 2011-05-26  Richard Sandiford  <rdsandiford@googlemail.com>
145
146         PR rtl-optimization/48575
147         * genrecog.c (position_type): New enum.
148         (position): New structure.
149         (decision): Use position structure instead of a string.
150         (root_pos, peep2_insn_pos_list): New variables.
151         (next_position, compare_positions): New functions.
152         (new_decision): Use position structures instead of strings.
153         (maybe_both_true): Likewise.
154         (change_state): Likewise.
155         (write_tree): Likewise.
156         (make_insn_sequence): Likewise.
157
158 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
159
160         * tree.c (initialize_tree_contains_struct): Mark TS_BLOCK as
161         TS_BASE instead of TS_COMMON.
162         (find_decls_types_r): Check for TS_TYPED structure before looking at
163         TREE_TYPE.
164         * tree.h (struct tree_block): Inherit from tree_base, not tree_common.
165         Add chain field.
166         (BLOCK_CHAIN): Use new chain field.
167
168 2011-05-26  Pat Haugen <pthaugen@us.ibm.com>
169
170         * config/rs6000/rs6000.c (rs6000_register_move_cost): Make LR/CTR
171         moves expensive on Power7 also.
172
173 2011-05-26  Richard Guenther  <rguenther@suse.de>
174
175         * fold-const.c (fold_unary_loc): Remove bogus code.
176
177 2011-05-26  Nathan Froyd  <froydnj@codesourcery.com>
178
179         * tree.h (struct tree_identifier): Inherit from tree_typed, not
180         tree_common.
181         (HT_IDENT_TO_GCC_IDENT): Adjust for said change.
182         * tree.c (initialize_tree_contains_struct): Mark TS_IDENTIFIER as
183         TS_BASE instead of TS_COMMON.
184         * varasm.c (assemble_name): Remove assert.
185
186 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
187
188         * Makefile.in (srcdirify): Change order so that libgcc_objdir is
189         substituted first.
190         * libgcc-std.ver: Delete file.
191
192 2011-05-26  Richard Guenther  <rguenther@suse.de>
193
194         PR tree-optimization/48702
195         * tree-ssa-address.c (create_mem_ref_raw): Create MEM_REFs
196         only when we know the base address is within bounds.
197         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Do not
198         assume the base address of TARGET_MEM_REFs is in bounds.
199
200 2011-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
201
202         PR target/49099
203         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Wrap
204         declaration in TARGET_SOLARIS.
205
206 2011-05-26  Hariharan Sandanagobalane <hariharan@picochip.com>
207
208         * config/picochip/picochip.md (cbranchhi4): No :CC for match_operator.
209           The instruction is then expanded explicitly.
210         (supported_compare): Callable instruction.
211         (compare): Likewise.
212
213 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
214
215         PR c++/49165
216         * gimplify.c (shortcut_cond_r): Don't special case
217         COND_EXPRs if they have void type on one of their arms.
218
219 2011-05-26  Bernd Schmidt  <bernds@codesourcery.com>
220
221         * haifa-sched.c (schedule-block): Reorder the inner scheduling loop
222         to reduce duplication, and to achieve a slightly more logical order
223         of operations.
224
225 2011-05-26  Jakub Jelinek  <jakub@redhat.com>
226
227         PR tree-optimization/49161
228         * tree-vrp.c (struct case_info): New type.
229         (compare_case_labels): Sort case_info structs instead of
230         trees, and not primarily by CASE_LABEL uids but by
231         label_for_block indexes.
232         (find_switch_asserts): Put case labels into struct case_info
233         array instead of TREE_VEC, adjust sorting, compare label_for_block
234         values instead of CASE_LABELs.
235
236 2011-05-26  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
237
238         * config/arm/neon.md ("orn<mode>3_neon"): Canonicalize not.
239         ("orndi3_neon"): Likewise.
240         ("bic<mode>3_neon"): Likewise.
241
242 2011-05-26  Ira Rosen  <ira.rosen@linaro.org>
243
244         PR tree-optimization/49038
245         * tree-vect-loop-manip.c (vect_generate_tmps_on_preheader):
246         Ensure at least one epilogue iteration if required by data
247         accesses with gaps.
248         * tree-vectorizer.h (struct _loop_vec_info): Add new field
249         to mark loops that require peeling for gaps.
250         * tree-vect-loop.c (new_loop_vec_info): Initialize new field.
251         (vect_get_known_peeling_cost): Take peeling for gaps into
252         account.
253         (vect_transform_loop): Generate epilogue if required by data
254         access with gaps.
255         * tree-vect-data-refs.c (vect_analyze_group_access): Mark the
256         loop as requiring an epilogue if there are gaps in the end of
257         the strided group.
258
259 2011-05-25  Ian Lance Taylor  <iant@google.com>
260
261         * godump.c (go_format_type): Output the first field with a usable
262         Go type, if any.
263
264 2011-05-25  Ian Lance Taylor  <iant@google.com>
265
266         * godump.c (go_format_type): Check for invalid type names, pointer
267         target types, and struct field types.
268
269 2011-05-25  Jason Merrill  <jason@redhat.com>
270
271         * print-tree.c (print_node): Only look at TREE_TYPE if TS_TYPED.
272
273 2011-05-25  Uros Bizjak  <ubizjak@gmail.com>
274
275         * config/i386/sse.md (*<sse>_maskcmp<mode>3_comm): New pattern.
276
277 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
278
279         * config/i386/i386.md (*movqi_extv_1)): Put back
280         "register_operand" check in "type" calculation.
281         (*movqi_extzv_2): Likewise.
282
283 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
284
285         * doc/extend.texi (X86 Built-in Functions): Update pause intrinsic.
286
287 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
288
289         PR bootstrap/49160
290         * libgcc2.h (__powisf2, __powidf2, __powitf2, __powixf2,
291         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3,
292         __divxc3, __divtc3): Wrap definitions in #ifndef.
293
294 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
295
296         PR target/49142
297         * config/i386/i386.md (*movqi_extv_1_rex64): Remove
298         "register_operand" check and replace q_regs_operand with
299         QIreg_operand in "type" calculation.
300         (*movqi_extv_1): Likewise.
301         (*movqi_extzv_2_rex64): Likewise.
302         (*movqi_extzv_2): Likewise.
303
304         * config/i386/predicates.md (QIreg_operand): New.
305
306 2011-05-25  Richard Guenther  <rguenther@suse.de>
307
308         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
309         type-based offset disambiguation, streamline MEM_REF and
310         TARGET_MEM_REF handling.
311
312 2011-05-25  H.J. Lu  <hongjiu.lu@intel.com>
313
314         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_PAUSE.
315         (bdesc_special_args): Add pause intrinsic.
316
317         * config/i386/i386.md (UNSPEC_PAUSE): New.
318         (pause): Likewise.
319         (*pause): Likewise.
320         * config/i386/ia32intrin.h (__pause): Likewise.
321
322         * doc/extend.texi (X86 Built-in Functions): Add documentation for
323         pause intrinsic.
324
325 2011-05-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
326
327         PR tree-optimization/46728
328         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): New.
329         (execute_cse_sincos): Add switch case for BUILT_IN_POW.
330
331 2011-05-25  Nathan Froyd  <froydnj@codesourcery.com>
332
333         * tree.h (struct tree_exp): Inherit from struct tree_typed.
334         * tree.c (initialize_tree_contains_struct): Mark TS_EXP as TS_TYPED
335         instead of TS_COMMON.
336
337 2011-05-25  Bernd Schmidt  <bernds@codesourcery.com>
338
339         * libgcc2.h (__NW, __NDW): Define using a __gnu_ prefix if
340         LIBGCC2_GNU_PREFIX is defined.
341         (__N): New macro.
342         (__powisf2, __powidf2, __powitf2, __powixf2, __bswapsi2, __bswapdi2,
343         __mulsc3, __muldc3, __mulxc3, __multc3, __divsc3, __divdc3, __divxc3,
344         __divtc3, __udiv_w_sdiv, __clear_cache, __enable_execute_stack,
345         __clz_tab): Define using __N.
346         (__absvsi2, __negvsi2, __addvsi3, __subvsi3, __mulvsi3): Likewise if
347         COMPAT_SIMODE_TRAPPING_ARITHMETIC.
348         * target.def (libfunc_gnu_prefix): New hook.
349         * doc/tm.texi.in (LIBGCC2_GNU_PREFIX): Document.
350         (TARGET_LIBFUNC_GNU_PREFIX): Add hook.
351         * doc/tm.texi: Regenerate.
352         * system.h (LIBGCC2_GNU_PREFIX): Poison.
353         * optabs.c (gen_libfunc): Take the libfunc_gnu_prefix hook into
354         account.
355         (gen_interclass_conv_libfunc, gen_intraclass_conv_libfunc): Likewise.
356         (init_optabs): Likewise for the bswap libfuncs.
357         * tree.c (build_common_builtin_nodes): Likewise for complex multiply
358         and divide.
359         * config/t-slibgcc-elf-ver (SHLIB_MAPFILES): Use $$(libgcc_objdir).
360         * config/t-slibgcc-sld (SHLIB_MAPFILES): Likewise.
361         * libgcc-std.ver: Remove.
362         * Makefile.in (srcdirify): Handle $$(libgcc_objdir).
363         * config/frv/t-linux (SHLIB_MAPFILES): Use $$(libgcc_objdir) for
364         libgcc-std.ver.
365         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
366         * config/mips/t-slibgcc-irix (SHLIB_MAPFILES): Likewise.
367         * config/rs6000/t-aix43 (SHLIB_MAPFILES): Likewise.
368         * config/rs6000/t-aix52 (SHLIB_MAPFILES): Likewise.
369         * config/sparc/t-linux (SHLIB_MAPFILES): Likewise.
370         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
371         * config/i386/t-linux (SHLIB_MAPFILES): Likewise.
372         * config/fixed-bit.h (FIXED_OP): Define differently depending on
373         LIBGCC2_GNU_PREFIX. All uses changed not to pass leading underscores.
374         (FIXED_CONVERT_OP, FIXED_CONVERT_OP2): Likewise.
375
376 2011-05-25  Jan Hubicka  <jh@suse.cz>
377
378         * lto-streamer-out.c (output_record_start): Use lto_output_enum
379         (lto_output_tree): Use output_record_start.
380         * lto-streamer-in.c (input_record_start): Use lto_input_enum
381         (lto_get_pickled_tree): Use input_record_start.
382         * lto-section-in.c (lto_section_overrun): Turn into fatal error.
383         (lto_value_range_error): New function.
384         * lto-streamer.h (lto_value_range_error): Declare.
385         (lto_output_int_in_range, lto_input_int_in_range): New functions.
386         (lto_output_enum, lto_input_enum): New macros.
387
388 2011-05-25  Eric Botcazou  <ebotcazou@adacore.com>
389
390         * common.opt (flag_stack_usage_info): New variable.
391         (-Wstack-usage): New option.
392         * doc/invoke.texi (Warning options): Document -Wstack-usage.
393         * opts.c (common_handle_option) <OPT_Wstack_usage_>: New case.
394         <OPT_fstack_usage>: Likewise.
395         * toplev.c (output_stack_usage): Handle -Wstack-usage.
396         * calls.c (expand_call): Test flag_stack_usage_info variable instead
397         of flag_stack_usage.
398         (emit_library_call_value_1): Likewise.
399         * explow.c (allocate_dynamic_stack_space): Likewise.
400         * function.c (instantiate_virtual_regs ): Likewise.
401         (prepare_function_start): Likewise.
402         (rest_of_handle_thread_prologue_and_epilogue): Likewise.
403         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
404         * config/arm/arm.c (arm_expand_prologue): Likewise.
405         (thumb1_expand_prologue): Likewise.
406         * config/avr/avr.c (expand_prologue): Likewise.
407         * config/i386/i386.c (ix86_expand_prologue): Likewise.
408         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
409         * config/m68k/m68k.c (m68k_expand_prologue): Likewise.
410         * config/mips/mips.c (mips_expand_prologue): Likewise.
411         * config/pa/pa.c (hppa_expand_prologue): Likewise.
412         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
413         * config/s390/s390.c (s390_emit_prologue): Likewise.
414         * config/sh/sh.c (sh_expand_prologue): Likewise.
415         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
416         * config/spu/spu.c (spu_expand_prologue): Likewise.
417
418 2011-05-25  Richard Guenther  <rguenther@suse.de>
419
420         * gimple.c (iterative_hash_canonical_type): Skip non-FIELD_DECLs.
421         (gimple_canonical_types_compatible_p): Likewise.
422
423 2011-05-25  Jan Hubicka  <jh@suse.cz>
424
425         PR middle-end/49062
426         * ipa.c (function_and_variable_visibility): Only add to same
427         comdat group list if DECL_ONE_ONLY.
428
429 2011-05-25  Andrey Belevantsev  <abel@ispras.ru>
430
431         PR rtl-optimization/49014
432         * config/i386/athlon.md (athlon_ssecomi): Change type to ssecomi.
433
434 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
435
436         PR target/49128
437         * config/i386/driver-i386.c (host_detect_local_cpu): Fix a typo.
438
439 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
440
441         PR rtl-optimization/48757
442         * ira-build.c (loop_with_eh_edge_p): Rename to
443         loop_with_complex_edge_p, check edges on complexity, make function
444         conditional.
445         (mark_loops_for_removal): Make call of loop_with_complex_edge_p
446         conditional.
447
448 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
449
450         * config/sparc/sparc.c (sparc_option_override): If not set by the user,
451         force flag_ira_share_save_slots to 0.
452
453 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
454
455         * var-tracking.c (compute_cfa_pointer): Adjust head comment.
456         (vt_initialize): Set PROLOGUE_BB unconditionally.
457         Add block comment about CFA_BASE_RTX machinery.
458         Reset FP_CFA_OFFSET to -1 on all invalid paths.
459         Call vt_init_cfa_base only if FP_CFA_OFFSET isn't equal to -1.
460
461 2011-05-24  Nicola Pero  <nicola.pero@meta-innovation.com>
462
463         PR objc/48187
464         * c-parser.c (c_parser_objc_class_instance_variables): More robust
465         parsing of syntax error in ObjC instance variable lists.  In
466         particular, avoid an infinite loop if there is a stray ']'.
467         Updated error message.
468
469 2011-05-24  Ian Lance Taylor  <iant@google.com>
470
471         * godump.c (go_define): Don't accept a string immediately after
472         another operand.
473
474 2011-05-24  Ian Lance Taylor  <iant@google.com>
475
476         * godump.c (struct godump_container): Add invalid_hash field.
477         (go_format_type): Return false if type is found in invalid_hash.
478         (go_output_typedef): Add invalid type to invalid_hash.
479         (go_finish): Create and delete invalid_hash.
480
481 2011-05-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
482
483         PR tree-optimization/46728
484         * tree-ssa-math-opts.c (powi_table): New.
485         (powi_lookup_cost): New.
486         (powi_cost): New.
487         (powi_as_mults_1): New.
488         (powi_as_mults): New.
489         (gimple_expand_builtin_powi): New.
490         (execute_cse_sincos): Add switch case for BUILT_IN_POWI.
491         (gate_cse_sincos): Remove sincos/cexp restriction.
492
493 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
494
495         PR target/3746
496         * config.gcc (alpha*-dec-osf5.1*): Only build mips-tfile,
497         mips-tdump native.
498         * mips-tfile.c: Remove CROSS_DIRECTORY_STRUCTURE handling.
499         * mips-tdump.c: Likewise.
500
501 2011-05-24  H.J. Lu  <hongjiu.lu@intel.com>
502
503         PR target/49128
504         * config/i386/driver-i386.c (host_detect_local_cpu): Always
505         add -mno-XXX.  Handle FMA.
506
507 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
508
509         PR rtl-optimization/48633
510         * ira-build.c (loop_with_eh_edge_p): New function.
511         (mark_loops_for_removal): Use it.
512
513 2011-05-24  Vladimir Makarov  <vmakarov@redhat.com>
514
515         PR rtl-optimization/48971
516         * ira.c (setup_pressure_classes): Don't check register move cost
517         for classes with one registers.  Don't add pressure class if there
518         is a pressure class with the same available hard registers.
519         Check contains_reg_of_mode.  Fix a typo in collecting
520         temp_hard_regset.  Ignore hard registers not belonging to a class.
521
522 2011-05-24  Uros Bizjak  <ubizjak@gmail.com>
523
524         PR target/49133
525         * config/i386/sse.md (sse2_loadhpd): Remove shufpd alternative.
526
527 2011-05-24  Eric Botcazou  <ebotcazou@adacore.com>
528             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
529
530         PR gcov-profile/48845
531         * config/sol2.h (LIB_SPEC): Link TLS support for tree profiling.
532
533 2011-05-24  Richard Guenther  <rguenther@suse.de>
534
535         * gimple.c (compare_type_names_p): Remove for_completion_p arg.
536         (gimple_compatible_complete_and_incomplete_subtype_p): Remove.
537         (gimple_types_compatible_p_1): Adjust.
538         (iterative_hash_canonical_type): Do not bother about complete vs.
539         incomplete types.
540         (gimple_canonical_types_compatible_p): Likewise.
541
542 2011-05-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
543
544         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Remove.
545
546 2011-05-24  Richard Guenther  <rguenther@suse.de>
547
548         PR bootstrap/49078
549         * gimple.c (gimple_register_canonical_type): Revert
550         previous change.
551         * alias.c (get_alias_set): Only assert that TYPE_CANONICAL
552         does not for a tree for the case where it matters.  Cache
553         pointer-type alias-sets.
554
555 2011-05-24  Joseph Myers  <joseph@codesourcery.com>
556
557         * Makefile.in (GCC_OBJS): Remove opts-common.o and options.o.
558         (OBJS): Remove options.o, opts-common.o and prefix.o.
559         (OBJS-libcommon-target): New.
560         (ALL_HOST_BACKEND_OBJS): Include $(OBJS-libcommon-target).
561         (BACKEND): Include libcommon-target.a.
562         (MOSTLYCLEANFILES): Include libcommon-target.a.
563         (libcommon-target.a): New.
564         (xgcc$(exeext), cpp$(exeext)): Use libcommon-target.a instead of
565         prefix.o.
566
567 2011-05-23  Joseph Myers  <joseph@codesourcery.com>
568
569         * optc-save-gen.awk: New.  Based on optc-gen.awk.  Don't generate
570         parts of output shared with the driver.
571         * optc-gen.awk: Don't generate parts of output not shared with the
572         driver.
573         * opth-gen.awk: Remove GCC_DRIVER conditionals.
574         * doc/options.texi (SourcerInclude): Mention options-save.c.
575         * Makefile.in (GCC_OBJS): Use options.o instead of gcc-options.o.
576         (OBJS): Add options-save.o.
577         (options-save.c, options-save.o): New.
578         (options.o): Update dependencies.
579         (gcc-options.o): Remove.
580         (mostlyclean): Remove options-save.c.
581
582 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
583
584         PR debug/49032
585         * dbxout.c: Include cgraph.h.
586         (dbxout_expand_expr): If a VAR_DECL is TREE_STATIC, not written
587         and without value expr, return NULL if no varpool node exists for
588         it or if it is not needed.
589         * Makefile.in (dbxout.o): Depend on $(CGRAPH_H).
590
591         PR c/49120
592         * c-decl.c (start_decl): Convert expr to void_type_node.
593
594 2011-05-23  Richard Sandiford  <rdsandiford@googlemail.com>
595
596         PR rtl-optimization/48826
597         * emit-rtl.c (try_split): When splitting a call that is followed
598         by a NOTE_INSN_CALL_ARG_LOCATION, move the note after the new call.
599
600 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
601
602         * cfgexpand.c (expand_debug_expr): For unused non-addressable
603         parameters passed in memory prefer using DECL_INCOMING_RTL over
604         the pseudos it will be copied into.
605
606 2011-05-23  H.J. Lu  <hongjiu.lu@intel.com>
607
608         PR target/47315
609         * config/i386/i386.c (ix86_option_override_internal): Save the
610         initial options after checking vzeroupper.
611
612 2011-05-23  David Li  <davidxl@google.com>
613
614         PR tree-optimization/48988
615         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
616         Initialize has_valid_pred for each pred chain.
617
618 2011-05-23  Richard Guenther  <rguenther@suse.de>
619
620         * gimple.c (gimple_types_compatible_p_1): Always compare type names.
621         (iterative_hash_gimple_type): Always hash type names.
622
623 2011-05-23  Nathan Froyd  <froydnj@codesourcery.com>
624
625         * c-typeck.c (build_function_call_vec): Tweak call to
626         check_function_arguments.
627
628 2011-05-23  Richard Guenther  <rguenther@suse.de>
629
630         PR tree-optimization/49115
631         * tree-ssa-alias.c (stmt_kills_ref_p_1): If the assignment
632         is not necessarily carried out, do not claim it kills the ref.
633         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
634
635 2011-05-23  Richard Guenther  <rguenther@suse.de>
636
637         PR middle-end/15419
638         * builtins.c (fold_builtin_memory_op): Be less restrictive about
639         what pointer types we accept for folding.
640
641 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
642
643         * gthr-gnat.c: Remove.
644         * gthr-gnat.h: Remove.
645         * Makefile.in (LIB2ADDEH): Remove $(srcdir)/gthr-gnat.c.
646         * config/t-freebsd (LIB2ADDEH): Likewise.
647         * config/t-linux (LIB2ADDEH): Likewise.
648         * config/t-sol2 (LIB2ADDEH): Likewise.
649         * config/ia64/t-vms (LIB2ADDEH): Likewise.
650         * configure.ac (target_thread_file): Remove gnat handling.
651         * configure: Regenerate.
652         * doc/install.texi (Configuration, --enable-threads): Remove gnat.
653
654 2011-05-23  Tristan Gingold  <gingold@adacore.com>
655             Eric Botcazou  <ebotcazou@adacore.com>
656
657         * gcov.c (create_file_names): If no object directory is specified,
658         keep the directory of the file.
659
660 2011-05-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
661
662         * configure.ac (enable_threads): Remove irix; add lynx, tpf; sort list.
663         * configure: Regenerate.
664
665 2011-05-23  Jakub Jelinek  <jakub@redhat.com>
666
667         PR middle-end/48973
668         * expr.c (expand_expr_real_2) <case LT_EXPR>: If do_store_flag
669         failed and the comparison has a single bit signed type, use
670         constm1_rtx instead of const1_rtx for true value.
671         (do_store_flag): If ops->type is single bit signed type, disable
672         signel bit test optimization and pass -1 instead of 1 as last
673         parameter to emit_store_flag_force.
674
675 2011-05-23  Tom de Vries  <tom@codesourcery.com>
676
677         PR target/45098
678         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith): New
679         function.
680         (infer_loop_bounds_from_undefined): Use new function.
681
682 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
683
684         * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
685         (ASM_SPEC): Add a -O* option here.  Pass -O0 for -noasmopt,
686         -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
687         and -O0 otherwise.
688         (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
689
690 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
691
692         * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
693         (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
694         returns true.
695
696 2011-05-22  Richard Sandiford  <rdsandiford@googlemail.com>
697
698         * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
699
700 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
701
702         * config/sparc/sparc.c (sparc_delegitimize_address): Handle
703         UNSPEC_MOVE_PIC pattern.
704
705 2011-05-22  Eric Botcazou  <ebotcazou@adacore.com>
706
707         * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
708         (sparc-*-rtems*): Likewise.
709         (sparc64-*-elf*): Likewise.
710         (sparc64-*-rtems*): Likewise.
711         (sparc*-*-solaris2*): Likewise.  Remove crti.o crtn.o extra parts.
712         * config/sparc/t-crtin: New file.
713         * config/sparc/t-sol2 (crti.o): Delete rule.
714         (crtn.o): Likewise.
715         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
716         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
717         * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
718         (ENDFILE_SPEC): Add crtn.o.
719
720 2011-05-22  Tom de Vries  <tom@codesourcery.com>
721
722         PR middle-end/48689
723         * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
724         CODE_CONTAINS_STRUCT (TS_COMMON).
725
726 2011-05-22  Jakub Jelinek  <jakub@redhat.com>
727
728         PR middle-end/49029
729         * expmed.c (extract_fixed_bit_field): Test whether target can be used
730         only after deciding which mode to use.
731
732 2011-05-22  Tom de Vries  <tom@codesourcery.com>
733
734         PR target/45098
735         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
736         for call to get_shiftadd_cost.
737
738 2011-05-22  Uros Bizjak  <ubizjak@gmail.com>
739
740         PR target/49104
741         * config/i386/cpuid.h (bit_MMXEXT): New define.
742
743 2011-05-22  Nick Clifton  <nickc@redhat.com>
744
745         * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
746         initialisation of non-existant args[2] element.  Use args[] array
747         not arg[] array to pass arguments to build_function_type_list.
748
749 2011-05-22  Ira Rosen  <ira.rosen@linaro.org>
750
751         PR tree-optimization/49087
752         * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
753
754 2011-05-21  Jason Merrill  <jason@redhat.com>
755
756         PR c++/49092
757         * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
758         static storage duration.
759
760 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
761
762         * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
763         frame pointer.
764
765 2011-05-21  Eric Botcazou  <ebotcazou@adacore.com>
766
767         * config/sparc/sparc.c (eligible_for_return_delay): Do not return
768         false if there are call-saved registers here...
769         (sparc_can_use_return_insn_p): ...but here instead.
770         (save_or_restore_regs): Fix thinko.
771         (sparc_expand_prologue): Use current_function_is_leaf.
772         (sparc_frame_pointer_required): Likewise.
773
774 2011-05-21  Nick Clifton  <nickc@redhat.com>
775
776         PR target/49098
777         * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
778
779 2011-05-21  Nicola Pero  <nicola.pero@meta-innovation.com>
780
781         * gengtype.c (walk_type): Implemented "atomic" GTY option.
782         * doc/gty.texi (GTY Options): Document "atomic" GTY option.
783
784 2011-05-21  Joseph Myers  <joseph@codesourcery.com>
785
786         * opt-read.awk: New.  Split out of optc-gen.awk and opth-gen.awk.
787         * optc-gen.awk: Move common code to opt-read.awk.
788         * opth-gen.awk: Likewise.
789         * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
790
791 2011-05-20  Nathan Froyd  <froydnj@codesourcery.com>
792
793         * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
794
795 2011-05-20  Tom de Vries  <tom@codesourcery.com>
796
797         PR target/45098
798         * tree-ssa-loop-ivopts.c: Include expmed.h.
799         (get_shiftadd_cost): New function.
800         (force_expr_to_var_cost): Declare forward.  Use get_shiftadd_cost.
801
802 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
803
804         PR bootstrap/49086
805         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
806         for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
807
808 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
809
810         * Makefile.in: Update comment referring to $(OBJS-common).
811
812 2011-05-20  Ian Lance Taylor  <iant@google.com>
813
814         * godump.c (go_output_typedef): Put enum constants in the macro
815         hash table to avoid duplicate Go const definitions.
816
817 2011-05-20  Joseph Myers  <joseph@codesourcery.com>
818
819         * Makefile.in (LIBDEPS): Add libcommon.a.
820         (LIBS): Likewise.
821         (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
822         (OBJS-common): Remove diagnostic.o, input.o, intl.o,
823         pretty-print.o and version.o.
824         (OBJS-libcommon): New.
825         (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
826         (BACKEND): Add libcommon.a.
827         (MOSTLYCLEANFILES): Likewise.
828         (libcommon.a): New.
829         (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
830         (cpp$(exeext)): Likewise.
831         (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
832         pretty-print.o and input.o.
833         (lto-wrapper$(exeext)): Don't explicitly use intl.o.
834         (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
835         (errors.o): Remove.
836         (mips-tfile): Don't explicitly use version.o.
837         (mips-tdump): Likewise.
838         (gcov.o): Depend on $(DIAGNOSTIC_H).
839         (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
840         (GCOV_OBJS): Remove intl.o, version.o and errors.o.
841         (GCOV_DUMP_OBJS): Remove version.o and errors.o.
842         * gcov-dump.c: Include intl.h and diagnostic.h.
843         (main): Initialize diagnostics.
844         * gcov.c: Include diagnostic.h.
845         (fnotice): Remove.
846         (main): Initialize diagnostics.
847         * lto-wrapper.c: Include diagnostic.h.
848         (main): Initialize diagnostics.
849
850 2011-05-20  Michael Matz  <matz@suse.de>
851
852         * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
853
854 2011-05-20  Michael Matz  <matz@suse.de>
855             Richard Guenther  <rguenther@suse.de>
856
857         * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
858         use lto_streamer_cache_append directly instead of returning a VEC.
859         (preload_common_node): Remove.
860         (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
861         track seen nodes.
862         (lto_streamer_cache_create): Call lto_preload_common_nodes.
863
864 2011-05-20  Richard Guenther  <rguenther@suse.de>
865
866         PR tree-optimization/49079
867         * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
868         MEM_REFs correctly for the trailing array access detection.
869         Special case constants the same way as decls for overall size
870         constraining.
871
872 2011-05-20  Uros Bizjak  <ubizjak@gmail.com>
873
874         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
875         argument expansion.
876
877 2011-05-20  Jakub Jelinek  <jakub@redhat.com>
878
879         PR tree-optimization/49073
880         * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
881         PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
882         * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
883
884 2011-05-20  Richard Guenther  <rguenther@suse.de>
885
886         PR middle-end/48849
887         * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
888         of pointer types the same way the middle-end does.
889
890 2011-05-20  Richard Guenther  <rguenther@suse.de>
891
892         * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
893         or pointer-to chains.  Delay all fixup to uniquify_nodes.
894
895 2011-05-19  Quentin Neill  <quentin.neill@amd.com>
896
897         * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
898         (fma4_fmaddsub): Likewise
899
900 2011-05-19  Jan Hubicka  <jh@suse.cz>
901
902         * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
903         (GIMPLE_TYPE_PAIR_SIZE): New macro.
904         (type_pair_cache): New static var.
905         (lookup_type_pair): Use fixed sized custom hash; make inline.
906         (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
907         calls of lookup_type_pair.
908         (print_gimple_types_stats): Remove cache stats.
909         (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
910         and gtc_ob.
911
912 2011-05-19  Uros Bizjak  <ubizjak@gmail.com>
913
914         * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
915         when TARGET_RDRND is active.
916         (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
917         Generate dummy SImode target register when target is NULL.
918
919 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
920
921         * config/arm/arm-fpus.def: New.
922         * config/arm/genopt.sh: Generate Enum and EnumValue entries from
923         arm-fpus.def.
924         * config/arm/arm-tables.opt: Regenerate.
925         * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
926         (arm_option_override): Don't decode FPU name to string here.
927         * config/arm/arm.opt (mfpu=): Use Enum.
928         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
929         Update dependencies.
930
931 2011-05-19  Joseph Myers  <joseph@codesourcery.com>
932
933         * collect2.c: Include diagnostic.h.
934         (fatal_perror, fatal, error, fancy_abort): Remove.
935         (main): Set progname.  Call xmalloc_set_program_name and
936         diagnostic_initialize.
937         (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
938         scan_libraries, resolve_lib_name): Call fatal_error instead of
939         fatal and fatal_perror.
940         * collect2.h (error, fatal, fatal_perror): Don't declare.
941         * tlink.c: Include diagnostic-core.h.
942         (recompile_files): Call fatal_error instead of fatal_perror.
943         * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
944         pretty-print.o and input.o.
945         (collect2.o, tlink.o): Update dependencies.
946
947 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
948
949         * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
950
951 2011-05-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
952
953         PR target/40483
954         * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
955         COMDAT group syntax, both SPARC and x86 variants.
956         (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
957         * configure: Regenerate.
958         * config/sol2.h (TARGET_SOLARIS): Define.
959         (PUSHSECTION_FORMAT): Remove.
960         (SECTION_NAME_FORMAT): Define.
961         * config/sol2.c: Include hashtab.h.
962         (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
963         expansion, using SECTION_NAME_FORMAT.
964         (solaris_comdat_htab): New variable.
965         (struct comdat_entry): Define.
966         (comdat_hash): New function.
967         (comdat_eq): New function.
968         (solaris_elf_asm_comdat_section): New function.
969         (solaris_define_comdat_signature): New function.
970         (solaris_code_end): New function.
971         * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
972         (solaris_code_end): Declare.
973         * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
974         * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
975         solaris_code_end.
976         (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
977         Remove ATTRIBUTE_UNUSED.
978         [!USE_GAS]: Call solaris_elf_asm_comdat_section for
979         SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
980         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
981         * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
982         * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
983         * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
984         (PUSHSECTION_FORMAT): Remove.
985         (SECTION_NAME_FORMAT): Redefine.
986
987 2011-05-19  Kai Tietz  <ktietz@redhat.com>
988
989         * tree-cfg.c (verify_gimple_assign_binary): Barf on
990         TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
991         (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
992
993 2011-05-19  Anatoly Sokolov  <aesok@post.ru>
994             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
995
996         * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
997
998 2011-05-19  Richard Guenther  <rguenther@suse.de>
999
1000         PR middle-end/48985
1001         * tree-object-size.c (addr_object_size): If the pointed-to
1002         variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
1003
1004 2011-05-19  Richard Guenther  <rguenther@suse.de>
1005
1006         * gimple.c (gimple_types_compatible_p_1): Compare names of
1007         the types themselves.
1008         (iterative_hash_gimple_type): And hash them that way.
1009         (gimple_register_type_1): If we register a main variant properly
1010         initialize the leader to ourselves.
1011
1012 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1013
1014         PR target/45098
1015         * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
1016         get_loop_invariant_expr_id.
1017         (get_loop_invariant_expr_id): Use get_expr_id.
1018         (parm_decl_cost): New function.
1019         (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
1020         Improve bound cost estimation.  Use different inv_expr_id for elim and
1021         express cases.
1022
1023 2011-05-19  Tom de Vries  <tom@codesourcery.com>
1024
1025         PR target/45098
1026         * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
1027         cost_base.cost == 0.
1028
1029 2011-05-18  H.J. Lu  <hongjiu.lu@intel.com>
1030
1031         PR target/49002
1032         * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
1033         Properly handle load cast.
1034
1035 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1036
1037         PR tree-optimization/49039
1038         * tree-vrp.c (extract_range_from_binary_expr): For
1039         MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
1040         return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
1041
1042 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1043
1044         PR target/45098
1045         * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
1046
1047 2011-05-18  Uros Bizjak  <ubizjak@gmail.com>
1048
1049         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
1050         (*tls_global_dynamic_64): Ditto.
1051         (*tls_local_dynamic_base_32_gnu): Ditto.
1052         (*tls_local_dynamic_base_64): Ditto.
1053         (tls_initial_exec_64_sun): Ditto.
1054
1055 2011-05-18  Stuart Henderson  <shenders@gcc.gnu.org>
1056
1057         * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
1058         * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
1059         bf592-none.
1060         * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
1061         * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
1062         * config/bfin/bfin.c (bfin_cpus): Add bf592.
1063         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
1064         __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
1065         * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
1066         * config/bfin/elf.h (LIB_SPEC): Add bf592.
1067
1068 2011-05-18  Joseph Myers  <joseph@codesourcery.com>
1069
1070         * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
1071         arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
1072         * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
1073         target_thread_pointer, arm_structure_size_boundary, struct
1074         float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
1075         struct abi_name, arm_all_abis): Remove.
1076         (arm_option_override) Don't process most enumerated option values here.
1077         Don't process target_fpe_name here.  Work with integer not string for
1078         structure size boundary; use separate diagnostics for each case.
1079         * config/arm/arm.h (enum float_abi_type, enum
1080         arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
1081         to arm-opts.h.
1082         (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
1083         arm_structure_size_boundary): Remove.
1084         * config/arm/arm.opt (mabi=): Use Enum and Init.
1085         (arm_abi_type): New Enum and EnumValue entries.
1086         (mfloat-abi=): Use Enum and Init.
1087         (float_abi_type): New Enum and EnumValue entries.
1088         (mfp=, mfpe=): Replace by separate Alias entries for each argument.
1089         (mfp16-format=): Use Enum and Init.
1090         (arm_fp16_format_type): New Enum and EnumValue entries.
1091         (mstructure-size-boundary=): Use UInteger and Init.
1092         (mtp=): Use Enum and Init.
1093         (arm_tp_type): New Enum and EnumValue entries.
1094
1095 2011-05-18  Richard Guenther  <rguenther@suse.de>
1096
1097         PR tree-optimization/49018
1098         * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
1099         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
1100         gimple_has_side_effects.
1101
1102 2011-05-18  Richard Guenther  <rguenther@suse.de>
1103
1104         * gimple.c (gimple_register_type_1): New function, split out from ...
1105         (gimple_register_type): ... here.  Avoid infinite recursion.
1106
1107 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
1108
1109         PR tree-optimization/41881
1110         * tree-vectorizer.h (struct _loop_vec_info): Add new field
1111         reduction_chains along with a macro for its access.
1112         * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
1113         (destroy_loop_vec_info): Free reduction chains.
1114         (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
1115         (vect_is_slp_reduction): New function.
1116         (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
1117         (vect_create_epilog_for_reduction): Support SLP reduction chains.
1118         * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
1119         definition types for reduction chains.
1120         (vect_supported_load_permutation_p): Don't allow permutations for
1121         reduction chains.
1122         (vect_analyze_slp_instance): Support reduction chains.
1123         (vect_analyze_slp): Try to build SLP instance from reduction chains.
1124         (vect_get_constant_vectors):  Handle reduction chains.
1125         (vect_schedule_slp_instance): Mark the first statement of the
1126         reduction chain as reduction.
1127
1128 2011-05-18  Ira Rosen  <ira.rosen@linaro.org>
1129
1130         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
1131         names for group elements access.
1132         * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
1133         reduction chains as well.  Remove data reference and interleaving
1134         related words from the fields names.
1135         * tree-vect-loop.c (vect_transform_loop): Use new names for group
1136         elements access.
1137         * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
1138         vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
1139         vect_update_interleaving_chain, vect_same_range_drs,
1140         vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
1141         vect_verify_datarefs_alignment, vector_alignment_reachable_p,
1142         vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
1143         vect_analyze_group_access, vect_analyze_data_ref_access,
1144         vect_create_data_ref_ptr, vect_transform_strided_load,
1145         vect_record_strided_load_vectors): Likewise.
1146         * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
1147         vect_model_load_cost, vectorizable_store, vectorizable_load,
1148         vect_remove_stores, new_stmt_vec_info): Likewise.
1149         * tree-vect-slp.c (vect_build_slp_tree,
1150         vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
1151
1152 2011-05-18  Richard Guenther  <rguenther@suse.de>
1153
1154         PR middle-end/48989
1155         * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
1156         operand verification.
1157         (verify_gimple_assign_binary): Likewise.
1158         * tree-ssa.c (useless_type_conversion_p): Preserve conversions
1159         to non-1-precision BOOLEAN_TYPEs.
1160
1161 2011-05-18  Tom de Vries  <tom@codesourcery.com>
1162
1163         PR target/45098
1164         * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
1165
1166 2011-05-18  Jakub Jelinek  <jakub@redhat.com>
1167
1168         PR tree-optimization/49000
1169         * tree-ssa.c (execute_update_addresses_taken): Call
1170         maybe_rewrite_mem_ref_base on debug stmt value.  If it couldn't
1171         be rewritten and decl has been marked for renaming, reset
1172         the debug stmt.
1173
1174 2011-05-17  Joseph Myers  <joseph@codesourcery.com>
1175
1176         * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
1177         enum_opts_set when testing if attributes have set -mfpmath=.
1178
1179 2011-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
1180
1181         * config/mips/mips.c (mips_handle_option): Remove unused variable.
1182
1183 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1184
1185         * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
1186         info->entry with 0
1187         * tree-inline.c (maybe_inline_call_in_expr):  Initialize
1188         id.transform_lang_insert_block with NULL.
1189
1190 2011-05-17  Uros Bizjak  <ubizjak@gmail.com>
1191
1192         * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
1193         (output_fp_compare): Change args 3 and 4 to bool.
1194         (ix86_expand_call): Change arg 6 to bool.
1195         (ix86_attr_length_immediate_default): Change arg 2 to bool.
1196         (ix86_attr_length_vex_default): Change arg 3 to bool.
1197         * config/i386/i386.md: Update all uses.
1198         * config/i386/i386.c: Ditto.
1199         (ix86_flags_dependent): Change return type to bool.
1200
1201 2011-05-17  Richard Guenther  <rguenther@suse.de>
1202
1203         * gimple.c (type_hash_pair_compare): Fix comparison.
1204
1205 2011-05-17  Richard Guenther  <rguenther@suse.de>
1206
1207         * gimple.c (iterative_hash_gimple_type): Simplify singleton
1208         case some more, fix final hash value of the non-singleton case.
1209
1210 2011-05-17  Richard Guenther  <rguenther@suse.de>
1211
1212         PR bootstrap/49013
1213         Revert
1214         2011-05-16  Richard Guenther  <rguenther@suse.de>
1215
1216         * gimple.c (gimple_types_compatible_p_1): Use names of the
1217         type itself, not its main variant.
1218         (iterative_hash_gimple_type): Likewise.
1219
1220 2011-05-17  Richard Guenther  <rguenther@suse.de>
1221
1222         * gimple.c (gimple_register_canonical_type): Use the main-variant
1223         leader for computing the canonical type.
1224
1225 2011-05-17  Nick Clifton  <nickc@redhat.com>
1226
1227         * config/rx/rx.c (rx_memory_move_cost): Include cost of register
1228         moves.
1229
1230         * config/rx/rx.md: Add peephole to remove redundant extensions
1231         after loads.
1232         (bitset_in_memory): Use rx_restricted_mem_operand.
1233         (bitinvert_in_memory): Likewise.
1234         (bitclr_in_memory): Likewise.
1235
1236 2011-05-17  Kazuhio Inaoka  <kazuhiro.inaoka.ud@renesas.com>
1237             Nick Clifton  <nickc@redhat.com>
1238
1239         * config/rx/rx.md: Add peepholes to match a register move followed
1240         by a comparison of the moved register.  Replace these with an
1241         addition of zero that does both actions in one instruction.
1242
1243 2011-05-17  Jakub Jelinek  <jakub@redhat.com>
1244
1245         PR target/48986
1246         * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
1247         predicate to allow CONST_INT.
1248         (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
1249
1250 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1251
1252         * opts-common.c (opt_enum_arg_to_value): New.
1253         * opts.h (opt_enum_arg_to_value): Declare.
1254         * config/i386/i386.opt (fpmath): Remove.
1255         (mfpmath=): Use Enum, Init and Save.
1256         (fpmath_unit): New Enum and EnumValue entries.
1257         * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
1258         name for function fpmath state.
1259         * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
1260         * config/i386/i386.c: Include diagnostic.h.
1261         (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
1262         (ix86_target_string): Take enum fpmath_unit value instead of string.
1263         (ix86_debug_options): Update call to ix86_target_string.
1264         (ix86_option_override_internal): Don't process fpmath strings here.
1265         (x86_function_specific_save, ix86_function_specific_restore):
1266         Don't handle fpmath state specially.
1267         (ix86_function_specific_print): Pass fpmath state to
1268         ix86_target_string instead of printing in this function.
1269         (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
1270         Handle enum attributes.
1271         (IX86_ATTR_ENUM, ix86_opt_enum): New.
1272         (ix86_valid_target_attribute_tree): Update option_strings
1273         handling.  Handle fpmath as enum option.
1274         (ix86_can_inline_p): Update field names for function fpmath state.
1275         (ix86_expand_builtin): Update call to ix86_target_string.
1276         * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
1277         (ix86_fpmath): Remove.
1278         * config/i386/t-i386 (i386.o): Update dependencies.
1279
1280 2011-05-16  Joseph Myers  <joseph@codesourcery.com>
1281
1282         PR preprocessor/48677
1283         * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
1284         from decoded_options[0], not from itself.
1285
1286 2011-05-16  Uros Bizjak  <ubizjak@gmail.com>
1287
1288         * config/i386/constraints.md (z): New constraint.
1289         * config/i386/i386.c (c): New mode attribute.
1290         (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
1291         *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
1292         constraint for operand 0.
1293         (*call_vzeroupper): Ditto.
1294         (*call_rex64_ms_sysv): Ditto.  Use "rzm" constraint for operand 0.
1295         (*call_rex64_ms_sysv_vzeroupper): Ditto.
1296         (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
1297         Use "lzm" constraint for operand 0.
1298         (*call_pop_vzeroupper): Ditto.
1299         (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
1300         *sibcall_1_rex64 patterns using "P" mode iterator.  Use "Uz"
1301         constraint for operand 0.
1302         (*sibcall_vzeroupper): Ditto.
1303         (*sibcall_rex64_ms_sysv): Ditto.
1304         (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
1305         (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
1306         *sibcall_pop_1.  Use "Uz" constraint for operand 0.
1307         (*sibcall_pop_vzeroupper): Ditto.
1308         (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
1309         *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
1310         mode iterator.  Use "<c>zm" constraint for operand 1.
1311         (*call_value_vzeroupper): Ditto.
1312         (*call_value_rex64_ms_sysv): Ditto.  Use "rzm" constraint
1313         for operand 1.
1314         (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
1315         (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
1316         *call_value_pop_1.  Use "lzm" constraint for operand 1.
1317         (*call_value_pop_vzeroupper): Ditto.
1318         (*sibcall_value): Merge insn pattern from *sibcall_value_0,
1319         *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
1320         mode iterator.  Use "Uz" constraint for operand 1.
1321         (*sibcall_value_vzeroupper): Ditto.
1322         (*sibcall_value_rex64_ms_sysv): Ditto.
1323         (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
1324         (*sibcall_value_pop): Rename from *sibcall_pop_1.  Use "Uz"
1325         constraint for operand 1.
1326         (*sibcall_value_pop_vzeroupper): Ditto.
1327         (*tls_global_dynamic_64): Use constant_call_address_operand predicate
1328         and "z" constraint for operand 2.
1329         (*tls_global_dynamic_32_gnu): Ditto.
1330         (*tls_local_dynamic_base_32_gnu): Ditto.
1331         (*tls_local_dynamic_base_64): Ditto.
1332         (*tls_local_dynamic_32_once): Ditto.
1333         * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
1334         Update all callers.
1335         * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
1336
1337 2011-05-16  Richard Guenther  <rguenther@suse.de>
1338
1339         * gimple.c (gimple_types_compatible_p_1): Use names of the
1340         type itself, not its main variant.
1341         (iterative_hash_gimple_type): Likewise.
1342
1343 2011-05-16  Richard Guenther  <rguenther@suse.de>
1344
1345         * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
1346         always visit pointer target and function result and argument types.
1347
1348 2011-05-16  Jason Merrill  <jason@redhat.com>
1349
1350         PR c++/48999
1351         * tree-inline.c (copy_statement_list): Put back recursion.
1352
1353 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1354
1355         PR target/27663
1356         PR target/41076
1357         * config/avr/predicates.md (const_8_16_24_operand): New predicate.
1358         * config/avr/avr.md ("*ior<mode>qi.byte0",
1359         "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
1360
1361 2011-05-16  Georg-Johann Lay  <avr@gjlay.de>
1362
1363         PR target/45099
1364         * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
1365         register is needed for a function argument.
1366
1367 2011-05-16  Richard Guenther  <rguenther@suse.de>
1368
1369         * gimple.c (struct type_hash_pair): New type.
1370         (type_hash_pair_compare): New function.
1371         (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
1372
1373 2011-05-16  Revital Eres  <revital.eres@linaro.org>
1374
1375         * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
1376
1377 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1378
1379         * config/i386/i386.md (floating point move splitters): Fix
1380         usage of standard_80387_constant_p.
1381         * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
1382
1383 2011-05-15  Uros Bizjak  <ubizjak@gmail.com>
1384
1385         * config/i386/i386.md (*movdf_internal): Simplify insn condition.
1386
1387 2011-05-14  Eric Botcazou  <ebotcazou@adacore.com>
1388
1389         * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
1390         (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
1391         (tree_ssa_lim_finalize): Likewise.
1392
1393 2011-05-14  Uros Bizjak  <ubizjak@gmail.com>
1394
1395         * config/i386/constraint.md (Yd, Yx): New register constraints.
1396         * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger.  Use
1397         Yd conditional register constraint.
1398         (*movtf_internal): Use standard_sse_constant_opcode.
1399         (*movxf_internal): Merge with *movxf_internal_nointeger.  Use
1400         Yx conditional register constraint.
1401         (*movdf_internal): Merge with *movdf_internal_nointeger.  Use
1402         Yd conditional register constraint.  Use standard_sse_constant_p to
1403         check for valid SSE constants and call standard_sse_constant_opcode to
1404         output SSE insn.
1405         (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
1406         constants and call standard_sse_constant_opcode to output SSE insn.
1407         * config/i386/i386.c (ix86_option_ovverride_internal): Set
1408         TARGET_INTEGER_DFMODE_MOVES for 64bit targets.  Clear it when
1409         optimize_size is set.
1410         (standard_sse_constant_opcode): Output conditional AVX insn templates.
1411
1412 2011-05-14  Tobias Burnus  <burnus@net-b.de>
1413
1414         * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
1415
1416 2011-05-13  Martin Jambor  <mjambor@suse.cz>
1417
1418         * ipa-prop.c (ipa_cst_from_jfunc): New function.
1419         * ipa-prop.h (ipa_cst_from_jfunc): Declare.
1420         * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
1421         (evaluate_conditions_for_ipcp_clone): Removed.
1422         (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
1423         * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
1424         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
1425
1426 2011-05-13  Eric Botcazou  <ebotcazou@adacore.com>
1427
1428         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
1429         * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
1430         lieu of MAY_HAVE_DEBUG_STMTS.
1431         * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
1432         debug statements if !MAY_HAVE_DEBUG_STMTS.
1433
1434 2011-05-13  Martin Thuresson  <martint@google.com>
1435
1436         PR gcov-profile/47793
1437         * libgcov.c (gcov_exit): Support relative profile paths.
1438         * doc/invoke.texi (-fprofile-dir): Update for above change.
1439
1440 2011-05-13  Richard Guenther  <rguenther@suse.de>
1441
1442         * gimple.c (gimple_canonical_types_compatible_p): Do not use
1443         type-pair caching, do not compare hashes.
1444
1445 2011-05-13  Nathan Froyd  <froydnj@codesourcery.com>
1446
1447         PR middle-end/48965
1448         * tree-cfg.c (edge_to_cases_cleanup): Return true.
1449         (verify_expr) [CASE_LABEL_EXPR]: Add checking.
1450
1451 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1452
1453         * gimplify.c (gimplify_expr): Make sure operand is boolified.
1454         * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
1455         compatible type for TRUTH_NOT_EXPR.
1456
1457 2011-05-13  H.J. Lu  <hongjiu.lu@intel.com>
1458
1459         * config/i386/i386.c (ix86_save_reg): Change return type to bool.
1460         (ix86_hard_regno_mode_ok): Change return value to bool.  Use
1461         can_create_pseudo_p ().
1462
1463 2011-05-13  Richard Guenther  <rguenther@suse.de>
1464
1465         PR lto/48978
1466         * gimple.c (iterative_hash_gimple_type): Revert change in
1467         pointer target and function result and argument hashing.
1468
1469 2011-05-13  Uros Bizjak  <ubizjak@gmail.com>
1470
1471         * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
1472         (*movxf_internal_nointeger): Ditto.
1473         (*movdf_internal_rex64): Ditto.
1474         (*movdf_internal): Ditto.
1475         (*movdf_internal_nointeger): Ditto.
1476         (*movsf_internal): Ditto.
1477         (sincos splitters): Use can_create_pseudo ().
1478
1479 2011-05-13  Joseph Myers  <joseph@codesourcery.com>
1480
1481         * config/i386/i386-opts.h: New.
1482         * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
1483         ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
1484         ix86_section_threshold): Remove.
1485         (ix86_handle_option): Move MAX_CODE_ALIGN define here.  Handle
1486         OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
1487         OPT_mbranch_cost_.
1488         (ix86_option_override_internal): Don't decode strings for options
1489         other than -march=, -mtune= and -mfpmath=.  Don't allow for
1490         __attribute__ uses in remaining diagnostics for options with
1491         string arguments.  Don't check for integer arguments being negative.
1492         * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
1493         enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
1494         (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
1495         ix86_branch_cost, ix86_section_threshold): Remove.
1496         * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
1497         HeaderInclude.
1498         (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
1499         but not Var.
1500         (masm=): Use Enum and Init.
1501         (asm_dialect): New Enum and EnumValue entries.
1502         (mbranch-cost=): Use UInteger.
1503         (mlarge-data-threshold=): Use UInteger and Init.
1504         (mcmodel=): Use Enum and Init.
1505         (cmodel): New Enum and EnumValue entries.
1506         (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
1507         (mpreferred-stack-boundary=, mincoming-stack-boundary=,
1508         mregparm=): Use UInteger.
1509         (mstringop-strategy=): Use Enum and Init.
1510         (stringop_alg): New Enum and EnumValue entries.
1511         (mtls-dialect=): Use Enum and Init.
1512         (tls_dialect): New Enum and EnumValue entries.
1513         (mabi=): Use Enum and Init.
1514         (calling_abi): New Enum and EnumValue entries.
1515         (mveclibabi=): Use Enum and Init.
1516         (ix86_veclibabi): New Enum and EnumValue entries.
1517
1518 2011-05-13  Nick Clifton  <nickc@redhat.com>
1519
1520         * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
1521         * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
1522
1523 2011-05-13  Kai Tietz  <ktietz@redhat.com>
1524
1525         PR middle-end/48984
1526         * gimplify.c (gimplify_expr): Check for boolean_type_node instead
1527         for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
1528         (gimple_boolify): Check for cast for boolean_type_node instead for
1529         BOOLEAN_TYPE.
1530
1531 2011-05-13  Richard Guenther  <rguenther@suse.de>
1532
1533         PR tree-optimization/48172
1534         * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
1535         multiplying by number of iterations for equal step.
1536         (vect_create_cond_for_alias_checks): Likewise.
1537
1538 2011-05-13  Andreas Schwab  <schwab@redhat.com>
1539
1540         * configure.ac: Use AS_HELP_STRING throughout.
1541         * configure: Regenerate.
1542
1543 2011-05-12  H.J. Lu  <hongjiu.lu@intel.com>
1544
1545         * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
1546         (ix86_emit_restore_regs_using_mov): Likewise.
1547         (ix86_emit_restore_sse_regs_using_mov): Likewise.
1548
1549 2011-05-12  Anatoly Sokolov  <aesok@post.ru>
1550
1551         * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
1552         SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
1553         (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
1554         * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
1555         RTX_OK_FOR_OLO10_P): ...here.
1556         (sparc_mode_dependent_address_p): Use symbolic_operand instead of
1557         SYMBOLIC_CONST.
1558
1559 2011-05-12  Kai Tietz  <ktietz@redhat.com>
1560
1561         * gimplify.c (gimple_boolify): Re-boolify expression
1562         arguments even if expression type is of kind BOOLEAN_TYPE.
1563         (gimplify_boolean_expr): Removed.
1564         (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
1565         and XOR. Additional take care that we keep expression's type.
1566         * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
1567         of TRUTH_AND|OR|XOR_EXPR.
1568
1569 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1570
1571         PR tree-optimization/48975
1572         * tree-if-conv.c (combine_blocks): Call free_bb_predicate
1573         on all bbs here and free and clear ifc_bbs at the end.
1574
1575 2011-05-12  Richard Guenther  <rguenther@suse.de>
1576
1577         * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
1578         NULLPTR_TYPE similar to VOID_TYPE.  Defer type-leader lookup
1579         until after simple checks.
1580         (gimple_types_compatible_p): Likewise.
1581         (iterative_hash_gimple_type): Always hash pointer targets
1582         and function return and argument types.
1583         (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
1584         hash TYPE_ALIGN.  Do not hash TYPE_MIN/MAX_VALUE.
1585         (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
1586         handle NULLPTR_TYPE similar to VOID_TYPE.  Handle non-aggregates
1587         completely in the simple compare section.
1588         (gimple_register_canonical_type): Query the cache again after
1589         registering.
1590
1591 2011-05-12  Richard Guenther  <rguenther@suse.de>
1592
1593         PR tree-optimization/48172
1594         * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
1595         the number of iterations from the segment size calculation.
1596         (vect_create_cond_for_alias_checks): Adjust.
1597
1598 2011-05-12  Jakub Jelinek  <jakub@redhat.com>
1599
1600         PR debug/48967
1601         * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
1602         if validate_subreg fails.
1603
1604 2011-05-12  Hariharan Sandanagobalane  <hariharan@picochip.com>
1605
1606         * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
1607         accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
1608         early.
1609
1610 2011-05-12  DJ Delorie  <dj@redhat.com>
1611
1612         * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
1613         (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
1614         created builtin into rx_builtins array.
1615         (rx_builtin_decl): New function.
1616         (TARGET_BUITLIN_DECL): Define.  Include gt-rx.h.
1617
1618 2011-05-12  DJ Delorie  <dj@redhat.com>
1619             Nick Clifton  <nickc@redhat.com>
1620
1621         * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
1622         * config/rx/rx.c (CC_FLAG_FP): Fix comment.
1623         (rx_is_legitimate_address): Add pre-decrement and post-increment
1624         addressing in HImode and QImode.  Fix test for out of range
1625         REG+INT addressing.
1626         (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
1627         (rx_align_for_label): Test label before extracting its usage count.
1628         (rx_adjust_insn_lengths): Fix selection of insn codes.
1629         (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
1630
1631 2011-05-11  Jason Merrill  <jason@redhat.com>
1632
1633         * tree.c (type_hash_canon): Use struct tree_type_non_common.
1634
1635 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1636
1637         * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
1638         reindent the subsequent block.
1639
1640 2011-05-11  Satoru Takabayashi  <satorux@google.com>
1641             Paul Pluzhnikov  <ppluzhnikov@google.com>
1642
1643         * doc/install.texi (Configuration): Document --with-linker-hash-style.
1644         * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
1645         * config.in: Add LINKER_HASH_STYLE.
1646         * configure.ac: Add --with-linker-hash-style.
1647         * configure: Regenerate.
1648
1649 2011-05-11  Richard Guenther  <rguenther@suse.de>
1650
1651         PR middle-end/48964
1652         * gimple.c (iterative_hash_canonical_type): Fix typo.
1653
1654 2011-05-11  Uros Bizjak  <ubizjak@gmail.com>
1655
1656         * config/i386/i386.c (legitimize_tls_address)
1657         <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1658         expanders directly for TARGET_GNU2_TLS.  Determine pic and
1659         __tls_get_addr symbol reference here.  Update call to
1660         gen_tls_global_dynamic_{32,64} for added arguments.
1661         <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
1662         expanders directly for TARGET_GNU2_TLS.  Determine
1663         __tls_get_addr symbol reference here.  Update call to
1664         gen_tls_local_dynamic_base_{32,64} for added arguments.  Attach
1665         unique UNSPEC REG_EQUIV to libcall block.
1666         (ix86_tls_get_addr): Declare static.
1667         * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
1668         * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
1669         Do not determine pic and __tls_get_addr symbol reference here. Do not
1670         call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
1671         (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
1672         (tls_global_dynamic_64): Add operand 2.  Do not determine
1673         __tls_get_addr symbol reference here.  Do not call
1674         gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
1675         (tls_local_dynamic_base64): Ditto for operand 1.
1676
1677 2011-05-11  Eric Botcazou  <ebotcazou@adacore.com>
1678
1679         * function.c (expand_function_start): Initialize stack_check_probe_note
1680         only if the generic stack checking mechanism is used.
1681
1682 2011-05-11  Richard Guenther  <rguenther@suse.de>
1683
1684         PR tree-optimization/15256
1685         * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1686         (A & B) | C, combine (A op CST1) op CST2.
1687         (tree_ssa_forward_propagate_single_use_vars): Only bother to
1688         visit assigns that have uses.
1689
1690 2011-05-11  Nathan Froyd  <froydnj@codesourcery.com>
1691
1692         * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
1693         * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1694         (unpack_ts_type_common_value_fields): ...this.  Update comment.
1695         (unpack_value_fields): Adjust for renaming.
1696         (lto_input_ts_type_tree_pointers): Split into...
1697         (lto_input_ts_type_common_tree_pointer): ...this and...
1698         (lto_input_ts_type_non_common_tree_pointers): ...this.
1699         (lto_input_tree_pointers): Adjust for above split.
1700         * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1701         (pack_ts_type_common_value_fields): ...this.  Update comment.
1702         (lto_output_ts_type_tree_pointers): Split into...
1703         (lto_output_ts_type_common_tree_pointers): ...this and...
1704         (lto_output_ts_type_non_common_tree_pointers): ...this.
1705         (lto_output_tree_pointers): Adjust for above split.
1706         * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1707         TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1708         * stor-layout.c (vector_type_mode): Adjust location of mode field.
1709         * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1710         Define.
1711         (struct tree_type): Split into...
1712         (struct tree_type_common: ...this and...
1713         (struct tree_type_with_lang_specific): ...this and...
1714         (struct tree_type_non_common): ...this.  Adjust accessor macros
1715         accordingly.
1716         (TYPE_VALUES_RAW): Define.
1717         (union tree_node): Update for above changes.
1718         * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1719         TS_TYPE_NON_COMMON.
1720         (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1721         Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1722         (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1723         * treestructu.def (TS_TYPE): Remove.
1724         (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1725         Define.
1726
1727 2011-05-11  Jakub Jelinek  <jakub@redhat.com>
1728
1729         PR debug/48159
1730         * tree-ssa.c (reset_debug_uses): New function.
1731         * tree-flow.h (reset_debug_uses): New prototype.
1732         * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1733         * tree-loop-distribution.c (generate_loops_for_partition): Call
1734         reset_debug_uses on the stmts that will be removed.  Keep around
1735         all debug stmts, don't count them as bits in partition bitmap.
1736         (generate_builtin): Don't count debug stmts or labels as bits in
1737         partition bitmap.
1738
1739 2011-05-11  Richard Guenther  <rguenther@suse.de>
1740
1741         * gimple.c (gimple_type_hash_1): Merge with ...
1742         (gimple_type_hash): ... this.
1743         (gtc_visit): Remove mode parameter and simplify accordingly.
1744         (gimple_types_compatible_p_1): Likewise.
1745         (gimple_types_compatible_p): Likewise.
1746         (iterative_hash_gimple_type): Likewise.
1747         (visit): Likewise.
1748         (gimple_type_eq): Adjust.
1749
1750 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1751
1752         * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1753         enters the branch create an anti edge in the opposite direction
1754         to prevent the creation of reg-moves.
1755         * modulo-sched.c: Adjust comment to reflect the fact we are
1756         scheduling closing branch.
1757         (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1758         (stage_count): New field in struct partial_schedule.
1759         (calculate_stage_count): New function.
1760         (normalize_sched_times): Rename to reset_sched_times and handle
1761         incrementing the sched time of the nodes by a constant value
1762         passed as parameter.
1763         (duplicate_insns_of_cycles): Skip closing branch.
1764         (sms_schedule_by_order): Schedule closing branch.
1765         (ps_insn_find_column): Handle closing branch.
1766         (sms_schedule): Call reset_sched_times and adjust the code to
1767         support scheduling of the closing branch.
1768         (ps_insert_empty_row): Update calls to normalize_sched_times
1769         and rotate_partial_schedule functions.
1770
1771 2011-05-11  Richard Guenther  <rguenther@suse.de>
1772
1773         PR middle-end/48953
1774         * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1775
1776 2011-05-11  Joseph Myers  <joseph@codesourcery.com>
1777
1778         * opts.c (finish_options): Move warning settings from process_options.
1779         * toplev.c (process_options): Move warning settings to finish_options.
1780
1781 2011-05-11  Richard Guenther  <rguenther@suse.de>
1782
1783         PR tree-optimization/18041
1784         * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1785         (simplify_bitwise_binary): ... this.  Handle operand conversions
1786         by applying them to the result instead.
1787         (tree_ssa_forward_propagate_single_use_vars): Adjust.  CSE tree code.
1788
1789 2011-05-11  Richard Guenther  <rguenther@suse.de>
1790
1791         * gimple.c (gimple_canonical_types_compatible_p): Split out
1792         from gimple_types_compatible_p and friends.  Do not recurse
1793         to pointed-to types.
1794         (gimple_canonical_type_eq): Use it.
1795         (iterative_hash_canonical_type): Split out from
1796         iterative_hash_gimple_type and friends.  Do not recurse
1797         to pointed-to types.
1798         (gimple_canonical_type_hash): Use it, allocate the hash here.
1799
1800 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1801
1802         * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1803         recognizing doloop.
1804
1805 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1806
1807         * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1808         instead of PREV_INSN.
1809
1810 2011-05-11  Revital Eres  <revital.eres@linaro.org>
1811
1812         * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1813         * loop-doloop.c (doloop_condition_get): Likewise.
1814         * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1815         (doloop_end): New.
1816         * config/arm/arm.md (*addsi3_compare0): Remove "*".
1817
1818 2011-05-10  Nathan Froyd  <froydnj@codesourcery.com>
1819
1820         * tree.def (CASE_LABEL_EXPR): Add an operand.
1821         * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1822
1823 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1824
1825         * c-decl.c (c_override_global_bindings_to_false): Remove.
1826         (global_bindings_p): Don't check
1827         c_override_global_bindings_to_false.
1828         * c-tree.h (c_override_global_bindings_to_false): Remove.
1829         * c-typeck.c (composite_type): Don't set
1830         c_override_global_bindings_to_false.
1831
1832 2011-05-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
1833
1834         PR target/48857, 48495
1835         * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1836         (VSX_MODE): Ditto.
1837         (VSX_MOVE_MODE): Ditto.
1838         (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1839         VSX vector types.  Add V2DImode.
1840         (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1841         ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1842         (MODES_TIEABLE_P): Ditto.
1843
1844         * config/rs6000/rs6000.c (rs6000_emit_move): Use
1845         ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1846         VSX_VECTOR_MODE.
1847         (init_cumulative_args): Ditto.
1848         (rs6000_function_arg_boundary): Ditto.
1849         (rs6000_function_arg_advance_1): Ditto.
1850         (rs6000_function_arg): Ditto.
1851         (rs6000_function_ok_for_sibcall): Ditto.
1852         (emit_frame_save): Ditto.
1853         (rs6000_function_value): Ditto.
1854         (rs6000_libcall_value): Ditto.
1855
1856 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1857
1858         * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1859         i386/darwin-lib.h to $libgcc_tm_file.
1860         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1861
1862 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1863
1864         * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1865
1866 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1867
1868         * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
1869         * config/rs6000/rs6000-tables.opt: New file (generated).
1870         * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1871         rs6000/rs6000-tables.opt to extra_options.
1872         * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1873         * config/rs6000/rs6000.c (rs6000_select): Remove.
1874         (processor_target_table): Move contents to rs6000-cpus.def.
1875         (darwin_rs6000_override_options): Check
1876         global_options_set.x_rs6000_cpu_index instead of
1877         rs6000_select[1].string.
1878         (rs6000_option_override_internal): Likewise.
1879         (rs6000_handle_option): Don't assert that global structures are in
1880         use.  Don't handle OPT_mcpu_ and OPT_mtune_ here.
1881         (rs6000_default_cpu): New variable.
1882         (rs6000_file_start): Set it instead of local default_cpu.  Check
1883         rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1884         global_options_set.x_rs6000_tune_index instead of rs6000_select.
1885         (rs6000_darwin_file_start): Check rs6000_default_cpu and
1886         global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1887         * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1888         rs6000_select): Remove.
1889         * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1890         Remove.
1891         (mcpu=, mtune=): Use Var, Init, Enum and Save.
1892         * config/rs6000/t-rs6000
1893         ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1894         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1895         global_options_set.x_rs6000_cpu_index instead of
1896         rs6000_select[1].string.
1897         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1898         global_options_set.x_rs6000_cpu_index instead of
1899         rs6000_select[1].string.
1900
1901 2011-05-10  Joseph Myers  <joseph@codesourcery.com>
1902
1903         * config.gcc (libgcc_tm_file): Define instead of including files
1904         from ../../libgcc/config/ in tm_file.
1905         * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
1906         * configure: Regenerate.
1907         * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1908         libgcc_tm.h, cs-libgcc_tm.h): New.
1909         (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1910         (clean): Remove libgcc_tm.h.
1911         * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1912         * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1913         * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1914
1915 2011-05-10  Georg-Johann Lay  <avr@gjlay.de>
1916
1917         PR target/48896
1918         * config/avr/avr.c (avr_ret_register): Return unsigned int
1919         instead of int.
1920         (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1921         it to avr_libcall_value.
1922         avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1923         expand_expr.
1924         (avr_expand_binop_builtin): Ditto.
1925         (avr_expand_unop_builtin): Ditto.
1926
1927 2011-05-10  DJ Delorie  <dj@redhat.com>
1928
1929         * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1930         (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1931         * config/rx/rx.c (rx_align_for_label): Add label and
1932         uses_threshold parameters.  Do not align when the label is not
1933         used enough.
1934         * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1935
1936 2011-05-10  Richard Guenther  <rguenther@suse.de>
1937
1938         * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1939         a series of conversions and apply foldings similar to what
1940         fold-const does.
1941         (tree_ssa_forward_propagate_single_use_vars): Call it.
1942
1943 2011-05-10  Jakub Jelinek  <jakub@redhat.com>
1944
1945         PR tree-optimization/48611
1946         PR tree-optimization/48794
1947         * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1948         referenced from RESX or EH_DISPATCH arguments.
1949
1950         PR debug/48928
1951         * dfp.c (decimal_to_decnumber): Handle conversion from
1952         dconst{1,2,m1,half}.
1953
1954 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1955
1956         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1957         for !flag_prefer_avx128.
1958         (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1959
1960 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
1961
1962         * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1963         (fold_ternary_loc): Use expr_location_or.
1964
1965 2011-05-09  H.J. Lu  <hongjiu.lu@intel.com>
1966
1967         PR debug/48853
1968         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1969         POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1970         Pmode and mem_mode is not VOIDmode.
1971
1972 2011-05-09  Ville Voutilainen  <ville.voutilainen@gmail.com>
1973
1974         * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1975         TYPE_QUAL_RESTRICT): Convert to enum.
1976
1977 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1978
1979         * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1980         (const_pow2_1_to_8_operand): Ditto.
1981         (const_pow2_1_to_128_operand): Ditto.
1982         (const_pow2_1_to_32768_operand): Ditto.
1983         * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1984         const_pow2_1_to_8_operand for operand 3 predicate.  Use exact_log2
1985         in insn constraint to check integer value of operand 3.
1986         * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1987
1988         (PINSR_MODE): New mode iterator.
1989         (sse2p4_1): New mode attribute.
1990         (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1991         sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1992         iterator.  Use const_int_operand instead of
1993         const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate.  Use
1994         exact_log2 in insn constraint to check integer value of operand 3.
1995
1996 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
1997
1998         * config/i386/sse.md (blendbits): Remove mode attribute.
1999         (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
2000         instead of const_0_to_<blendbits>_operand for operand 3 predicate.
2001         Check integer value of operand 3 in insn constraint.
2002
2003 2011-05-09  Richard Guenther  <rguenther@suse.de>
2004
2005         * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
2006         for diagnostics.
2007         (lto_symtab_merge): Likewise.  Do not register types here.
2008         (lto_symtab_merge_decls_2): Likewise.
2009         (lto_symtab_merge_decls_1): Likewise.
2010         * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
2011         * gimple.c (enum gtc_mode): Declare.
2012         (gimple_types_compatible_p): Make static.
2013
2014 2011-05-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2015
2016         * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
2017         temporary register to match Pmode.
2018
2019 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2020
2021         * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
2022         and *vec_concatv4si_1_avx.
2023
2024 2011-05-09  Uros Bizjak  <ubizjak@gmail.com>
2025
2026         PR rtl-optimization/48927
2027         * ira-conflicts.c (commutative_constraint_p): Use
2028         recog_data.alternative_enabled_p to disable alternatives where
2029         "enabled" attribute is false.
2030         (get_dup_num): Ditto.
2031         * ira-lives.c (single_reg_class): Ditto.
2032         (ira_implicitly_set_insn_hard_regs): Ditto.
2033
2034 2011-05-09  Eric Botcazou  <ebotcazou@adacore.com>
2035
2036         * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
2037         (dataflow_set_preserve_mem_locs): Likewise.
2038
2039 2011-05-09  Philipp Thomas  <pth@suse.de>
2040
2041         * config/mep/mep.c (mep_validate_vliw): Syntax description
2042         should not be translated.
2043
2044 2011-05-09  Joseph Myers  <joseph@codesourcery.com>
2045
2046         * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
2047         * config/mips/mips-tables.opt: New file (generated).
2048         * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
2049         * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
2050         MIPS_ARCH_OPTION_NATIVE): Define.
2051         * config/mips/mips.c (mips_cpu_info_table): Move contents to
2052         mips-cpus.def.
2053         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
2054         mips_parse_cpu): Remove.
2055         (mips_cpu_info_from_opt, mips_default_arch): New.
2056         (mips_handle_option): Don't assert that global structures are in
2057         use.  Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
2058         (mips_option_override): Use new variables and functions to set
2059         state of these options.  Use strcmp to check for individual CPU names.
2060         * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
2061         definition.
2062         * config/mips/mips.opt (march=): Use ToLower and Enum.
2063         (mips): Use ToLower, Enum and Var.
2064         (mtune=): Use ToLower and Enum.
2065         * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
2066
2067 2011-05-08  Jan Hubicka  <jh@suse.cz>
2068
2069         * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
2070         Arrange type pairs to be UID ordered.
2071         (gimple_lookup_type_leader): Make inline.
2072
2073 2011-05-09  Nick Clifton  <nickc@redhat.com>
2074
2075         PR target/48899
2076         * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
2077         PROCESSOR_DEFAULT.
2078
2079         PR target/48897
2080         * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
2081         variable 's'.
2082
2083 2011-05-08  Chung-Lin Tang  <cltang@codesourcery.com>
2084
2085         * combine.c (simplify_comparison): Abstract out parts into...
2086         (simplify_compare_const): ... new function.
2087         (try_combine): Generalize parallel arithmetic/compare combining
2088         to call simplify_compare_const() and CANONICALIZE_COMPARE().
2089
2090 2011-05-08  Jan Hubicka  <jh@suse.cz>
2091
2092         * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
2093         (cgraph_create_virtual_clone): Call hooks once virtual clone
2094         is finished.
2095         * cgraph.h (cgraph_clone_node): Update prototype.
2096         * ipa-cp.c (ipcp_estimate_growth): Use
2097         estimate_ipcp_clone_size_and_time.
2098         * ipa-inline-transform.c (clone_inlined_nodes): Update.
2099         * lto-cgraph.c (input_node): Update.
2100         * ipa-inline.c (recursive_inlining): Update.
2101         * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
2102         (evaluate_conditions_for_known_args): Break out from ...
2103         (evaluate_conditions_for_edge): ... here.
2104         (evaluate_conditions_for_ipcp_clone): New function.
2105         (inline_node_duplication_hook): Update clone summary based
2106         on parameter map.
2107         (estimate_callee_size_and_time): Rename to ...
2108         (estimate_node_size_and_time): take NODE instead of EDGE;
2109         take POSSIBLE_TRUTHS as argument.
2110         (estimate_callee_size_and_time): Update.
2111         (estimate_ipcp_clone_size_and_time): New function.
2112         (do_estimate_edge_time): Update.
2113
2114 2011-05-08  Richard Guenther  <rguenther@suse.de>
2115
2116         PR middle-end/48908
2117         PR middle-end/48905
2118         * expmed.c (expand_shift_1): Compute adjusted constant shift
2119         amount manually.
2120
2121 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
2122
2123         * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
2124
2125 2011-05-08  Eric Botcazou  <ebotcazou@adacore.com>
2126
2127         * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
2128
2129 2011-05-08  Jonathan Wakely  <jwakely.gcc@gmail.com>
2130
2131         * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
2132
2133 2011-05-07  Jan Hubicka  <jh@suse.cz>
2134
2135         * ipa-inline-transform.c (inline_call): Account when program size
2136         decreases.
2137         * ipa-inline.c (relative_time_benefit): New function.
2138         (edge_badness): Reorganize to be power 2 based; fix thinko when
2139         computing badness for negative growth; update comments to match
2140         reality; better dumps.
2141
2142 2011-05-07  Eric Botcazou  <ebotcazou@adacore.com>
2143
2144         * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
2145         type to bool and adjust comment.
2146         * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
2147         (fold_mathfn_compare): Remove calls to global_bindings_p.
2148         (fold_inf_compare): Likewise.
2149         * stor-layout.c (variable_size): Adjust call to global_bindings_p.
2150         * c-tree.h (global_bindings_p): Adjust prototype.
2151         * c-decl.c (global_bindings_p): Return bool and simplify.
2152
2153 2011-05-07  Zdenek Dvorak  <ook@ucw.cz>
2154
2155         PR tree-optimization/48837
2156         * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
2157         when accumulator transformation is performed.
2158
2159 2011-05-06  Jan Hubicka  <jh@suse.cz>
2160
2161         * i386.h (ix86_tune_indices): Add
2162         X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
2163         (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
2164         * i386.c (initial_ix86_tune_features): Add
2165         X86_SOFTARE_PREFETCHING_BENEFICIAL.
2166         (software_prefetching_beneficial_p): Remove predicate.
2167         (ix86_option_override_internal): Use new macro.
2168
2169 2011-05-06  Jan Hubicka  <jh@suse.cz>
2170
2171         * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
2172
2173 2011-05-06  Jan Hubicka  <jh@suse.cz>
2174
2175         * cgraph.c (cgraph_add_thunk): Create real function node instead
2176         of alias node; finalize it and mark needed/reachale; arrange visibility
2177         to be right and add it into the corresponding same comdat group list.
2178         (dump_cgraph_node): Dump thunks.
2179         * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
2180         cgraph_function_with_gimple_body_p,
2181         cgraph_first_function_with_gimple_body,
2182         cgraph_next_function_with_gimple_body): New functions.
2183         (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
2184         New macros.
2185         * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
2186         (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2187         * cgraphunit.c (cgraph_finalize_function): Only look into possible
2188         devirtualization when optimizing.
2189         (verify_cgraph_node): Verify thunks.
2190         (cgraph_analyze_function): Analyze thunks.
2191         (cgraph_mark_functions_to_output): Output thunks only in combination
2192         with function they are assigned to.
2193         (assemble_thunk): Turn thunk into non-thunk; don't try to turn
2194         alias into normal node.
2195         (assemble_thunks): New functoin.
2196         (cgraph_expand_function): Use it.
2197         * lto-cgraph.c (lto_output_node): Stream thunks.
2198         (input_overwrite_node): Stream in thunks.
2199         * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
2200         * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
2201         * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
2202         * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
2203         (inline_analyze_function): Do not care about thunk jump functions.
2204         (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
2205         * ipa-prop.c (ipa_prop_write_jump_functions): Use
2206         cgraph_function_with_gimple_body_p.
2207         * passes.c (do_per_function_toporder): Use
2208         cgraph_function_with_gimple_body_p.
2209         (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
2210         (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
2211         (function_called_by_processed_nodes_p): Likewise.
2212
2213 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2214
2215         * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
2216         rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
2217         entries.
2218         (mabi=): Replace with separate entries for mabi=altivec,
2219         mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
2220         mabi=ieeelongdouble and mabi=ibmlongdouble.
2221         * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
2222         check for -mabi=spe without SPE ABI support here.
2223         (rs6000_handle_option): Replace OPT_mabi_ handling with
2224         OPT_mabi_altivec and OPT_mabi_spe handling.
2225
2226 2011-05-06  Cary Coutant  <ccoutant@google.com>
2227
2228         * dwarf2out.c (contains_subprogram_definition): New function.
2229         (should_move_die_to_comdat): Call it.
2230
2231 2011-05-06  Jeff Law  <law@redhat.com>
2232
2233         * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
2234         remove_ctrl_stmt_and_useless_edges.
2235         (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
2236         (fixup_template_block, thread_single_edge): Likewise.
2237         (mark_threaded_blocks): Use THREAD_TARGET.
2238
2239 2011-05-06  Alan Modra  <amodra@gmail.com>
2240
2241         PR target/48900
2242         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
2243         const0_rtx as the arg to the dummy __tls_get_addr libcall.
2244
2245 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2246
2247         * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
2248         constraint modifier to "r".
2249
2250 2011-05-06  Joseph Myers  <joseph@codesourcery.com>
2251
2252         * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
2253         fall through for OPT_mcmodel_.
2254
2255 2011-05-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2256
2257         * config/s390/s390.c (s390_asm_trampoline_template): Comment
2258         instruction sizes.
2259         (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
2260
2261 2011-05-06  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2262
2263         PR target/47930
2264         * config/arm/arm.opt (marm): Document it.
2265         (mthumb): Reject negative variant.
2266
2267 2011-05-06  Uros Bizjak  <ubizjak@gmail.com>
2268
2269         PR target/48898
2270         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
2271         Fix typo in "ccvt" variable name.
2272
2273 2011-05-06  Tristan Gingold  <gingold@adacore.com>
2274
2275         PR target/48895
2276         * config/vms/vms-ar.c (main): Remove cwd variable.
2277
2278 2011-05-06  Jakub Jelinek  <jakub@redhat.com>
2279
2280         PR debug/48902
2281         * var-tracking.c (prepare_call_arguments): Move else before #endif.
2282
2283 2011-05-05  Nathan Froyd  <froydnj@codesourcery.com>
2284
2285         * except.c (sjlj_emit_dispatch_table): Call build_case_label.
2286         * gimplify.c (gimplify_switch_expr): Likewise.
2287         * omp-low.c (expand_omp_sections): Likewise.
2288         * tree-eh.c (lower_try_finally_switch): Likewise.
2289         (lower_eh_dispatch): Likewise.
2290         * tree.h (build_case_label): Declare.
2291         * tree.c (build_case_label): Define.
2292
2293 2011-05-05  Jason Merrill  <jason@redhat.com>
2294
2295         PR c++/40975
2296         * tree-inline.c (copy_tree_r): Use copy_statement_list.
2297         (copy_statement_list): Don't recurse.
2298         * stor-layout.c (copy_self_referential_tree_r): Don't allow
2299         STATEMENT_LIST.
2300
2301 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2302
2303         * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
2304         through from -mfpu= handling.
2305         * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
2306
2307 2011-05-05  Bernd Schmidt  <bernds@codesourcery.com>
2308
2309         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
2310         POST_MODIFY.
2311
2312 2011-05-05  Steve Ellcey  <sje@cup.hp.com>
2313
2314         * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
2315         for 11.31.
2316         (hppa[12]*-*-hpux11*): Ditto.
2317         (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
2318         * config/ia64/hpux-unix2003.h: New.
2319         * config/pa/pa-hpux1131.opt: New.
2320         * config/pa/pa-hpux1131.h: New.
2321         * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
2322         * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
2323         * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
2324
2325 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2326
2327         PR debug/48853
2328         * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
2329         instead of mode as 3rd argument to recursive call.
2330         (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
2331         emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
2332         VOIDmode.
2333         (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
2334         don't give up if mode is Pmode and mem_mode is not VOIDmode.
2335         (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
2336         use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
2337
2338 2011-05-05  Julian Brown  <julian@codesourcery.com>
2339
2340         * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
2341         parenthesis in D-register case.
2342
2343 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2344
2345         * opt-functions.awk (var_type_struct): Handle Enum options.
2346         * optc-gen.awk: Don't check range of variables of character type.
2347         * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
2348         rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
2349         rs6000_sdata_name, rs6000_explicit_options): Remove.
2350         (rs6000_option_override_internal): Check for -malign-power here.
2351         Use global_options_set instead of rs6000_explicit_options.
2352         (rs6000_parse_fpu_option): Remove.
2353         (rs6000_handle_option): Access variables via opts and opts_set
2354         pointers.  Use error_at and warning_at.  Add fall-through
2355         comments.  Don't handle OPT_mcmodel_, OPT_maix_struct_return,
2356         OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
2357         OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
2358         OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
2359         here.  Don't use rs6000_parse_fpu_option.
2360         * config/rs6000/rs6000.h (fpu_type): Remove declaration.
2361         * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
2362         rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
2363         (mrecip=): Use Var.
2364         (mspe): Use Var and Save.
2365         (mtraceback=): Use Enum and Var.
2366         (rs6000_traceback_type): New Enum and EnumValue entries.
2367         (mfloat-gprs=): Use Enum, Var and Save.
2368         (rs6000_float_gprs): New Enum and EnumValue entries.
2369         (mlong-double-): use Var and Save.
2370         (msched-costly-dep=, minsert-sched-nops=): Use Var.
2371         (malign-): Use Enum and Var.
2372         (rs6000_alignment_flags): New Enum and EnumValue entries.
2373         (mfpu=): Use Enum.
2374         (fpu_type_t): New Enum and EnumValue entries.
2375         * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2376         global_options_set instead of rs6000_explicit_options.
2377         * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2378         global_options_set instead of rs6000_explicit_options.
2379         * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2380         global_options_set instead of rs6000_explicit_options.
2381         * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
2382         global_options_set instead of rs6000_explicit_options.
2383         * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
2384         global_options_set instead of rs6000_explicit_options.
2385         * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2386         global_options_set instead of rs6000_explicit_options.
2387         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
2388         definition.
2389         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2390         global_options_set instead of rs6000_explicit_options.
2391         * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
2392         (rs6000_cmodel): New Enum and EnumValue entries.
2393         * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
2394         global_options_set instead of rs6000_explicit_options.
2395         * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
2396         (mtls-size=): Use Enum and Var.
2397         (rs6000_tls_size): New Enum and EnumValue entries.
2398
2399 2011-05-05  Michael Matz  <matz@suse.de>
2400
2401         * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
2402         * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
2403         * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
2404         * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
2405         * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
2406         * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
2407         * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
2408         * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
2409         * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
2410         * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
2411         * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
2412         * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
2413         * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
2414         * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
2415         * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
2416         * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
2417
2418 2011-05-05  Richard Guenther  <rguenther@suse.de>
2419
2420         * expmed.c (expand_variable_shift): Rename to ...
2421         (expand_shift_1): ... this.  Take an expanded shift amount.
2422         For rotates recurse directly not building trees for the shift amount.
2423         (expand_variable_shift): Wrap around expand_shift_1.
2424         (expand_shift): Adjust.
2425
2426 2011-05-05  Jakub Jelinek  <jakub@redhat.com>
2427
2428         * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
2429
2430 2011-05-05  Eric Botcazou  <ebotcazou@adacore.com>
2431
2432         * tree.h (get_pending_sizes): Remove prototype.
2433         (put_pending_size): Likewise.
2434         (put_pending_sizes): Likewise.
2435         * stor-layout.c (pending_sizes): Delete.
2436         (get_pending_sizes): Likewise.
2437         (put_pending_size): Likewise.
2438         (put_pending_sizes): Likewise.
2439         (variable_size): Do not call put_pending_size and tidy up.
2440         * function.h (struct function): Remove dont_save_pending_sizes_p.
2441         * lto-streamer-in.c (input_function): Do not stream it.
2442         * lto-streamer-out.c (output_function): Likewise.
2443         * tree-inline.c (initialize_cfun): Do not copy it.
2444         * c-decl.c (store_parm_decls): Do not set it.
2445         * omp-low.c (create_task_copyfn): Likewise.
2446         * tree-optimize.c (tree_rest_of_compilation): Likewise.
2447
2448 2011-05-05  Uros Bizjak  <ubizjak@gmail.com>
2449
2450         * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
2451         conditions.
2452         (*movdf_internal): Ditto.
2453         (*movdf_internal_nointeger): Ditto.
2454         (*movsf_internal): Ditto.
2455
2456 2011-05-05  Joseph Myers  <joseph@codesourcery.com>
2457
2458         * c-decl.c (finish_decl): Don't call get_pending_sizes.
2459         (grokparm): Add parameter expr.  Pass it to grokdeclarator.
2460         (push_parm_decl): Add parameter expr.  Pass it to grokdeclarator.
2461         (c_variable_size): Remove.
2462         (grokdeclarator): Use save_expr instead of c_variable_size.  Don't
2463         call put_pending_sizes.
2464         (get_parm_info): Add parameter expr.  Use it to set
2465         arg_info->pending_sizes.
2466         (store_parm_decls): Use arg_info->pending_sizes instead or calling
2467         get_pending_sizes.
2468         * c-parser.c (c_parser_parms_declarator): Update call to
2469         c_parser_parms_list_declarator.
2470         (c_parser_parms_list_declarator): Take parameter expr.  Update
2471         call to push_parm_decl.  Update recursive call.  Don't call
2472         get_pending_sizes.  Update calls to get_parm_info.
2473         (c_parser_objc_method_definition): Update calls to
2474         c_parser_objc_method_decl and objc_start_method_definition.
2475         (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
2476         (c_parser_objc_method_decl): Add parameter expr.  Update call to
2477         grokparm.
2478         (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
2479         * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
2480         (get_parm_info, grokparm, push_parm_decl): Update prototypes.
2481
2482 2011-05-05  Michael Hope  <michael.hope@linaro.org>
2483
2484         PR pch/45979
2485         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
2486         __ARM_EABI__ hosts.
2487
2488 2011-05-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2489
2490         * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
2491         (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
2492         (spu_output_mi_thunk): New function.
2493
2494 2011-05-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2495
2496         * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
2497         targetm.asm_out.print_operand.
2498         * config/sol2.c: Include target.h.
2499
2500 2011-05-04  Jan Hubicka  <jh@suse.cz>
2501
2502         * ipa-inline.c (reset_edge_caches): New function.
2503         (update_caller_keys): Add check_inlinablity_for; do not
2504         reset edge caches; remove now unnecesary loop.
2505         (update_callee_keys): Add comments; reset node_growth_cache of callee.
2506         (update_all_callee_keys): Likewise.
2507         (inline_small_functions): Sanity check cache; update code
2508         recomputing it.
2509
2510 2011-05-04  Bernd Schmidt  <bernds@codesourcery.com>
2511
2512         PR rtl-optimization/47612
2513         * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
2514         as the last insn of the sequence to be moved.
2515
2516 2011-05-04  Tobias Burnus  <burnus@net-b.de>
2517
2518         PR fortran/48864
2519         * doc/invoke.texi (Ofast): Document that it
2520         enables Fortran's -fno-protect-parens.
2521
2522 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2523
2524         * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
2525
2526 2011-05-04  Eric Botcazou  <ebotcazou@adacore.com>
2527
2528         * stor-layout.c (variable_size): Do not issue errors.
2529
2530 2011-05-04  Richard Guenther  <rguenther@suse.de>
2531
2532         * coverage.c (tree_coverage_counter_ref): Use integer_type_node
2533         for array-ref indices.
2534         (tree_coverage_counter_addr): Likewise.
2535         (build_fn_info_type): Use size_int for index types.
2536         (build_gcov_info): Likewise.
2537
2538 2011-05-04  Richard Guenther  <rguenther@suse.de>
2539
2540         * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
2541         to build_int_cst.
2542         * c-typeck.c (really_start_incremental_init): Use bitsize_int
2543         for constructor indices.
2544         (push_init_level): Likewise.
2545
2546 2011-05-04  Richard Guenther  <rguenther@suse.de>
2547
2548         * explow.c (promote_mode): Move variable declarations before code.
2549
2550 2011-05-04  Nathan Froyd  <froydnj@codesourcery.com>
2551
2552         * tree.h (build_function_type_array): Declare.
2553         (build_varargs_function_type_array): Declare.
2554         (build_function_type_vec, build_varargs_function_type_vec): Define.
2555         * tree.c (build_function_type_array_1): New function.
2556         (build_function_type_array): New function.
2557         (build_varargs_function_type_array): New function.
2558
2559 2011-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
2560
2561         * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
2562         before setting STMT_VINFO_TYPE.
2563
2564 2011-05-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2565
2566         * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
2567         instead of spu_pass_by_reference.
2568
2569 2011-05-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2570
2571         * calls.c (emit_library_call_value_1): Invoke
2572         promote_function_mode hook on libcall arguments.
2573         * explow.c (promote_function_mode, promote_mode): Handle TYPE
2574         argument being NULL.
2575         * targhooks.c (default_promote_function_mode): Lisewise.
2576         * config/s390/s390.c (s390_promote_function_mode): Likewise.
2577         * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
2578
2579         * doc/tm.texi: Document that TYPE argument might be NULL.
2580
2581 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2582
2583         * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
2584
2585 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2586
2587         From Bernd Schmidt
2588         * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
2589
2590 2011-05-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2591
2592         * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
2593         (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
2594         Move ...
2595         * mips-tfile.c: ... here.
2596         Don't include coretypes.h, tm.h, filenames.h.
2597         (saber_stop): Remove definition and all calls.
2598         [__SABER__]: Remove.
2599         (__LINE__): Remove default.
2600         (Size_t, Ptrdiff_t): Remove definitions.
2601         Replace by size_t, ptrdiff_t.
2602         [!MIPS_DEBUGGING_INFO]: Remove.
2603         (SHASH_SIZE, THASH_SIZE): Remove defaults.
2604         (progname): Add const.
2605         (STATIC): Remove.
2606         Replace all uses by static.
2607         (ALIGN_SYMTABLE_OFFSET): Remove default.
2608         * mips-tdump.c: Don't include coretypes.h, tm.h.
2609         Remove !MIPS_IS_STAB guard.
2610         * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
2611         $(TM_H), filenames.h dependencies.
2612         (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
2613
2614 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2615
2616         From Jie Zhang
2617         *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
2618         (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
2619
2620 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2621
2622         From Bernd Schmidt
2623         * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
2624         account and save/restore RETS.
2625         (PROFILE_BEFORE_PROLOGUE): Define.
2626         (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character.  Correct
2627         the push insn to use predecrement.
2628
2629 2011-05-04  Stuart Henderson  <shenders@gcc.gnu.org>
2630
2631         From Jie Zhang
2632         * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
2633
2634 2011-05-04  Nick Clifton  <nickc@redhat.com>
2635
2636         * config/mn10300/mn10300.c: Include cfgloop.h.
2637         (DUMP): New macro.
2638         (mn10300_insert_setlb_lcc): New function.  Inserts a SETLB and a
2639         Lcc or a FLcc insn into the instruction stream.
2640         (mn10300_block_contains_call): New function.  Returns true if the
2641         given basic block contains a CALL insn.
2642         (mn10300_loop_contains_call_insn): New function.  Returns true if
2643         the given loop contains a CALL insn.
2644         (mn10300_scan_for_setlb_lcc): New function.  Finds opportunities
2645         to use the SETLB and Lcc or FLcc insns.
2646         (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
2647         (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
2648         * config/mn10300/mn10300.opt (msetlb): New option.  Used to
2649         disable the SETLB optimization.
2650         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
2651         __SETLB__ or __NO_SETLB__.
2652         * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
2653         (movsf_internal): Handle MDR register.
2654         (cmpsi): Make visible.
2655         (setlb): New pattern.
2656         (Lcc): New pattern.
2657         (FLcc): New pattern.
2658
2659 2011-05-04  Uros Bizjak  <ubizjak@gmail.com>
2660
2661         PR target/48860
2662         * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
2663         for reg<->xmm moves.
2664         * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
2665         (vec_concatv2di_rex64_sse): Ditto.
2666         (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
2667         (*vec_extractv2di_1_rex64): Ditto.
2668
2669         Revert:
2670         2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
2671
2672         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2673         reg<->xmm moves.
2674         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
2675
2676 2011-05-04  Richard Guenther  <rguenther@suse.de>
2677
2678         * tree.h (int_const_binop): Remove notrunc argument.
2679         * fold-const.c (int_const_binop): Remove notrunc argument.  Always
2680         create integer constants that are properly truncated.
2681         (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2682         (const_binop): Remove zero notrunc argument to int_const_binop.
2683         (size_binop_loc): Likewise.
2684         (fold_div_compare): Likewise.
2685         (maybe_canonicalize_comparison_1): Likewise.
2686         (fold_comparison): Likewise.
2687         (fold_binary_loc): Likewise.
2688         (multiple_of_p): Likewise.
2689         * expr.c (store_constructor): Likewise.
2690         * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2691         (maybe_fold_stmt_addition): Likewise.
2692         * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2693         * stor-layout.c (layout_type): Likewise.
2694         * tree-data-ref.c (tree_fold_divides_p): Likewise.
2695         * tree-sra.c (build_ref_for_offset): Likewise.
2696         (build_user_friendly_ref_for_offset): Likewise.
2697         * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2698         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2699         * tree-ssa-loop-niter.c (inverse): Likewise.
2700         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2701         * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2702         * tree-switch-conversion.c (check_range): Likewise.
2703         (build_constructors): Likewise.
2704         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2705         * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2706         (extract_range_from_assert): Likewise.
2707         (vrp_int_const_binop): Likewise.
2708         (extract_range_from_binary_expr): Likewise.
2709         (extract_range_from_unary_expr): Likewise.
2710         (check_array_ref): Likewise.
2711         (find_case_label_range): Likewise.
2712         (simplify_div_or_mod_using_ranges): Likewise.
2713         * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2714         comparing case labels for merging.
2715
2716 2011-05-03  Mark Wielaard  <mjw@redhat.com>
2717
2718         * dwarf2out.c (debug_str_hash_forced): Removed.
2719         (gen_label_for_indirect_string): Removed.
2720         (get_debug_string_label): Removed.
2721         (AT_string_form): Generate label directly.
2722         (output_indirect_string): Test indirect_string_node for
2723         DW_FORM_strp instead of checking label and refcount.
2724         (prune_indirect_string): Removed.
2725         (prune_unused_types): Don't check debug_str_hash_forced or
2726         call prune_indirect_string.
2727
2728 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2729
2730         PR other/48093
2731         * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2732
2733 2011-05-04  Alexandre Oliva  <aoliva@redhat.com>
2734
2735         PR debug/47994
2736         PR debug/47919
2737         * combine.c (try_combine): Skip debug insns at m_split tests.
2738
2739 2011-04-26  Mark Wielaard  <mjw@redhat.com>
2740
2741         PR42288
2742         * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2743         when info_section_emitted.
2744
2745 2011-05-03  Joseph Myers  <joseph@codesourcery.com>
2746
2747         * config/mips/mips-opts.h: New.
2748         * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2749         to mips-opts.h.
2750         (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2751         (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2752         or OPT_mr10k_cache_barrier_ here.  Access mips_cache_flush_func
2753         via opts pointer.
2754         * config/mips/mips.h (enum mips_code_readable_setting): Move to
2755         mips-opts.h.
2756         (mips_abi, mips_code_readable): Don't declare.
2757         * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
2758         (mabi=): Use Enum and Var.
2759         (mips_abi): New Enum and EnumValue entries.
2760         (mcode-readable=): Use Enum and Var.
2761         (mips_code_readable_setting): New Enum and EnumValue entries.
2762         (mr10k-cache-barrier=): Use Enum and Var.
2763         (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2764
2765 2011-05-03  Jan Hubicka  <jh@suse.cz>
2766
2767         * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2768         replace hash by pointer map.
2769         (cgraph_node_set_element_def, cgraph_node_set_element,
2770         const_cgraph_node_set_element, varpool_node_set_element_def,
2771         varpool_node_set_element, const_varpool_node_set_element): Remove.
2772         (free_cgraph_node_set, free_varpool_node_set): New function.
2773         (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2774         * tree-emutls.c: Free varpool node set.
2775         * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2776         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2777         debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2778         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2779         dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2780         Move here from ipa.c; implement using pointer_map
2781         * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2782         cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2783         debug_cgraph_node_set, varpool_node_set_new,
2784         varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2785         dump_varpool_node_set, debug_varpool_node_set):
2786         Move to ipa-uitls.c.
2787         * passes.c (ipa_write_summaries): Update.
2788
2789 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2790
2791         From Mike Frysinger:
2792         * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2793         bf542/bf544/bf547/bf548/bf549.
2794
2795 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2796
2797         * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2798
2799 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2800
2801         From Bernd Schmidt:
2802         * config/bfin/bfin.md (MOVCC): New mode_macro.
2803         (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2804         movsicc_insn1, movsicc_insn2 and movsicc and macroized.  Remove
2805         comments from generated assembly.
2806
2807 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2808
2809         From Bernd Schmidt
2810         * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2811         * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2812         * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2813         * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2814         * config/bfin/lib1funcs.asm (___muldi3): New function.
2815
2816 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2817
2818         * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2819         build_function_type_list instead of build_function_type.
2820         Rearrange initialization of `args' to do so.
2821
2822 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2823
2824         * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2825         instead of build_function_type.
2826
2827 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2828
2829         * config/rs6000/rs6000.c (spe_init_builtins): Call
2830         build_function_type_list instead of build_function_type.
2831         (paired_init_builtins, altivec_init_builtins): Likewise.
2832         (builtin_function_type): Likewise.
2833
2834 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2835
2836         * config/sh/sh.c (sh_media_init_builtins): Call
2837         build_function_type_list instead of build_function_type.
2838
2839 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2840
2841         * config/sparc/sparc.c (sparc_file_end): Call
2842         build_function_type_list instead of build_function_type.
2843
2844 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2845
2846         * config/alpha/alpha.c (alpha_init_builtins): Call
2847         build_function_type_list instead of build_function_type.
2848
2849 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2850
2851         * config/xtensa/xtensa.c (xtensa_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/iq2000/i2000.c (iq2000_init_builtins): Call
2857         build_function_type_list instead of build_function_type.
2858         Delete `endlink' variable.
2859
2860 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2861
2862         * config/avr/avr.c (avr_init_builtins): Call
2863         build_function_type_list instead of build_function_type.
2864
2865 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2866
2867         * config/picochip/picochip.c (picochip_init_builtins): Call
2868         build_function_type_list instead of build_function_type.
2869         Delete `endlink' variable.
2870
2871 2011-05-03  Nathan Froyd  <froydnj@codesourcery.com>
2872
2873         * config/bfin/bfin.c (bfin_init_builtins): Call
2874         build_function_type_list instead of build_function_type.
2875
2876 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2877
2878         From Bernd Schmidt
2879         * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2880         that's not CONST_INT.  Seemingly redundant check is due to PR39768.
2881
2882 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2883
2884         From Jie Zhang:
2885         * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2886         libbffastfp overrides libgcc when -mfast-fp.
2887
2888 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2889
2890         Originally from Bernd Schmidt
2891         * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2892         * config/bfin/bfin.c (override_options): Test it and error if
2893         TARGET_FDPIC.
2894
2895 2011-05-03  Stuart Henderson  <shenders@gcc.gnu.org>
2896
2897         Originally From Bernd Schmidt
2898         * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2899         FD-PIC.
2900
2901 2011-05-03  Jeff Law  <law@redhat.com>
2902
2903         * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2904         (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2905         (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
2906         than accessing AUX field directly.  Free the AUX field before
2907         clearing it.
2908         (thread_block, thread_through_loop_header): Likewise.
2909         (thread_single_edge, mark_threaded_blocks): Likewise.
2910         (redirect_edges): Delay clearing the AUX field.  Free the AUX field.
2911         (register_jump_thread): Do not attempt to thread to a NULL edge.
2912
2913 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2914
2915         * function.c (init_function_start): Call decide_function_section.
2916         * varasm.c (decide_function_section): New function.
2917         (assemble_start_function): When not using
2918         flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2919         or first_function_block_is_cold.
2920         * rtl.h (decide_function_section): Declare.
2921
2922 2011-05-03  Uros Bizjak  <ubizjak@gmail.com>
2923             Jakub Jelinek  <jakub@redhat.com>
2924
2925         PR target/48774
2926         * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2927         only succeed if req_mode is the same as set_mode.
2928
2929 2011-05-03  Bernd Schmidt  <bernds@codesourcery.com>
2930
2931         * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2932         * genemit.c (gen_exp): Handle RETURN.
2933         * emit-rtl.c (verify_rtx_sharing): Likewise.
2934         (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2935         * rtl.c (copy_rtx): RETURN is shared.
2936         * rtl.h (enum global_rtl_index): Add GR_RETURN.
2937         (ret_rtx): New.
2938         * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2939         * config/s390/s390.c (s390_emit_epilogue): Likewise.
2940         * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2941         * config/cris/cris.c (cris_expand_return): Likewise.
2942         * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2943         * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2944         rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2945         * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2946         * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2947         Likewise.
2948         * config/v850/v850.c (expand_epilogue): Likewise.
2949         * config/bfin/bfin.c (bfin_expand_call): Likewise.
2950         * config/arm/arm.md (epilogue): Likewise.
2951         * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2952         * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2953         variable to ret_reg.
2954
2955 2011-05-03  Richard Guenther  <rguenther@suse.de>
2956
2957         PR lto/48846
2958         * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2959         Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2960         * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2961
2962 2011-05-03  Richard Guenther  <rguenther@suse.de>
2963
2964         * c-decl.c (grokdeclarator): Instead of looking at
2965         TREE_OVERFLOW check if the constant fits in the index type.
2966
2967 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2968
2969         * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2970         (vec_store_lanes<mode><mode>): Likewise.
2971
2972 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
2973
2974         * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2975         * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2976         convert_optab_index values.
2977         (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2978         * genopinit.c (optabs): Initialize the new optabs.
2979         * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2980         * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2981         (expand_STORE_LANES): New functions.
2982         * tree.h (build_array_type_nelts): Declare.
2983         * tree.c (build_array_type_nelts): New function.
2984         * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2985         (vect_model_load_cost): Likewise.
2986         (vect_store_lanes_supported, vect_load_lanes_supported)
2987         (vect_record_strided_load_vectors): Declare.
2988         * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2989         (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2990         (vect_transform_strided_load): Split out statement recording into...
2991         (vect_record_strided_load_vectors): ...this new function.
2992         * tree-vect-stmts.c (create_vector_array, read_vector_array)
2993         (write_vector_array, create_array_ref): New functions.
2994         (vect_model_store_cost): Add store_lanes_p argument.
2995         (vect_model_load_cost): Add load_lanes_p argument.
2996         (vectorizable_store): Try to use store-lanes functions for
2997         interleaved stores.
2998         (vectorizable_load): Likewise load-lanes and loads.
2999         * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
3000         to vect_model_store_cost.
3001         (vect_build_slp_tree): Likewise vect_model_load_cost.
3002
3003 2011-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
3004
3005         * hooks.h (hook_bool_mode_uhwi_false): Declare.
3006         * hooks.c (hook_bool_mode_uhwi_false): New function.
3007         * target.def (array_mode_supported_p): New hook.
3008         * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
3009         * doc/tm.texi: Regenerate.
3010         * stor-layout.c (mode_for_array): New function.
3011         (layout_type): Use it.
3012         * config/arm/arm.c (arm_array_mode_supported_p): New function.
3013         (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
3014
3015 2011-05-03  Eric Botcazou  <ebotcazou@adacore.com>
3016
3017         PR target/48723
3018         * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
3019         for -fstack-check if the size to allocate is negative.
3020
3021 2011-05-02  Lawrence Crowl  <crowl@google.com>
3022
3023         * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
3024         (timevar_cond_start): New for starting a timer only when it is not
3025         already running.
3026         (timevar_cond_stop): New for stopping a timer when it was not already
3027         running.
3028
3029         * timevar.c (timevar_stop): Enable start/stop timers to start again.
3030         (timevar_cond_start): New as above.
3031         (timevar_cond_stop): New as above.
3032
3033         * timevar.def: Add start/stop timers for compiler phases,
3034         TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
3035         TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
3036         and TV_PHASE_FINALIZE.
3037         Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
3038         Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
3039         TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
3040         Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
3041         Make unused TV_OVERLOAD into a start/stop timer.
3042
3043         Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
3044         Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
3045         to indicate that they are start/stop timers.
3046
3047         * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
3048         Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
3049         Move initialization to do_compile.
3050         (do_compile): Add initialization from above.
3051         Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
3052
3053         * c-decl.c (c_write_global_declarations): Add start/stop of
3054         TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
3055
3056         * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
3057         or TV_PARSE_INLINE, as appropriate.
3058         (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
3059         (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
3060
3061 2011-05-02  Jason Merrill  <jason@redhat.com>
3062
3063         PR c++/40975
3064         * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
3065
3066 2011-05-02  Simon Martin  <simartin@users.sourceforge.net>
3067
3068         PR c/35445
3069         * c-decl.c (finish_decl): Only create a composite if the types are
3070         compatible.
3071
3072 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
3073
3074         * config/fr30/fr30-protos.h (Mmode): Don't define.
3075         * config/m32r/m32r-protos.h (Mmode): Don't define.  Expand
3076         definition where used.
3077         * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
3078         define.  Expand definitions where used.
3079         * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
3080         Expand definitions where used.
3081         * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
3082         rx_function_arg, rx_function_arg_advance,
3083         rx_function_arg_boundary): Expand definitions of those macros.
3084         * config/v850/v850-protos.h (Mmode): Don't define.  Expand
3085         definition where used.
3086
3087 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3088
3089         * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
3090         reg<->xmm moves.
3091         (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
3092         (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.  Merge
3093         with *movv2sf_internal_rex64_avx.
3094         (*movv2sf_internal): Merge with *movv2sf_internal_avx.
3095         * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
3096         Use %v prefix in insn mnemonic to handle TARGET_AVX.
3097         (*movdi_internal): Add "isa" attribute.  Use "maybe_vex" instead of
3098         "vex" in "prefix" attribute calculation.
3099         (*movdf_internal): Output AVX mnemonics.  Add "prefix" attribute.
3100
3101 2011-05-02  Stuart Henderson  <shenders@gcc.gnu.org>
3102
3103         PR target/47951
3104         * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
3105         inputs match the output.
3106
3107 2011-05-02  Andreas Schwab  <schwab@linux-m68k.org>
3108
3109         PR target/47955
3110         * config/m68k/m68k.c (m68k_expand_prologue): Set
3111         current_function_static_stack_size.
3112
3113 2011-05-02   Jan Hubicka  <jh@suse.cz>
3114
3115         * lto-streamer.c (lto_streamer_cache_insert_1,
3116         lto_streamer_cache_lookup, lto_streamer_cache_create,
3117         lto_streamer_cache_delete): Use pointer map instead of hashtable.
3118         * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
3119
3120 2011-05-02  Joseph Myers  <joseph@codesourcery.com>
3121
3122         * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
3123         config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
3124         config/m68k/t-opts: New files.
3125         * config/m68k/m68k-tables.opt: New file (generated).
3126         * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
3127         extra_options and m68k/t-opts to tmake_file.
3128         * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
3129         (all_isas): Initialize using m68k-isas.def.
3130         (all_microarchs): Initialize using m68k-microarchs.def.
3131         (m68k_find_selection): Remove.
3132         (m68k_handle_option): Don't assert that global structures are in
3133         use.  Use error_at.  Access variables via opts pointer.  Don't
3134         handle -march=, -mcpu= and -mtune= here.  Set gcc_options fields
3135         directly for -m68020-40 and -m68020-60.
3136         (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
3137         m68k_tune_entry here.
3138         * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
3139         to m68k-opts.h.
3140         (m68k_library_id_string): Remove declaration.
3141         * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
3142         (m68k_library_id_string): New Variable.
3143         (march=, mcpu=, mtune=): Use Enum and Var.
3144
3145 2011-05-02  Richard Guenther  <rguenther@suse.de>
3146
3147         * varasm.c (output_constructor_regular_field): Compute zero-based
3148         index with double-ints.  Make sure to ICE instead of producing
3149         wrong code.
3150         * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
3151         in asserts.  Properly use a signed type.
3152
3153 2011-05-02  Uros Bizjak  <ubizjak@gmail.com>
3154
3155         * config/i386/sse.md (V): New mode iterator.
3156         (V_128): Rename from SSEMODE.  Make V2DF mode conditional on
3157         TARGET_SSE2.
3158         (V_256): Rename from AVX256MODE.
3159         (VF): Make V4SF mode unconditional.  Add TARGET_SSE instruction
3160         condition to all users.
3161         (VF1): Ditto.
3162         (VF2): Make V2DF mode unconditional.  Add TARGET_SSE2 instruction
3163         condition to all users.
3164         (VF_128): Make V4SF mode unconditional.
3165         (VF_256): Rename from AVX256MODEF2P.
3166         (VI4F_128): Rename from SSEMODE4S.
3167         (VI8F_128): Rename from SSEMODE2D.
3168         (VI4F_256): Rename from AVX256MODE8P.
3169         (VI8F_256): Rename from AVX256MODE4P.
3170         (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
3171         (ssescalarmodesuffix): Remove SF and DF modes.
3172         (SSEMODE124): Remove.
3173         (SSEMODE1248): Ditto.
3174         (SSEMODEF2P): Ditto.
3175         (AVXMODEF2P): Ditto.
3176         (AVXMODEFDP): Ditto.
3177         (AVXMODEFSP): Ditto.
3178         (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
3179         unconditional.
3180         (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO.  Make V4SF mode
3181         unconditional.
3182         (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
3183         xop_pcmov_<mode>256.  Use V mode iterator.
3184
3185         Adjust RTX patterns globally for renamed mode attributes.
3186
3187 2011-05-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3188
3189         * haifa-sched.c (sched_emit_insn): Emit insn before first
3190         non-scheduled insn.  Inform back-end about new insn.  Add
3191         new insn to scheduled_insns list.
3192
3193 2011-05-02  Richard Guenther  <rguenther@suse.de>
3194
3195         PR tree-optimization/48822
3196         * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
3197         (process_scc): Indicate which iteration we start.
3198
3199 2011-05-02  Jan Hubicka  <jh@suse.cz>
3200
3201         * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
3202         (lto_section_overrun): New.
3203         * lto-section-out.c (append_block): Rename to ...
3204         (lto_append_block): ... this one; export.
3205         (lto_output_1_stream): Move lto lto-streamer.h
3206         (lto_output_data_stream): Update.
3207         * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
3208         (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
3209         functions.
3210
3211 2011-05-02  Richard Guenther  <rguenther@suse.de>
3212
3213         * tree.c (tree_code_counts): New global array.
3214         (record_node_allocation_statistics): Count individual tree codes.
3215         (dump_tree_statistics): Dump individual code stats.
3216
3217 2011-05-01  Jan Hubicka  <jh@suse.cz>
3218
3219         * ipa-inline.c (caller_growth_limits): Fix thinko when
3220         looking for largest stack frame.
3221         * ipa-inline.h (dump_inline_summary): Declare.
3222         * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
3223         on stack usage.
3224         (dump_inline_summary): Export.
3225         (debug_inline_summary): Declare as DEBUG_FUNCTION.
3226
3227 2011-05-01  Anatoly Sokolov  <aesok@post.ru>
3228
3229         * reginfo.c (memory_move_cost): Change rclass argument type form
3230         'enum reg_class' to reg_class_t.
3231         * reload.h (memory_move_cost): Update prototype.
3232         * postreload.c reload_cse_simplify_set): Change type dclass var to
3233         reg_class_t.
3234         * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
3235         Update prototype.
3236         (ira_allocate_and_set_costs): Change aclass argument type form
3237         'enum reg_class' to reg_class_t.
3238         * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
3239         Change aclass argument type to reg_class_t.
3240         (update_conflict_hard_reg_costs): Change type aclass and pref vars
3241         to reg_class_t.
3242         * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
3243         memory_move_cost call.
3244
3245         * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
3246         'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
3247         Change type tmp var to reg_class_t.
3248
3249 2011-04-30  Jan Hubicka  <jh@suse.cz>
3250
3251         * ipa-inline.c (can_inline_edge_p): Disregard limits when
3252         inlining into function with flatten attribute.
3253         (want_inline_small_function_p): Be more realistic about inlining
3254         cold calls where callee size grows.
3255
3256 2011-04-30  Jan Hubicka  <jh@suse.cz>
3257
3258         * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
3259         flags.
3260
3261 2011-04-30  Anatoly Sokolov  <aesok@post.ru>
3262
3263         * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
3264         PRINT_OPERAND_PUNCT_VALID_P): Remove.
3265         * config/sparc/sparc-protos.h (print_operand): Remove declaration.
3266         * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
3267         TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
3268         (print_operand): Rename to...
3269         (sparc_print_operand): ...this. Make static. Adjust
3270         sparc_print_operand function call.
3271         (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
3272         functions.
3273
3274 2011-04-30  Jan Hubicka  <jh@suse.cz>
3275
3276         PR middle-end/48752
3277         * ipa-inline.c (early_inliner): Disable when doing late
3278         addition of function.
3279
3280 2011-04-30  Jakub Jelinek  <jakub@redhat.com>
3281
3282         * dwarf2out.c (get_address_mode): New inline.
3283         (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
3284         if not dwarf_strict emit
3285         DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
3286         desirable.  Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
3287         UNSIGNED_FLOAT, FIX and UNSIGNED_FIX.  Just return NULL for
3288         FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
3289         (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
3290         dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
3291         mem_loc_descriptor callers.
3292         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
3293         output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
3294         Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
3295         DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
3296         (base_types): New variable.
3297         (get_base_type_offset, calc_base_type_die_sizes,
3298         base_type_for_mode, mark_base_types, base_type_cmp,
3299         move_marked_base_types): New functions.
3300         (calc_die_sizes): Assert that die_offset is 0 or equal to
3301         next_die_offset.
3302         (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
3303         others defer to mem_loc_descriptor.  Adjust mem_loc_descriptor
3304         callers.  If not dwarf_strict, call mem_loc_descriptor even for
3305         non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
3306         (gen_subprogram_die): Don't give up on call site parameters
3307         with non-integral or large integral modes.  Adjust
3308         mem_loc_descriptor callers.
3309         (prune_unused_types): Call prune_unused_types_mark on base_types
3310         vector entries.
3311         (resolve_addr): Call mark_base_types.
3312         (dwarf2out_finish): Call move_marked_base_types.
3313
3314         PR tree-optimization/48809
3315         * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
3316         type.
3317         (gen_inbound_check): Don't compute index_expr - range_min in utype
3318         again, instead reuse SSA_NAME initialized in build_arrays.
3319         Remove two useless gsi_for_stmt calls.
3320
3321 2011-04-29  Jeff Law  <law@redhat.com>
3322
3323         * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
3324
3325 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3326
3327         * cgraph.h (cgraph_postorder): Remove declaration.
3328         * ipa-utils.h (ipa_free_postorder_info): Declare.
3329         (ipa_reverse_postorder): Likewise.
3330         * cgraphunit.c: Include ipa-utils.h.
3331         (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
3332         * ipa-inline.c: Include ipa-utils.h.
3333         (ipa_inline): Update call to ipa_reverse_postorder.
3334         * ipa-pure-const.c (propagate_pure_const): Update call to
3335         ipa_reduced_postorder and ipa_print_order.  Call
3336         ipa_free_postorder_info to clean up.
3337         (propagate_nothrow): Likewise.
3338         * ipa-reference.c (propagate): Removed a useless call to
3339         ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
3340         and ipa_print_order.  Call ipa_free_postorder_info to clean up.
3341         * ipa.c: Include ipa-utils.h.
3342         (ipa_profile): Update call to ipa_reverse_postorder.
3343         (cgraph_postorder): Moved to...
3344         * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
3345         (ipa_utils_print_order): Renamed to ipa_print_order.
3346         (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
3347         comments.
3348         (ipa_free_postorder_info): New function.
3349         * passes.c: Include ipa-utils.h.
3350         (do_per_function_toporder): Update call to ipa_reverse_postorder.
3351         (ipa_write_summaries): Likewise.
3352         * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
3353         (cgraphunit.o): Likewise.
3354         (ipa.o): Likewise.
3355         (ipa-inline.o): Likewise.
3356
3357 2011-04-29  Jan Hubicka  <jh@suse.cz>
3358
3359         * gcc.dg/tree-ssa/inline-10.c: New testcase.
3360         * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
3361         * ipa-inline.h (clause_t): Turn into unsigned int.
3362         * ipa-inline-analysis.c (add_clause): Do more simplification.
3363         (and_predicates): Shortcut more cases.
3364         (predicates_equal_p): Move forward; check that clauses are properly
3365         ordered.
3366         (or_predicates): Shortcut more cases.
3367         (edge_execution_predicate): Rewrite as...
3368         (set_cond_stmt_execution_predicate): ... this function; handle
3369         __builtin_constant_p.
3370         (set_switch_stmt_execution_predicate): New .
3371         (compute_bb_predicates): New.
3372         (will_be_nonconstant_predicate): Update TODO.
3373         (estimate_function_body_sizes): Use compute_bb_predicates
3374         and free them later, always try to estimate if stmt is constant.
3375         (estimate_time_after_inlining, estimate_size_after_inlining):
3376         Gracefully handle optimized out edges.
3377         (read_predicate): Fix off by one error.
3378
3379 2011-04-29  Nicola Pero  <nicola.pero@meta-innovation.com>
3380
3381         * Makefile.in (ENABLE_MAINTAINER_RULES): New.
3382
3383 2011-04-27  Xinliang David Li  <davidxl@google.com>
3384
3385         * tree-profile.c (init_ic_make_global_vars): Set
3386         tls attribute on ic vars.
3387         * coverage.c (coverage_end_function): Initialize
3388         function_list with zero.
3389
3390 2011-04-29  Richard Guenther  <rguenther@suse.de>
3391
3392         * builtins.c (fold_builtin_classify_type): Use integer_type_node
3393         for the type of the result.
3394         (fold_builtin_isascii): Likewise.
3395         (fold_builtin_toascii): Use integer_type_node where appropriate.
3396         (fold_builtin_logb): Likewise.
3397         (fold_builtin_frexp): Likewise.
3398         (fold_builtin_strstr): Likewise.
3399         (fold_builtin_strpbrk): Likewise.
3400         (fold_builtin_fputs): Likewise.
3401         (fold_builtin_sprintf): Likewise.
3402         (fold_builtin_snprintf): Likewise.
3403         (fold_builtin_printf): Likewise.
3404         (do_mpfr_remquo): Use a proper type for the assigned constant.
3405         (do_mpfr_lgamma_r): Likewise.
3406         * dwarf2out.c (resolve_one_addr): Use size_int.
3407         * except.c (init_eh): Likewise.
3408         (assign_filter_values): Use integer_type_node for filter values.
3409         (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
3410         indices.
3411         * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
3412         for EH region numbers.
3413         * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
3414         for the shift amount.
3415
3416 2011-04-29  Richard Guenther  <rguenther@suse.de>
3417
3418         * expr.h (expand_shift): Rename to ...
3419         (expand_variable_shift): ... this.
3420         (expand_shift): Take a constant shift amount.
3421         * expmed.c (expand_shift): Rename to ...
3422         (expand_variable_shift): ... this.
3423         (expand_shift): New wrapper around expand_variable_shift.
3424         * expr.c (convert_move, emit_group_load_1, emit_group_store,
3425         optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
3426         expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
3427         * expmed.c (store_fixed_bit_field, extract_bit_field_1,
3428         extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
3429         expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
3430         extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
3431         emit_store_flag_1, emit_store_flag): Likewise.
3432         * builtins.c (expand_builtin_signbit): Likewise.
3433         * calls.c (load_register_parameters): Likewise.
3434         * function.c (assign_parm_setup_block): Likewise.
3435         * lower-subreg.c (resolve_shift_zext): Likewise.
3436         * optabs.c (widen_bswap, expand_abs_nojump,
3437         expand_one_cmpl_abs_nojump, expand_float): Likewise.
3438         * spu/spu.c (spu_expand_extv): Likewise.
3439         * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
3440
3441 2011-04-29  Richard Guenther  <rguenther@suse.de>
3442
3443         * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
3444         for the remapped region number.
3445         * predict.c (build_predict_expr): Use integer_type_node for the
3446         predict kind.
3447         * fold-const.c (fold_binary_loc): Use integer_type_node for
3448         the shift amount.  Use a proper type for the PLUS_EXPR operand.
3449
3450 2011-04-29  Michael Matz  <matz@suse.de>
3451
3452         * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
3453         other trees that just builtins.
3454         (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
3455
3456 2011-04-29  Richard Guenther  <rguenther@suse.de>
3457
3458         * tree-nested.c (get_trampoline_type): Use size_int.
3459         (get_nl_goto_field): Likewise.
3460         * tree-eh.c (lower_try_finally_switch): Use integer_type_node
3461         for all indexes.
3462         (lower_eh_constructs_2): Likewise.
3463         (lower_resx): Likewise.
3464         (lower_eh_dispatch): Likewise.
3465         * tree-mudflap.c (mf_build_string): Use size_int.
3466         (mudflap_register_call): Use integer_type_node for the flag.
3467         (mudflap_enqueue_constant): Use size_int.
3468         * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
3469         instead of rebuilding it.
3470
3471 2011-04-29  Richard Guenther  <rguenther@suse.de>
3472
3473         * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
3474         Handle OBJ_TYPE_REF.
3475         (find_func_aliases_for_call): Use it more consistently.
3476
3477 2011-04-29  Alexandre Oliva  <aoliva@redhat.com>
3478
3479         * haifa-sched.c (last_nondebug_scheduled_insn): New.
3480         (rank_for_schedule): Use it.
3481         (schedule_block): Set it.
3482
3483 2011-04-28  David Li  <davidxl@google.com>
3484
3485         * tree.c (crc32_string): Use crc32_byte.
3486         (crc32_byte): New function.
3487         * tree.h (crc32_byte): New function.
3488         * gcov.c (read_graph_file): Handle new cfg_cksum.
3489         (read_count_file): Ditto.
3490         * profile.c (instrument_values): Ditto.
3491         (get_exec_counts): Ditto.
3492         (read_profile_edge_counts): Ditto.
3493         (compute_branch_probabilities): Ditto.
3494         (compute_value_histograms): Ditto.
3495         (branch_prob): Ditto.
3496         (end_branch_prob): Ditto.
3497         * coverage.c (read_counts_file): Ditto.
3498         (get_coverage_counts): Ditto.
3499         (tree_coverage_counter_addr): Ditto.
3500         (coverage_checksum_string): Ditto.
3501         (coverage_begin_output): Ditto.
3502         (coverage_end_function): Ditto.
3503         (build_fn_info_type): Ditto.
3504         (build_fn_info_value): Ditto.
3505         * libgcov.c (gcov_exit): Ditto.
3506         * gcov-dump.c (tag_function): Ditto.
3507         (compute_checksum): Remove.
3508
3509 2011-04-29  Alan Modra  <amodra@gmail.com>
3510
3511         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
3512         unspec plus offset.  Tidy macho code.
3513
3514 2011-04-29  Martin Jambor  <mjambor@suse.cz>
3515
3516         * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
3517         node instead of a decl.  Update all callers.
3518         * cgraph.h: Update declaration.
3519
3520 2011-04-28  Ira Rosen  <ira.rosen@linaro.org>
3521
3522         PR tree-optimization/48765
3523         * tree-vectorizer.h (vect_make_slp_decision): Return bool.
3524         * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
3525         to indicate if loop aware SLP is being used.  Scan the statements
3526         and update the vectorization factor according to the type of
3527         vectorization before statement analysis.
3528         (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
3529         pass it to vect_analyze_loop_operations.
3530         (vectorizable_reduction): Set number of copies to 1 in case of pure
3531         SLP statement.
3532         * tree-vect-stmts.c (vectorizable_conversion,
3533         vectorizable_assignment, vectorizable_shift,
3534         vectorizable_operation, vectorizable_type_demotion,
3535         vectorizable_type_promotion, vectorizable_store, vectorizable_load):
3536         Likewise.
3537         (vectorizable_condition): Move the check that it is not SLP
3538         vectorization before the number of copies check.
3539         * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
3540         to vectorize the loop using SLP.
3541
3542 2011-04-28  Jakub Jelinek  <jakub@redhat.com>
3543
3544         PR middle-end/48597
3545         * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
3546         inline asm.
3547
3548 2011-04-28  Joseph Myers  <joseph@codesourcery.com>
3549
3550         * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
3551         *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
3552         (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
3553         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
3554         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
3555         linux*.h headers.
3556         * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
3557         * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3558         * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3559         * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3560         * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
3561         * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
3562         REG_NAME.
3563         * config/i386/linux.h (REG_NAME): Don't define.
3564         * config/i386/linux64.h (REG_NAME): Don't define.
3565         * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
3566         Undefine before defining.
3567
3568 2011-04-28  Jan Hubicka  <jh@suse.cz>
3569
3570         * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
3571         nonconstant_names array.
3572         (estimate_function_body_sizes): Build nonconstant_names array; handle
3573         BUILT_IN_CONSTANT_P.
3574
3575 2011-04-28  Richard Guenther  <rguenther@suse.de>
3576
3577         PR bootstrap/48804
3578         Revert
3579         2011-04-28  Richard Guenther  <rguenther@suse.de>
3580
3581         * tree-ssa-structalias.c (solve_constraints): Build succ graph
3582         as late as possible.
3583
3584 2011-04-28  Richard Guenther  <rguenther@suse.de>
3585
3586         * tree-ssa-structalias.c (dump_constraint): Don't end the line.
3587         (debug_constraint): Do it here.
3588         (dump_constraints): And here.
3589         (rewrite_constraints): And here.
3590         (dump_constraint_edge): Remove.
3591         (dump_constraint_graph): Rewrite to produce DOT output.
3592         (solve_constraints): Build succ graph as late as possible.
3593         Dump constraint graphs before and after solving.
3594
3595 2011-04-28  Richard Guenther  <rguenther@suse.de>
3596
3597         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
3598         New function split out from ...
3599         (find_func_aliases): ... here.  Call it.
3600         (find_func_aliases_for_call): Likewise.
3601
3602 2011-04-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3603
3604         * internal-fn.h (internal_fn_name_array): Declare.
3605         (internal_fn_flags_array): Likewise.
3606
3607 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3608
3609         * config/i386/i386.md (ssemodesuffix):  Merge with ssevecsize,
3610         ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
3611         Move from sse.md.
3612         (ssemodefsuffix): Remove.
3613         (ssevecmodesuffix): New mode attribute.
3614         (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
3615         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3616         *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3617         *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3618         *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
3619         *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
3620         *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
3621         ssemodesuffix mode attribute.
3622         (float splitters): Use ssevecmodesuffix mode attribute.
3623         * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
3624         (sseinsmode): Rename from avxvecmode.
3625         (avxsizesuffix): Rename from avxmodesuffix.
3626         (sseintvecmode): Rename from avxpermvecmode.
3627         (ssedoublevecmode): Rename from ssedoublesizemode.
3628         (ssehalfvecmode): Rename from avxhalfvecmode.
3629         (ssescalarmode): Rename from avxscalarmode.
3630         (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
3631         templates for ssemodesuffix mode attribute.
3632         (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
3633         mode attribute.
3634
3635         Adjust RTX patterns globally for renamed mode attributes.
3636
3637 2011-04-27  Jan Hubcika  <jh@suse.cz>
3638
3639         * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
3640         * ipa-inline-analysis.c: Include alloc-pool.h.
3641         (edge_predicate_pool): New.
3642         (trye_predicate_p): New function
3643         (false_predicate_p): New function.
3644         (add_clause): Sanity check that false clauses are "optimized";
3645         never add clauses to predicate that is already known to be false.
3646         (and_predicate): Use flase_predicate_p.
3647         (evaulate_predicate): Rename to ...
3648         (evaluate_predicate): ... this one; update all callers; assert
3649         that false is not listed among possible truths.
3650         (dump_predicate): Use true_predicate_p.
3651         (account_size_time): Use false_predicate_p.
3652         (evaulate_conditions_for_edge): Rename to ...
3653         (evaluate_conditions_for_edge) ... this one.
3654         (edge_set_predicate): New function.
3655         (inline_edge_duplication_hook): Duplicate edge predicates.
3656         (inline_edge_removal_hook): Free edge predicates.
3657         (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
3658         (dump_inline_summary): Update.
3659         (estimate_function_body_sizes): Set edge predicates.
3660         (estimate_calls_size_and_time): Handle predicates.
3661         (estimate_callee_size_and_time): Update.
3662         (remap_predicate): Add toplev_predicate; update comment.
3663         (remap_edge_predicates): New function.
3664         (inline_merge_summary): Compute toplev predicate; update.
3665         (read_predicate): New function.
3666         (read_inline_edge_summary): Use it.
3667         (inline_read_section): Likewise.
3668         (write_predicate): New function.
3669         (write_inline_edge_summary): Use it.
3670         (inline_write_summary): Likewise.
3671         (inline_free_summary): Free alloc pool and edge summary vec.
3672
3673 2011-04-27  Richard Guenther  <rguenther@suse.de>
3674
3675         * tree-ssa-structalias.c (changed_count): Remove.
3676         (changed): Use a bitmap.
3677         (unify_nodes): Adjust.
3678         (do_sd_constraint): Likewise.
3679         (do_ds_constraint): Likewise.
3680         (do_complex_constraint): Likewise.
3681         (solve_graph): Likewise.
3682
3683 2011-04-27  Jan Hubicka  <jh@suse.cz>
3684
3685         * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3686
3687 2011-04-27  Uros Bizjak  <ubizjak@gmail.com>
3688
3689         * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3690         (avx_vperm2f128_*_operand): Ditto.
3691         * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3692         Use avx_vpermilp_parallel in insn condition.
3693         (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3694         Use avx_vperm2f128_parallel in insn condition.
3695
3696 2011-04-27  Richard Guenther  <rguenther@suse.de>
3697
3698         * Makefile.in (tree-ssa-structalias.o): Remove
3699         gt-tree-ssa-structalias.h dependency.
3700         (GTFILES): Remove tree-ssa-structalias.c.
3701         * tree.c (allocate_decl_uid): New function.
3702         (make_node_stat): Use it.
3703         (copy_node_stat): Likewise.
3704         * tree.h (allocate_decl_uid): Declare.
3705         * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3706         * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3707         * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
3708         * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
3709         * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3710         (struct heapvar_map): Likewise.
3711         (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3712         heapvar_insert): Likewise.
3713         (make_heapvar_for): Rename to ...
3714         (make_heapvar): ... this.  Simplify.
3715         (fake_var_decl_obstack): New global var.
3716         (build_fake_var_decl): New function.
3717         (make_constraint_from_heapvar): Adjust.
3718         (handle_lhs_call): Likewise.
3719         (create_function_info_for): Likewise.
3720         (intra_create_variable_infos): Likewise.
3721         (init_alias_vars): Allocate fake_var_decl_obstack.
3722         (init_alias_heapvars, delete_alias_heapvars): Remove.
3723         (compute_points_to_sets): Do not call init_alias_heapvars.
3724         (ipa_pta_execute): Likewise.
3725         (delete_points_to_sets): Free fake_var_decl_obstack.
3726
3727 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3728
3729         * config/spu/divmovti4.c (union qword_UTItype): New data type.
3730         (si_from_UTItype, si_to_UTItype): New functions.
3731         (__udivmodti4): Use them to implement type-punning.
3732         * config/spu/multi3.c (union qword_TItype): New data type.
3733         (si_from_TItype, si_to_TItype): New functions.
3734         (__multi3): Use them to implement type-punning.
3735
3736 2011-04-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3737
3738         * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3739
3740 2011-04-27  Jan Hubicka  <jh@suse.cz>
3741
3742         * ipa-prop.c (function_insertion_hook_holder): New holder.
3743         (ipa_add_new_function): New function.
3744         (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3745         Register/deregister holder.
3746
3747 2011-04-27  Richard Guenther  <rguenther@suse.de>
3748
3749         PR tree-optimization/48772
3750         * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
3751
3752 2011-04-27  Richard Guenther  <rguenther@suse.de>
3753
3754         * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3755         TARGET_MEM_REF handling.
3756
3757 2011-04-27  Nick Clifton  <nickc@redhat.com>
3758
3759         * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3760         ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3761         (REG_CLASS_NAMES): Likewise.
3762         (REG_CLASS_CONTENTS): Likewise.
3763         (EVEN_ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3764         (ACC_REGS): New macro.  Alias for QUAD_ACC_REGS.
3765         (FEVEN_REGS): New macro.  Alias for QUAD_ACC_REGS.
3766         (FPR_REGS): New macro.  Alias for QUAD_ACC_REGS.
3767         (EVEN_REGS): New macro.  Alias for QUAD_REGS.
3768         * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3769         duplicate register classes.
3770         (frv_class_likely_spilled_p): Likewise.
3771         (frv_register_move_cost): Likewise.
3772
3773         * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3774         end of the regno_reg_class array.
3775
3776 2011-04-27  Jakub Jelinek  <jakub@redhat.com>
3777
3778         PR c/48742
3779         * c-typeck.c (build_binary_op): Don't wrap arguments if
3780         int_operands is true.
3781
3782 2011-04-26  Kaz Kojima  <kkojima@gcc.gnu.org>
3783
3784         PR target/48767
3785         * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3786         targetm.calls.must_pass_in_stack for void type.
3787
3788 2011-04-26  Jan Hubicka  <jh@suse.cz>
3789
3790         * cgraphbuild.c (build_cgraph_edges): Update call
3791         of cgraph_create_edge and cgraph_create_indirect_edge.
3792         * cgraph.c (cgraph_create_edge_including_clones,
3793         cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3794         cgraph_update_edges_for_call_stmt_node): Do not take nest
3795         argument; do not initialize call_stmt_size/time.
3796         (dump_cgraph_node): Do not dump nest.
3797         (cgraph_clone_edge): Do not take loop_nest argument;
3798         do not propagate it; do not clone call_stmt_size/time.
3799         (cgraph_clone_node): Likewise.
3800         (cgraph_create_virtual_clone): Update.
3801         * cgraph.h (struct cgraph_edge): Remove
3802         call_stmt_size/call_stmt_time/loop_nest.
3803         (cgraph_create_edge, cgraph_create_indirect_edge,
3804         cgraph_create_edge_including_clones, cgraph_clone_node): Update
3805         prototype.
3806         * tree-emutls.c (gen_emutls_addr): Update.
3807         * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3808         loop_nest; handle indirect calls, too.
3809         (clone_inlined_nodes): Do not care about updating inline summaries.
3810         * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3811         * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3812         stream call_stmt_size/call_stmt_time/loop_nest.
3813         * ipa-inline.c (edge_badness): Update.
3814         (ipa_inline): dump summaries after inlining.
3815         * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
3816         New.
3817         (inline_edge_summary): New function.
3818         * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3819         (inline_edge_removal_hook): Handle edge summaries.
3820         (inline_edge_duplication_hook): New hook.
3821         (inline_summary_alloc): Alloc hooks.
3822         (initialize_growth_caches): Do not register removal hooks.
3823         (free_growth_caches); Do not free removal hook.
3824         (dump_inline_edge_summary): New function.
3825         (dump_inline_summary): Use it.
3826         (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3827         (inline_update_callee_summaries): New function.
3828         (inline_merge_summary): Use it.
3829         (do_estimate_edge_time, do_estimate_edge_growth): Update.
3830         (read_inline_edge_summary): New function.
3831         (inline_read_section): Use it.
3832         (write_inline_edge_summary): New function.
3833         (inline_write_summary): Use it.
3834         (inline_free_summary): Free edge new holders.
3835         * tree-inline.c (copy_bb): Update.
3836
3837 2011-04-26  Jason Merrill  <jason@redhat.com>
3838
3839         * tree-eh.c (lower_try_finally_switch): Create the label along with
3840         the CASE_LABEL_EXPR.
3841
3842 2011-04-26  David S. Miller  <davem@davemloft.net>
3843             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3844
3845         * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3846         * configure: Regenerate.
3847
3848 2011-04-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3849
3850         PR target/48258
3851         * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3852         reduction.
3853         (VEC_reduc): New code iterator and splitters for vector reduction.
3854         (VEC_reduc_name): Ditto.
3855         (VEC_reduc_rtx): Ditto.
3856         (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3857         (reduc_<VEC_reduc_name>_v4sf): Ditto.
3858
3859         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3860         support for extracting SF on VSX.
3861
3862         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3863         generating xscvspdp.
3864         (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3865         (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3866         double add, minimum, maximum vector reduction.
3867         (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3868         (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3869         optimize double vector reduction.
3870         (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3871
3872 2011-04-26  Joseph Myers  <joseph@codesourcery.com>
3873
3874         * config/fr30/fr30.h (inhibit_libc): Don't define.
3875         * config/m32r/m32r-protos.h: Correct comment.
3876         * config/v850/v850.h (GHS_default_section_names,
3877         GHS_current_section_names): Use tree, not union tree_node *.
3878
3879 2011-04-26  Xinliang David Li  <davidxl@google.com>
3880
3881         * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
3882         * c-family/c-opts.c (c_common_handle_option): Set
3883         warn_maybe_uninitialized.
3884         * opts.c (common_handle_option): Ditto.
3885         * common.opt:  New option.
3886         * tree-ssa.c (warn_uninit): Add one more parameter.
3887         (warn_uninitialized_var): Pass warning code.
3888         * tree-flow.h: Interface change.
3889
3890
3891 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3892
3893         * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
3894         (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3895         (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3896
3897 2011-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3898
3899         * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3900         * config/mips/mips.opt (mmips-tfile): Remove.
3901
3902         * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3903         mips-tdump reference to ...
3904         (Specific, alpha*-dec-osf5.1): ... here.  Adapt for Tru64 UNIX.
3905         * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3906         reference by Tru64 UNIX.
3907
3908 2011-04-26  Jakub Jelinek  <jakub@redhat.com>
3909
3910         PR debug/48768
3911         * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3912         is error_mark_node, set value to NULL.
3913
3914         PR tree-optimization/48734
3915         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3916         if return value from maybe_fold_*_comparsions isn't something
3917         the code is prepared to handle.
3918
3919 2011-04-26  Uros Bizjak  <ubizjak@gmail.com>
3920
3921         * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3922         mode check.
3923         (ext_QIreg_nomode_operands): Remove.
3924         * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3925         (*andsi_1): Ditto.
3926         (*andhi_1): Ditto.
3927
3928 2011-04-26  Andrew Stubbs  <ams@codesourcery.com>
3929
3930         * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3931
3932 2011-04-26  Richard Guenther  <rguenther@suse.de>
3933
3934         * c-typeck.c (build_unary_op): Do not expand array-refs via
3935         pointer arithmetic.  Only adjust qualifiers for function types.
3936
3937 2011-04-26  Richard Guenther  <rguenther@suse.de>
3938
3939         PR middle-end/48694
3940         * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3941         * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
3942         compare the operands with OEP_CONSTANT_ADDRESS_OF.  Treat trees
3943         with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
3944
3945 2011-04-25  Paolo Carlini  <paolo.carlini@oracle.com>
3946
3947         * doc/extend.texi: Document __underlying_type.
3948
3949 2011-04-25  Segher Boessenkool  <segher@kernel.crashing.org>
3950
3951         * config/rs6000/titan.md (automata_option "progress"): Remove.
3952
3953 2011-04-25  Jeff Law  <law@redhat.com>
3954
3955         * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3956
3957 2011-04-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
3958
3959         * system.h (ENUM_BITFIELD): Remove.
3960
3961 2011-04-25  Maxim Kuvyrkov  <maxim@codesourcery.com>
3962             Eric Botcazou  <ebotcazou@adacore.com>
3963
3964         * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3965         for STORE_FLAG_VALUE==-1 case.
3966
3967 2011-04-24  Richard Sandiford  <richard.sandiford@linaro.org>
3968
3969         PR target/43804
3970         * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3971         LEGITIMATE_PIC_OPERAND_P.
3972
3973 2011-04-24  Jan Hubicka  <jh@suse.cz>
3974
3975         * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3976         WPA hack.
3977         * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3978         ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3979         ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
3980         * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3981         (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3982         Sanity check predicate length.
3983         (remap_predicate): Likewise; sanity check jump functions.
3984         (inline_read_section, inline_write_summary): Sanity check
3985         predicate length.
3986
3987 2011-04-24  Paolo Carlini  <paolo.carlini@oracle.com>
3988
3989         PR other/48748
3990         * doc/extend.texi (Type Traits): Document __is_standard_layout,
3991         __is_literal_type, and __is_trivial; update throughout about
3992         possibly cv-qualified void types.
3993
3994 2011-04-24  Gerald Pfeifer  <gerald@pfeifer.com>
3995
3996         * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3997         testsuite and make it version agnostic.
3998
3999 2011-04-22  Jan Hubicka  <jh@suse.cz>
4000
4001         * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
4002
4003 2011-04-23  Jakub Jelinek  <jakub@redhat.com>
4004
4005         PR c/48685
4006         * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
4007         to VOID_TYPE even around MODIFY_EXPR.
4008
4009 2011-04-22  Mike Stump  <mikestump@comcast.net>
4010
4011         * gensupport.c (read_md_rtx): Fix typo in comment.
4012         * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
4013         comment.
4014
4015 2011-04-22  Jan Hubicka  <jh@suse.cz>
4016
4017         * gengtype.c (open_base_files): Add ipa-inline.h include.
4018         * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
4019         ipa-prop.c; update all uses.
4020         * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
4021         * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
4022         merge summary of inlined function into former caller.
4023         * ipa-inline.c (max_benefit): Remove.
4024         (edge_badness): Compensate for removal of benefits.
4025         (update_caller_keys): Use
4026         reset_node_growth_cache/reset_edge_growth_cache.
4027         (update_callee_keys): Likewise.
4028         (update_all_callee_keys): Likewise.
4029         (inline_small_functions): Do not collect max_benefit; do not reset
4030         estimated_growth; call free_growth_caches and initialize_growth_caches.
4031         * ipa-inline.h (struct condition, type clause_t, struct predicate,
4032         struct size_time_entry): New structures.
4033         (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
4034         (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
4035         and estimated_growth.
4036         (edge_growth_cache_entry): New structure.
4037         (node_growth_cache, edge_growth_cache): New global vars.
4038         (estimate_growth): Turn into inline.
4039         (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
4040         initialize_growth_caches, free_growth_caches): Declare.
4041         (estimate_edge_growth): Rewrite.
4042         (estimate_edge_time): Implement as inline cache lookup.
4043         (reset_node_growth_cache, reset_edge_growth_cache): New inline
4044         functions.
4045         (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
4046         (NUM_CONDITIONS): New constant.
4047         (predicate_conditions): New enum.
4048         (IS_NOT_CONSTANT): New constant.
4049         (edge_removal_hook_holder): New var.
4050         (node_growth_cache, edge_growth_cache): New global vars.
4051         (true_predicate, single_cond_predicate, false_predicate,
4052         not_inlined_predicate, add_condition, add_clause, and_predicates,
4053         or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
4054         dump_clause, dump_predicate, account_size_time,
4055         evaulate_conditions_for_edge): New functions.
4056         (inline_summary_alloc): Move to heap.
4057         (inline_node_removal_hook): Clear condition and entry vectors.
4058         (inline_edge_removal_hook): New function.
4059         (initialize_growth_caches, free_growth_caches): New function.
4060         (dump_inline_summary): Update.
4061         (edge_execution_predicate): New function.
4062         (will_be_nonconstant_predicate): New function.
4063         (estimate_function_body_sizes): Compute BB and constantness predicates.
4064         (compute_inline_parameters): Do not clear estimated_growth.
4065         (estimate_edge_size_and_time): New function.
4066         (estimate_calls_size_and_time): New function.
4067         (estimate_callee_size_and_time): New function.
4068         (remap_predicate): New function.
4069         (inline_merge_summary): New function.
4070         (do_estimate_edge_time): New function based on...
4071         (estimate_edge_time): ... this one.
4072         (do_estimate_edge_growth): New function.
4073         (do_estimate_growth): New function based on....
4074         (estimate_growth): ... this one.
4075         (inline_analyze_function): Analyze after deciding on jump functions.
4076         (inline_read_section): New function.
4077         (inline_read_summary): Use it.
4078         (inline_write_summary): Write all the new data.
4079         * ipa-prop.c (ipa_get_param_decl_index): Export.
4080         (ipa_lattice_from_jfunc): Move here from ipa-cp.c
4081         * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
4082         Declare.
4083         (ipa_get_lattice): Move here from ipa-cp.c
4084         * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
4085         * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
4086         * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
4087         cgraph_edge_inlinable_p): Remove.
4088         * cgraphunit.c: Include ipainline.h
4089         (cgraph_process_new_functions): Update call of
4090         compute_inline_parameters.
4091
4092 2011-04-22  Richard Guenther  <rguenther@suse.de>
4093
4094         * tree.c (build_int_cst): Properly create canonicalized integer
4095         constants.
4096         (build_int_cst_type): Remove scary comments.
4097
4098 2011-04-22  Xinliang David Li  <davidxl@google.com>
4099
4100         * toplev.c (process_options): Enable -Werror=coverage-mismatch
4101         by default when -Wno-error is not specified.
4102         * opts-global.c (decode_options): Remove call to
4103         control_warning_options.
4104
4105 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
4106
4107         PR tree-optimization/48717
4108         * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
4109         ~A + A optimizations use build_int_cst_type instead of build_int_cst.
4110
4111 2011-04-22  Joseph Myers  <joseph@codesourcery.com>
4112
4113         * config/bfin/bfin-protos.h (Mmode): Don't define.  Expand
4114         definition where used.
4115
4116 2011-04-22  Jakub Jelinek  <jakub@redhat.com>
4117
4118         PR c/48716
4119         * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
4120         TREE_STATIC variables declared inside of some OpenMP construct.
4121
4122 2011-04-22  Martin Jambor  <mjambor@suse.cz>
4123
4124         PR middle-end/48585
4125         * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
4126
4127 2011-04-22  Alexander Monakov  <amonakov@ispras.ru>
4128
4129         PR c/36750
4130         * c-typeck.c (pop_init_level): Do not warn about initializing
4131         with ` = {0}'.
4132
4133 2011-04-22  Alan Modra  <amodra@gmail.com>
4134
4135         * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
4136         when returning call_cookie.
4137         (rs6000_function_ok_for_sibcall): Allow sibcalls via function
4138         pointers, to functions with no more vector args than the current
4139         function, and some non-local calls for ABI_V4.
4140         * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
4141         sibcall_nonlocal_aix64): Combine to ..
4142         (sibcall_nonlocal_aix<mode>): ..this.  Handle function pointer calls.
4143         (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
4144         (sibcall_value_nonlocal_aix<mode>): ..likewise.
4145         (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
4146         (sibcall_value_nonlocal_sysv<mode>): Likewise.  Correct call cookie
4147         operand.
4148         * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
4149         sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
4150         sibcall_value_symbolic_64): Delete.
4151
4152 2011-04-21  Xinliang David Li  <davidxl@google.com>
4153
4154         * cgraph.h: Remove pid.
4155         * cgraph.c: Remove pid.
4156         * value-prof.c (init_node_map): New function.
4157         (del_node_map): New function.
4158         (find_func_by_funcdef_no): New function.
4159         (gimple_ic_transform): Call new function.
4160         * cgraphunit.c (cgraph_finalize_function): Remove pid.
4161         * function.c (get_last_funcdef_no): New function.
4162         * function.h (get_last_funcdef_no): New function.
4163         * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
4164         to libgcov function.
4165         (tree-profiling): Call node map init and delete function.
4166
4167 2011-04-21  Ian Lance Taylor  <iant@google.com>
4168
4169         * godump.c (go_format_type): Use exported Go name for anonymous
4170         field name.
4171
4172 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4173
4174         * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
4175         Call builtin_function_type_list instead of builtin_function_type.
4176         (UNARY, BINARY, TRINARY, QUAD): Likewise.
4177
4178 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4179
4180         * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
4181         build_function_type_list instead of build_function_type.
4182         Delete variable `endlink'.
4183
4184 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4185
4186         * config/s390/s390.c (s390_init_builtins): Call
4187         build_function_type_list instead of build_function_type.
4188
4189 2011-04-21  Nathan Froyd  <froydnj@codesourcery.com>
4190
4191         * config/ia64/ia64.c (ia64_init_builtins): Call
4192         build_function_type_list instead of builtin_function_type.
4193
4194 2011-04-21  Easwaran Raman  <eraman@google.com>
4195
4196         * cfgexpand.c (stack_var): Remove OFFSET...
4197         (add_stack_var): ...and its reference here...
4198         (expand_stack_vars): ...and here.
4199         (stack_var_cmp): Sort by descending order of size.
4200         (partition_stack_vars): Change heuristic.
4201         (union_stack_vars): Fix to reflect changes in partition_stack_vars.
4202         (dump_stack_var_partition): Add newline after each partition.
4203
4204 2011-04-21  Dimitrios Apostolou  <jimis@gmx.net>
4205             Jeff Law  <law@redhat.com>
4206
4207         * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
4208         * gengtype.c (matching_file_name_substitute): Likewise.
4209
4210 2011-04-21  Richard Guenther  <rguenther@suse.de>
4211
4212         PR lto/48703
4213         * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
4214
4215 2011-04-21  Eric Botcazou  <ebotcazou@adacore.com>
4216
4217         * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
4218
4219 2011-04-21  Richard Guenther  <rguenther@suse.de>
4220
4221         * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
4222         file name.
4223
4224 2011-04-21  Richard Guenther  <rguenther@suse.de>
4225
4226         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
4227         MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
4228         Use DECL_P, not SSA_VAR_P.
4229         (ptr_derefs_may_alias_p): Likewise.
4230         (ptr_deref_may_alias_ref_p_1): Likewise.
4231         (decl_refs_may_alias_p): Likewise.
4232         (refs_may_alias_p_1): Likewise.
4233         (ref_maybe_used_by_call_p_1): Likewise.
4234         (call_may_clobber_ref_p_1): Likewise.
4235         (indirect_ref_may_alias_decl_p): Assume indirect refrences
4236         are either MEM_REF or TARGET_MEM_REF.
4237         (indirect_refs_may_alias_p): Likewise.
4238         * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
4239         for MEM_EXPR of indirect calls.
4240
4241 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4242
4243         * vmsdbgout.c (write_srccorr): Compute file length from the string.
4244         (dst_file_info_struct): Remove flen field.
4245         (lookup_filename): Remove code that set flen field.
4246
4247 2011-04-21  Tristan Gingold  <gingold@adacore.com>
4248
4249         * config/ia64/ia64.c (ia64_start_function): Add a guard.
4250
4251 2011-04-21  Uros Bizjak  <ubizjak@gmail.com>
4252
4253         PR target/48708
4254         * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
4255         vec_extract and vec_concat for non-SSE4_1 targets.
4256
4257 2011-04-21  Richard Guenther  <rguenther@suse.de>
4258
4259         * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
4260         return statements.
4261
4262 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4263
4264         * config/i386/cygming.h (union tree_node, TREE): Don't define or
4265         undefine.
4266         (FILE): Don't undefine.
4267
4268 2011-04-21  Joseph Myers  <joseph@codesourcery.com>
4269
4270         * config/alpha/alpha.c (struct machine_function): Use rtx, not
4271         struct rtx_def *.
4272         * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
4273         struct rtx_def *.
4274         * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
4275         * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
4276         * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
4277         rtx_def *.
4278         * config/m32c/m32c-protos.h (MM, UINT): Don't define.  Expand
4279         definitions where used.
4280         * config/microblaze/microblaze.h (struct microblaze_args): Use
4281         rtx, not struct rtx_def *.
4282         * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
4283         rtx_def *.
4284         * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
4285         * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
4286         * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
4287         not struct rtx_def *.
4288         * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
4289         struct rtx_def *.
4290         * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
4291         rtx_def *.
4292         * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
4293
4294 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4295
4296         * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
4297         operand_equal_p to compare DR_BASE_ADDRESSes.
4298         (vect_check_interleaving): Likewise.
4299
4300 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4301
4302         PR target/46329
4303         * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
4304         for all Neon struct constants.
4305
4306 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4307
4308         * target.def (legitimate_constant_p): New hook.
4309         * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
4310         (TARGET_LEGITIMATE_CONSTANT_P): ...this.
4311         * doc/tm.texi: Regenerate.
4312         * hooks.h (hook_bool_mode_rtx_true): Declare.
4313         * hooks.c (hook_bool_mode_rtx_true): Define.
4314         * system.h (LEGITIMATE_CONSTANT_P): Poison.
4315         * calls.c (precompute_register_parameters): Replace uses of
4316         LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
4317         (emit_library_call_value_1): Likewise.
4318         * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
4319         (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
4320         * ira-costs.c (scan_one_insn): Likewise.
4321         * recog.c (general_operand, immediate_operand): Likewise.
4322         * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
4323         * reload1.c (init_eliminable_invariants): Likewise.
4324
4325         * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
4326         mode argument.
4327         * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
4328         * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
4329         argument.
4330         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4331         * config/alpha/predicates.md (input_operand): Update call to
4332         alpha_legitimate_constant_p.
4333
4334         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
4335         * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
4336         (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
4337         * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4338         (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
4339         (arm_legitimate_constant_p): New functions.
4340         (arm_cannot_force_const_mem): Make static.
4341
4342         * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
4343
4344         * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
4345         * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
4346         * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
4347         instead of bfin_legitimate_constant_p.
4348         (bfin_legitimate_constant_p): Make static.  Add a mode argument.
4349         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4350
4351         * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
4352
4353         * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
4354
4355         * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
4356         * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
4357         * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4358         (frv_legitimate_constant_p): Make static.  Add a mode argument.
4359
4360         * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
4361         * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
4362         * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
4363
4364         * config/i386/i386-protos.h (legitimate_constant_p): Delete.
4365         * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
4366         * config/i386/i386.c (legitimate_constant_p): Rename to...
4367         (ix86_legitimate_constant_p): ...this.  Make static.  Add a mode
4368         argument.
4369         (ix86_cannot_force_const_mem): Update accordingly.
4370         (ix86_legitimate_address_p): Likewise.
4371         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4372         * config/i386/i386.md: Update commentary.
4373
4374         * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
4375         * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
4376         * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4377         (ia64_legitimate_constant_p): Make static.  Add a mode argument.
4378
4379         * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
4380
4381         * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
4382         * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
4383         * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4384         (lm32_legitimate_constant_p): Make static.  Add a mode argument.
4385
4386         * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
4387         * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
4388         * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
4389
4390         * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
4391         * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4392         (m32r_legitimate_constant_p): New function.
4393
4394         * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
4395         * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
4396         LEGITIMATE_CONSTANT_P.
4397         (LEGITIMATE_CONSTANT_P): Delete.
4398         * config/m68k/m68k.c (m68k_expand_prologue): Call
4399         m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
4400         (m68k_legitimate_constant_p): New function.
4401         * config/m68k/m68k.md: Update comments.
4402
4403         * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
4404         * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4405         (mcore_legitimate_constant_p): New function.
4406
4407         * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
4408         * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
4409         * config/mep/mep.c (mep_legitimate_constant_p): Make static.
4410         Add a mode argument.
4411         (mep_legitimate_address): Update accordingly.
4412         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4413
4414         * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
4415         Delete.
4416         * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
4417         * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
4418         static.  Check OP's mode for VOIDmode.
4419         (microblaze_legitimate_constant_p): New function.
4420         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4421
4422         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
4423         * config/mips/mips.c (mips_legitimate_constant_p): New function.
4424         (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
4425         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4426         * config/mips/predicates.md: Update comments.
4427
4428         * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
4429         * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
4430         * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4431         (mmix_legitimate_constant_p): Make static, return a bool, and take
4432         a mode argument.
4433         (mmix_print_operand_address): Update accordingly.
4434
4435         * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
4436         Delete.
4437         * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
4438         * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
4439         static.  Add a mode argument.
4440         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4441
4442         * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
4443
4444         * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
4445         * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4446         (pa_legitimate_constant_p): New function.
4447
4448         * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
4449
4450         * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
4451         * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4452         (pdp11_legitimate_constant_p): New function.
4453
4454         * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
4455         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4456         (rs6000_legitimate_constant_p): New function.
4457
4458         * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
4459         (rx_legitimate_constant_p): ...this.
4460         * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
4461         * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
4462         (rx_legitimate_constant_p): ...this.
4463         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4464         * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
4465
4466         * config/s390/s390-protos.h (legitimate_constant_p): Delete.
4467         * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
4468         * config/s390/s390.c (legitimate_constant_p): Rename to...
4469         (s390_legitimate_constant_p): ...this.  Make static, return a bool,
4470         and add a mode argument.
4471         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4472
4473         * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
4474
4475         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
4476         * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4477         (sh_legitimate_constant_p): New function.
4478
4479         * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
4480         * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
4481         * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4482         (legitimate_constant_p): Rename to...
4483         (sparc_legitimate_constant_p): ...this.  Make static.  Add a mode
4484         argument.
4485         (constant_address_p): Update accordingly.
4486
4487         * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
4488         argument and return a bool.
4489         * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
4490         * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4491         (spu_legitimate_constant_p): Add a mode argument and return a bool.
4492         (spu_rtx_costs): Update accordingly.
4493         * config/spu/predicates.md (vec_imm_operand): Likewise.
4494
4495         * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
4496
4497         * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
4498         * config/v850/v850.c (v850_legitimate_constant_p): New function.
4499         (TARGET_LEGITIMATE_CONSTANT_P): Define.
4500
4501         * config/vax/vax-protos.h (legitimate_constant_p): Delete.
4502         * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
4503         * config/vax/vax.c (legitimate_constant_p): Likewise.
4504
4505         * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
4506         * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
4507         (xtensa_legitimate_constant_p): New function.
4508
4509 2011-04-21  Richard Sandiford  <richard.sandiford@linaro.org>
4510
4511         * target.def (cannot_force_const_mem): Add a mode argument.
4512         * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
4513         * doc/tm.texi: Regenerate.
4514         * hooks.h (hook_bool_mode_rtx_false): Declare.
4515         * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
4516         (hook_bool_mode_const_rtx_true): Likewise.
4517         (hook_bool_mode_rtx_false): New function.
4518         * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
4519         to be non-VOID.  Update call to cannot_force_const_mem.
4520         (find_reloads): Update accordingly.
4521         * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
4522         * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
4523         argument.
4524         * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
4525         * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
4526         * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
4527         * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
4528         * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
4529         * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
4530         * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
4531         * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4532         (m68k_cannot_force_const_mem): ...this new function.
4533         * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
4534         argument.
4535         (mips_const_insns, mips_legitimize_const_move): Update calls.
4536         (mips_secondary_reload_class): Likewise.
4537         * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
4538         (pa_cannot_force_const_mem): ...this new function.
4539         * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
4540         (rs6000_cannot_force_const_mem): ...this new function.
4541         * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
4542         argument.
4543         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
4544         * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
4545         to...
4546         (xtensa_cannot_force_const_mem): ...this new function.
4547
4548 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4549
4550         * config/mips/mips.c (mips16_build_function_stub): Call
4551         build_function_type_list instead of build_function_type.
4552         (mips16_build_call_stub): Likewise.
4553
4554 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4555
4556         * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
4557         instead of build_function_type.
4558
4559 2011-04-20  Nathan Froyd  <froydnj@codesourcery.com>
4560
4561         * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
4562         instead of build_function_type.
4563
4564 2011-04-20  Uros Bizjak  <ubizjak@gmail.com>
4565
4566         PR target/48678
4567         * config/i386/i386.md (insv): Change operand 0 constraint to
4568         "register_operand".  Change operand 1 and 2 constraint to
4569         "const_int_operand".  Expand to pinsr{b,w,d,q} * when appropriate.
4570         * config/i386/sse.md (sse4_1_pinsrb): Export.
4571         (sse2_pinsrw): Ditto.
4572         (sse4_1_pinsrd): Ditto.
4573         (sse4_1_pinsrq): Ditto.
4574         * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
4575         * config/i386/i386.c (ix86_expand_pinsr): New.
4576
4577 2011-04-20  Easwaran Raman  <eraman@google.com>
4578
4579         * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
4580         containing union type only with -fstrict-aliasing.
4581
4582 2011-04-20  Jim Meyering  <meyering@redhat.com>
4583
4584         Remove useless if-before-free tests.
4585         * calls.c (expand_call, save_area): Likewise.
4586         * cfgcleanup.c (try_forward_edges): Likewise.
4587         * collect2.c (collect_execute): Likewise.
4588         * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
4589         * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
4590         * coverage.c (coverage_checksum_string): Likewise.
4591         * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
4592         * cselib.c (cselib_init): Likewise.
4593         * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
4594         (df_set_clean_cfg): Likewise.
4595         * function.c (free_after_compilation): Likewise.
4596         * gcc.c (do_spec_1, main): Likewise.
4597         * gcov.c (create_file_names): Likewise.
4598         * gensupport.c (identify_predicable_attribute): Likewise.
4599         * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
4600         * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
4601         * haifa-sched.c (haifa_finish_h_i_d): Likewise.
4602         * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
4603         * ipa-pure-const.c (local_pure_const): Likewise.
4604         * ipa-reference.c (propagate): Likewise.
4605         * ira-costs.c (free_ira_costs): Likewise.
4606         * ira.c (free_register_move_costs, build_insn_chain): Likewise.
4607         * matrix-reorg.c (mat_free): Likewise.
4608         * prefix.c (get_key_value): Likewise.
4609         * profile.c (compute_value_histograms): Likewise.
4610         * reload1.c (free_reg_equiv): Likewise.
4611         * sched-deps.c (free_deps): Likewise.
4612         * sel-sched-ir.c (fence_clear): Likewise.
4613         * sese.c (set_rename, if_region_set_false_region): Likewise.
4614         * tree-data-ref.c (free_rdg): Likewise.
4615         * tree-eh.c (lower_try_finally): Likewise.
4616         * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
4617         * tree-ssa-live.c (delete_var_map): Likewise.
4618         * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
4619         * tree-ssa-pre.c (phi_trans_add): Likewise.
4620
4621 2011-04-20  Jakub Jelinek  <jakub@redhat.com>
4622
4623         PR tree-optimization/48611
4624         * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
4625         beyond ERT_MUST_NOT_THROW region.
4626
4627 2011-04-20  Catherine Moore  <clm@codesourcery.com>
4628
4629         * config/mips/mips.opt (mfix-24k): New.
4630         * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
4631         * config/mips/mips.md (length): Increase by 4 for stores if
4632         fixing 24K errata.
4633         * config/mips/mips.c (mips_reorg_process_insns): Do not allow
4634         all noreorder if fixing 24K errata.
4635         * doc/invoke.texi: Document mfix-24k.
4636
4637 2011-04-20  Chung-Lin Tang  <cltang@codesourcery.com>
4638
4639         * config/arm/arm.c (arm_legitimize_reload_address): For NEON
4640         quad-word modes, reduce to 9-bit index range when above 1016 limit.
4641
4642 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4643
4644         * config/arm/arm.c (arm_gen_constant): Move movw support ....
4645         (const_ok_for_op): ... to here.
4646
4647 2011-04-20  Kai Tietz  <ktietz@redhat.com>
4648
4649         * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
4650         and (X && !Y) | (!X && Y) optimization to (X ^ Y).
4651
4652 2011-04-20  Andrew Stubbs  <ams@codesourcery.com>
4653
4654         * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
4655
4656 2011-04-20  Richard Guenther  <rguenther@suse.de>
4657
4658         PR tree-optimization/47892
4659         * tree-if-conv.c (if_convertible_stmt_p): Const builtins
4660         are if-convertible.
4661
4662 2011-04-20  Eric Botcazou  <ebotcazou@adacore.com>
4663
4664         * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
4665
4666 2011-04-20  Tristan Gingold  <gingold@adacore.com>
4667
4668         * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
4669
4670 2011-04-20  Georg-Johann Lay  <avr@gjlay.de>
4671
4672         PR target/18145
4673
4674         * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
4675         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
4676         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
4677         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
4678         (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
4679
4680         * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4681         New prototype.
4682
4683         * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4684         (avr_asm_named_section, avr_asm_output_aligned_common,
4685         avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4686         New functions to update...
4687         (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4688         (avr_asm_init_sections): Overwrite section callbacks for
4689         data_section, bss_section.
4690         (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4691         from here to...
4692         (avr_file_end): ...here.
4693
4694 2011-04-20  Richard Guenther  <rguenther@suse.de>
4695
4696         PR middle-end/48695
4697         * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
4698         objects and types here.  Adjust for their offset before comparing.
4699
4700 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4701
4702         * tree-vect-stmts.c (vectorizable_store): Only chain one related
4703         statement per copy.
4704
4705 2011-04-20  Richard Sandiford  <richard.sandiford@linaro.org>
4706
4707         * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4708         (GIMPLE_H): Include $(INTERNAL_FN_H).
4709         (OBJS-common): Add internal-fn.o.
4710         (internal-fn.o): New rule.
4711         * internal-fn.def: New file.
4712         * internal-fn.h: Likewise.
4713         * internal-fn.c: Likewise.
4714         * gimple.h: Include internal-fn.h.
4715         (GF_CALL_INTERNAL): New gf_mask.
4716         (gimple_statement_call): Put fntype into a union with a new
4717         internal_fn field.
4718         (gimple_build_call_internal): Declare.
4719         (gimple_build_call_internal_vec): Likewise.
4720         (gimple_call_same_target_p): Likewise.
4721         (gimple_call_internal_p): New function.
4722         (gimple_call_internal_fn): Likewise.
4723         (gimple_call_fntype): Return null for internal calls.
4724         (gimple_call_set_fntype): Assert that the function is not internal.
4725         (gimple_call_set_fn): Likewise.
4726         (gimple_call_set_fndecl): Likewise.
4727         (gimple_call_set_internal_fn): New function.
4728         (gimple_call_addr_fndecl): Handle null functions.
4729         (gimple_call_return_type): Likewise null types.
4730         * gimple.c (gimple_build_call_internal_1): New function.
4731         (gimple_build_call_internal): Likewise.
4732         (gimple_build_call_internal_vec): Likewise.
4733         (gimple_call_same_target_p): Likewise.
4734         (gimple_call_flags): Handle calls to internal functions.
4735         (gimple_call_fnspec): New function.
4736         (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4737         (gimple_has_side_effects): Handle null functions.
4738         (gimple_rhs_has_side_effects): Likewise.
4739         (gimple_call_copy_skip_args): Handle calls to internal functions.
4740         * cfgexpand.c (expand_call_stmt): Likewise.
4741         * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4742         * gimple-fold.c (gimple_fold_call): Handle null functions.
4743         (gimple_fold_stmt_to_constant_1): Don't fold
4744         calls to internal functions.
4745         * gimple-low.c (gimple_check_call_args): Handle calls to internal
4746         functions.
4747         * gimple-pretty-print.c (dump_gimple_call): Likewise.
4748         * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4749         * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4750         (do_warn_unused_result): Likewise.
4751         * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4752         * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4753         * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4754         the target of a call.
4755         (initialize_hash_element): Update accordingly.
4756         (hashable_expr_equal_p): Use gimple_call_same_target_p.
4757         (iterative_hash_hashable_expr): Handle calls to internal functions.
4758         (print_expr_hash_elt): Likewise.
4759         * tree-ssa-pre.c (can_value_number_call): Likewise.
4760         (eliminate): Handle null functions.
4761         * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4762         * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4763         (find_func_aliases): Likewise.
4764         * value-prof.c (gimple_ic_transform): Likewise.
4765         (gimple_indirect_call_to_profile): Likewise.
4766         * lto-streamer-in.c (input_gimple_stmt): Likewise.
4767         * lto-streamer-out.c (output_gimple_stmt): Likewise.
4768
4769 2011-04-19  Jan Hubicka  <jh@suse.cz>
4770
4771         * ipa-inline-transform.c (save_inline_function_body): Add comments.
4772         * ipa-inline.c (inline_small_functions): Compute summaries first,
4773         populate heap later.
4774
4775 2011-04-19  Jan Hubicka  <jh@suse.cz>
4776
4777         * cgraph.h (save_inline_function_body): Remove.
4778         * ipa-inline-transform.c: New file, broke out of...
4779         * ipa-inline.c: ... this one; Update toplevel comment.
4780         (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4781         make global.
4782         (update_noncloned_frequencies): Move to ipa-inline-transform.c
4783         (cgraph_mark_inline_edge): Rename to inline_call; move to
4784         ipa-inline-transform.c.
4785         (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4786         move to ipa-inline-transform.c
4787         (recursive_inlining, inline_small_functions, flatten_function,
4788         ipa_inline, inline_always_inline_functions,
4789         early_inline_small_functions): Update.
4790         (inline_transform): Move to ipa-inline-transform.c.
4791         * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4792         Declare.
4793         * Makefile.in (ipa-inline-transform.o): New file.
4794         * cgraphunit.c (save_inline_function_body): Move to
4795         ipa-inline-transform.c
4796
4797 2011-04-19  DJ Delorie  <dj@redhat.com>
4798
4799         * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4800         registers if we already know there aren't any.
4801         (m32c_emit_epilogue): Don't emit a barrier here.
4802         (m32c_emit_eh_epilogue): Likewise.
4803         * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4804         operands at expand time.
4805         * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4806         int" wchar type.
4807         (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4808         duplicates.  Provide aliases instead.
4809         * config/m32c/prologue.md (eh_return): Emit a barrier here.
4810         (eh_epilogue): Add a "(return)" here as a hint to other parts of
4811         the compiler.
4812
4813 2011-04-19  Anatoly Sokolov  <aesok@post.ru>
4814
4815         * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4816         * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4817         (general_or_i64_p, sparc_register_move_cost): New function.
4818
4819 2011-04-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4820
4821         * doc/install.texi (Configuration, --enable-threads): Remove mach.
4822         Add lynx, mipssde.  Sort table.
4823
4824 2011-04-19  Xinliang David Li  <davidxl@google.com>
4825
4826         * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4827         not negative.
4828
4829 2011-04-19  Jakub Jelinek  <jakub@redhat.com>
4830
4831         PR target/48678
4832         * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4833         is a SUBREG with non-MODE_INT mode inside of it.
4834
4835 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4836
4837         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4838         also according to actual contants.
4839         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4840         (gimple_fold_call): Use it.
4841         * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4842
4843 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4844
4845         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4846         non-pointer assignments.
4847
4848 2011-04-19  Martin Jambor  <mjambor@suse.cz>
4849
4850         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4851         account anc_offset and otr_type from the indirect edge info.
4852         * ipa-prop.c (get_ancestor_addr_info): New function.
4853         (compute_complex_ancestor_jump_func): Assignment analysis moved to
4854         get_ancestor_addr_info, call it.
4855         (ipa_note_param_call): Do not initialize information about polymorphic
4856         calls, return the indirect call graph edge.  Remove the last
4857         parameter, adjust all callers.
4858         (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4859         parameters.  Initialize polymorphic information in the indirect edge.
4860
4861 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4862
4863         PR lto/48148
4864         * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4865         the types if they have different enumeration identifiers.
4866
4867 2011-04-19  Jan Hubicka  <jh@suse.cz>
4868
4869         * cgraph.h (cgraph_optimize_for_size_p): Declare.
4870         * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4871         * predict.c (cgraph_optimize_for_size_p): Break out from ...
4872         (optimize_function_for_size_p) ... here.
4873
4874 2011-04-19  Richard Guenther  <rguenther@suse.de>
4875
4876         PR lto/48207
4877         * tree.c (free_lang_data): Do not reset the decl-assembler-name
4878         langhook.
4879
4880 2011-04-19  Eric Botcazou  <ebotcazou@adacore.com>
4881
4882         * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4883         if DECL_NO_INLINE_WARNING_P is set on the function.
4884
4885 2011-04-19  Bernd Schmidt  <bernds@codesourcery.com>
4886
4887         PR fortran/47976
4888         * reload1.c (inc_for_reload): Return void. All callers changed.
4889         (emit_input_reload_insns): Don't try to delete previous output
4890         reloads to a register, or record spill_reg_store for autoincs.
4891
4892 2011-04-19  Basile Starynkevitch  <basile@starynkevitch.net>
4893
4894         * gengtype.h: Updated copyright year.
4895         (struct input_file_st): Add inpisplugin field.
4896         (type_fileloc): New function.
4897         * gengtype.c
4898         (write_typed_struct_alloc_def): Add gcc_assert.
4899         (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4900         (write_typed_alloc_defns): Don't output for plugin files.
4901         (input_file_by_name): Clear inpisplugin field.
4902         (main): Set inpisplugin field for plugin files.
4903
4904 2011-04-19  Nicola Pero  <nicola.pero@meta-innovation.com>
4905
4906         * gengtype-state.c (string_eq): New.
4907         (read_state): Use string_eq instead of strcmp when creating the
4908         state_ident_tab.
4909
4910 2011-04-19  Wei Guozhi  <carrot@google.com>
4911
4912         PR target/47855
4913         * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4914         * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4915         linkage.
4916         * config/arm/constraints.md (Uu): New constraint.
4917         * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4918
4919 2011-04-19  Tristan Gingold  <gingold@adacore.com>
4920
4921         * config.gcc (-*-*-*vms): Added.
4922         (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4923         definitions moved.
4924         * config/vms/vms-ld.c: New file.
4925         * config/vms/vms-ar.c: New file.
4926         * config/vms/t-vmsnative: New file.
4927
4928 2011-04-18  Xinliang David Li  <davidxl@google.com>
4929
4930         * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4931
4932 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
4933
4934         PR middle-end/48661
4935         * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4936         if TREE_TYPE (v) is non-NULL.
4937
4938         * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4939         gimple_get_virt_mehtod_for_binfo.
4940         * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4941         * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4942         callers.
4943         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4944
4945 2011-04-18  Michael Matz  <matz@suse.de>
4946             Steve Ellcey  <sje@cup.hp.com>
4947
4948         * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4949         use its mode as source mode if it isn't VOIDmode.
4950
4951 2011-04-18  Dennis, CHENG Renquan  <crquan@fedoraproject.org>
4952
4953         * doc/passes.texi: Fill crossref nodes.
4954
4955 2011-04-18  Jim Meyering  <meyering@redhat.com>
4956
4957         Fix doubled-word typos in comments and strings
4958         * config/alpha/vms-unwind.h: s/for for/for/
4959         * config/arm/unwind-arm.h: Likewise.
4960         * config/microblaze/microblaze.c: Likewise.
4961         * config/sh/constraints.md: s/in in/in/
4962         * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4963
4964 2011-04-18  Uros Bizjak  <ubizjak@gmail.com>
4965
4966         * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4967         (AVX_FLOAT_MODE_P): Ditto.
4968         (AVX128_VEC_FLOAT_MODE_P): Ditto.
4969         (AVX256_VEC_FLOAT_MODE_P): Ditto.
4970         (AVX_VEC_FLOAT_MODE_P): Ditto.
4971         * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4972         (UNSPEC_MASKSTORE): Ditto.
4973         * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4974         Merge from <sse>_movmsk<ssemodesuffix> and
4975         avx_movmsk<ssemodesuffix>256.  Use VF mode iterator.
4976         (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64.  Use P mode
4977         iterator.
4978         (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4979         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4980         (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4981
4982 2011-04-18  Jan Hubicka  <jh@suse.cz>
4983
4984         * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4985
4986         * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4987         (want_inline_function_called_once_p): Break out the logic from
4988         ipa_inline.
4989         (edge_badness): Ensure that profile is not misupdated.
4990         (lookup_recursive_calls): Prioritize by call frequencies.
4991         (inline_small_functions): Move program size estimates here;
4992         actually process whole queue even when unit growth has been
4993         met. (to properly compute inline_failed reasons and for the
4994         case unit size decrease.) Revisit comments on recursive inlining.
4995         (ipa_inline): Remove unit summary code; first inline hot calls
4996         of functions called once, cold calls next.
4997         (order, nnodes): Remove unused variables.
4998         * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4999         (GTFILES): Remove ipa-inline.c
5000         * sel-sched.c (fill_insns): Silence uninitialized var warning.
5001
5002 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5003
5004         * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
5005
5006 2011-04-18  Jie Zhang  <jie@codesourcery.com>
5007             Richard Earnshaw  <rearnsha@arm.com>
5008
5009         * arm.c (neon_builtin_type_bits): Remove.
5010         (typedef enum neon_builtin_mode): New.
5011         (T_MAX): Don't define.
5012         (typedef enum neon_builtin_datum): Remove bits, codes[],
5013         num_vars and base_fcode.  Add mode, code and fcode.
5014         (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
5015         VAR10): Change accordingly.
5016         (neon_builtin_data[]): Change accordingly
5017         (arm_init_neon_builtins): Change accordingly.
5018         (neon_builtin_compare): Remove.
5019         (locate_neon_builtin_icode): Remove.
5020         (arm_expand_neon_builtin): Change accordingly.
5021
5022         * arm.h (enum arm_builtins): Move to ...
5023         * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
5024
5025         * arm.c (arm_builtin_decl): Declare.
5026         (TARGET_BUILTIN_DECL): Define.
5027         (enum arm_builtins): Correct ARM_BUILTIN_MAX.
5028         (arm_builtin_decls[]): New.
5029         (arm_init_neon_builtins): Store builtin declarations in
5030         arm_builtin_decls[].
5031         (arm_init_tls_builtins): Likewise.
5032         (arm_init_iwmmxt_builtins): Likewise.  Refactor initialization code.
5033         (arm_builtin_decl): New.
5034
5035 2011-04-18  Richard Guenther  <rguenther@suse.de>
5036
5037         * tree.c (upper_bound_in_type): Build properly canonicalized
5038         INTEGER_CSTs.
5039         (lower_bound_in_type): Likewise.
5040
5041 2011-04-18  Richard Guenther  <rguenther@suse.de>
5042
5043         * gimple.h (gimple_call_addr_fndecl): New function.
5044         (gimple_call_fndecl): Use it.
5045         * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
5046         for direct calls.
5047         * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
5048         * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
5049
5050 2011-04-18  Richard Guenther  <rguenther@suse.de>
5051
5052         PR middle-end/48650
5053         * tree.c (build_string): STRING_CST is now derived from tree_typed.
5054
5055 2011-04-18  Eric Botcazou  <ebotcazou@adacore.com>
5056
5057         PR lto/48492
5058         * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
5059         DECL_IN_CONSTANT_POOL without RTL.
5060
5061 2011-04-18  Ulrich Weigand  <ulrich.weigand@linaro.org>
5062             Ira Rosen  <ira.rosen@linaro.org>
5063
5064         PR target/48252
5065         * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
5066         to match neon_vzip/vuzp/vtrn_internal.
5067         * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
5068         outputs explicitly dependent on both inputs.
5069         (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
5070
5071 2011-04-18  Jakub Jelinek  <jakub@redhat.com>
5072
5073         PR tree-optimization/48616
5074         * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
5075         whether the shift is by scalar or vector based on whether all SLP
5076         scalar stmts have the same rhs.
5077
5078 2011-04-17  Chung-Lin Tang  <cltang@codesourcery.com>
5079
5080         * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
5081         memory operands.
5082
5083 2011-04-17  Richard Sandiford  <rdsandiford@googlemail.com>
5084
5085         * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
5086         registers.
5087
5088 2011-04-17  Jan Hubicka  <jh@suse.cz>
5089
5090         * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
5091         * cgrpahunit.c (cgraph_finalize_function): Do not set
5092         finalized_by_frontend.
5093         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5094         finalized_by_frontend.
5095
5096 2011-04-17  Jan Hubicka  <jh@suse.cz>
5097
5098         * cgraph.c (cgraph_clone_node): Do not handle vtable_method
5099         * cgraph.h (struct cgraph_local_info): Drop vtable_method.
5100         * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
5101         * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
5102         method.
5103         * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
5104         gimple-fold.c
5105         * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
5106
5107 2011-04-17  Eric Botcazou  <ebotcazou@adacore.com>
5108
5109         PR lto/48538
5110         * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
5111         is non-null before accessing it.
5112         (input_cgraph): Remove trailing spaces.
5113
5114 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5115
5116         * params.def (sms-min-sc): New param flag.
5117         * modulo-sched.c (sms_schedule): Use it.
5118         * doc/invoke.texi (sms-min-sc): Document it.
5119
5120 2011-04-17  Jan Hubicka  <jh@suse.cz>
5121
5122         * lto-symtab.c (lto_cgraph_replace_node): When call statement is
5123         present, also set gimple_call_set_cannot_inline.
5124         * ipa-inline.c: Update toplevel comment.
5125         (MAX_TIME): Remove.
5126         (cgraph_clone_inlined_nodes): Fix linebreaks.
5127         (cgraph_check_inline_limits): Restructure to ...
5128         (caller_growth_limits): ... this one; be more tolerant
5129         on growth in nested inline chains; add explanatory comment;
5130         fix stack accounting thinko introduced by previous patch.
5131         (cgraph_default_inline_p): Remove.
5132         (report_inline_failed_reason): New function.
5133         (can_inline_edge_p): New function.
5134         (can_early_inline_edge_p): New function.
5135         (leaf_node_p): Move upwards in file.
5136         (want_early_inline_function_p): New function.
5137         (want_inline_small_function_p): New function.
5138         (want_inline_self_recursive_call_p): New function.
5139         (cgraph_edge_badness): Rename to ...
5140         (edge_badness) ... this one; fix linebreaks.
5141         (update_edge_key): Update call of edge_baddness; add
5142         detailed dump about queue updates.
5143         (update_caller_keys): Use can_inline_edge_p and
5144         want_inline_small_function_p.
5145         (cgraph_decide_recursive_inlining): Rename to...
5146         (recursive_inlining): Use can_inline_edge_p and
5147         want_inline_self_recursive_call_p; simplify and remove no longer
5148         valid FIXME.
5149         (cgraph_set_inline_failed): Remove.
5150         (add_new_edges_to_heap): Use can_inline_edge_p and
5151         want_inline_small_function_p.
5152         (cgraph_decide_inlining_of_small_functions): Rename to ...
5153         (inline_small_functions): ... this one; cleanup; use
5154         can/want predicates; cleanup debug ouput; work edges till fibheap
5155         is exhausted and do not stop once unit growth is reached; remove
5156         later loop processing remaining edges.
5157         (cgraph_flatten): Rename to ...
5158         (flatten_function): ... this one; use can_inline_edge_p
5159         and can_early_inline_edge_p predicates.
5160         (cgraph_decide_inlining): Rename to ...
5161         (ipa_inline): ... this one; remove unreachable nodes before
5162         inlining functions called once; simplify the pass.
5163         (cgraph_perform_always_inlining): Rename to ...
5164         (inline_always_inline_functions): ... this one; use
5165         DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
5166         (cgraph_decide_inlining_incrementally): Rename to ...
5167         (early_inline_small_functions): ... this one; simplify
5168         using new predicates; cleanup; make dumps prettier.
5169         (cgraph_early_inlining): Rename to ...
5170         (early_inliner): newer inline regular functions into always-inlines;
5171         fix updating of call stmt summaries.
5172         (pass_early_inline): Update for new names.
5173         (inline_transform): Fix formating.
5174         (gate_cgraph_decide_inlining): Rename to ...
5175         (pass_ipa_inline): ... this one.
5176         * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
5177         * ipa-inline-analysis.c (dump_inline_summary): Update.
5178         (compute_inline_parameters): Do not compute disregard_inline_limits;
5179         look for mismatching arguments.
5180         (estimate_growth): Fix handlig of non-trivial self recursion.
5181         (inline_read_summary): Do not read info->disregard_inline_limits.
5182         (inline_write_summary): Do not write info->disregard_inline_limits.
5183         * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
5184         and move all checks into can_inline_edge_p predicate; re-enable code
5185         comparing optimization levels.
5186         (expand_call_inline): Do not test inline_forbidden_into_p.
5187         * Makefile.in (ipa-inline.o): Update arguments.
5188
5189 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5190
5191         * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
5192
5193 2011-04-17  Revital Eres  <revital.eres@linaro.org>
5194
5195         * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
5196
5197 2011-04-17  Michael Matz  <matz@suse.de>
5198
5199         PR tree-optimization/48622
5200         PR lto/48645
5201         * ipa-inline-analysis.c (inline_read_summary): Read size/time
5202         in same order as they're written.
5203
5204 2011-04-16  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5205
5206         * config/pa/predicates.md: Reorganize and simplify predicates.
5207         Eliminate duplicate code checks.
5208         (arith_operand): Rename to arith14_operand
5209         (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
5210         * config/pa/pa.md: Use renamed operands.
5211         * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
5212         (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
5213         arith11_operand, adddi3_operand, indexed_memory_operand,
5214         symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
5215         arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
5216         borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
5217         move_dest_operand, move_src_operand, prefetch_cc_operand,
5218         prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
5219         uint32_operand, reg_before_reload_operand, reg_or_0_operand,
5220         reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
5221         div_operand, int5_operand, movb_comparison_operator,
5222         ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
5223         arith_double_operand, ireg_operand, lhs_lshift_operand,
5224         pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
5225         integer_store_memory_operand): Likewise.
5226         * config/pa/pa.c (adddi3_operand): Move to predicates.md.
5227         (integer_store_memory_operand, read_only_operand,
5228         function_label_operand, borx_reg_operand,
5229         non_hard_reg_operand): Likewise.
5230         (eq_neq_comparison_operator): Delete unused operator.
5231         (legitimize_pic_address): Use VOIDmode for mode argument in calls to
5232         function_label_operand.
5233         (emit_move_sequence): Likewise.
5234
5235 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5236
5237         * config/i386/sse.md (sseunpackmode): New mode attribute.
5238         (ssepackmode): Ditto.
5239         (vec_pack_trunc_<mode>): Macroize expander from
5240         vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
5241         (vec_unpacks_lo_<mode>): Macroize expander from
5242         vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5243         (vec_unpacks_hi_<mode>): Macroize expander from
5244         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5245         (vec_unpacku_lo_<mode>): Macroize expander from
5246         vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5247         (vec_unpacku_hi_<mode>): Macroize expander from
5248         vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
5249         * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
5250         ix86_expand_sse4_unpack.
5251         * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
5252
5253 2011-04-16  Jan Hubicka  <jh@suse.cz>
5254
5255         * cgraphbuild.c: Include ipa-inline.h.
5256         (reset_inline_failed): Use initialize_inline_failed.
5257         * cgraph.c: Include ipa-inline.h.
5258         (cgraph_create_node_1): Do not initialize estimated_growth.
5259         (initialize_inline_failed): More to ipa-inline-analysis.c
5260         (dump_cgraph_node): Do not dump inline flags.
5261         * cgraph.h (cgraph_local_info): Remove inlineable, versionable
5262         and disregard_inline_limits flags.
5263         (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
5264         time, size, estimated_growth.
5265         * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
5266         Update.
5267         * cgraphunit.c (cgraph_decide_is_function_needed): Use
5268         DECL_DISREGARD_INLINE_LIMITS.
5269         (cgraph_analyze_function): Do not initialize
5270         node->local.disregard_inline_limits.
5271         * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
5272         inlinable, versionable and disregard_inline_limits.
5273         * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
5274         cgraph_check_inline_limits, cgraph_default_inline_p,
5275         cgraph_edge_badness, update_caller_keys, update_callee_keys,
5276         add_new_edges_to_heap): Update.
5277         (cgraph_decide_inlining_of_small_function): Update; set
5278         CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
5279         (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
5280         cgraph_decide_inlining_incrementally): Update.
5281         * ipa-inline.h (inline_summary): Add inlinable, versionable,
5282         disregard_inline_limits, estimated_stack_size, stack_frame_offset,
5283         time, size and estimated_growth parameters.
5284         (estimate_edge_growth): Update.
5285         (initialize_inline_failed): Declare.
5286         * ipa-split.c: Include ipa-inline.h
5287         (execute_split_functions): Update.
5288         * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
5289         (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
5290         (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
5291         * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
5292         estimated_growth to INT_MIN.
5293         (inline_node_duplication_hook): Likewise.
5294         (dump_inline_summary): Dump new fields.
5295         (compute_inline_parameters): Update.
5296         (estimate_edge_time, estimate_time_after_inlining,
5297         estimate_size_after_inlining, estimate_growth, inline_read_summary,
5298         inline_write_summary):
5299         (initialize_inline_failed): Move here from cgraph.c.
5300         * tree-sra.c: Include ipa-inline.h.
5301         (ipa_sra_preliminary_function_checks): Update.
5302         * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
5303         ipa-inline.h.
5304
5305 2011-04-16  Uros Bizjak  <ubizjak@gmail.com>
5306
5307         * config/i386/sse.md (V16): New mode iterator.
5308         (VI1, VI8): Ditto.
5309         (AVXMODEQI, AVXMODEDI): Remove.
5310         (sse2, sse3): New mode attribute.
5311         (mov<mode>): Use V16 mode iterator.
5312         (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
5313         (push<mode>1): Use V16 mode iterator.
5314         (movmisalign<mode>): Ditto.
5315         (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5316         <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
5317         (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
5318         *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
5319         (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
5320         avx_movdqu<avxmodesuffix>.
5321         (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
5322         *avx_movdqu<avxmodesuffix>.
5323         (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
5324         avx_lddqu<avxmodesuffix>.
5325         (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
5326         (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
5327         avx_movnt<AVXMODEDI:mode>.
5328         * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
5329         renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
5330
5331 2011-04-16  Bernd Schmidt  <bernds@codesourcery.com>
5332
5333         PR target/48629
5334         * haifa-sched.c (prune_ready_list, schedule_block): Use
5335         sched_pressure_p rather than flag_sched_pressure.
5336
5337 2011-04-15  Pat Haugen  <pthaugen@us.ibm.com>
5338
5339         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5340         cgraph_get_node instead of cgraph_get_create_node.
5341
5342 2011-04-15  Jakub Jelinek  <jakub@redhat.com>
5343
5344         * cfgexpand.c (expand_debug_expr): Use
5345         simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
5346
5347 2011-04-15  Michael Matz  <matz@suse.de>
5348
5349         * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
5350         * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
5351         * function.c (gimplify_parameters): Ditto.
5352         * gimplify.c (gimplify_vla_decl): Ditto.
5353
5354         * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
5355         (gimple_call_set_alloca_for_var): New inline function.
5356         (gimple_call_alloca_for_var_p): Ditto.
5357         * gimple.c (gimple_build_call_from_tree): Remember
5358         CALL_ALLOCA_FOR_VAR_P state.
5359         * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
5360
5361         * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
5362         calls if they were for VLA objects.
5363
5364 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5365
5366         * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
5367         of ADR_EXPRs.
5368
5369 2011-04-15  Martin Jambor  <mjambor@suse.cz>
5370
5371         PR middle-end/48601
5372         * tree-emutls.c (lower_emutls_function_body): Call
5373         cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
5374         result is non-NULL.
5375
5376 2011-04-15  Nicola Pero  <nicola.pero@meta-innovation.com>
5377
5378         * c-decl.c (detect_field_duplicates): Call
5379         objc_detect_field_duplicates instead of objc_get_interface_ivars.
5380
5381 2011-04-15  Nathan Froyd  <froydnj@codesourcery.com>
5382
5383         * gimple.h (gimple_asm_clobbers_memory_p): Declare.
5384         * gimple.c (gimple_asm_clobbers_memory_p): Define.
5385         * ipa-pure-const.c (check_stmt): Call it.
5386         * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
5387
5388 2011-04-15  Richard Guenther  <rguenther@suse.de>
5389
5390         PR tree-optimization/48290
5391         * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
5392         Properly decide inhibiting propagation based on the valueized
5393         operand.  Do loop-closed SSA form preserving here ...
5394         (init_copy_prop): ... not here.
5395
5396 2011-04-15  H.J. Lu  <hongjiu.lu@intel.com>
5397
5398         PR target/48612
5399         * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
5400         (*ieee_smax<mode>3): Likewise.
5401
5402 2011-04-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5403
5404         * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
5405         Replace match_operand with match_dup for the third operand in
5406         these expanders.
5407
5408 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5409
5410         * combine.c (subst, combine_simlify_rtx): Add new argument, use it
5411         to track processing of conditionals.  Update all callers.
5412         (try_combine, simplify_if_then_else): Update.
5413
5414 2011-04-15  Maxim Kuvyrkov  <maxim@codesourcery.com>
5415
5416         * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
5417         -fsched-pressure.
5418
5419 2011-04-15  Georg-Johann Lay  <avr@gjlay.de>
5420
5421         * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
5422         instead of match_operand for operand 3.
5423
5424 2011-04-15  Richard Sandiford  <richard.sandiford@linaro.org>
5425
5426         * recog.h (insn_operand_data): Add an "allows_mem" field.
5427         * genoutput.c (output_operand_data): Initialize it.
5428         * optabs.c (maybe_legitimize_operand_same_code): New function.
5429         (maybe_legitimize_operand): Use it when matching the original
5430         op->value.
5431
5432 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5433
5434         * gimplify.c: Fix issues in comments throughout.
5435         (voidify_wrapper_expr): Fix long line.
5436         (build_stack_save_restore): Likewise.
5437         (gimplify_loop_expr): Likewise.
5438         (gimplify_compound_lval): Likewise.
5439         (gimplify_init_ctor_eval): Likewise.
5440         (gimplify_modify_expr_rhs): Likewise.
5441         (omp_notice_threadprivate_variable): Likewise.
5442
5443 2011-04-15  Eric Botcazou  <ebotcazou@adacore.com>
5444
5445         * cfgexpand.c (expand_call_stmt): Convert the function type to the
5446         original one if this is not a builtin function.
5447
5448 2011-04-14  Jakub Jelinek  <jakub@redhat.com>
5449
5450         PR target/48605
5451         * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
5452         offset it as needed based on top 2 bits in operands[3], change
5453         MEM mode to SFmode and mask those 2 bits away from operands[3].
5454
5455 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5456
5457         * c-parser.c (c_parser_objc_protocol_definition): Updated for
5458         change from objc_declare_protocols() to objc_declare_protocol().
5459
5460 2011-04-14  Uros Bizjak  <ubizjak@gmail.com>
5461
5462         * config/i386/sse.md (sse4_1): New mode attribute.
5463         (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
5464         avx_blend<ssemodesuffix><avxmodesuffix> and
5465         sse4_1_blend<ssemodesuffix> using VF mode iterator.
5466         (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
5467         avx_blendv<ssemodesuffix><avxmodesuffix> and
5468         sse4_1_blendv<ssemodesuffix> using VF mode iterator.
5469         (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
5470         avx_dp<ssemodesuffix><avxmodesuffix> and
5471         sse4_1_dp<ssemodesuffix> using VF mode iterator.
5472         (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
5473         (sse4_1_packusdw): Merge with *avx_packusdw.
5474         (sse4_1_pblendvb): Merge with *avx_pblendvb.
5475         (sse4_1_pblendw): Merge with *avx_pblendw.
5476         (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
5477         (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
5478         avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
5479         VF mode iterator.
5480         (sse4_1_round<ssescalarmodesuffix>): Merge with
5481         *avx_round<ssescalarmodesuffix>.
5482         (aesenc): Merge with *avx_aesenc.
5483         (aesenclast): Merge with *avx_aesenclast.
5484         (aesdec): Merge with *avx_aesdec.
5485         (aesdeclast): Merge with *avx_aesdeclast.
5486         (pclmulqdq): Merge with *pclmulqdq.
5487         * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
5488         New predicate.
5489         (nonimm_not_xmm0_operand_maybe_avx): Ditto.
5490
5491 2011-04-14  H.J. Lu  <hongjiu.lu@intel.com>
5492
5493         PR middle-end/48608
5494         * cfgexpand.c (get_decl_align_unit): Renamed to ...
5495         (align_local_variable): This.  Update DECL_ALIGN.
5496         (add_stack_var): Updated.
5497         (expand_one_stack_var): Likewise.
5498
5499 2011-04-14  Richard Guenther  <rguenther@suse.de>
5500
5501         * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
5502         Remove.
5503         (dse_initialize_block_local_data, dse_leave_block,
5504         record_voperand_set, get_stmt_uid): Likewise.
5505         (dse_possible_dead_store_p): Allow any kind of killing stmt.
5506         (dse_optimize_stmt): Remove voperand set handling code.
5507         Simplify and improve to handle any kind of killing stmt.
5508         (dse_record_phi): Remove.
5509         (dse_enter_block): Simplify.
5510         (tree_ssa_dse): Likewise.
5511         * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
5512
5513 2011-04-14  Jan Hubicka  <jh@suse.cz>
5514
5515         * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
5516         * cgraph.h (struct inline_summary): Move to ipa-inline.h
5517         (cgraph_local_info): Remove inline_summary.
5518         * ipa-cp.c: Include ipa-inline.h.
5519         (ipcp_cloning_candidate_p, ipcp_estimate_growth,
5520         ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
5521         accesor.
5522         * lto-cgraph.c (lto_output_node): Do not stream inline summary.
5523         (input_overwrite_node): Do not set inline summary.
5524         (input_node): Do not stream inline summary.
5525         * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
5526         (cgraph_decide_inlining_incrementally): Do not try to estimate overall
5527         growth; we do not have inline parameters computed for that anyway.
5528         (cgraph_early_inlining): After inlining compute call_stmt_sizes.
5529         * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
5530         (inline_summary_t): New type and VECtor.
5531         (debug_inline_summary, dump_inline_summaries): Declare.
5532         (inline_summary): Use VOCtor.
5533         (estimate_edge_growth): Kill hack computing call stmt size directly.
5534         * lto-section-in.c (lto_section_name): Add inline section.
5535         * ipa-inline-analysis.c: Include lto-streamer.h
5536         (node_removal_hook_holder, node_duplication_hook_holder): New holders
5537         (inline_node_removal_hook, inline_node_duplication_hook): New functions.
5538         (inline_summary_vec): Define.
5539         (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
5540         dump_inline_summaries): New functions.
5541         (estimate_function_body_sizes): Properly compute size/time of outgoing
5542         calls.
5543         (compute_inline_parameters): Alloc inline_summary; do not compute
5544         size/time of incomming calls.
5545         (estimate_edge_time): Avoid missing time summary hack.
5546         (inline_read_summary): Read inline summary info.
5547         (inline_write_summary): Write inline summary info.
5548         (inline_free_summary): Free all hooks and inline summary vector.
5549         * lto-streamer.h: Add LTO_section_inline_summary section.
5550         * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
5551         * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
5552
5553 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5554
5555         * tree-vectorizer.h (vect_strided_store_supported): Add a
5556         HOST_WIDE_INT argument.
5557         (vect_strided_load_supported): Likewise.
5558         (vect_permute_store_chain): Return void.
5559         (vect_transform_strided_load): Likewise.
5560         (vect_permute_load_chain): Delete.
5561         * tree-vect-data-refs.c (vect_strided_store_supported): Take a
5562         count argument.  Check that the count is a power of two.
5563         (vect_strided_load_supported): Likewise.
5564         (vect_permute_store_chain): Return void.  Update after above changes.
5565         Assert that the access is supported.
5566         (vect_permute_load_chain): Likewise.
5567         (vect_transform_strided_load): Return void.
5568         * tree-vect-stmts.c (vectorizable_store): Update calls after
5569         above interface changes.
5570         (vectorizable_load): Likewise.
5571         (vect_analyze_stmt): Don't check for strided powers of two here.
5572
5573 2011-04-14  Richard Guenther  <rguenther@suse.de>
5574
5575         PR tree-optimization/48590
5576         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
5577         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5578         (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
5579         BUILT_IN_STACK_SAVE.
5580         * tree-ssa-dce.c (propagate_necessity): Handle
5581         BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
5582
5583 2011-04-14  Nicola Pero  <nicola.pero@meta-innovation.com>
5584
5585         * c-parser.c (c_parser_objc_class_declaration): Updated call to
5586         objc_declare_class.
5587
5588 2011-04-14  Richard Guenther  <rguenther@suse.de>
5589
5590         * tree.h (get_object_alignment_1): Declare.
5591         * builtins.c (get_object_alignment_1): Split out worker from ...
5592         (get_object_alignment): ... here.
5593         * fold-const.c (get_pointer_modulus_and_residue): Use
5594         get_object_alignment_1.
5595
5596 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5597
5598         * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
5599         type parameter.
5600         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
5601         parameter.  Generalise code to handle arrays as well as vectors.
5602         (vect_setup_realignment): Update accordingly.
5603         * tree-vect-stmts.c (vectorizable_store): Likewise.
5604         (vectorizable_load): Likewise.
5605
5606 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5607
5608         * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
5609         within the per-copy loop.
5610
5611 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5612
5613         * tree-vect-stmts.c (vectorizable_load): Print the number of copies
5614         in the dump file.
5615
5616 2011-04-14  Richard Sandiford  <richard.sandiford@linaro.org>
5617
5618         * doc/options.texi (Negative): Explicitly mention that the
5619         Negative chain must be circular.
5620
5621 2011-04-14  Nathan Froyd  <froydnj@codesourcery.com>
5622
5623         * function.h (block_chainon): Declare.
5624         * function.c (block_chainon): Define.
5625
5626 2011-04-14  Anatoly Sokolov  <aesok@post.ru>
5627             Eric Weddington  <eric.weddington@atmel.com>
5628             Georg-Johann Lay  <avr@gjlay.de>
5629
5630         * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
5631         New Includes
5632         (avr_init_builtins, avr_expand_builtin,
5633         avr_expand_delay_cycles, avr_expand_unop_builtin,
5634         avr_expand_binop_builtin ): New functions.
5635         (avr_builtin_id): New enum
5636         (struct avr_builtin_description): New struct
5637         (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
5638         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5639
5640         * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5641         UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
5642         UNSPECV_DELAY_CYCLES): new enumeration values
5643         (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
5644         ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
5645         ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
5646         ("*rotlqi3_4"): rename insn to "rotlqi3_4"
5647         ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
5648         "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
5649         "fmulsu"): New insns
5650
5651         * config/avr/avr-c.c: fix line endings
5652         (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
5653         __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
5654         __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
5655         __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
5656         __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5657
5658         * doc/extend.texi (AVR Built-in Functions): New node
5659         (Target Builtins): Add documentation of AVR
5660         built-in functions.
5661
5662 2011-04-14  Georg-Johann Lay  <avr@gjlay.de>
5663
5664         PR target/44643
5665         * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
5666         alone. Error if non-const data has attribute progmem.
5667
5668 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5669
5670         * tree.h (struct tree_constructor): Include tree_typed instead of
5671         tree_common.
5672         * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
5673         TS_TYPED instead of TS_COMMON.
5674
5675 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5676
5677         * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
5678         (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
5679         (sse2_psadbw): Merge with *avx_psadbw.
5680         (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5681         (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5682         (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5683         (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5684         (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5685         (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5686         (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5687         (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5688         (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5689         (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5690         (ssse3_palignrti): Merge with *avx_palignrti.
5691
5692 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5693
5694         * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5695         * tree-ssanames.c (fini_ssanames): VEC_free it.
5696         (make_ssa_name_fn): Update for VECness of free_ssanames.
5697         (release_ssa_name, release_dead_ssa_names): Likewise.
5698         * tree.h (struct tree_ssa_name): Include tree_typed instead of
5699         tree_common.
5700         * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5701         TS_TYPED instead of TS_COMMON.
5702
5703 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5704
5705         * postreload-gcse.c (gcse_after_reload_main): Add calls to
5706         statistics_counter_event.
5707         * tree-ssa-copyrename.c (stats): Define.
5708         (rename_ssa_copies): Count coalesced SSA_NAMEs.  Add call to
5709         statistics_counter_event.
5710         * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5711         (bswap_stats, widen_mul_stats): Define.
5712         (insert_reciprocals): Increment rdivs_inserted.
5713         (execute_cse_reciprocals): Zeroize reciprocal_stats.  Increment
5714         rfuncs_inserted.  Add calls to statistics_counter_event.
5715         (execute_cse_sincos_1): Increment inserted.
5716         (execute_cse_sincos): Zeroize sincos_stats.  Add call to
5717         statistics_counter_event.
5718         (execute_optimize_bswap): Zeroize bswap_stats.  Increment fields
5719         of bswap_stats.  Add calls to statistics_counter_event.
5720         (convert_mult_to_widen): Increment widen_mults_inserted.
5721         (convert_plusminus_to_widen): Increment maccs_inserted.
5722         (convert_mult_to_fma): Increment fmas_inserted.
5723         (execute_optimize_widening_mul): Zeroize widen_mul_stats.  Add
5724         calls to statistics_counter_event.
5725
5726 2011-04-13  Vladimir Makarov  <vmakarov@redhat.com>
5727
5728         PR rtl-optimization/48455
5729         * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5730         `temp_costs->mem_cost'.
5731
5732 2011-04-13  Jan Hubicka  <jh@suse.cz>
5733
5734         * ipa-inline.h: New file.
5735         * ipa-inline-analysis.c: New file. Broken out of ...
5736         * ipa-inline.c: ... this file; update toplevel comment;
5737         include ipa-inline.h
5738         (inline_summary): Move to ipa-inline.h
5739         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5740         ipa-inline-analysis.c.
5741         (cgraph_estimate_time_after_inlining): Rename to
5742         estiamte_time_after_inlining; move to ipa-inline-analysis.c
5743         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5744         to estimate_edge_growth.
5745         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5746         rename to estimate_size_after_inlining.
5747         (cgraph_mark_inline_edge): Update for new naming convention.
5748         (cgraph_check_inline_limits): Likewise.
5749         (cgraph_edge_badness): Likewise.
5750         (cgraph_decide_recursive_inlining): Likewise.
5751         (cgraph_decide_inlining_of_small_functions): Likewise.
5752         (cgraph_decide_inlining_incrementally): Likewise.
5753         (cgraph_estimate_growth): Rename to estimate_growth; move to
5754         ipa-inline-analysis.c.
5755         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5756         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5757         (compute_inline_parameters): Likewise.
5758         (compute_inline_parameters_for_current): Likewise.
5759         (pass_inline_parameters): Likewise.
5760         (inline_indirect_intraprocedural_analysis): Likewise.
5761         (analyze_function): Rename to inline_analyze_function; likewise.
5762         (add_new_function): Move to ipa-inline-analysis.c.
5763         (inline_generate_summary): Likewise.
5764         (inline_read_summary): Likewise.
5765         (inline_write_summary): Likewise.
5766         * Makefile.in (ipa-inline-analysis.c): New file.
5767
5768 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5769
5770         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5771         * configure: Regenerate.
5772
5773 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
5774
5775         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5776         instead of tree_common.
5777         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5778         Likewise.
5779         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5780         TS_TYPED rather than TS_COMMON.
5781         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5782
5783 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
5784
5785         PR target/45263
5786         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5787         r20 around calls of __tablejump_elpm__
5788
5789 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
5790
5791         PR middle-end/48591
5792         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5793         NULL.
5794         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5795
5796 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
5797
5798         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5799         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5800         (cfi_vec): New typedef.
5801         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5802         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5803         (cie_cfi_vec): New static variable.
5804         (cie_cfi_head): Delete.
5805         (add_cfi): Accept a cfi_vec * as first argument. All callers and
5806         declaration changed. Use vector rather than list operations.
5807         (new_cfi): Don't initialize the dw_cfi_next field.
5808         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5809         rather than list operations.
5810         (lookup_cfa): Use vector rather than list operations.
5811         (output_cfis): New argument upto. Accept a cfi_vec rather than
5812         a dw_cfi_ref list head as argument. All callers changed.
5813         Iterate over the vector using upto as a maximum index.
5814         (output_all_cfis): New static function.
5815         (output_fde): Use vector rather than list operations. Use the
5816         new upto argument for output_cfis rather than manipulating a
5817         list.
5818         (dwarf2out_begin_prologue): Change initializations to match
5819         new struct members.
5820         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5821         from the vector length rather than searching for the end of a list.
5822         Use output_all_cfis.
5823         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5824
5825 2011-04-13  Nick Clifton  <nickc@redhat.com>
5826
5827         * config/rx/rx.md (movmemsi): Do not use this pattern when
5828         volatile pointers are involved.
5829
5830 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
5831
5832         * config/i386/sse.md (pinsrbits): Remove.
5833         (sse2_packsswb): Merge with *avx_packsswb.
5834         (sse2_packssdw): Merge with *avx_packssdw.
5835         (sse2_packuswb): Merge with *avx_packuswb.
5836         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5837         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5838         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5839         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5840         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5841         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5842         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5843         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5844         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5845         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5846         (sse2_loadld): Merge with *avx_loadld.
5847         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5848         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5849         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5850         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5851         (vec_concatv2di): Merge with *vec_concatv2di_avx.
5852
5853 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
5854
5855         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5856         calling TREE_CHAIN.
5857         * print-tree.c (print_node): Likewise.
5858         * tree-inline.c (copy_tree_r): Likewise.
5859         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5860         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5861         instead of TS_COMMON.
5862         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5863         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5864         (copy_node_stat): Zero TREE_CHAIN only if necessary.
5865         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5866         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5867         ...and these...
5868         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5869         * tree.h: ...here.
5870         (TREE_CHAIN): Check for a TS_COMMON structure.
5871         (TREE_TYPE): Check for a TS_TYPED structure.
5872
5873 2011-04-12  Pat Haugen  <pthaugen@us.ibm.com>
5874
5875         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5876         cgraph_get_create_node instead of cgraph_node.
5877
5878 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5879
5880         * c-parser.c (c_parser_initelt): Updated call to
5881         objc_build_message_expr.
5882         (c_parser_postfix_expression): Likewise.
5883
5884 2011-04-12  Kai Tietz  <ktietz@redhat.com>
5885
5886         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5887         MASK_MS_BITFIELD_LAYOUT bit.
5888
5889 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5890
5891         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5892         assert it is always true.
5893         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5894         moves.
5895
5896 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
5897
5898         * c-parser.c (c_lex_one_token): Rewritten conditional used when
5899         compiling Objective-C to be more efficient.
5900
5901 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
5902
5903         * opts-common.c (decode_cmdline_options_to_array): Remove variable
5904         argv_copied.
5905
5906 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5907
5908         * recog.h, genoutput.c, optabs.c: Revert last patch.
5909
5910 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5911
5912         PR target/48090
5913         * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
5914
5915 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5916
5917         * recog.h (insn_operand_data): Add an "allows_mem" field.
5918         * genoutput.c (output_operand_data): Initialize it.
5919         * optabs.c (maybe_legitimize_operand_same_code): New function.
5920         (maybe_legitimize_operand): Use it when matching the original
5921         op->value.
5922
5923 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5924
5925         * genpreds.c (process_define_predicate): Move most processing
5926         to gensupport.c.  Continue to validate the expression.
5927         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5928         (process_define_predicate): Move processing to gensupport.c.
5929         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5930         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5931         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
5932         argument.
5933         (valid_predicate_name_p): New function, split out from old
5934         genpreds.c:process_define_predicate.
5935         (process_define_predicate): New function, combining code from
5936         old genpreds.c and genrecog.c functions.
5937         (process_rtx): Call it for DEFINE_PREDICATE and
5938         DEFINE_SPECIAL_PREDICATE.
5939
5940 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
5941
5942         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5943         size of a '%A' memory reference.
5944         (T_DREG, T_QREG): New neon_builtin_type_bits.
5945         (arm_init_neon_builtins): Assert that the load and store operands
5946         are neon_struct_operands.
5947         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5948         (NEON_ARG_MEMORY): New builtin_arg.
5949         (neon_dereference_pointer): New function.
5950         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5951         Handle NEON_ARG_MEMORY.
5952         (arm_expand_neon_builtin): Update after above interface changes.
5953         Use NEON_ARG_MEMORY for loads and stores.
5954         * config/arm/predicates.md (neon_struct_operand): New predicate.
5955         * config/arm/iterators.md (V_two_elem): Tweak formatting.
5956         (V_three_elem): Use BLKmode for accesses that have no associated mode.
5957         (V_four_elem): Tweak formatting.
5958         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5959         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5960         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5961         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5962         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5963         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5964         (neon_vst4<mode>): Replace pointer operand with a memory operand.
5965         Use %A in the output template.
5966         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5967         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5968         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5969         the width of the memory access.  Remove post-increment.
5970         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5971
5972 2011-04-12  Nick Clifton  <nickc@redhat.com>
5973
5974         * config/v850/v850.c (expand_prologue): Do not use the CALLT
5975         instruction for interrupt handlers if the target is the basic V850
5976         architecture.
5977         (expand_epilogue): Likewise.
5978
5979 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
5980
5981         PR rtl-optimization/48549
5982         * combine.c (propagate_for_debug): Also stop after BB_END of
5983         this_basic_block.  Process LAST and just stop processing after it.
5984         (combine_instructions): If last_combined_insn has been deleted,
5985         set last_combined_insn to its PREV_INSN.
5986
5987 2011-04-12  Richard Guenther  <rguenther@suse.de>
5988
5989         PR tree-optimization/46076
5990         * gimple.h (struct gimple_statement_call): Add fntype field.
5991         (gimple_call_fntype): Adjust.
5992         (gimple_call_set_fntype): New function.
5993         * gimple.c (gimple_build_call_1): Set the call function type.
5994         * gimplify.c (gimplify_call_expr): Preserve the function
5995         type the frontend used for the call.
5996         (gimplify_modify_expr): Likewise.
5997         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5998         function type.
5999         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
6000         function type.
6001         * tree-ssa.c (useless_type_conversion_p): Function pointer
6002         conversions are useless.
6003
6004 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6005
6006         * cgraph.h (cgraph_node): Remove function declaration.
6007         (cgraph_create_node): Declare.
6008         (cgraph_get_create_node): Likewise.
6009         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
6010         Updated all callers.
6011         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
6012         the decl does not already exist.  Call cgraph_get_create_node instead
6013         of cgraph_node.
6014         (cgraph_get_create_node): New function.
6015         (cgraph_same_body_alias): Update comment.
6016         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
6017         assert it does not return NULL.
6018         (cgraph_update_edges_for_call_stmt): Likewise.
6019         (cgraph_clone_edge): Likewise.
6020         (cgraph_create_virtual_clone): Likewise.
6021         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
6022         instead of cgraph_node.
6023         (cgraph_add_new_function): Call cgraph_create_node or
6024         cgraph_get_create_node instead of cgraph_node.
6025         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
6026         instead of cgraph_node.
6027         (record_eh_tables): Likewise.
6028         (mark_address): Likewise.
6029         (mark_load): Likewise.
6030         (build_cgraph_edges): Call cgraph_get_create_node instead
6031         of cgraph_node.
6032         (rebuild_cgraph_edges): Likewise.
6033         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
6034         instead of cgraph_node.
6035         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
6036         cgraph_node.
6037         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
6038         cgraph_create_node instead of cgraph_node.
6039         * c-decl.c (finish_function): Call cgraph_get_create_node instead
6040         of cgraph_node.
6041         * lto-cgraph.c (input_node): Likewise.
6042         * lto-streamer-in.c (input_function): Likewise.
6043         * varasm.c (mark_decl_referenced): Likewise.
6044         (assemble_alias): Likewise.
6045
6046 2011-04-12  Martin Jambor  <mjambor@suse.cz>
6047
6048         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
6049         instead of cgraph_node and assert it does not return NULL.
6050         * lto-streamer-in.c (lto_read_body): Likewise.
6051         * omp-low.c (new_omp_context): Likewise.
6052         (create_task_copyfn): Likewise.
6053         * tree-emutls.c (lower_emutls_function_body): Likewise.
6054         * matrix-reorg.c (transform_allocation_sites): Likewise.
6055
6056 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
6057
6058         PR c/48552
6059         * c-typeck.c (build_asm_expr): Error out on attempts to use
6060         void type outputs or inputs for constraints that allow reg or
6061         don't allow memory.
6062
6063 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
6064             Richard Earnshaw  <rearnsha@arm.com>
6065
6066         PR target/48250
6067         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
6068         to use sign-magnitude offsets. Reject unsupported unaligned
6069         cases. Add detailed description in comments.
6070         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
6071         condition from TARGET_32BIT to TARGET_ARM.
6072
6073 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
6074
6075         * tree.h (struct typed_tree): New.
6076         (struct tree_common): Include it instead of tree_base.
6077         (TREE_TYPE): Update for new location of type field.
6078         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
6079         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
6080         (union tree_node): Add typed field.
6081         * treestruct.def (TS_TYPED): New.
6082         * lto-streamer.c (check_handled_ts_structures): Handle it.
6083         * tree.c (MARK_TS_TYPED): New macro.
6084         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
6085
6086 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
6087
6088         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
6089         (force_nonfallthru): Do not alter the loop nest if no basic block
6090         was created.
6091
6092 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6093
6094         * config/i386/sse.md (VI): New mode iterator.
6095         (SSEMODEI): Remove.
6096         (AVX256MODEI): Ditto.
6097         (AVXMODEF4P): Ditto.
6098         (avxvecpsmode): Ditto.
6099         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
6100         (sse2_andnot<mode>3): New expander.
6101         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
6102         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
6103         (<any_logic:code><mode>3): Use VI mode iterator.
6104         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
6105         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
6106         (*andnottf3): Handle AVX three-operand constraints.
6107         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
6108
6109 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6110             Robert Millan  <rmh@gnu.org>
6111
6112         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
6113         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
6114         GNU_USER_DYNAMIC_LINKER64): Define.
6115         (REG_NAME): Don't undefine.
6116         (MD_UNWIND_SUPPORT): Undefine.
6117         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
6118         (REG_NAME): Don't undefine.
6119         (MD_UNWIND_SUPPORT): Undefine.
6120         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
6121
6122 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6123
6124         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
6125         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
6126
6127 2011-04-11  Xinliang David Li  <davidxl@google.com>
6128
6129         * value-profile.c (check_ic_target): New function.
6130         (gimple_ic_transform): Sanity check indirect call target.
6131         * gimple-low.c (gimple_check_call_args): Interface change.
6132         (gimple_check_call_matching_types): New function.
6133         * tree-inline.c (tree_can_inline_p): Call new function.
6134
6135 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
6136
6137         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
6138         tree-pretty-print.h & realmpfr.h.
6139
6140 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
6141
6142         PR middle-end/48464
6143         * ira.c (setup_pressure_classes): Fix typo in loop condition.
6144         (setup_allocno_and_important_classes): Ditto.
6145
6146 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6147
6148         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
6149         GNU_USER_DYNAMIC_LINKER.
6150         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
6151         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6152         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
6153         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6154         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6155         GNU_USER_TARGET_OS_CPP_BUILTINS.
6156         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
6157         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6158         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6159         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6160         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
6161         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6162         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6163         GNU_USER_TARGET_OS_CPP_BUILTINS.
6164         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6165         GNU_USER_DYNAMIC_LINKER.
6166         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6167         GNU_USER_TARGET_OS_CPP_BUILTINS.
6168         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
6169         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6170         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
6171         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6172         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
6173         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
6174         GNU_USER_DYNAMIC_LINKER64): Remove.
6175         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
6176         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6177         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6178         GNU_USER_DYNAMIC_LINKER.
6179         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6180         GNU_USER_TARGET_OS_CPP_BUILTINS.
6181         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6182         GNU_USER_TARGET_OS_CPP_BUILTINS.
6183         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
6184         to GNU_USER_TARGET_OS_CPP_BUILTINS.
6185         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
6186         GNU_USER_TARGET_OS_CPP_BUILTINS.
6187         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
6188         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
6189         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6190         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
6191         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6192         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6193         GNU_USER_DYNAMIC_LINKER.
6194         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
6195         GNU_USER_TARGET_OS_CPP_BUILTINS.
6196         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
6197         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6198         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6199         GNU_USER_DYNAMIC_LINKER.
6200         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6201         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6202         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
6203         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6204         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6205         GNU_USER_DYNAMIC_LINKER.
6206         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
6207         GNU_USER_DYNAMIC_LINKERN32.
6208         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
6209         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
6210         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
6211         GNU_USER_DYNAMIC_LINKER32.
6212         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
6213         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6214         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6215         GNU_USER_DYNAMIC_LINKER.
6216         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
6217         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6218         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
6219         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6220         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6221         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
6222         GNU_USER_DYNAMIC_LINKER32.
6223         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
6224         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
6225         GNU_USER_DYNAMIC_LINKER.
6226         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
6227         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6228         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6229         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
6230         GNU_USER_DYNAMIC_LINKER64.
6231         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
6232         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6233         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6234         GNU_USER_DYNAMIC_LINKER.
6235         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
6236         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6237         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
6238         GNU_USER_DYNAMIC_LINKER.
6239         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
6240         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6241         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
6242         GNU_USER_DYNAMIC_LINKER32.
6243         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6244         GNU_USER_DYNAMIC_LINKER64.
6245         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
6246         GNU_USER_DYNAMIC_LINKER64.
6247         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
6248         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6249         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
6250         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
6251         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
6252
6253 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6254
6255         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
6256         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
6257         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
6258         GNU_USER_DYNAMIC_LINKER.
6259         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6260         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
6261         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
6262         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
6263         GNU_USER_DYNAMIC_LINKER64.
6264         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
6265         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
6266         GNU_USER_LINK_EMULATION.
6267         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
6268         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
6269         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
6270         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
6271         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
6272         CPP_SPEC, CC1_SPEC): Remove.
6273         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
6274         (GNU_USER_DYNAMIC_LINKER): Define.
6275         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
6276         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
6277         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
6278         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
6279         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
6280         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
6281         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6282         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
6283         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
6284         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
6285         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
6286         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
6287         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
6288         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
6289         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
6290         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
6291         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6292         GNU_USER_DYNAMIC_LINKER.
6293         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6294         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6295         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6296         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6297         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
6298         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
6299         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
6300         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
6301         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
6302         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
6303
6304 2011-04-11  Kai Tietz  <ktietz@redhat.com>
6305
6306         PR target/9601
6307         PR target/11772
6308         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
6309         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
6310         comment.
6311         (ix86_is_msabi_thiscall): Removed.
6312         (ix86_is_type_thiscall): Likewise.
6313         (ix86_get_callcvt): New function.
6314         (ix86_comp_type_attributes): Simplify check.
6315         (ix86_function_regparm): Use ix86_get_callcvt for calling
6316         convention attribute checks.
6317         (ix86_return_pops_args): Likewise.
6318         (ix86_static_chain): Likewise.
6319         (x86_this_parameter): Likewise.
6320         (x86_output_mi_thunk): Likewise.
6321         (ix86_function_type_abi): Optimize check for types without attributes.
6322         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
6323         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
6324         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
6325         by flag-values.
6326         (IX86_BASE_CALLCVT): Helper macro.
6327         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
6328         Use ix86_get_callcvt for calling convention attribute checks and avoid
6329         symbol-decoration for stdcall in TARGET_RTD case.
6330         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
6331         Likewise.
6332         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
6333         for declaration.
6334
6335 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
6336
6337         * config/i386/sse.md (VI_128): New mode iterator.
6338         (VI12_128): Rename from SSEMODE12.
6339         (VI14_128): Rename from SSEMODE14.
6340         (VI124_128): New mode iterator.
6341         (VI24_128): Rename from SSEMODE248.
6342         (VI248_128): Rename from SSEMODE248.
6343         (SSEMODE124C8): Remove.
6344         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6345         (*sse2_<plusminus_insn><mode>3): Merge with
6346         *avx_<plusminus_insn><mode>3.
6347         (*mulv8hi3): Merge with *avx_mulv8hi3.
6348         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
6349         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
6350         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
6351         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
6352         (ashr<mode>3): Merge with *avx_ashr<mode>3.
6353         (lshr<mode>3): Merge with *avx_lshr<mode>3.
6354         (ashl<mode>3): Merge with *avx_ashl<mode>3.
6355         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
6356         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
6357         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6358         (*<smaxmin:code>v8hi3): Ditto.
6359         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
6360         (*<smaxmin:code>v16qi3): Ditto.
6361         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
6362         (*sse2_eq<mode>3): Ditto.
6363         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
6364         (*sse2_gt<mode>3): Ditto.
6365         (vcondv2di): Split out of vcond<mode>.
6366         (vconduv2di): Split out of vcondu<mode>.
6367
6368 2011-04-11  Richard Guenther  <rguenther@suse.de>
6369
6370         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
6371         before calling tree_low_cst.
6372
6373 2011-04-11  Richard Guenther  <rguenther@suse.de>
6374
6375         * stor-layout.c (layout_type): Compute all array index size operations
6376         in the original type.
6377         (initialize_sizetypes): Add comment.
6378         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
6379
6380 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
6381
6382         * common.opt (Tbss=, Tdata=, Ttext=): New options.
6383
6384 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6385
6386         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
6387         of cgraph_node, handle NULL return value.
6388         (cgraph_global_info): Likewise.
6389         (cgraph_rtl_info): Likewise.
6390         * tree-inline.c (estimate_num_insns): Likewise.
6391         * gimplify.c (unshare_body): Likewise.
6392         (unvisit_body): Likewise.
6393         (gimplify_body): Likewise.
6394         * predict.c (optimize_function_for_size_p): Likewise.
6395         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
6396         (call_may_clobber_ref_p_1): Likewise.
6397         * varasm.c (function_section_1): Likewise.
6398         (assemble_start_function): Likewise.
6399
6400 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6401
6402         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
6403         of cgraph_node.
6404         * final.c (rest_of_clean_state): Likewise.
6405         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
6406         * passes.c (pass_init_dump_file): Likewise.
6407         (execute_all_ipa_transforms): Likewise.
6408         (function_called_by_processed_nodes_p): Likewise.
6409         * predict.c (maybe_hot_frequency_p): Likewise.
6410         (probably_never_executed_bb_p): Likewise.
6411         (compute_function_frequency): Likewise.
6412         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
6413         (unnest_nesting_tree_1): Likewise.
6414         (lower_nested_functions): Likewise.
6415         * tree-optimize.c (execute_fixup_cfg): Likewise.
6416         (tree_rest_of_compilation): Likewise.
6417         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
6418         * tree-sra.c (ipa_early_sra): Likewise.
6419         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
6420         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
6421         * ipa.c (record_cdtor_fn): Likewise.
6422         * ipa-inline.c (cgraph_early_inlining): Likewise.
6423         (compute_inline_parameters_for_current): Likewise.
6424         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
6425         * ipa-pure-const.c (local_pure_const): Likewise.
6426         * ipa-split.c (split_function): Likewise.
6427         (execute_split_functions): Likewise.
6428         * cgraphbuild.c (build_cgraph_edges): Likewise.
6429         (rebuild_cgraph_edges): Likewise.
6430         (cgraph_rebuild_references): Likewise.
6431         (remove_cgraph_callee_edges): Likewise.
6432         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
6433         (verify_cgraph_node): Likewise.
6434         (cgraph_analyze_functions): Likewise.
6435         (cgraph_preserve_function_body_p): Likewise.
6436         (save_inline_function_body): Likewise.
6437         (save_inline_function_body): Likewise.
6438         * tree-inline.c (copy_bb): Likewise.
6439         (optimize_inline_calls): Likewise.
6440
6441 2011-04-11  Martin Jambor  <mjambor@suse.cz>
6442
6443         PR tree-optimization/48195
6444         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
6445         ipa_check_create_edge_args.
6446         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
6447         ipa_check_create_edge_args.
6448         * ipa-inline.c (inline_generate_summary): Do not call
6449         ipa_check_create_node_params and ipa_check_create_edge_args.
6450         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
6451         ipa_check_create_edge_args.
6452
6453 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
6454
6455         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
6456         instead of loop.
6457         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
6458         * function.c (record_hard_reg_sets): Likewise.
6459         * ira.c (compute_regs_asm_clobbered): Likewise.
6460         * sched-deps.c (sched_analyze_1): Likewise.
6461         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
6462
6463 2011-04-09  Xinliang David Li  <davidxl@google.com>
6464
6465         PR tree-optimization/PR48484
6466         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
6467         has_valid_pred lazily
6468
6469 2011-04-09  Duncan Sands  <baldrick@free.fr>
6470
6471         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
6472
6473 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
6474
6475         * combine.c (combine_validate_cost): Adjust comments.  Set registered
6476         cost of I0 to zero at the end, if any.
6477
6478 2011-04-08  Xinliang David Li  <davidxl@google.com>
6479
6480         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
6481         to insane profile data.
6482
6483 2011-04-08  Xinliang David Li  <davidxl@google.com>
6484
6485         * ipa-cp.c (ipcp_update_profiling): Correct
6486          negative scale factor due to insane profile data.
6487
6488 2011-04-08  Xinliang David Li  <davidxl@google.com>
6489
6490         * final.c (dump_basic_block_info): New function.
6491         (final): Dump basic block.
6492         (final_scan_insn): Remove old dump.
6493
6494 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
6495
6496         PR target/47829
6497         * config.gcc (i386-*-freebsd): Disable unwind table generation for
6498         crtbegin/crtend.
6499
6500 2011-04-08  Michael Matz  <matz@suse.de>
6501
6502         PR middle-end/48389
6503         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
6504         functions.
6505         (rebuild_jump_labels): Call rebuild_jump_labels_1.
6506         * rtl.h (rebuild_jump_labels_chain): Declare.
6507         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
6508         insns inserted on edges.
6509
6510 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
6511
6512         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
6513         * config/arm/arm-arches.def: New.
6514         * config/arm/arm-opts.h: New.
6515         * config/arm/genopt.sh: New.
6516         * config/arm/arm-tables.opt: New (generated).
6517         * config/arm/arm.c (arm_handle_option, arm_target_help,
6518         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
6519         (all_architectures): Get most table contents from arm-arches.def.
6520         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
6521         arm_selected_tune here.
6522         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
6523         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
6524         (march=, mcpu=, mtune=): Use Enum and Var.
6525         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
6526         (arm.o): Update dependencies.
6527
6528 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
6529
6530         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
6531         of header_file.
6532         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
6533         (write_typed_alloc_defns): Likewise.
6534         (main): Calls write_typed_alloc_defns with output_header.
6535
6536 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
6537
6538         PR inline-asm/48435
6539         * ira-color.c (setup_profitable_hard_regs): Add comments.
6540         Don't take prohibited hard regs into account.
6541         (setup_conflict_profitable_regs): Rename to
6542         get_conflict_profitable_regs.
6543         (check_hard_reg_p): Check prohibited hard regs.
6544
6545 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
6546
6547         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
6548         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
6549         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
6550
6551 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6552
6553         PR target/48366
6554         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
6555         move from floating point to shift amount register.
6556         (emit_move_sequence): Remove secondary reload support for floating
6557         point to shift amount amount register copies.
6558         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
6559         amount register copies.
6560         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
6561         register, return false if mode isn't a scalar integer mode.
6562         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
6563
6564 2011-04-08  Richard Guenther  <rguenther@suse.de>
6565
6566         * gimple.c (gimple_call_flags): Remove kludge.
6567
6568 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6569
6570         * sel-sched.c (sel_region_init): Move call to
6571         sel_setup_region_sched_flags after setup_current_loop_nest.
6572
6573 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
6574
6575         PR rtl-optimization/48272
6576         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
6577         init_insn_reg_pressure_info.  Adjust a caller.
6578         * sched-int.h (init_insn_reg_pressure_info): Declare.
6579         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
6580         when sched-pressure is enabled.
6581
6582 2011-04-08  Richard Guenther  <rguenther@suse.de>
6583
6584         * gimple.c (gimple_set_modified): Do not queue calls to
6585         MODIFIED_NORETURN_CALLS here ...
6586         * tree-ssa-operands.c (update_stmt_operands): ... but here.
6587
6588 2011-04-08  Richard Guenther  <rguenther@suse.de>
6589
6590         PR lto/48467
6591         * toplev.c (lang_dependent_init): Do not open asm_out_file
6592         in WPA mode, nor perform debug machinery initialization.
6593         (finalize): Do not unlink asm_out_file in WPA mode.
6594
6595 2011-04-08  Richard Guenther  <rguenther@suse.de>
6596
6597         * gimple.h (gimple_call_fntype): New function.
6598         (gimple_call_return_type): Use it.
6599         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
6600         * gimple-low.c (gimple_check_call_args): Likewise.
6601         * gimple.c (gimple_call_flags): Likewise.
6602         (gimple_call_arg_flags): Likewise.
6603         (gimple_call_return_flags): Likewise.
6604         * tree-cfg.c (verify_gimple_call): Likewise.
6605         (do_warn_unused_result): Likewise.
6606         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
6607         * value-prof.c (gimple_ic_transform): Fix fndecl check.
6608
6609 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
6610
6611         PR rtl-optimization/48235
6612         * sel-sched.c (code_motion_process_successors): Recompute the last
6613         insn in basic block if control flow changed.
6614         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
6615         Update condition for ilist_remove.
6616
6617 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6618
6619         PR rtl-optimization/48302
6620         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
6621         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
6622         it to record added preheader blocks.
6623         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
6624         on to sel_add_loop_preheaders.
6625         (sel_region_init): Move call to setup_current_loop_nest after
6626         sel_init_bbs.
6627
6628 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6629
6630         PR target/48273
6631         * cfgloop.h (loop_has_exit_edges): New helper.
6632         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
6633         non-clonable.
6634         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
6635         that have no exit edges.
6636
6637 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
6638
6639         PR rtl-optimization/48442
6640         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
6641         all callers.  Adjust assert.
6642
6643 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
6644
6645         PR tree-optimization/48377
6646         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
6647         is_packed to true even for types with smaller TYPE_ALIGN than
6648         TYPE_SIZE.
6649
6650 2011-04-08  Richard Guenther  <rguenther@suse.de>
6651
6652         PR bootstrap/48513
6653         * doc/tm.texi: Re-generate.
6654
6655 2011-04-08  Wei Guozhi  <carrot@google.com>
6656
6657         PR target/47855
6658         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
6659         * config/arm/arm.c (arm_attr_length_push_multi): New function.
6660         * config/arm/arm.md (*push_multi): Change the length computation to
6661         call a C function.
6662
6663 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
6664
6665         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
6666         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
6667         * doc/tm.texi: Regenerate.
6668         * system.h (ASM_OUTPUT_BSS): Poison.
6669         * varasm.c (asm_output_bss): Remove function.
6670         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
6671
6672         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
6673         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
6674         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
6675         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6676         Likewise.
6677         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6678         Likewise.
6679         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
6680         Likewise.
6681         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6682
6683 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6684
6685         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6686         EnumValue lines.
6687
6688 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
6689
6690         * config/m68k/m68k.c (m68k_handle_option): Don't handle
6691         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6692         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6693         OPT_mcpu32.
6694         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6695         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6696         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6697         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6698         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6699         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6700         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6701         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6702         options.  Don't map other m68k options manually.  Don't handle
6703         old-style options as canonical.
6704         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6705         * doc/install.texi (m68k-*-*): Document binutils version requirement.
6706
6707 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
6708
6709         * basic-block.h (force_nonfallthru): Move to...
6710         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6711         (force_nonfallthru): ...here.
6712         * cfghooks.c (force_nonfallthru): New function.
6713         * cfgrtl.c (force_nonfallthru): Rename into...
6714         (rtl_force_nonfallthru): ...this.
6715         (commit_one_edge_insertion): Do not set AUX field.
6716         (commit_edge_insertions): Do not discover new basic blocks.
6717         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6718         (cfg_layout_rtl_cfg_hooks): Likewise.
6719         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6720         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
6721         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6722
6723 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
6724
6725         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6726         Remove macros.
6727
6728 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
6729
6730         * config/i386/sse.md: Update copyright year.
6731         (avxcvtvecmode): Remove.
6732         (sse_movhlps): Merge with *avx_movhlps.
6733         (sse_movlhps): Merge with *avx_movlhps.
6734         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6735         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6736         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6737         (sse_loadhps): Merge with *avx_loadhps.
6738         (sse_storelps): Merge with *avx_storelps.
6739         (sse_loadlps): Merge with *avx_loadlps.
6740         (sse_movss): Merge with *avx_movss.
6741         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6742         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6743         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6744         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6745         (vec_set<mode>_0): Ditto.
6746         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6747         (sse4_1_insertps): Merge with *avx_insertps.
6748         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6749         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6750         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6751         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6752         (sse2_storehpd): Merge with *avx_storehpd.
6753         (sse2_loadhpd): Merge with *avx_loadhpd.
6754         (sse2_loadlpd): Merge with *avx_loadlpd.
6755         (sse2_movsd): Merge with *avx_movsd.
6756         (*vec_concatv2df): Merge with *vec_concatv2df.
6757
6758 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
6759
6760         PR debug/48343
6761         * combine.c (combine_instructions): Add last_combined_insn,
6762         update it if insn is after it, pass it to all try_combine calls.
6763         (try_combine): Add last_combined_insn parameter, pass it instead of
6764         i3 to propagate_for_debug.
6765
6766 2011-04-07  Nick Clifton  <nickc@redhat.com>
6767
6768         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6769         to handle MDR <-> data register transfers.
6770         (movhi_internal): Likewise.
6771
6772 2011-04-07  Alan Modra  <amodra@gmail.com>
6773
6774         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6775         previous stack info.
6776
6777 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6778
6779         PR target/43920
6780         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
6781         flow_find_cross_jump.  Swap variables to implement backward replacement.
6782         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6783
6784 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6785
6786         PR target/43920
6787         * cfgcleanup.c (walk_to_nondebug_insn): New function.
6788         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
6789         and bb2.
6790         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6791         src1 or src2.  Redirect edges to the last basic block.  Update
6792         frequency and count on multiple basic blocks in case of fallthru.
6793
6794 2011-04-07  Tom de Vries  <tom@codesourcery.com>
6795
6796         PR target/43920
6797         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6798         function.
6799         (old_insns_match_p): Change return type.  Replace return false/true
6800         with return dir_none/dir_both.  Use can_replace_by.
6801         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
6802         direction from dir_p.  Register replacement direction in dir, last_dir
6803         and afterlast_dir.  Handle new return type of old_insns_match_p using
6804         merge_dir.  Return replacement direction in dir_p.
6805         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6806         return type of old_insns_match_p.
6807         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6808         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6809         flow_find_cross_jump.
6810         * basic-block.h (enum replace_direction): New type.
6811         (flow_find_cross_jump): Add parameter to declaration.
6812
6813 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6814
6815         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6816         (AVXMODEDCVTPS2DQ): Ditto.
6817         (VEC_FLOAT_MODE): Ditto.
6818         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
6819         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6820         (<any_logic:code><mode>3): Use VF mode iterator.
6821         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6822         Use VF mode iterator.
6823         (copysign<mode>3): Use VF mode iterator.
6824         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
6825         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6826         (*<any_logic:code><MODEF:mode>3): Merge with
6827         *avx_<any_logic:code><MODEF:mode>3.
6828         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6829         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6830         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6831         (avx_cvtdq2ps<avxmodesuffix>): Remove.
6832         (sse2_cvtdq2ps): Use %v modifier.
6833         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6834         (avx_cvtps2dq<avxmodesuffix>): Remove.
6835         (sse2_cvtps2dq): Use %v modifier.
6836         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6837         (avx_cvttps2dq<avxmodesuffix>): Remove.
6838         (sse2_cvttps2dq): Use %v modifier.
6839         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6840         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6841         (sse2_cvtsd2siq): Fix insn template.
6842         (sse2_cvtsd2siq_2): Ditto.
6843         (sse2_cvttsd2siq): Ditto.
6844         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6845         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6846
6847 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6848
6849         * gcov-io.c: Use GCC Runtime Library Exception.
6850
6851 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
6852
6853         PR debug/48466
6854         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6855         as base_reg whatever register reg has been eliminated to, instead
6856         of hardcoding STACK_POINTER_REGNUM.
6857
6858 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
6859
6860         * doc/tm.texi.in: Document C target hooks as separate from general
6861         target hooks.
6862         * doc/tm.texi: Regenerate.
6863         * genhooks.c (struct hook_desc): Add docname field.
6864         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
6865         docname field.
6866         (hook_array): Include c-target.def.
6867         (emit_documentation): Use docname field in output.
6868         (emit_init_macros): Take docname argument.  Only emit definitions
6869         for hooks matching docname.
6870         (main): Expect additional arguments in all cases.  Pass argument
6871         to emit_init_macros.
6872         * target.def: Move initial macro definitions and comments to
6873         target-hooks-macros.h.
6874         (gcc_targetcm): Move to c-family/c-target.def.
6875         * target.h (targetcm): Move declaration to c-family/c-target.h.
6876         * targhooks.c (default_handle_c_option): Move to
6877         c-family/c-opts.c.
6878         * targhooks.h (default_handle_c_option): Move declaration to
6879         c-family/c-common.h.
6880         * target-hooks-macros.h: New file.
6881         * config.gcc (target_has_targetcm): Define and use to add to
6882         c_target_objs and cxx_target_objs.
6883         * config/default-c.c: New file.
6884         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6885         of target.h and target-def.h.
6886         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6887         (darwin_objc_construct_string, darwin_cfstring_ref_p,
6888         darwin_check_cfstring_format_arg): Make static.
6889         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6890         TARGET_STRING_OBJECT_REF_TYPE_P,
6891         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6892         * config/darwin-protos.h (darwin_objc_construct_string,
6893         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6894         declare.
6895         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6896         TARGET_STRING_OBJECT_REF_TYPE_P,
6897         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
6898         * config/t-darwin (darwin-c.o): Update dependencies.
6899         * system.h (TARGET_HAS_TARGETCM): Poison.
6900         * Makefile.in (TARGET_H): Update.
6901         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6902         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6903         (default-c.o): New target.
6904         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
6905         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
6906         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
6907         c-target.def.
6908         (build/genhooks.o): Update dependencies.
6909
6910 2011-04-06  Richard Guenther  <rguenther@suse.de>
6911
6912         * ipa-inline.c (enum inlining_mode): Remove.
6913         (cgraph_flatten): Use some other token.
6914         (cgraph_edge_early_inlinable_p): New function, split out from ...
6915         (cgraph_perform_always_inlining): New function, split out from ...
6916         (cgraph_decide_inlining_incrementally): ... here.
6917         (cgraph_mark_inline_edge): Adjust.
6918         (cgraph_early_inlining): Re-structure.
6919         (pass_early_inline): Require SSA form.
6920
6921 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
6922             Julian Brown  <julian@codesourcery.com>
6923             Mark Shinwell  <shinwell@codesourcery.com>
6924
6925         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6926         LO_REGS only for Thumb-1.
6927         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6928         be used in short instructions when optimising for size on Thumb-2.
6929
6930 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
6931
6932         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6933         associated with user returns to be preserved.
6934
6935 2011-04-06  Tristan Gingold  <gingold@adacore.com>
6936
6937         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6938         symbol_queue_size, DBXOUT_DECR_NESTING,
6939         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6940         if XCOFF_DEBUGGING_INFO.
6941
6942 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
6943
6944         * config/i386/i386.md (attribute isa): New.
6945         (attribute enabled): New.
6946         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6947         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6948         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6949         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6950         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6951         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6952         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6953         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6954
6955         * config/i386/sse.md (VF): New mode iterator.
6956         (VF1): Ditto.
6957         (VF2): Ditto.
6958         (VF_128): Ditto.
6959         (SSEMODEF4): Remove.
6960         (attribute sse): Handle V8SF and V4DF modes.
6961         (<absneg:code><mode>2): Use VF mode iterator.
6962         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
6963         mode iterator.
6964         (<plusminus_insn><mode>3): Use VF mode iterator.
6965         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6966         Use VF mode iterator.
6967         (<sse>_vm<plusminus_insn><mode>3): Merge with
6968         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
6969         (mul<mode>3): Use VF mode iterator.
6970         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
6971         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
6972         mode iterator.
6973         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6974         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6975         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
6976         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
6977         mode iterator.
6978         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6979         Use VF1 mode iterator.
6980         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6981         (sqrt<VF2:mode>2): New expander.
6982         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6983         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6984         and sqrtv2df2.  Use VF mode iterator.
6985         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
6986         mode iterator.
6987         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6988         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6989         Use VF1 mode iterator.
6990         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6991         (<smaxmin:code><mode>3): Use VF mode iterator.
6992         (*<smaxmin:code><mode>3_finite): Merge with
6993         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
6994         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6995         (<sse>_vm<smaxmin:code><mode>2): Merge with
6996         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
6997         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
6998         mode iterator.
6999         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
7000         mode iterator.
7001         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
7002         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
7003         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
7004         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
7005         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
7006         VF mode iterator.
7007         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
7008         Use VF_128 mode iterator.
7009         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
7010         mode iterator.
7011         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
7012         VF_128 mode iterator.
7013         (vcond<mode>): Use VF mode iterator.
7014         * config/i386/predicates.md (sse_comparison_operator): Merge with
7015         avx_comparison_float_operator.  Do not declare as special_predicate.
7016         * config/i386/i386.c (struct builtin_description): Update for renamed
7017         compare patterns.
7018         (ix86_expand_args_builtin): Ditto.
7019         (ix86_expand_sse_compare_mask): Ditto.
7020
7021 2011-04-06  Richard Guenther  <rguenther@suse.de>
7022
7023         * tree-inline.c (estimate_num_insns): For calls simply account
7024         for all passed arguments and a used return value.
7025
7026 2011-04-06  Richard Guenther  <rguenther@suse.de>
7027
7028         PR tree-optimization/47663
7029         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
7030         call_stmt_time fields.
7031         (cgraph_edge_inlinable_p): Declare.
7032         (cgraph_edge_recursive_p): New inline function.
7033         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
7034         (cgraph_clone_edge): Copy it.
7035         * ipa-inline.c (cgraph_estimate_edge_time): New function.
7036         Account for call stmt time.
7037         (cgraph_estimate_time_after_inlining): Take edge argument.
7038         (cgraph_estimate_edge_growth): Account call stmt size.
7039         (cgraph_estimate_size_after_inlining): Take edge argument.
7040         (cgraph_mark_inline_edge): Adjust.
7041         (cgraph_check_inline_limits): Likewise.
7042         (cgraph_recursive_inlining_p): Remove.
7043         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
7044         (cgraph_decide_recursive_inlining): Take edge argument and
7045         adjust.
7046         (cgraph_decide_inlining_of_small_functions): Do not avoid
7047         diags for recursive inlining here.
7048         (cgraph_flatten): Adjust.
7049         (cgraph_decide_inlining_incrementally): Likewise.
7050         (estimate_function_body_sizes): Remove call cost handling.
7051         (compute_inline_parameters): Initialize caller edge call costs.
7052         (cgraph_estimate_edge_growth): New function.
7053         (cgraph_estimate_growth): Use it.
7054         (cgraph_edge_badness): Likewise.
7055         (cgraph_check_inline_limits): Take an edge argument.
7056         (cgraph_decide_inlining_of_small_functions): Adjust.
7057         (cgraph_decide_inlining): Likewise.
7058         * tree-inline.c (estimate_num_insns): Only account for call
7059         return value if it is used.
7060         (expand_call_inline): Avoid diagnostics on recursive inline
7061         functions here.
7062         * lto-cgraph.c (lto_output_edge): Output edge call costs.
7063         (input_edge): Input edge call costs.
7064
7065 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7066
7067         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
7068
7069 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
7070
7071         * doc/invoke.texi (Spec Files): Fix typo.
7072
7073 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
7074
7075         * profile.c (branch_prob): Move declaration of local variable.  Remove
7076         obsolete ??? comment.  Expand the location explicitly instead of using
7077         the LOCATION_FILE and LOCATION_LINE macros.
7078
7079 2011-04-06  Wei Guozhi  <carrot@google.com>
7080
7081         PR target/47855
7082         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
7083         (arm_cond_branch): Likewise.
7084         (arm_cond_branch_reversed): Likewise.
7085         (arm_jump): Likewise.
7086         (push_multi): Likewise.
7087         * config/arm/constraints.md (Py): New constraint.
7088
7089 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7090
7091         PR bootstrap/48471
7092         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
7093         Move these...
7094         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
7095         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
7096         #ifdef DBX_DEBUGGING_INFO.
7097
7098 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
7099
7100         PR bootstrap/48403
7101         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
7102         if old and new states differ.
7103
7104 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7105
7106         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
7107         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
7108         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
7109         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
7110         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
7111         mcfv4e): Use Alias.
7112         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
7113         ColdFire options to -mcpu= options.
7114
7115 2011-04-05  Jeff Law  <law@redhat.com>
7116
7117         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
7118         check if BB is a successor of LOOP->header and return
7119         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
7120
7121 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7122
7123         * cprop.c (struct reg_use): Remove.
7124         (reg_use_table): Make an array of RTX.
7125         (find_used_regs, constprop_register, local_cprop_pass,
7126         bypass_block): Simplify users of reg_use_table.
7127         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
7128         on one of the uses found by find_used_regs.
7129
7130 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7131
7132         PR bootstrap/48469
7133         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
7134         declaration.
7135
7136 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7137
7138         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
7139         as an rtx.
7140         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
7141
7142 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
7143
7144         PR middle-end/48441
7145         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
7146
7147 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7148
7149         * combine.c: Include obstack.h.
7150         (struct insn_link): Define.
7151         (uid_log_links): Adjust type.
7152         (FOR_EACH_LOG_LINK): New macro.
7153         (insn_link_obstack): Declare.
7154         (alloc_insn_link): Define.
7155         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
7156         type of link variables.
7157         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
7158         (try_combine, record_promoted_values, distribute_notes): Likewise.
7159         (distribute_links): Likewise.  Tweak prototype.
7160         (clear_log_links): Delete.
7161         (adjust_for_new_dest): Call alloc_insn_link.
7162         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
7163
7164 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7165
7166         * gcse.c (modify_mem_list): Convert to an array of VECs.
7167         (canon_modify_mem_list, compute_transp): Tweak formatting.
7168         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
7169         (load_killed_in_block_p): Likewise.
7170         (record_last_mem_set_info): Likewise.
7171         (clear_modify_mem_tables): Likewise.
7172
7173 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7174
7175         PR middle-end/48461
7176         * function.c (emit_use_return_register_into_block): Only define if
7177         HAVE_return.
7178
7179 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
7180
7181         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
7182
7183 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
7184
7185         * config/rx/rx-opts.h: New.
7186         * config/rx/rx.c (rx_cpu_type): Remove.
7187         (rx_handle_option): Don't assert that global structures are in
7188         use.  Access variables via opts pointer.  Defer most handling of
7189         OPT_mint_register_.  Use error_at.
7190         (rx_option_override): Handle deferred OPT_mint_register_ here.
7191         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
7192         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
7193         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
7194         (rx_cpu_types): New Enum and EnumValue entries.
7195         (mint-register=): Use Defer and use Var accordingly.
7196
7197 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7198
7199         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
7200         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
7201         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
7202         Move these...
7203         (debug_free_queue, debug_nesting, symbol_queue_index):
7204         ...and these...
7205         * dbxout.c: ...to here.  Make static.
7206
7207 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
7208
7209         * gcse.c (modify_pair): Define.  Define a VEC of it.
7210         (canon_modify_mem_list): Convert to an array of VECs.
7211         (free_insn_expr_list_list): Delete.
7212         (clear_modify_mem_tables): Call VEC_free instead.
7213         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
7214         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
7215         (canon_list_insert, compute_transp): Likewise.
7216
7217 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7218
7219         PR target/43920
7220         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
7221         for size.
7222
7223 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7224
7225         PR target/43920
7226         * function.c (emit_use_return_register_into_block): New function.
7227         (thread_prologue_and_epilogue_insns): Use
7228         emit_use_return_register_into_block.
7229
7230 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7231
7232         PR target/43920
7233         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
7234         insn.
7235
7236 2011-04-05  Tom de Vries  <tom@codesourcery.com>
7237
7238         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
7239
7240 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
7241
7242         * config/arm/arm.md (define_constants for unspec): Replace with
7243         define_c_enum.
7244         (define_constants for unspecv): Replace with define_c_enum.
7245         * config/arm/neon.md (define_constants for unspec): Replace with
7246         define_c_enum.
7247
7248 2011-04-04  Richard Henderson  <rth@redhat.com>
7249
7250         PR bootstrap/48400
7251         * dwarf2out.c (output_line_info): Always emit line info from
7252         at least one section.
7253         (dwarf2out_init): Create text_section_line_info here ...
7254         (set_cur_line_info_table): ... not here.
7255
7256 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
7257
7258         PR target/48380
7259         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
7260         not called.
7261
7262         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
7263
7264 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
7265
7266         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
7267         (expr_equiv_p): Remove.
7268         (insert_set_in_table): Look at <dest, src> pair instead of expr.
7269         (hash_scan_set): Update call to insert_set_in_table.
7270         (dump_hash_table): Dump <dest, src> pair.
7271         (lookup_set): Simplify.  Lookup <dest, src> pair.
7272         (compute_transp): Remove, fold heavily simplified code into...
7273         (compute_local_properties): ...here.  Expect COMP and TRANSP
7274         unconditionally.
7275         (find_avail_set): Take set directly from struct expr.
7276         (find_bypass-set): Likewise.
7277         (bypass_block): Likewise.
7278         (cprop_insn): Likewise.  Remove redundant INSN_P test.
7279
7280         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
7281         checks on form of COND from find_implicit_sets to here.
7282         (find_implicit_sets): Cleanup control flow. Split critical edges
7283         if it exposes implicit sets.  Allocate/resize implicit_sets as
7284         necessary.
7285         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
7286         changed something.  Run df_analyze after find_implicit_sets if any
7287         edges were split.  Do not allocate implicit_sets here.
7288
7289         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
7290         (gcse_obstack): Renamed to cprop_obstack.
7291         (GNEW, GNEWVEC, GNEWVAR): Remove.
7292         (gmalloc): Remove.
7293         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
7294         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
7295         (gcse_alloc): Likewise, and rename to cprop_alloc.
7296         (alloc_gcse_men, free_gcse_mem): Remove.
7297         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
7298         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
7299         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
7300
7301         * cprop.c (oprs_not_set_p): Remove.
7302         (mark_set, mark_clobber): Remove.
7303         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
7304         (reg_not_set_p): New function.
7305         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
7306         (cprop_insn): Likewise.
7307         (cprop_jump): Use FOR_EACH_EDGE.
7308
7309 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
7310
7311         PR bootstrap/48403
7312         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
7313         (rank_for_schedule): Use scheduled_insns vector instead of
7314         last_scheduled_insn.
7315         (ok_for_early_queue_removal): Likewise.
7316         (queue_to_ready): Search forward in nonscheduled_insns_begin if
7317         we have a dbg_cnt.
7318         (choose_ready): Likewise.
7319         (commit_schedule): Use VEC_iterate.
7320         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
7321         a dbg_cnt, use it and ensure the first insn is in the ready list.
7322         (haifa_sched_init): Allocate scheduled_insns.
7323         (sched_extend_ready_list): Don't allocate it; reserve space.
7324         (haifa_sched_finish): Free it.
7325
7326 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7327
7328         * optc-gen.awk: Always remove type from Variable entry before
7329         recording in var_seen.
7330
7331 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
7332
7333         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
7334         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
7335         call to tidy_fallthru_edges.
7336
7337 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
7338
7339         * doc/options.texi (ToLower): Document.
7340         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
7341         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
7342         * opts.h (cl_option): Add cl_tolower field.
7343         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
7344         arguments with lowercase strings.
7345         * config/rx/rx.opt (mcpu=): Add ToLower.
7346         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
7347         argument.
7348
7349 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7350
7351         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
7352
7353 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
7354
7355         * config/vax/vax.c: Include reload.h.
7356
7357 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
7358
7359         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
7360         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7361         (sparc_preferred_reload_class): New function.
7362
7363 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
7364
7365         PR debug/48401
7366         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7367         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
7368
7369 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
7370
7371         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
7372         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
7373
7374 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
7375
7376         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
7377         (ASM_OUTPUT_ALIGNED_BSS): Define.
7378
7379 2011-04-03  Michael Matz  <matz@suse.de>
7380
7381         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
7382         and next_slot members.
7383         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
7384         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
7385         (lto_streamer_cache_append): Declare.
7386         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
7387         unsigned index, remove offset parameter, ensure that we append
7388         or update existing entries.
7389         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
7390         parameter, update next_slot for append.
7391         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
7392         parameter.
7393         (lto_streamer_cache_insert_at): Likewise.
7394         (lto_streamer_cache_append): New function.
7395         (lto_streamer_cache_lookup): Use unsigned index.
7396         (lto_streamer_cache_get): Likewise.
7397         (lto_record_common_node): Don't test tree_node_can_be_shared.
7398         (preload_common_node): Adjust call to lto_streamer_cache_insert.
7399         (lto_streamer_cache_delete): Don't free offsets member.
7400         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
7401         (lto_output_string_with_length): Use lto_output_data_stream.
7402         (lto_output_tree_header): Remove ix parameter, don't write it.
7403         (lto_output_builtin_tree): Likewise.
7404         (lto_write_tree): Adjust callers to above, don't track and write
7405         offset, write unsigned index.
7406         (output_unreferenced_globals): Don't emit all global vars.
7407         (write_global_references): Use unsigned indices.
7408         (lto_output_decl_state_refs): Likewise.
7409         (write_symbol): Likewise.
7410         * lto-streamer-in.c (lto_input_chain): Move earlier.
7411         (input_function): Use unsigned index.
7412         (input_alias_pairs): Don't read and then ignore all global vars.
7413         (lto_materialize_tree): Remove ix_p parameter, don't read index,
7414         don't pass it back, use lto_streamer_cache_append.
7415         (lto_register_var_decl_in_symtab): Use unsigned index.
7416         (lto_register_function_decl_in_symtab): Likewise.
7417         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
7418         index.
7419         (lto_get_builtin_tree): Don't read index, use
7420         lto_streamer_cache_append.
7421         (lto_read_tree): Adjust call to lto_materialize_tree.
7422
7423         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
7424         don't use function calls in arguments to MIN.
7425
7426         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
7427         twice.
7428
7429         * gimple.c (gimple_type_leader_entry): Mark deletable.
7430
7431 2011-04-03  Alan Modra  <amodra@gmail.com>
7432
7433         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
7434
7435 2011-04-03  Michael Matz  <matz@suse.de>
7436
7437         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
7438         an integer.
7439         * tree.h (tree_decl_non_common.vindex): Adjust comment.
7440
7441 2011-04-03  Michael Matz  <matz@suse.de>
7442
7443         * cgraphbuild.c (record_reference): Canonicalize constructor values.
7444         * gimple-fold.c (canonicalize_constructor_val): Accept being called
7445         without function context.
7446         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
7447         current_function_decl and cfun.
7448
7449 2011-04-03  Michael Matz  <matz@suse.de>
7450
7451         * tree.c (decl_init_priority_insert): Don't create entry for
7452         default priority.
7453         (decl_fini_priority_insert): Ditto.
7454         (fields_compatible_p, find_compatible_field): Remove.
7455         * tree.h (fields_compatible_p, find_compatible_field): Remove.
7456         * gimple.c (gimple_compare_field_offset): Adjust block comment.
7457
7458 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
7459
7460         * combine.c (try_combine): Remove useless local variable.
7461
7462 2011-04-03  Richard Guenther  <rguenther@suse.de>
7463             Ira Rosen  <ira.rosen@linaro.org>
7464
7465         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
7466         non-variable offsets and compare the remaining bases of the two
7467         accesses instead of looking for exact same data-ref.
7468
7469 2011-04-02  Kai Tietz  <ktietz@redhat.com>
7470
7471         PR target/48416
7472         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
7473
7474         * i386.c (ix86_is_msabi_thiscall): New helper function.
7475         (ix86_is_type_thiscall): New helper function.
7476         (ix86_comp_type_attributes): Handle thiscall for method-functions
7477         special.
7478         (init_cumulative_args): Likewise.
7479         (find_drap_reg): Likewise.
7480         (ix86_static_chain): Likewise.
7481         (x86_this_parameter): Likewise.
7482         (x86_output_mi_thunk): Likewise.
7483
7484 2011-04-01  Olivier Hainque  <hainque@adacore.com>
7485             Nicolas Setton  <setton@adacore.com>
7486             Eric Botcazou  <ebotcazou@adacore.com>
7487
7488         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
7489         (add_gnat_descriptive_type_attribute): New function.
7490         (gen_array_type_die): Call it.
7491         (gen_enumeration_type_die): Likewise.
7492         (gen_struct_or_union_type_die): Likewise.
7493         (modified_type_die): Likewise.
7494         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
7495         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
7496         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
7497
7498 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7499
7500         PR bootstrap/48148
7501         * dwarf2out.c (resolve_addr): Don't call force_decl_die
7502         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
7503
7504         Revert:
7505         2011-03-17  Richard Guenther  <rguenther@suse.de>
7506
7507         PR bootstrap/48148
7508         * lto-cgraph.c (input_overwrite_node): Clear the abstract
7509         origin for decls in other ltrans units.
7510         (input_varpool_node): Likewise.
7511
7512 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
7513
7514         PR middle-end/48335
7515         * expr.c (expand_assignment): Handle all possibilities
7516         if TO_RTX is CONCAT.
7517         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
7518         (store_split_bit_field): If SUBREG_REG (op0) or
7519         op0 itself has smaller mode than word, return it
7520         for offset 0 and const0_rtx for out-of-bounds stores.
7521         If word is const0_rtx, skip it.
7522
7523 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
7524
7525         * config/h8300/h8300.c (print_operand_address): Rename to...
7526         (h8300_print_operand_address): ...this. Make static. Adjust comments.
7527         Call h8300_print_operand and h8300_print_operand_address instead of
7528         print_operand and print_operand_address. Declare.
7529         (print_operand): Renake to...
7530         (h8300_print_operand): ...this. Make static. Adjust comments.
7531         Call h8300_print_operand instead of print_operand. Declare.
7532         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
7533         (h8300_register_move_cost): Likewise.
7534         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
7535         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
7536         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
7537         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
7538         * config/h8300/h8300-protos.h (print_operand): Delete.
7539         (print_operand_address): Delete.
7540
7541 2011-04-01  Richard Henderson  <rth@redhat.com>
7542
7543         PR 48400
7544         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
7545         in strict mode before dwarf4.  Re-order tests to early out
7546         before switching sections.
7547
7548 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
7549
7550         * config/h8300/constraints.md: New file.
7551         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
7552         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
7553         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
7554         * config/h8300/predicates.md (bit_operand): Likewise.
7555         (incdec_operand): Use satisfies_constraint_M and
7556         satisfies_constraint_O.  Don't use C code block.
7557         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
7558         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
7559         (compute_mov_length): Use satisfies_constraint_G.
7560         (fix_bit_operand): Use satisfies_constraint_U.
7561         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
7562         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
7563         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
7564         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
7565         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
7566         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
7567         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
7568         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
7569         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
7570         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
7571         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
7572         (EXTRA_MEMORY_CONSTRAINT): Delete.
7573
7574 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
7575             Michael Meissner  <meissner@linux.vnet.ibm.com>
7576
7577         PR target/48262
7578         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
7579         operands, as per the specifications.
7580
7581         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
7582         (vec_extract_evenv4sf): Ditto.
7583         (vec_extract_evenv8hi): Ditto.
7584         (vec_extract_evenv16qi): Ditto.
7585         (vec_extract_oddv4si): Ditto.
7586
7587 2011-03-31  Mark Wielaard  <mjw@redhat.com>
7588
7589         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
7590         high_pc attribute if the CU has no associated code. Only output
7591         DW_AT_entry_pc for CU if not generating strict dwarf and
7592         dwarf_version < 4.
7593
7594 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
7595
7596         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
7597         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
7598         out of ...
7599         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
7600         * final.c (final_start_function): Call the new function rather
7601         than using a NULL argument for dwarf2out_frame_debug.
7602
7603         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
7604         that contains the prologue.
7605
7606         * haifa-sched.c (queue_insn): New arg REASON.  All callers
7607         changed.  Print it in debugging output.
7608
7609         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
7610
7611         * sched-ebb.c (begin_schedule_ready): Remove second argument.
7612         Split most of the code into...
7613         (begin_move_insn): ... here.  New function.
7614         (ebb_sched_info): Add a pointer to it.
7615         * haifa-sched.c (scheduled_insns): New static variable.
7616         (sched_extend_ready_list): Allocate it.
7617         (schedule_block): Use it to record the order of scheduled insns.
7618         Perform RTL changes to move insns only after all scheduling
7619         decisions have been made.
7620         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
7621         begin_move_insn field.
7622         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
7623         * sched-int.h (struct haifa_sched_info): Remove second argument
7624         from begin_schedule_ready hook.  Add new member begin_move_insn.
7625         * sched-rgn.c (begin_schedule_ready): Remove second argument.
7626         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
7627
7628         * haifa-sched.c (prune_ready_list): New function, broken out of
7629         schedule_block.
7630         (schedule_block): Use it.
7631
7632 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7633
7634         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
7635
7636 2011-04-01  Kai Tietz  <ktietz@redhat.com>
7637
7638         * config.gcc (*-*-mingw*): Allow as option the
7639         posix threading model.
7640         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
7641         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
7642         definition.
7643         (CPP_SPEC): Add pthread/no-pthread handling.
7644         (LIB_SPEC): Likewise.
7645         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
7646         (LIB_SPEC): Likewise.
7647         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
7648         flag to pass -pthread option for shared libgcc build.
7649         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
7650         for shared libgcc build.
7651         * config/i386/t-mingw-pthread: New file.
7652         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
7653         New define to enable use of library pthread by default.
7654         * config/i386/mingw.opt (pthread): New driver option.
7655         (no-pthread): New driver option.
7656         * config/i386/cygming.opt: Make sure trailing empty line is retained.
7657         * config/i386/mingw-w64.opt: Likewise.
7658
7659 2011-04-01  Gary Funck  <gary@intrepid.com>
7660
7661         * c-decl.c (grokdeclarator): Fix formatting.
7662
7663 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7664
7665         * expr.c (emit_block_move_via_movmem): Use n_generator_args
7666         instead of n_operands.
7667         (set_storage_via_setmem): Likewise.
7668         * optabs.c (maybe_gen_insn): Likewise.
7669         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
7670         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
7671         (mips_expand_builtin_direct): Likewise.
7672         * config/spu/spu.c (expand_builtin_args): Likewise.
7673
7674 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7675
7676         * recog.h (insn_data_d): Add n_generator_args.
7677         * genoutput.c (data): Likewise.
7678         (output_insn_data): Print it.
7679         (max_opno, num_dups): Delete.
7680         (scan_operands): Just fill in "d->operand[...]".
7681         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7682
7683 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
7684
7685         * gensupport.h (pattern_stats): New structure.
7686         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7687         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7688         (max_operand_1, max_operand_vec): Delete.
7689         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7690
7691 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
7692
7693         * emit-rtl.c (emit_pattern_after_setloc): New function.
7694         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7695         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7696         (emit_pattern_after): New function.
7697         (emit_insn_after, emit_jump_insn_after): Call it.
7698         (emit_call_insn_after, emit_debug_insn_after): Likewise.
7699         (emit_pattern_before_setloc): New function.
7700         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7701         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7702         Likewise.
7703         (emit_pattern_before): New function.
7704         (emit_insn_before, emit_jump_insn_before): Call it.
7705         (emit_call_insn_before, emit_debug_insn_before): Likewise.
7706
7707 2011-03-31  Richard Henderson  <rth@redhat.com>
7708
7709         * dwarf2out.c (dw_separate_line_info_ref): Remove.
7710         (dw_separate_line_info_entry): Remove.
7711         (enum dw_line_info_opcode): New.
7712         (dw_line_info_entry): Use it.
7713         (dw_line_info_table, dw_line_info_table_p): New.
7714         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7715         (line_info_table, line_info_label_num): Remove.
7716         (line_info_table_in_use): Remove.
7717         (separate_line_info_table): Remove.
7718         (separate_line_info_table_allocated): Remove.
7719         (separate_line_info_table_in_use): Remove.
7720         (LINE_INFO_TABLE_INCREMENT): Remove.
7721         (line_info_label_num): New.
7722         (cur_line_info_table): New.
7723         (text_section_line_info, cold_text_section_line_info): New.
7724         (separate_line_info): New.
7725         (SEPARATE_LINE_CODE_LABEL): Remove.
7726         (print_dwarf_line_table): Remove.
7727         (debug_dwarf): Don't dump it.
7728         (output_one_line_info_table): New.
7729         (output_line_info): Use it.
7730         (new_line_info_table): New.
7731         (set_cur_line_info_table): New.
7732         (dwarf2out_switch_text_section): Use it.
7733         (dwarf2out_begin_function): Likewise.
7734         (push_dw_line_info_entry): New.
7735         (dwarf2out_source_line): Rewrite for new line info tables.
7736         (dwarf2out_init): Remove dead initailizations.
7737
7738 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7739
7740         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
7741         various flags.
7742         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7743         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7744         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7745         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7746         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7747         * opt-functions.awk (flag_init, switch_bit_fields): New.
7748         (switch_flags): Don't handle flags moved to bit-fields.  Don't
7749         generate CL_MISSING_OK or CL_SAVE.
7750         * optc-gen.awk: Update to generate bit-field output as well as
7751         flags field.
7752         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7753         bit-field instead of CL_REJECT_DRIVER flag.
7754         * opts-common.c (generate_canonical_option,
7755         decode_cmdline_option): Use bit-fields instead of CL_* flags.
7756         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7757         instead of CL_REJECT_NEGATIVE flag.
7758         * toplev.c (print_switch_values): Use cl_report bit-field instead
7759         of CL_REPORT flag.
7760
7761 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7762
7763         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7764         a zero minimum index only if it is redundant.
7765
7766 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
7767
7768         PR rtl-optimization/48381
7769         * ira-color.c (assign_hard_reg): Use hard reg set intersection
7770         instead of ira_class_hard_reg_index for calculating conflicting
7771         hard registers.
7772
7773 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
7774
7775         * cprop.c: Clean up hash table building.
7776         (reg_avail_info): Remove.
7777         (oprs_available_p): Remove.
7778         (record_last_reg_set_info): Remove.
7779         (record_last_set_info): Remove.
7780         (reg_available_p): New function.
7781         (gcse_constant_p): Do not treat unfolded conditions as constants.
7782         (make_set_regs_unavailable): New function.
7783         (hash_scan_set): Simplify with new reg_available_p.
7784         (compute_hash_table_work): Traverse insns stream only once.
7785         Do not compute reg_avail_info. Traverse insns in reverse order.
7786         Record implicit sets after recording explicit sets from the block.
7787
7788 2011-03-31  Michael Matz  <matz@suse.de>
7789
7790         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
7791
7792 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
7793
7794         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7795         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7796         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7797         (h8300_mode_dependent_address_p): New function.
7798         (h8300_get_index): Make static.
7799
7800 2011-03-31  Jeff Law  <law@redhat.com>
7801
7802         * reload1.c (elimination_effects): Fix typo in recent change.
7803
7804         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
7805         typo potentially leading to null pointer dereference.
7806
7807         * caller-save.c (new_saved_hard_reg): Eliminate return value.
7808         (setup_save_areas): Corresponding changes to avoid useless
7809         assignments.
7810
7811         * jump.c (reversed_comparison_code_parts): Avoid successive return
7812         statements when REVERSE_CONDITION is defined.
7813
7814         * expr.c (expand_assignment): Avoid useless assignments.
7815         (expand_expr_real_1): Likewise.
7816         (expand_expr_real_2): Avoid useless statements.
7817
7818         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7819
7820         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7821
7822         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7823         statements.
7824
7825         * stmt.c (expand_expr_stmt): Avoid useless assignment.
7826
7827 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
7828
7829         PR target/47109
7830         * doc/tm.texi.in (TARGET_VERSION): Remove.
7831         * doc/tm.texi: Regenerate.
7832         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7833         * collect2.c (main): Don't use TARGET_VERSION.
7834         * mips-tdump.c (main): Don't use TARGET_VERSION.
7835         * mips-tfile.c (main): Don't use TARGET_VERSION.
7836         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
7837         * config/rs6000/vxworksae.h: Remove.
7838         * config/alpha/alpha.h (TARGET_VERSION): Remove.
7839         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7840         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7841         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7842         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7843         * config/arm/arm.h (TARGET_VERSION): Remove.
7844         * config/arm/coff.h (TARGET_VERSION): Remove.
7845         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7846         * config/arm/elf.h (TARGET_VERSION): Remove.
7847         * config/arm/freebsd.h (TARGET_VERSION): Remove.
7848         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7849         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7850         * config/arm/pe.h (TARGET_VERSION): Remove.
7851         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7852         * config/arm/semi.h (TARGET_VERSION): Remove.
7853         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7854         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7855         * config/arm/vxworks.h (TARGET_VERSION): Remove.
7856         * config/avr/avr.h (TARGET_VERSION): Remove.
7857         * config/bfin/bfin.h (TARGET_VERSION): Remove.
7858         * config/fr30/fr30.h (TARGET_VERSION): Remove.
7859         * config/frv/frv.h (TARGET_VERSION): Remove.
7860         * config/h8300/h8300.h (TARGET_VERSION): Remove.
7861         * config/i386/cygwin.h (TARGET_VERSION): Remove.
7862         * config/i386/darwin.h (TARGET_VERSION): Remove.
7863         * config/i386/darwin64.h (TARGET_VERSION): Remove.
7864         * config/i386/djgpp.h (TARGET_VERSION): Remove.
7865         * config/i386/freebsd.h (TARGET_VERSION): Remove.
7866         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7867         * config/i386/gnu.h (TARGET_VERSION): Remove.
7868         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7869         * config/i386/i386elf.h (TARGET_VERSION): Remove.
7870         * config/i386/linux.h (TARGET_VERSION): Remove.
7871         * config/i386/linux64.h (TARGET_VERSION): Remove.
7872         * config/i386/lynx.h (TARGET_VERSION): Remove.
7873         * config/i386/mingw32.h (TARGET_VERSION): Remove.
7874         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7875         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7876         * config/i386/netware.h (TARGET_VERSION): Remove.
7877         * config/i386/nto.h (TARGET_VERSION): Remove.
7878         * config/i386/openbsd.h (TARGET_VERSION): Remove.
7879         * config/i386/vxworks.h (TARGET_VERSION): Remove.
7880         * config/ia64/elf.h (TARGET_VERSION): Remove.
7881         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7882         * config/ia64/hpux.h (TARGET_VERSION): Remove.
7883         * config/ia64/linux.h (TARGET_VERSION): Remove.
7884         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7885         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7886         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7887         * config/lm32/lm32.h (TARGET_VERSION): Remove.
7888         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7889         * config/m32c/m32c.h (TARGET_VERSION): Remove.
7890         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7891         * config/m32r/m32r.h (TARGET_VERSION): Remove.
7892         * config/m68k/linux.h (TARGET_VERSION): Remove.
7893         * config/m68k/m68k.h (TARGET_VERSION): Remove.
7894         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7895         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7896         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7897         * config/mep/mep.h (TARGET_VERSION): Remove.
7898         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7899         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7900         * config/mips/iris6.h (MACHINE_TYPE): Remove.
7901         * config/mips/linux.h (TARGET_VERSION): Remove.
7902         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7903         * config/mips/vxworks.h (TARGET_VERSION): Remove.
7904         * config/mmix/mmix.h (TARGET_VERSION): Remove.
7905         * config/mn10300/linux.h (TARGET_VERSION): Remove.
7906         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7907         * config/pa/pa.h (TARGET_VERSION): Remove.
7908         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7909         * config/picochip/picochip.h (TARGET_VERSION): Remove.
7910         * config/rs6000/aix.h (TARGET_VERSION): Remove.
7911         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7912         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7913         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7914         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7915         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7916         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7917         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7918         * config/rs6000/linux.h (TARGET_VERSION): Remove.
7919         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7920         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7921         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7922         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7923         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7924         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7925         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7926         * config/s390/linux.h (TARGET_VERSION): Remove.
7927         * config/s390/s390.h (TARGET_VERSION): Remove.
7928         * config/s390/tpf.h (TARGET_VERSION): Remove.
7929         * config/score/score.h (TARGET_VERSION): Remove.
7930         * config/sh/linux.h (TARGET_VERSION): Remove.
7931         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7932         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7933         * config/sh/sh.h (TARGET_VERSION): Remove.
7934         * config/sh/sh64.h (TARGET_VERSION): Remove.
7935         * config/sh/superh.h (TARGET_VERSION): Remove.
7936         * config/sh/vxworks.h (TARGET_VERSION): Remove.
7937         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7938         * config/sparc/linux.h (TARGET_VERSION): Remove.
7939         * config/sparc/linux64.h (TARGET_VERSION): Remove.
7940         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7941         TARGET_NAME32, TARGET_NAME): Remove.
7942         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7943         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7944         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7945         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7946         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7947         * config/spu/spu.h (TARGET_VERSION): Remove.
7948         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7949         * config/v850/v850.h (TARGET_VERSION): Remove.
7950         * config/vax/linux.h (TARGET_VERSION): Remove.
7951         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7952         * config/xtensa/elf.h (TARGET_VERSION): Remove.
7953         * config/xtensa/linux.h (TARGET_VERSION): Remove.
7954
7955 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
7956
7957         PR target/48142
7958         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7959         frame-related from frame-unrelated adjustments to the stack pointer.
7960
7961 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
7962
7963         * common.opt (fdebug-types-section): Move earlier.
7964         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7965
7966 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
7967
7968         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7969         var.
7970
7971 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
7972
7973         * tree.h (CASE_CHAIN): Define.
7974         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7975         (gimple_redirect_edge_and_branch): Likewise.
7976
7977 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
7978
7979         PR middle-end/48367
7980         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7981         calculation.
7982
7983 2011-03-30  Jeff Law  <law@redhat.com>
7984
7985         * PR bootstrap/48371
7986         * reload1.c (reload): Fix botch in last change.
7987
7988         * reload.h (struct reload): Fix typo introduced in last change.
7989
7990 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7991
7992         * config/arm/arm.opt (mhard-float, msoft-float): Mark
7993         Undocumented.  Remove help text.
7994         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7995         -mhard-float.
7996
7997 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
7998
7999         * doc/options.texi (NegativeAlias): Document.
8000         (Alias): Mention NegativeAlias.
8001         * opt-functions.awk: Handle NegativeAlias.
8002         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
8003         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
8004         * opts.h (CL_NEGATIVE_ALIAS): Define.
8005         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
8006         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
8007         OPT_mspe_.
8008         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
8009         Alias entries.
8010         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8011         mno-spe and mno-isel instead of mspe=no and -misel=no.
8012
8013 2011-03-29  Mark Wielaard  <mjw@redhat.com>
8014
8015         * common.opt (fdebug-types-section): New flag.
8016         * doc/invoke.texi: Document new -fno-debug-types-section flag.
8017         * dwarf2out.c (use_debug_types): New define.
8018         (struct die_struct): Mark die_id with GTY desc use_debug_types.
8019         (print_die): Guard output of type unit signatures using
8020         use_debug_types.
8021         (build_abbrev_table): Replace assert of dwarf_version >= 4
8022         with assert on use_debug_types.
8023         (size_of_die): Likewise.
8024         (unmark_dies): Likewise.
8025         (value_format): Decide AT_ref_external form on use_debug_types.
8026         (output_die): Replace dwarf_version version check guard with
8027         use_debug_types where appropriate.
8028         (modified_type_die): Likewise.
8029         (gen_reference_type_die): Likewise.
8030         (dwarf2out_start_source_file): Likewise.
8031         (dwarf2out_end_source_file): Likewise.
8032         (prune_unused_types_walk_attribs): Likewise.
8033         (dwarf2out_finish): Likewise.
8034
8035 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
8036
8037         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
8038
8039 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8040
8041         PR rtl-optimization/48332
8042         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
8043         mode of input operand N and modeN to its actual mode.
8044
8045 2011-03-30  Jeff Law  <law@redhat.com>
8046
8047         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
8048         define accessor macro.
8049         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
8050         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
8051         (reg_equiv_init): Likewise.
8052         (reg_equivs_size): New variable.
8053         (reg_equiv_init_size): Remove.
8054         (allocate_initial_values): Move prototype to here from....
8055         * integrate.h (allocate_initial_values): Remove prototype.
8056         * integrate.c: Include reload.h.
8057         (allocate_initial_values): Corresponding changes.
8058         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
8059         (fix_reg_equiv_init, no_equiv): Corresponding changes.
8060         (update_equiv_regs): Corresponding changes.
8061         (ira): Corresponding changes.
8062         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
8063         (push_secondary_reload): Corresponding changes.
8064         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
8065         (make_memloc, find_reloads_address): Corresponding changes.
8066         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
8067         (find_reloads_address_1): Corresponding changes.
8068         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
8069         (refers_to_regno_for_reload_p): Corresponding changes.
8070         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
8071         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
8072         * reload1.c: Include ggc.h.
8073         (grow_reg_equivs): New function.
8074         (replace_pseudos_in, reload): Corresponding changes.
8075         (calculate_needs_all_insns, alter_regs): Corresponding changes.
8076         (eliminate_regs_1, elimination_effects): Corresponding changes.
8077         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
8078         (delete_output_reload): Likewise.
8079         * caller-save.c (mark_referenced_regs): Corresponding changes.
8080         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
8081         * frv/predicates.md (frv_load_operand): Corresponding changes.
8082         * microblaze/microblaze.c (double_memory_operand): Corresponding
8083         changes.
8084         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
8085         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
8086         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
8087         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
8088         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
8089         changes.
8090         * pa/pa.c (emit_move_sequence): Corresponding changes.
8091         * vax/vax.c (nonindexed_address_p): Corresponding changes.
8092
8093 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8094
8095         PR target/47551
8096         * config/arm/arm.c (coproc_secondary_reload_class): Handle
8097         structure modes.  Don't check neon_vector_mem_operand for
8098         vector or structure modes.
8099
8100 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
8101             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
8102
8103         PR target/43590
8104         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
8105         operand 1 and reshuffle the operands to match.
8106         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
8107
8108 2011-03-30  Christian Schüler  <cschueler@gmx.de>
8109
8110         PR driver/48208
8111         * config/c.opt (F): Added 'Driver' to -F option.
8112
8113         PR driver/48260
8114         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
8115           handler function.
8116         * config/darwin.opt: Added '-arch' option.
8117
8118 2011-03-30  Nick Clifton  <nickc@redhat.com>
8119
8120         * config/rx/rx.md: Add peepholes and patterns to combine
8121         extending loads and simple arithmetic instructions.
8122         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
8123         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
8124         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
8125         modes to use pre-decrement and post-increment addressing.
8126         (rx_is_restricted_memory_address): Add range checking of REG+INT
8127         addresses.
8128         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
8129         (rx_memory_move_cost): Adjust cost of stores.
8130         (rx_adjust_insn_length): New function.
8131
8132 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
8133
8134         PR c/48305
8135         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
8136         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
8137         matching arg00/arg01 types.
8138
8139 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
8140
8141         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
8142         last_location to UNKNOWN_LOCATION.
8143
8144 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
8145
8146         PR target/48349
8147         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
8148         FLOAT_SSE_REGS.
8149
8150 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
8151             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8152
8153         PR bootstrap/48337
8154         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
8155         Init(PROCESSOR_V7).
8156         (sparc_cpu): Likewise.
8157         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
8158         PROCESSOR_V7.
8159
8160 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8161
8162         PR target/48336
8163         PR middle-end/48342
8164         PR rtl-optimization/48345
8165         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
8166         hard regs for given mode from profitable regs when doing secondary
8167         allocation.
8168
8169 2011-03-29  Jeff Law  <law@redhat.com>
8170
8171         PR bootstrap/48327
8172         * tree-ssa-threadupdate.c (struct redirection_data): Remove
8173         do_not_duplicate field.
8174         (lookup_redirection_data): Corresponding changes.
8175         (create_duplicates): Always create a template block.
8176         (redirect_edges): Remove code which reused the original block
8177         when it was going to become unreachable code.
8178         (thread_block): Don't set do_not_duplicate field.
8179
8180 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
8181
8182         * lto-opts.c (register_user_option_p, lto_register_user_option):
8183         Make type argument unsigned.
8184         * lto-streamer.h (lto_register_user_option): Make type argument
8185         unsigned.
8186         * opth-gen.awk: Make CL_* macros unsigned.
8187         * opts-common.c (find_opt): Make lang_mask argument unsigned.
8188         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
8189         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
8190         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
8191         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
8192         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
8193         (find_opt): Make lang_mask argument unsigned.
8194
8195 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8196
8197         PR rtl-optimization/48331
8198         PR rtl-optimization/48334
8199         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
8200         for any used algorithm.
8201
8202 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
8203
8204         * ira-conflicts.c (build_object_conflicts): Add unused attribute
8205         to parent_max.
8206
8207 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
8208
8209         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
8210         (alpha_option_override): Don't set alpha_sr_alias_set.
8211         (emit_frame_store_1): Use gen_frame_mem rather than calling
8212         set_mem_alias_set.
8213         (alpha_expand_epilogue): Ditto.
8214
8215 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
8216
8217         PR tree-optimization/48290
8218         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
8219         vectorization, check that relevant phis in the basic block after
8220         the inner loop are really inner loop's exit phis.
8221
8222 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
8223
8224         PR debug/48190
8225         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
8226         (cached_dw_loc_list_def): New structure.
8227         (cached_dw_loc_list): New typedef.
8228         (cached_dw_loc_list_table): New variable.
8229         (cached_dw_loc_list_table_hash): New function.
8230         (cached_dw_loc_list_table_eq): Likewise.
8231         (add_location_or_const_value_attribute): Take a bool cache_p.
8232         Cache the list when the parameter is true.
8233         (gen_formal_parameter_die): Update caller.
8234         (gen_variable_die): Likewise.
8235         (dwarf2out_finish): Likewise.
8236         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
8237         while generating debug info for the decl.
8238         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
8239         (dwarf2out_init): Initialize cached_dw_loc_list_table.
8240         (resolve_addr): Cache the result of resolving a chain of
8241         location lists.
8242
8243 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
8244
8245         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
8246         conflict object hard regset nodes have intersecting hard reg sets.
8247
8248         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
8249         after regstat_init_n_sets_and_refs.
8250
8251         * ira.c: Add more comments at the top.
8252         (setup_stack_reg_pressure_class, setup_pressure_classes):
8253         Add comments how we compute the register pressure classes.
8254         (setup_allocno_and_important_classes): Add more comments.
8255         (setup_class_translate_array, reorder_important_classes)
8256         (setup_reg_class_relations): Add comments.
8257
8258         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
8259         start of the file.
8260
8261         * ira-color.c: Add 2011 to the Copyright line.
8262         (assign_hard_reg):  Add more comments.
8263         (improve_allocation): Ditto.
8264
8265         * ira-costs.c: Add 2011 to the Copyright line.
8266         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
8267         comments.
8268         (setup_regno_cost_classes_by_mode): Ditto.
8269
8270         Initial patches from ira-improv branch:
8271
8272         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8273
8274         * ira-build.c (ira_create_object): Remove initialization of
8275         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
8276         (ira_create_allocno): Remove initialization of
8277         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
8278         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
8279         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8280         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
8281         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
8282         Initialize ALLOCNO_ADD_DATA.
8283         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
8284         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
8285         ALLOCNO_REG.
8286         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
8287         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
8288
8289         * ira.c (ira_reallocate): Remove.
8290         (setup_pressure_classes): Call
8291         ira_init_register_move_cost_if_necessary.  Use
8292         ira_register_move_cost instead of ira_get_register_move_cost.
8293         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
8294         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
8295
8296         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
8297         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
8298         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
8299         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
8300         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
8301         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
8302         Fix formatting.
8303         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
8304         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8305         (struct allocno_color_data): New.
8306         (allocno_color_data_t): New typedef.
8307         (allocno_color_data): New definition.
8308         (ALLOCNO_COLOR_DATA): New macro.
8309         (struct object_color_data): New.
8310         (object_color_data_t): New typedef.
8311         (object_color_data): New definition.
8312         (OBJECT_COLOR_DATA): New macro.
8313         (update_copy_costs, calculate_allocno_spill_cost): Call
8314         ira_init_register_move_cost_if_necessary.  Use
8315         ira_register_move_cost instead of ira_get_register_move_cost.
8316         (move_spill_restore, update_curr_costs): Ditto.
8317         (allocno_spill_priority): Make it inline.
8318         (color_pass): Allocate and free allocno_color_dat and object_color_data.
8319         (struct coalesce_data, coalesce_data_t): New.
8320         (allocno_coalesce_data): New definition.
8321         (ALLOCNO_COALESCE_DATA): New macro.
8322         (merge_allocnos, coalesced_allocno_conflict_p): Use
8323         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
8324         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
8325         (coalesce_allocnos): Ditto.
8326         (setup_coalesced_allocno_costs_and_nums): Ditto.
8327         (collect_spilled_coalesced_allocnos): Ditto.
8328         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
8329         (setup_slot_coalesced_allocno_live_ranges): Ditto.
8330         (coalesce_spill_slots): Ditto.
8331         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
8332         free allocno_coalesce_data.
8333
8334         * ira-conflicts.c: Fix formatting.
8335         (process_regs_for_copy): Call
8336         ira_init_register_move_cost_if_necessary.  Use
8337         ira_register_move_cost instead of ira_get_register_move_cost.
8338         (build_object_conflicts): Optimize.
8339
8340         * ira-costs.c (record_reg_classes): Optimize.  Call
8341         ira_init_register_move_cost_if_necessary.  Use
8342         ira_register_move_cost, ira_may_move_in_cost, and
8343         ira_may_move_out_cost instead of ira_get_register_move_cost and
8344         ira_get_may_move_cost.
8345         (record_address_regs): Ditto.
8346         (scan_one_insn): Optimize.
8347         (find_costs_and_classes): Optimize.
8348         (process_bb_node_for_hard_reg_moves): Call
8349         ira_init_register_move_cost_if_necessary.  Use
8350         ira_register_move_cost instead of ira_get_register_move_cost.
8351
8352         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
8353         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
8354         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
8355         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
8356         definitions.
8357         (ira_initiate_emit_data, ira_finish_emit_data)
8358         (create_new_allocno): New functions.
8359         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
8360         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
8361         Use ira_register_move_cost instead of ira_get_register_move_cost.
8362
8363         * ira-int.h: Fix some comments.
8364         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
8365         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
8366         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
8367         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
8368         add_data.
8369         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
8370         bitfield after mode.  Make hard_regno a short int.  Make
8371         hard_regno short.  Remove first_coalesced_allocno and
8372         next_coalesced_allocno.  Move mem_optimized_dest_p,
8373         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
8374         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
8375         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
8376         temp, colorable_p.  Add new member add_data.
8377         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
8378         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
8379         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
8380         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
8381         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
8382         (ALLOCNO_ADD_DATA): New macro.
8383         (ira_emit_data_t): New typedef.
8384         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
8385         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
8386         from struct ira_allocno.
8387         (ALLOCNO_EMIT_DATA): New macro.
8388         (ira_allocno_emit_data, allocno_emit_reg): New.
8389         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
8390         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
8391         (OBJECT_ADD_DATA): New macro.
8392         (ira_reallocate): Remove.
8393         (ira_initiate_emit_data, ira_finish_emit_data): New.
8394         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
8395         (ira_init_register_move_cost_if_necessary): New.
8396         (ira_object_conflict_iter_next): Merge into
8397         ira_object_conflict_iter_cond.
8398         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
8399
8400         * ira-live.c (process_single_reg_class_operands): Call
8401         ira_init_register_move_cost_if_necessary.  Use
8402         ira_register_move_cost instead of ira_get_register_move_cost.
8403
8404         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
8405
8406         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
8407
8408         * ira-costs.c: Fix formatting.
8409         (cost_classes, cost_classes_num): Remove.
8410         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
8411         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
8412         (cost_classes_del, cost_classes_htab): New.
8413         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
8414         (initiate_regno_cost_classes, setup_cost_classes): New.
8415         (setup_regno_cost_classes_by_aclass): New.
8416         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
8417         (record_reg_classes): Use regno_cost_classes instead of
8418         cost_classes.  Move checking opposite operand up.
8419         (record_address_regs): Use regno_cost_classes
8420         instead of cost_classes.
8421         (scan_one_insn): Ditto.  Use always general register.
8422         (print_allocno_costs): Use regno_cost_classes instead of
8423         cost_classes.
8424         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
8425         (find_costs_and_classes): Set up cost classes for each registers.
8426         Use also their mode for this.  Use regno_cost_classes instead of
8427         cost_classes.
8428         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
8429         cost_classes.
8430         (free_ira_costs, ira_init_costs): Don't use cost_classes.
8431         (ira_costs, ira_set_pseudo_classes): Call
8432         initiate_regno_cost_classes and finish_regno_cost_classes.
8433
8434         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
8435
8436         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
8437
8438         * target.def (ira_cover_classes): Remove.
8439
8440         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
8441
8442         * doc/tm.texi.in: Ditto.
8443
8444         * ira-conflicts.c: Remove mentioning cover classes from the file.
8445         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
8446         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
8447
8448         * targhooks.c (default_ira_cover_classes): Remove.
8449
8450         * targhooks.h (default_ira_cover_classes): Ditto.
8451
8452         * haifa-sched.c: Remove mentioning cover classes from the file.
8453         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8454         ira_pressure_classes and ira_pressure_classes_num instead of
8455         ira_reg_class_cover_size and ira_reg_class_cover.  Use
8456         sched_regno_pressure_class instead of sched_regno_cover_class.
8457         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
8458         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8459
8460         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
8461         classes from the file.
8462         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
8463         (struct object_hard_regs, struct object_hard_regs_node): New.
8464         (struct ira_object): New members profitable_hard_regs,
8465         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
8466         (struct ira_allocno): Rename cover_class to aclass.  Rename
8467         cover_class_cost and updated_cover_class_cost to class_cost and
8468         updated_class_cost.  Remove splay_removed_p and
8469         left_conflict_size.  Add new members colorable_p.
8470         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
8471         (ALLOCNO_COLORABLE_P): New macro.
8472         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
8473         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
8474         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
8475         (OBJECT_...): Rename parameter C to O.
8476         (OBJECT_PROFITABLE_HARD_REGS): New macro.
8477         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
8478         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
8479         (struct target_ira_int): New members x_ira_max_memory_move_cost,
8480         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
8481         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
8482         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
8483         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
8484         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
8485         x_ira_reg_class_subunion.
8486         (ira_max_memory_move_cost, ira_max_register_move_cost)
8487         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
8488         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
8489         (ira_important_class_nums, ira_reg_class_superunion): New macros.
8490         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
8491         (ira_reg_class_union): Rename to ira_reg_class_subunion.
8492         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8493         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8494         (ira_tune_allocno_costs_and_cover_classes): Rename to
8495         ira_tune_allocno_costs.
8496         (ira_debug_hard_regs_forest): New.
8497         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
8498         (ira_object_conflict_iter_next): Fix comments.
8499         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
8500         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
8501         cover_class to aclass.
8502         (ira_allocate_and_accumulate_costs): Ditto.
8503         (ira_allocate_and_set_or_copy_costs): Ditto.
8504
8505         * opts.c (decode_options): Remove ira_cover_class check.
8506
8507         * ira-color.c: Remove mentioning cover classes from the file.  Use
8508         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
8509         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
8510         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8511         (splay-tree.h): Remove include.
8512         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
8513         before copy_freq_compare_func.
8514         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
8515         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
8516         New definitions.
8517         (hard_regs_roots, hard_regs_node_vec): Ditto.
8518         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
8519         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
8520         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
8521         (create_new_object_hard_regs_node): Ditto.
8522         (add_new_object_hard_regs_node_to_forest): Ditto.
8523         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
8524         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
8525         Ditto.
8526         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
8527         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
8528         (remove_unused_object_hard_regs_nodes): Ditto.
8529         (enumerate_object_hard_regs_nodes): Ditto.
8530         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
8531         (object_hard_regs_subnode_t): Ditto.
8532         (struct object_hard_regs_subnode): Ditto.
8533         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
8534         (setup_object_hard_regs_subnode_index): Ditto.
8535         (get_object_hard_regs_subnodes_num): Ditto.
8536         (form_object_hard_regs_nodes_forest): Ditto.
8537         (finish_object_hard_regs_nodes_tree): Ditto.
8538         (finish_object_hard_regs_nodes_forest): Ditto.
8539         (allocnos_have_intersected_live_ranges_p): Rename to
8540         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8541         (pseudos_have_intersected_live_ranges_p): Rename to
8542         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
8543         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
8544         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
8545         (update_copy_costs): Remove assert.  Skip cost update if the hard
8546         reg does not belong the class.
8547         (assign_hard_reg): Process only profitable hard regs.
8548         (uncolorable_allocnos_num): Make it scalar.
8549         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
8550         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
8551         and ira_reg_class_max_nregs.
8552         (bucket_allocno_compare_func): Check frequency first.
8553         (sort_bucket): Add compare function as a parameter.
8554         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
8555         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
8556         (push_allocno_to_stack): Rewrite for checking new allocno
8557         colorability.
8558         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
8559         (push_only_colorable): Pass new parameter to sort_bucket.
8560         (push_allocno_to_spill): Remove.
8561         (allocno_spill_priority_compare): Make it inline and rewrite.
8562         (splay_tree_allocate, splay_tree_free): Remove.
8563         (allocno_spill_sort_compare): New function.
8564         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
8565         build and use splay tree.  Choose first allocno in uncolorable
8566         allocno bucket to spill.  Remove setting spill cost.
8567         (all_conflicting_hard_regs): Remove.
8568         (setup_allocno_available_regs_num): Check only profitable hard
8569         regs.  Print info about hard regs nodes.
8570         (setup_allocno_left_conflicts_size): Remove.
8571         (put_allocno_into_bucket): Don't call
8572         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
8573         (improve_allocation): New.
8574         (color_allocnos): Call setup_profitable_hard_regs,
8575         form_object_hard_regs_nodes_forest, improve_allocation,
8576         finish_object_hard_regs_nodes_forest.  Setup spill cost.
8577         (print_loop_title): Use pressure classes.
8578         (color_allocnso): Ditto.
8579         (do_coloring): Remove allocation and freeing splay_tree_node_pool
8580         and allocnos_for_spilling.
8581         (ira_sort_regnos_for_alter_reg): Don't setup members
8582         {first,next}_coalesced_allocno.
8583         (color): Remove allocating and freeing removed_splay_allocno_vec.
8584         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
8585         prohibited_class_mode_regs.
8586
8587         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
8588         formatting.
8589         (update_allocno_pressure_excess_length): Use pressure classes.
8590         (inc_register_pressure, dec_register_pressure): Check for pressure
8591         class.
8592         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
8593         pressure class.  Use ira_reg_class_nregs instead of
8594         ira_reg_class_max_nregs.
8595         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
8596         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
8597         (single_reg_class): Use ira_reg_class_nregs instead of
8598         ira_reg_class_max_nregs.
8599         (process_bb_node_lives): Use pressure classes.
8600
8601         * ira-emit.c: Remove mentioning cover classes from the file.  Use
8602         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8603         (change_loop): Use pressure classes.
8604         (modify_move_list): Call ira_set_allocno_class instead of
8605         ira_set_allocno_cover_class.
8606
8607         * ira-build.c: Remove mentioning cover classes from the file.  Use
8608         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
8609         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
8610         ALLOCNO_UPDATED_CLASS_COST instead of
8611         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
8612         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
8613         (ira_create_allocno): Remove initialization of
8614         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
8615         ALLOCNO_COLORABLE_P.
8616         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
8617         Update conflict regs for the objects.
8618         (create_cap_allocno): Remove assert.  Don't propagate
8619         ALLOCNO_AVAILABLE_REGS_NUM.
8620         (ira_free_allocno_costs): New function.
8621         (finish_allocno): Change a part of code into call of
8622         ira_free_allocno_costs.
8623         (low_pressure_loop_node_p): Use pressure classes.
8624         (object_range_compare_func): Don't compare classes.
8625         (setup_min_max_conflict_allocno_ids): Ditto.
8626
8627         * loop-invariant.c: Remove mentioning cover classes from the file.
8628         Use ira_pressure_classes and ira_pressure_classes_num instead of
8629         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
8630         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
8631         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8632         Use reg_allocno_class instead of reg_cover_class.
8633         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
8634         STACK_REG_COVER_CLASS.
8635         (get_regno_cover_class): Rename to get_regno_pressure_class.
8636         (move_loop_invariants): Initialize and finalize regstat.
8637
8638         * ira.c: Remove mentioning cover classes from the file.  Add
8639         comments about coloring without cover classes.  Use ALLOCNO_CLASS
8640         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
8641         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
8642         setup_class_subset_and_memory_move_costs.
8643         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
8644         (setup_cover_and_important_classes): Rename to
8645         setup_allocno_and_important_classes.
8646         (setup_class_translate_array): New.
8647         (setup_class_translate): Call it for allocno and pressure classes.
8648         (cover_class_order): Rename to allocno_class_order.
8649         (comp_reg_classes_func): Use ira_allocno_class_translate instead
8650         of ira_class_translate.
8651         (reorder_important_classes): Set up ira_important_class_nums.
8652         (setup_reg_class_relations): Set up ira_reg_class_superunion.
8653         (print_class_cover): Rename to print_classes.  Add parameter.
8654         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
8655         Print pressure classes too.
8656         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
8657         setup_reg_subclasses.
8658         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8659         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8660         (setup_prohibited_class_mode_regs): Use
8661         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
8662         (clarify_prohibited_class_mode_regs): New function.
8663         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
8664         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
8665         (ira_init_once): Initialize them.
8666         (free_register_move_costs): Process them.
8667         (ira_init): Move calls of find_reg_classes and
8668         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
8669         Call clarify_prohibited_class_mode_regs.
8670         (ira_no_alloc_reg): Remove.
8671         (too_high_register_pressure_p): Use pressure classes.
8672
8673         * sched-deps.c: Remove mentioning cover classes from the file.
8674         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
8675         ira_pressure_classes and ira_pressure_classes_num instead of
8676         ira_reg_class_cover_size and ira_reg_class_cover.
8677         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
8678         sched_regno_pressure_class instead of sched_regno_cover_class.
8679         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
8680         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8681
8682         * ira.h: Add 2010 to Copyright.
8683         (ira_no_alloc_reg): Remove external.
8684         (struct target_ira): Rename x_ira_hard_regno_cover_class,
8685         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8686         x_ira_class_translate to x_ira_hard_regno_allocno_class,
8687         x_ira_allocno_classes_num, x_ira_allocno_classes, and
8688         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
8689         x_ira_pressure_classes, x_ira_pressure_class_translate, and
8690         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
8691         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
8692         x_ira_no_alloc_regs.
8693         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
8694         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8695         ira_allocno_classes_num and ira_allocno_classes.
8696         (ira_class_translate): Rename to ira_allocno_class_translate.
8697         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8698         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8699         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8700         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8701         (ira_no_alloc_regs): New.
8702
8703         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
8704         classes from the file.  Use ALLOCNO_CLASS instead of
8705         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
8706         ALLOCNO_COVER_CLASS_COST.
8707         (regno_cover_class): Rename to regno_aclass.
8708         (record_reg_classes): Use ira_reg_class_subunion instead of
8709         ira_reg_class_union.
8710         (record_address_regs): Check overflow.
8711         (scan_one_insn): Ditto.
8712         (print_allocno_costs): Print total mem cost fore regional allocation.
8713         (print_pseudo_costs): Use REG_N_REFS.
8714         (find_costs_and_classes): Use classes intersected with them on the
8715         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
8716         ira_reg_class_union.  Use ira_allocno_class_translate and
8717         regno_aclass instead of ira_class_translate and regno_cover_class.
8718         Modify code for finding regno_aclass.  Setup preferred classes for
8719         the next pass.
8720         (setup_allocno_cover_class_and_costs): Rename to
8721         setup_allocno_class_and_costs.  Use regno_aclass instead of
8722         regno_cover_class.  Use ira_set_allocno_class instead of
8723         ira_set_allocno_cover_class.
8724         (init_costs, finish_costs): Use regno_aclass instead of
8725         regno_cover_class.
8726         (ira_costs): Use setup_allocno_class_and_costs instead of
8727         setup_allocno_cover_class_and_costs.
8728         (ira_tune_allocno_costs_and_cover_classes): Rename to
8729         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
8730         by processing objects.  Use ira_reg_class_max_nregs instead of
8731         ira_reg_class_nregs.
8732
8733         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8734
8735         * sched-int.h: Remove mentioning cover classes from the file.
8736         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8737
8738         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
8739         classes from the file.
8740         (struct reg_pref): Rename coverclass into allocnoclass.
8741         (reg_cover_class): Rename to reg_allocno_class.
8742
8743         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
8744
8745         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8746
8747         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8748
8749         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8750
8751         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8752
8753         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8754
8755         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8756
8757         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8758
8759         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8760
8761         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8762
8763         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8764         (i386_ira_cover_classes): Ditto.
8765
8766         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8767
8768         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8769
8770         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8771
8772         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8773
8774         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8775
8776         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8777
8778         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8779         (mips_ira_cover_classes): Ditto.
8780
8781         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8782
8783         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8784
8785         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8786
8787         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8788
8789         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8790
8791         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8792         (IRA_COVER_CLASSES_VSX): Ditto.
8793
8794         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8795         (rs6000_ira_cover_classes): Ditto.
8796
8797         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8798
8799         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8800
8801         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8802
8803         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8804
8805         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8806
8807         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8808
8809         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8810
8811         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8812
8813         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8814
8815         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8816
8817 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
8818
8819         PR debug/48253
8820         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8821         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8822         dw_fde_unlikely_section_end_label, cold_in_std_section,
8823         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8824         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8825         fields.
8826         (output_fde): Use dw_fde_second_{begin,end} if second is
8827         true, otherwise dw_fde_{begin,end}.
8828         (output_call_frame_info): Test dw_fde_second_begin != NULL
8829         instead of dw_fde_switched_sections.
8830         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8831         fields, initialize new fields.  Initialize in_std_section
8832         unconditionally from the first partition.
8833         (dwarf2out_end_epilogue): Don't override dw_fde_end when
8834         dw_fde_second_begin is non-NULL.
8835         (dwarf2out_switch_text_section): Stop initializing removed
8836         dw_fde_struct fields, initialize new fields, initialize
8837         also dw_fde_end here.  Set dw_fde_switch_cfi even when
8838         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
8839         (struct var_loc_list_def): Add last_before_switch field.
8840         (arange_table, arange_table_allocated, arange_table_in_use,
8841         ARANGE_TABLE_INCREMENT, add_arange): Removed.
8842         (size_of_aranges): Count !in_std_section and !second_in_std_section
8843         hunks in fdes, instead of looking at arange_table_in_use.
8844         (output_aranges): Add aranges_length argument, don't call
8845         size_of_aranges here.  Instead of using aranges_table*
8846         emit ranges for fdes when !in_std_section resp.
8847         !second_in_std_section.
8848         (dw_loc_list): Break ranges crossing section switch.
8849         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
8850         use dw_fde_second_end instead of dw_fde_end as end of last range.
8851         (gen_subprogram_die): Don't call add_arange.  Use
8852         dw_fde_{begin,end} for first partition and if switched
8853         section dw_fde_second_{begin,end} for the second.
8854         (var_location_switch_text_section_1,
8855         var_location_switch_text_section): New functions.
8856         (dwarf2out_begin_function): Initialize cold_text_section even
8857         when function_section () isn't text_section.
8858         (prune_unused_types): Don't walk arange_table.
8859         (dwarf2out_finish): Don't needlessly test
8860         flag_reorder_blocks_and_partition when testing cold_text_section_used.
8861         If info_section_emitted, call size_of_aranges and if it indicates
8862         non-empty .debug_aranges, call output_aranges with the computed
8863         size.  Stop using removed dw_fde_struct fields, use
8864         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8865         for second.
8866
8867         PR debug/48203
8868         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8869         create ENTRY_VALUE if incoming or address of incoming's MEM
8870         is a hard REG.
8871         * dwarf2out.c (mem_loc_descriptor): Don't emit
8872         DW_OP_GNU_entry_value of DW_OP_fbreg.
8873         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8874         on ENTRY_VALUE is able to find the canonical parameter VALUE.
8875         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8876         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8877         ENTRY_VALUE_EXPs.
8878         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8879         is a REG_P or MEM_P with REG_P address, compute hash directly
8880         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8881         (preserve_only_constants): Don't clear VALUES forwaring
8882         ENTRY_VALUE to some other VALUE.
8883
8884 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
8885
8886         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8887         instead of GEN_INT.
8888
8889 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
8890
8891         * cfgexpand.c (expand_gimple_cond): Always set the source location and
8892         block before expanding the statement.
8893         (expand_gimple_stmt_1): Likewise.  Set them here...
8894         (expand_gimple_stmt): ...and not here.  Tidy.
8895         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8896         unknown.
8897
8898 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8899
8900         * Makefile.in: New rule for cprop.o.
8901         * gcse.c: Move constant/copy propagation to cprop.c.
8902         (compute_local_properties): Only handle expression tables.
8903         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8904         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8905         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8906         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
8907         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
8908         compute_cprop_data, find_used_regs, try_replace_reg,
8909         find_avail_set, cprop_jump, constprop_register, cprop_insn,
8910         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8911         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8912         find_bypass_set, reg_killed_on_edge, bypass_block,
8913         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8914         execute_rtl_cprop, pass_rtl_cprop): Move to...
8915         * cprop.c: ...here.  New file, constant/copy propagation for RTL
8916         moved from gcse.c to here with minor cleanups in duplicated code.
8917
8918 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
8919
8920         * config/i386/i386.c (flag_opts): Fix a typo in
8921         -mavx256-split-unaligned-store.
8922
8923 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8924
8925         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8926         LIBCALL_VALUE): Remove macros.
8927         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8928         TARGET_FUNCTION_VALUE_REGNO_P): Define.
8929         (h8300_function_value, h8300_libcall_value,
8930         h8300_function_value_regno_p): New functions.
8931
8932 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
8933
8934         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8935
8936 2011-03-28  Jeff Law  <law@redhat.com>
8937
8938         * tree-ssa-threadupdate.c (redirect_edges): Call
8939         create_edge_and_update_destination_phis as needed.
8940         (create_edge_and_update_destination_phis): Accept new BB argument.
8941         All callers updated.
8942         (thread_block): Do not update the profile when threading around
8943         intermediate blocks.
8944         (thread_single_edge): Likewise.
8945         (determine_bb_domination_status): If BB is not a successor of the
8946         loop header, return NONDOMINATING.
8947         (register_jump_thread): Note when we register a jump thread around
8948         an intermediate block.
8949         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8950         (thread_across_edge): Use it.
8951
8952 2011-03-28  Tristan Gingold  <gingold@adacore.com>
8953
8954         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8955         when for_return is 2.
8956
8957 2011-03-28  Jeff Law  <law@redhat.com>
8958
8959         * var-tracking.c (canonicalize_values_mark): Delete unused
8960         lhs assignment.
8961         (canonicalize_values_star, set_variable_part): Likewise.
8962         (clobber_variable_part, delete_variable_part): Likewise.
8963
8964 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
8965
8966         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8967
8968 2011-03-28  Martin Jambor  <mjambor@suse.cz>
8969
8970         * tree-inline.c (expand_call_inline): Do not check that destination
8971         node is analyzed.
8972         (optimize_inline_calls): Assert that destination node is analyzed.
8973         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8974         not call tree_lowering_passes.
8975         * cgraph.h (cgraph_analyze_function): Declare.
8976         * cgraphunit.c (cgraph_analyze_function): Make public.
8977
8978 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
8979
8980         * config/sparc/sparc-opts.h: New.
8981         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8982         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8983         (sparc_option_override): Store processor_type enumeration rather
8984         than string in cpu_default.  Remove name and enumeration from
8985         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
8986         without using sparc_select.  Use target_flags_explicit instead of
8987         fpu_option_set.
8988         * config/sparc/sparc.h (enum processor_type): Move to
8989         sparc-opts.h.
8990         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8991         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8992         HeaderInclude entry.
8993         (mcpu=, mtune=): Use Var and Enum.
8994         (sparc_processor_type): New Enum and EnumValue entries.
8995
8996 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8997             Iain Sandoe  <iains@gcc.gnu.org>
8998
8999         PR target/48245
9000         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
9001
9002 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
9003
9004         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
9005         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
9006         Insert new statements at it in lieu of STMT.
9007         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
9008         * tree-vect-stmts.c (vectorizable_store): Likewise.
9009         (vectorizable_load): Likewise.
9010
9011 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
9012
9013         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
9014         (divtf3): Ditto.
9015         (multf3): Ditto.
9016         (subtf3): Ditto.
9017
9018 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9019
9020         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
9021         unaligned 256bit load/store.
9022         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
9023         (*avx_movdqu<avxmodesuffix>): Likewise.
9024
9025 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9026
9027         PR target/48288
9028         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
9029         * config/pa/pa.md (iordi3): Use new predicate in expander.
9030         (iorsi3): Likewise.
9031
9032 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
9033
9034         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
9035         FUNCTION_VALUE_REGNO_P): Remove macros.
9036         * config/mips/mips-protos.h (mips_function_value): Remove.
9037         * config/mips/mips.c (mips_function_value): Rename to...
9038         (mips_function_value_1): ... this. Make static.  Handle receiving
9039         the function type in 'fn_decl_or_type' argument.
9040         (mips_function_value, mips_libcall_value,
9041         mips_function_value_regno_p): New function.
9042         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9043         TARGET_FUNCTION_VALUE_REGNO_P): Define.
9044
9045 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
9046
9047         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
9048         and -mavx256-split-unaligned-store.
9049         (ix86_option_override_internal): Split 32-byte AVX unaligned
9050         load/store by default.
9051         (ix86_avx256_split_vector_move_misalign): New.
9052         (ix86_expand_vector_move_misalign): Use it.
9053
9054         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
9055         -mavx256-split-unaligned-store.
9056
9057         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
9058         256bit load/store.  Generate unaligned store on misaligned memory
9059         operand.
9060         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
9061         256bit load/store.
9062         (*avx_movdqu<avxmodesuffix>): Likewise.
9063
9064         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
9065         -mavx256-split-unaligned-store.
9066
9067 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9068
9069         PR target/38598
9070         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
9071         Update commentary.
9072
9073 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
9074
9075         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
9076         opno arguments with an expand_operand.  Use create_input_operand.
9077         (mips_prepare_builtin_target): Delete.
9078         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
9079         functions.
9080         (mips_expand_builtin_direct): Use create_output_operand and
9081         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
9082         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
9083         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
9084
9085 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
9086
9087         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
9088         function.
9089         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
9090
9091 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
9092
9093         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
9094         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
9095         basic blocks and call commit_edge_insertions directly.
9096         (fixup_abnormal_edges): Move from here to...
9097         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
9098         on the edges and return whether some have actually been inserted.
9099         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
9100         compensation code.
9101
9102 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
9103
9104         PR rtl-optimization/48144
9105         * sel-sched-ir.c (merge_history_vect): Factor out from ...
9106         (merge_expr_data): ... here.
9107         (av_set_intersect): Rename to av_set_code_motion_filter.
9108         Update all callers.  Call merge_history_vect when an expression
9109         is found in both sets.
9110         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
9111
9112 2011-03-26  Alan Modra  <amodra@gmail.com>
9113
9114         * config/rs6000/predicates.md (word_offset_memref_op): Handle
9115         cmodel medium addresses.
9116         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
9117         64-bit gpr loads and stores.
9118         (rs6000_secondary_reload_ppc64): New function.
9119         * config/rs6000/rs6000-protos.h: Declare it.
9120         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
9121
9122 2011-03-26  Alan Modra  <amodra@gmail.com>
9123
9124         PR target/47487
9125         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
9126         GNU Go in traceback table.
9127
9128 2011-03-25  Richard Henderson  <rth@redhat.com>
9129
9130         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
9131         if there are exactly 6 operands.
9132         (set_storage_via_setmem): Similarly.
9133
9134 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9135
9136         * collect2.c (write_c_file_stat): Handle backslash
9137         as right-hand directory separator.
9138         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
9139         checking just for slash.
9140         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
9141         instead of checking for trailing slash.
9142         * gcc.c (record_temp_file): Use filename_cmp instead
9143         of strcmp.
9144         (do_spec_1): Likewise.
9145         (replace_outfile_spec_function): Likewise.
9146         (is_directory): Use filename_ncmp instead of strncmp.
9147         (print_multilib_info): Likewise.
9148         * gcov.c (find_source): Use filename_cmp instead
9149         instead of strcmp.
9150         (make_gcov_file_name): Fix order of slash/backslash
9151         checks.
9152         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
9153         (add_standard_paths): Likewise.
9154         * mips-tfile.c (saber_stop): Handle backslash.
9155         * prefix.c (update_path): Use filename_ncmp instead of
9156         strncmp.
9157         * profile.c (output_location): Use filename_cmp instead
9158         of strcmp.
9159         * read-md.c (handle_toplevel_file): Handle backslash.
9160         * tlink.c (frob_extension):  Likewise.
9161         * tree-cfg.c (same_line_p): Use filename_cmp instead of
9162         strcmp.
9163         * tree-dump.c (dequeue_and_dump): Handle backslash.
9164         * tree.c (get_file_function_name): Likewise.
9165         * gengtype.c (read_input_list): Likewise.
9166         (get_file_realbasename): Likewise.
9167         (get_output_file_with_visibility): Use filename_cmp
9168         instead of strcmp.
9169
9170 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
9171
9172         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
9173         case to VFPv1.
9174
9175 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9176
9177         * fold-const.c (expr_location_or): New function.
9178         (fold_truth_not_expr): Call it.
9179
9180 2011-03-25  Jeff Law  <law@redhat.com>
9181
9182         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
9183         va_end.
9184         * c-family/c-common.c (def_fn_type): Likewise.
9185         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
9186         * emit-rtl.c (gen_rtvec): Likewise.
9187         * lto/lto-lang.c (def_fn_type): Likewise.
9188
9189 2011-03-25  Richard Guenther  <rguenther@suse.de>
9190
9191         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
9192         also generate copies.
9193         (fini_copy_prop): Handle constant values properly.
9194
9195 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
9196
9197         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
9198         mode size instead of bitsize with DWARF2_ADDR_SIZE.
9199         (hash_loc_operands, compare_loc_operands): Handle
9200         DW_OP_GNU_entry_value.
9201
9202 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9203
9204         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
9205         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
9206         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
9207         comment and use macro TARGET_64BIT_MS_ABI instead.
9208         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
9209         and change default behavior for 32-bit MS_ABI.
9210         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
9211         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
9212         32-bit, too.
9213         (ix86_cfun_abi): Likewise.
9214         (ix86_maybe_switch_abi): Adjust comment.
9215         (init_cumulative_args): Check for bit-ness in MS_ABI case.
9216         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
9217         instead of checking for SYSV_ABI.
9218         (ix86_nsaved_sseregs): Likewise.
9219         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
9220         to 16 bytes.
9221         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
9222         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
9223         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
9224         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
9225         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
9226
9227 2011-03-25  Richard Guenther  <rguenther@suse.de>
9228
9229         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
9230         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9231         (verify_gimple): Remove.
9232         * tree-cfg.c (verify_gimple_call): Merge verification
9233         from verify_stmts.
9234         (verify_gimple_phi): Merge verification from verify_stmts.
9235         (verify_gimple_label): New function.
9236         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
9237         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
9238         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
9239         (verify_stmts): Rename to verify_gimple_in_cfg.
9240         (verify_gimple_in_cfg): New function.
9241         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
9242         * tree-ssa.c (verify_ssa): Likewise.
9243         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
9244
9245 2011-03-25  Richard Guenther  <rguenther@suse.de>
9246
9247         * passes.c (init_optimization_passes): Add FRE pass after
9248         early SRA.
9249
9250 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
9251             Andrew Stubbs  <ams@codesourcery.com>
9252
9253         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
9254         for Cortex-A8.
9255         (arm_movdi_vfp_cortexa8): New pattern.
9256         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
9257         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
9258         instructions when tuning for Cortex-A8.  Set attribute "arch".
9259         * config/arm/arm.md: Move include arm-tune.md up a bit.
9260         (define_attr "arch"): Add "onlya8" and "nota8" values.
9261         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
9262
9263 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
9264
9265         PR bootstrap/48282
9266         Revert:
9267         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9268
9269         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9270         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9271         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9272         * passes.c (init_optimization_passes): Move
9273         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9274
9275 2011-03-25  Kai Tietz  <ktietz@redhat.com>
9276
9277         * c-typeck.c (comptypes_internal): Replace target
9278         hook call of comp_type_attributes by version in tree.c file.
9279         * gimple.c (gimple_types_compatible_p_1): Likewise.
9280         * tree-ssa.c (useless_type_conversion_p): Likewise.
9281         * tree.c (build_type_attribute_qual_variant): Likewise.
9282         (attribute_value_equal): New static helper function.
9283         (comp_type_attributes): New function.
9284         (merge_attributes): Use attribute_value_equal for comparison.
9285         (attribute_list_contained): Likewise.
9286         * tree.h (comp_type_attributes): New prototype.
9287
9288 2011-03-25  Richard Guenther  <rguenther@suse.de>
9289
9290         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
9291         of complex types at -O0.
9292         (verify_gimple_assign_binary): Likewise.
9293         (verify_gimple_assign_ternary): Likewise.
9294
9295 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9296
9297         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
9298         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
9299
9300 2011-03-24  Mark Wielaard  <mjw@redhat.com>
9301
9302         PR debug/48041
9303         * dwarf2out.c (output_abbrev_section): Only write table when
9304         abbrev_die_table_in_use > 1.
9305
9306 2011-02-24  Richard Henderson  <rth@redhat.com>
9307
9308         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
9309         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
9310         (alpha_expand_unaligned_load_words): Use extql.
9311         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
9312         (emit_insxl): Handle all modes for consistency.
9313
9314 2011-02-24  Richard Henderson  <rth@redhat.com>
9315
9316         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
9317         (alpha_expand_unaligned_load): Likewise.
9318         (alpha_expand_unaligned_store): Likewise.
9319         (alpha_expand_unaligned_load_words): Likewise.
9320         (alpha_expand_unaligned_store_words): Likewise.
9321         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
9322         (alpha_split_lock_test_and_set_12): Likewise.
9323         (print_operand, alpha_fold_builtin_extxx): Likewise.
9324         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
9325         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
9326         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
9327         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
9328         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
9329         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
9330         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
9331         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
9332         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
9333         (extwl, extll, extql): Similarly.
9334         (inswh, inslh, insqh): Similarly.
9335         (mskbl, mskwl, mskll, mskql): Similarly.
9336         (mskwh, msklh, mskqh): Similarly.
9337
9338 2011-02-24  Richard Henderson  <rth@redhat.com>
9339
9340         * config/alpha/alpha.md (attribute isa): Add er, ner.
9341         (attribute enabled): Handle them.
9342         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
9343
9344 2011-02-24  Richard Henderson  <rth@redhat.com>
9345
9346         * config/alpha/alpha.md (attribute isa): Add vms.
9347         (attribute enabled): Handle it.
9348         (*movsf): Merge *movsf_{nofix,fix,nofp}.
9349         (*movdf): Merge *movdf_{nofix,fix,nofp}.
9350         (*movtf): Rename from *movtf_internal for consistency.
9351         (*movsi): Merge with *movsi_nt_vms.
9352         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
9353         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
9354         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
9355         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
9356
9357 2011-02-24  Richard Henderson  <rth@redhat.com>
9358
9359         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
9360         (extendqisi2, extendhisi2): Likewise.
9361         (extendqidi2): Simplify BWX/non-BWX expansions.
9362         (extendhidi2): Similarly.
9363
9364 2011-02-24  Richard Henderson  <rth@redhat.com>
9365
9366         * config/alpha/alpha.md (attribute isa): New.
9367         (attribute enabled): New.
9368         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
9369         (zero_extendqisi2, zero_extendqidi2): Similarly.
9370         (zero_extendhisi2, zero_extendhidi2): Similarly.
9371         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
9372
9373 2011-02-24  Richard Henderson  <rth@redhat.com>
9374
9375         * config/alpha/predicates.md (input_operand): Revert last change;
9376         update comment to mention 32-bit VMS rather than Windows.
9377
9378 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9379
9380         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
9381         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
9382         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
9383         * passes.c (init_optimization_passes): Move
9384         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
9385
9386 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9387
9388         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
9389
9390 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9391
9392         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
9393         correctly.
9394
9395 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
9396
9397         PR debug/48204
9398         * simplify-rtx.c (simplify_const_unary_operation): Call
9399         real_convert when changing mode class with FLOAT_EXTEND.
9400
9401 2011-03-24  Nick Clifton  <nickc@redhat.com>
9402
9403         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
9404         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
9405         * config/rx/rx.c (rx_option_override): Set align_jumps,
9406         align_loops and align_labels if not set by the user.
9407         (rx_align_for_label): New function.
9408         (rx_max_skip_for_label): New function.
9409         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
9410         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
9411         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
9412         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
9413         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
9414
9415 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9416
9417         PR rtl-optimization/48263
9418         * optabs.c (expand_binop_directly): Reinstate convert_modes code
9419         and original commutative_p handling.  Use maybe_gen_insn.
9420
9421 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9422
9423         * reload.c (find_reloads_subreg_address): Add address_reloaded
9424         parameter and return true there if the full address has been
9425         reloaded.
9426         (find_reloads_toplev): Pass address_reloaded flag.
9427         (find_reloads_address_1): Don't use address_reloaded parameter.
9428
9429 2011-03-24  Jeff Law  <law@redhat.com>
9430
9431         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
9432         unused variable "ann".
9433         (remove_unused_locals): Likewise.
9434
9435         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
9436         statement.
9437
9438         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
9439         after it is freed.
9440
9441 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9442
9443         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
9444         for invalid symbolic addresses.
9445         (s390_secondary_reload): Don't use s390_check_symref_alignment for
9446         larl operands.
9447
9448 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9449
9450         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
9451         the argument in calls to fold_truth_not_expr.
9452
9453 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9454
9455         * tree.c (record_node_allocation_statistics): New function.
9456         (make_node_stat, copy_node_stat, build_string): Call it.
9457         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
9458         (build1_stat, build_omp_clause): Likewise.
9459
9460 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9461
9462         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
9463         last commit.
9464
9465 2011-03-24  Richard Guenther  <rguenther@suse.de>
9466
9467         PR tree-optimization/48271
9468         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
9469         blocks that still exist.
9470
9471 2011-03-24  Richard Guenther  <rguenther@suse.de>
9472
9473         PR tree-optimization/48270
9474         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
9475         not free datarefs before ddrs.
9476
9477 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
9478
9479         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
9480         from the address built for a reference with variable offset.
9481
9482 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
9483
9484         PR target/48237
9485         * config/i386/i386.md (*movdf_internal_rex64): Do not split
9486         alternatives that can be handled with movq or movabsq insn.
9487         (*movdf_internal): Disable for !TARGET_64BIT.
9488         (*movdf_internal_nointeger): Ditto.
9489         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
9490
9491 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
9492
9493         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9494         (FUNCTION_ARG_ADVANCE): Likewise.
9495         * tm.texi.in: Change references to them to hook references.
9496         * tm.texi: Regenerate.
9497         * targhooks.c (default_function_arg): Eliminate check for target macro.
9498         (default_function_incoming_arg): Likewise.
9499         (default_function_arg_advance): Likewise.
9500         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
9501         (function_arg_advance): Likewise.
9502         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9503
9504 2011-03-24  Richard Guenther  <rguenther@suse.de>
9505
9506         PR middle-end/48269
9507         * tree-object-size.c (addr_object_size): Do not double-account
9508         for MEM_REF offsets.
9509
9510 2011-03-24  Diego Novillo  <dnovillo@google.com>
9511
9512         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
9513         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
9514         (lto_input_data_block): Move from lto-opts.c.  Make extern.
9515         Update all users.
9516         (lto_input_string): Rename from input_string.  Make extern.
9517         Update all users.
9518         * lto-streamer-out.c (lto_output_string_with_length): Rename from
9519         output_string_with_length.
9520         Output 0 to indicate a non-NULL string.  Update all callers to
9521         not emit 0.
9522         (lto_output_string): Rename from output_string.  Make extern.
9523         Update all users.
9524         (lto_output_decl_state_streams): Make extern.
9525         (lto_output_decl_state_refs): Make extern.
9526         * lto-streamer.h (lto_input_string): Declare.
9527         (lto_input_data_block): Declare.
9528         (lto_output_string): Declare.
9529         (lto_output_string_with_length): Declare.
9530         (lto_output_decl_state_streams): Declare.
9531         (lto_output_decl_state_refs): Declare.
9532
9533 2011-03-24  Richard Guenther  <rguenther@suse.de>
9534
9535         PR tree-optimization/46562
9536         * tree.c (build_invariant_address): New function.
9537         * tree.h (build_invariant_address): Declare.
9538         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
9539         a renamed function moved ...
9540         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
9541         Take valueization callback parameter.
9542         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
9543         * gimple-fold.h: New file.
9544         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
9545         (ccp_fold, fold_const_aggregate_ref,
9546         fold_ctor_reference, fold_nonarray_ctor_reference,
9547         fold_array_ctor_reference, fold_string_cst_ctor_reference,
9548         get_base_constructor): Move ...
9549         * gimple-fold.c: ... here.
9550         (gimple_fold_stmt_to_constant_1): New function
9551         split out from ccp_fold.  Take a valueization callback parameter.
9552         Valueize all operands.
9553         (gimple_fold_stmt_to_constant): New wrapper function.
9554         (fold_const_aggregate_ref_1): New function split out from
9555         fold_const_aggregate_ref.  Take a valueization callback parameter.
9556         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
9557         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
9558         invariant POINTER_PLUS_EXPRs to invariant form.
9559         (vn_valueize): New function.
9560         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
9561         * tree-vrp.c (vrp_valueize): New function.
9562         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
9563         to fold statements to constants.
9564         * tree-ssa-pre.c (eliminate): Properly guard propagation of
9565         function declarations.
9566         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
9567         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
9568
9569 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
9570
9571         * config/h8300/predicates.md (jump_address_operand): Fix register
9572         mode check.
9573
9574 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
9575
9576         * doc/invoke.texi (max-stores-to-sink): Document.
9577         * params.h (MAX_STORES_TO_SINK): Define.
9578         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
9579         if either vectorization or if-conversion is disabled.
9580         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
9581         tree-vect-data-refs.c vect_equal_offsets.
9582         (dr_equal_offsets_p): New function.
9583         (find_data_references_in_bb): Remove static.
9584         * tree-data-ref.h (find_data_references_in_bb): Declare.
9585         (dr_equal_offsets_p): Likewise.
9586         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
9587         (vect_drs_dependent_in_basic_block): Update calls to
9588         vect_equal_offsets.
9589         (vect_check_interleaving): Likewise.
9590         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
9591         (cond_if_else_store_replacement): Rename to...
9592         (cond_if_else_store_replacement_1): ... this.  Change arguments and
9593         documentation.
9594         (cond_if_else_store_replacement): New function.
9595         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
9596         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
9597
9598 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
9599
9600         PR target/46934
9601         * config/arm/arm.md (casesi): Use the gen_int_mode() function
9602         to subtract lower bound instead of GEN_INT().
9603
9604 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
9605
9606         PR other/48179
9607         PR other/48221
9608         PR other/48234
9609         * doc/extend.texi (Alignment): Move section to match order in TOC.
9610         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
9611         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
9612
9613 2011-03-23  Jeff Law  <law@redhat.com>
9614
9615         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
9616         before removing the edge.
9617
9618         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
9619         it may have been freed by redirect_branch_edge or
9620         redirect_edge_succ_nodup.
9621
9622 2011-03-23  Richard Guenther  <rguenther@suse.de>
9623
9624         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
9625         (check_va_list_escapes): Likewise.
9626         (check_all_va_list_escapes): Likewise.
9627
9628 2011-03-23  Richard Guenther  <rguenther@suse.de>
9629
9630         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
9631         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
9632         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
9633         (alias.o): Likewise.
9634         (ipa-type-escape.o): Remove.
9635         (ipa-struct-reorg.o): Likewise.
9636         (GTFILES): Remove ipa-struct-reorg.c.
9637         * alias.c: Do not include ipa-type-escape.h.
9638         * tree-ssa-alias.c: Likewise.
9639         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
9640         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
9641         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
9642         and ipa-type-escape passes.
9643         * tree-pass.h (pass_ipa_type_escape): Remove.
9644         (pass_ipa_struct_reorg): Likewise.
9645         * ipa-struct-reorg.h: Remove.
9646         * ipa-struct-reorg.c: Likewise.
9647         * ipa-type-escape.h: Likewise.
9648         * ipa-type-escape.c: Likewise.
9649         * doc/invoke.texi (-fipa-struct-reorg): Remove.
9650         (--param struct-reorg-cold-struct-ratio): Likewise.
9651         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9652         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
9653         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
9654
9655 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9656
9657         * config/s390/2084.md: Enable all insn reservations also for z9_ec
9658         cpu attribute value.
9659         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
9660         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
9661         * config/s390/s390.c (processor_flags_table): New constant array.
9662         (s390_handle_arch_option): Remove.
9663         (s390_handle_option): Remove s390_handle_arch_option invocations
9664         and OPT_mwarn_framesize_ handling.
9665         (s390_option_override): Remove s390_handle_arch_option invocation.
9666         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
9667         warnings.
9668         * config/s390/s390.md (cpu attribute): Add z9_ec value.
9669         * config/s390/s390.opt (s390_tune, s390_arch)
9670         (march=): Replace s390_arch_option enum and values with
9671         processor_type.  Set variable name to s390_arch.  Set
9672         initialization value.
9673         (mtune=): Replace s390_arch_option with processor_type.  Set
9674         variable name to s390_tune.  Set initialization value.
9675
9676 2011-03-23  Julian Brown  <julian@codesourcery.com>
9677
9678         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
9679         accesses which are not naturally aligned.
9680
9681 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9682
9683         PR target/47553
9684         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9685
9686 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
9687
9688         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9689         parameter from "int" to "enum insn_code".
9690         (expand_operand_type): New enum.
9691         (expand_operand): New structure.
9692         (create_expand_operand): New function.
9693         (create_fixed_operand, create_output_operand): Likewise
9694         (create_input_operand, create_convert_operand_to): Likewise.
9695         (create_convert_operand_from, create_address_operand): Likewise.
9696         (create_integer_operand): Likewise.
9697         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9698         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9699         (expand_insn, expand_jump_insn): Likewise.
9700         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9701         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9702         (expand_movstr, expand_builtin___clear_cache): Likewise.
9703         (expand_builtin_lock_release): Likewise.
9704         * explow.c (allocate_dynamic_stack_space): Likewise.
9705         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
9706         and use the default handling in that case.
9707         * expmed.c (check_predicate_volatile_ok): Delete.
9708         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9709         (emit_cstore): Likewise.
9710         * expr.c (emit_block_move_via_movmem): Likewise.
9711         (set_storage_via_setmem, expand_assignment): Likewise.
9712         (emit_storent_insn, try_casesi): Likewise.
9713         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
9714         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9715         (expand_vec_shift_expr, expand_binop_directly): Likewise.
9716         (expand_twoval_unop, expand_twoval_binop): Likewise.
9717         (expand_unop_direct, emit_indirect_jump): Likewise.
9718         (emit_conditional_move, vector_compare_rtx): Likewise.
9719         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9720         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9721         (expand_sync_lock_test_and_set): Likewise.
9722         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
9723         (emit_unop_insn): Likewise.
9724         (expand_copysign_absneg): Change icode to an insn_code.
9725         (create_convert_operand_from_type): New function.
9726         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9727         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9728         (expand_insn, expand_jump_insn): Likewise.
9729         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9730         than const_int_operand for operand 2.
9731
9732 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9733
9734         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9735         if possible.
9736
9737 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9738
9739         * emit-rtl.c (emit_pattern_before_noloc): New function.
9740         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9741         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9742         (emit_pattern_after_noloc): New function.
9743         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9744         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9745
9746 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
9747
9748         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9749         (__ffsDI2): Likewise.
9750
9751 2011-03-22  Richard Henderson  <rth@redhat.com>
9752
9753         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9754         of !TARGET_ABI_OPEN_VMS.
9755         (alpha_trampoline_init, alpha_start_function): Likewise.
9756         (alpha_expand_epilogue, alpha_file_start): Likewise.
9757         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9758         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9759         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9760         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9761         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9762
9763 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9764
9765         * config/s390/s390-opts.h: New.
9766         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9767         s390_arch_flags, s390_warn_framesize, s390_stack_size,
9768         s390_stack_guard): Remove.
9769         (s390_handle_arch_option): Return void.  Take enum
9770         s390_arch_option value instead of string and searching array.
9771         (s390_handle_option): Don't assert that global structures are in
9772         use.  Access variables via opts pointer.  Use error_at.  Don't use
9773         sscanf for -mstack-guard= or -mstack-size=.  Update call to
9774         s390_handle_arch_option.
9775         (s390_option_override): Update call to s390_handle_arch_option.
9776         (s390_emit_prologue): Use %d format for s390_stack_size in
9777         diagnostic.  Use %wd for HOST_WIDE_INT.
9778         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9779         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9780         * config/s390/s390.opt (config/s390/s390-opts.h): New
9781         HeaderInclude entry.
9782         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9783         s390_arch_flags, s390_warn_framesize): New Variable entries.
9784         (s390_arch_option): New Enum and EnumValue entries.
9785         (march=): Use Enum instead of Var.
9786         (mstack-guard=, mstack-size=): Use UInteger and Var.
9787         (mtune=): Use Enum.
9788
9789 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9790
9791         * config/score/score.c (score_handle_option): Don't assert that
9792         global structures are in use.  Access target_flags via opts
9793         pointer.  Use value of -march= option to determine target_flags
9794         settings.
9795         * config/score/score.opt (march=): Use Enum.
9796         (score_arch): New Enum and EnumValue entries.
9797
9798 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9799
9800         * config/mep/mep.c (option_mtiny_specified): Remove.
9801         (mep_option_override): Move register handling for -mivc2 from
9802         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
9803         instead of option_mtiny_specified.
9804         (mep_handle_option): Access target_flags via opts pointer.  Don't
9805         assert that global structures are in use.  Defer part of -mivc2
9806         handling and move it to mep_option_override.
9807         * config/mep/mep.opt (IVC2): New Mask entry.
9808         (mivc2): Use Var and Defer instead of Mask.
9809
9810 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9811
9812         * config/v850/v850-opts.h: New.
9813         * config/v850/v850.c (small_memory): Replace with
9814         small_memory_physical_max array.  Make that array static const.
9815         (v850_handle_memory_option): Take integer value of argument.  Take
9816         gcc_options pointer, option text and location.  Return void.
9817         Update for changes to small memory structures.
9818         (v850_handle_option): Access target_flags via opts pointer.  Don't
9819         assert that global structures are in use.  Update calls to
9820         v850_handle_memory_option.
9821         (v850_encode_data_area): Update references to small memory settings.
9822         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
9823         (enum small_memory_type): Move to v850-opts.h.
9824         * config/v850/v850.opt (config/v850/v850-opts.h): New
9825         HeaderInclude entry.
9826         (small_memory_max): New Variable entry.
9827         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
9828         (mtda, mzda): Likewise.
9829
9830 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9831
9832         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9833         pointer.  Don't assert that global structures are in use.
9834
9835 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9836
9837         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9838         via opts pointer.  Don't assert that global structures are in use.
9839
9840 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9841
9842         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9843         (munix=93): Use Var.
9844         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9845         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9846         * config/pa/pa-opts.h: New.
9847         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9848         (pa_handle_option): Don't assert that global structures are in
9849         use.  Access target_flags via opts pointer.  Don't handle
9850         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9851         OPT_munix_98 here.
9852         (pa_option_override): Handle deferred OPT_mfixed_range_.
9853
9854 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9855
9856         * config/mn10300/mn10300-opts.h: New.
9857         * config/mn10300/mn10300.c (mn10300_processor,
9858         mn10300_tune_string): Remove.
9859         (mn10300_handle_option): Don't assert that global structures are
9860         in use.  Access mn10300_processor via opts pointer.  Don't handle
9861         OPT_mtune_ here.
9862         * config/mn10300/mn10300.h (enum processor_type): Move to
9863         mn10300-opts.h.
9864         (mn10300_processor): Remove.
9865         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9866         HeaderInclude entry.
9867         (mn10300_processor): New Variable entry.
9868         (mtune=): Use Var.
9869
9870 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9871
9872         * config/microblaze/microblaze.c: Don't include opts.h.
9873         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9874         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9875         (mno-clearbss): Use Var and Warn.
9876
9877 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9878
9879         * config/m32r/m32r-opts.h: New.
9880         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9881         (m32r_handle_option): Don't assert that global structures are in
9882         use.  Access target_flags and m32r_cache_flush_func via opts
9883         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
9884         OPT_mno_flush_trap here.
9885         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9886         include of m32r-opts.h.
9887         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9888         HeaderInclude entry.
9889         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9890         (mmodel=): Use Enum and Var.
9891         (m32r_model): New Enum and EnumValue entries.
9892         (mno-flush-trap): Use Var.
9893         (msdata=): Use Enum and Var.
9894         (m32r_sdata): New Enum and EnumValue entries.
9895
9896 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9897
9898         * config/m32c/m32c.c: Don't include opts.h.
9899         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9900         m32c_handle_option): Remove.
9901         (m32c_option_override): Check global_options_set.x_target_memregs
9902         instead of target_memregs_set.
9903         * config/m32c/m32c.h (target_memregs): Remove.
9904         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9905         variable.
9906
9907 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9908
9909         * config/iq2000/iq2000-opts.h: New.
9910         * config/iq2000/iq2000.c: Don't include opts.h.
9911         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
9912         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
9913         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9914         HeaderInclude entry.
9915         (iq2000_tune): New Variable entry.
9916         (march=): Add comment.  Use Enum.
9917         (iq2000_arch): New Enum and EnumValue entries.
9918         (mcpu=): Use Enum and Var.
9919         (iq2000_tune): New Enum and EnumValue entries.
9920
9921 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9922
9923         * config/ia64/ia64-opts.h: New.
9924         * config/ia64/ia64.c (ia64_tune): Remove.
9925         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9926         here.  Use error_at.
9927         (ia64_option_override): Handle deferred OPT_mfixed_range_.
9928         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9929         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9930         HeaderInclude entry.
9931         (ia64_tune): New Variable entry.
9932         (mfixed-range=): Use Defer and Var.
9933         (mtune=): Use Enum and Var.
9934         (ia64_tune): New Enum and EnumValue entries.
9935
9936 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9937
9938         * config/frv/frv-opts.h: New.
9939         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9940         frv-opts.h.
9941         (frv_cpu_type): Remove.
9942         * config/frv/frv.c: Don't include opts.h.
9943         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
9944         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
9945         (frv_cpu_type): New Variable entry.
9946         (frv_cpu): New Enum and EnumValue entries.
9947
9948 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9949
9950         * config/cris/cris.c (cris_handle_option): Access target_flags via
9951         opts pointer.  Don't assert that global structures are in use.
9952         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9953         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9954
9955 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9956
9957         * config/bfin/bfin-opts.h: New.
9958         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9959         bfin_si_revision, bfin_workarounds): Remove.
9960         (bfin_cpus): Make static const.
9961         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9962         not bfin_lib_id_given.
9963         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
9964         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
9965         pointer. Use error_at.  Don't assert that global structures are in use.
9966         * config/bfin/bfin.h: Include bfin-opts.h.
9967         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9968         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9969         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9970         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9971         entries.
9972
9973 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
9974
9975         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9976         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9977         or -msoft-float here.
9978         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9979         -msoft-float and -mhard-float.
9980         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
9981         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9982         msoft-float.
9983         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9984         -msoft-float.
9985         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9986         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9987         not mhard-float.
9988         (LIBGCC_SPEC): Don't handle -msoft-float.
9989         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9990         -mhard-float.
9991         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9992         msoft-float.
9993         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9994         -mfloat-abi=*, not -msoft-float and -mhard-float.
9995         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9996         -msoft-float.
9997         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9998         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9999         mhard-float and msoft-float.
10000         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
10001         mfloat-abi=soft in comments, not mhard-float and msoft-float.
10002         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
10003         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
10004         mhard-float.
10005         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
10006         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
10007         msoft-float.
10008         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
10009         not mhard-float.
10010         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
10011         not msoft-float.
10012
10013 2011-03-22  Richard Henderson  <rth@redhat.com>
10014
10015         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
10016         TARGET_ABI_WINDOWS_NT.
10017         (alpha_output_function_end_prologue): Likewise.
10018         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
10019         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10020         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
10021         (trap, *movsi_nt_vms): Likewise.
10022         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
10023         (*tablejump_osf_nt_internal): Remove.
10024         * config/alpha/predicates.md (input_operand): Only test Pmode.
10025
10026 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10027
10028         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
10029         via opts pointer.  Use error_at.  Don't assert that global
10030         structures are in use.
10031
10032 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10033
10034         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
10035         (ix86_handle_option): Access ix86_isa_flags and
10036         ix86_isa_flags_explicit via opts pointer.  Don't assert that
10037         global structures are in use.
10038         (ix86_function_specific_save, ix86_function_specific_restore):
10039         Update ix86_isa_flags_explicit field name.
10040         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
10041         (ix86_isa_flags_explicit): Rename TargetSave entry to
10042         x_ix86_isa_flags_explicit.
10043
10044 2011-03-22  Richard Henderson  <rth@redhat.com>
10045
10046         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
10047         (alpha_option_override, direct_return): Likewise.
10048         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
10049         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
10050         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
10051         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
10052         (alpha_expand_epilogue, alpha_end_function): Likewise.
10053         (alpha_init_libfuncs): Likewise.
10054         (struct machine_function): Remove unicosmk members.
10055         (print_operand) ['t']: Remove.
10056         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
10057         unicosmk_output_module_name, unicosmk_output_common,
10058         current_section_align, unicosmk_output_text_section_asm_op,
10059         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
10060         unicosmk_section_type_flags, unicosmk_unique_section,
10061         unicosmk_asm_named_section, unicosmk_insert_attributes,
10062         unicosmk_output_align, unicosmk_defer_case_vector,
10063         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
10064         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
10065         unicosmk_output_ssib, unicosmk_add_call_info_word,
10066         unicosmk_extern_head, unicosmk_output_default_externs,
10067         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
10068         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
10069         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
10070         * config/alpha/alpha-protos.h: Update.
10071         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
10072         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
10073         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
10074         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
10075         (*mulsi_se, mulvsi3): Likewise.
10076         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
10077         (*divmodsi_internal, call, call_value, realign): Likewise.
10078         (moddi3, umoddi3): Likewise; remove duplicate expander.
10079         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
10080         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
10081         (*movdi_nofix): Remove r/U alternative.
10082         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
10083         * config/alpha/constraints.md ("U"): Remove.
10084         * config/alpha/predicates.md (call_operand"): Don't test
10085         TARGET_ABI_UNICOSMK.
10086
10087 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10088
10089         * target.def (handle_option): Take gcc_options and
10090         cl_decoded_option pointers and location_t.
10091         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
10092         * doc/tm.texi: Regenerate.
10093         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
10094         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
10095         * lto-opts.c (lto_reissue_options): Generate option structure for
10096         targetm.handle_option call.
10097         * opts.c (target_handle_option): Update call to
10098         targetm.handle_option.  Remove assertions about values now passed
10099         down to hook.
10100         * targhooks.c (default_target_handle_option): New.
10101         * targhooks.h (default_target_handle_option): Declare.
10102         * config/alpha/alpha.c: Include opts.h.
10103         (alpha_handle_option): Update to new hook interface.
10104         * config/arm/arm.c: Include opts.h.
10105         (arm_handle_option): Update to new hook interface.
10106         * config/arm/t-arm (arm.o): Update dependencies.
10107         * config/bfin/bfin.c: Include opts.h.
10108         (bfin_handle_option): Update to new hook interface.
10109         * config/cris/cris.c: Include opts.h.
10110         (cris_handle_option): Update to new hook interface.
10111         * config/frv/frv.c: Include opts.h.
10112         (frv_handle_option): Update to new hook interface.
10113         * config/i386/i386.c: Include opts.h.
10114         (ix86_handle_option): Update to new hook interface.
10115         (ix86_valid_target_attribute_inner_p): Generate option structure
10116         for call to ix86_handle_option.
10117         * config/i386/t-i386 (i386.o): Update dependencies.
10118         * config/ia64/ia64.c: Include opts.h.
10119         (ia64_handle_option): Update to new hook interface.
10120         * config/ia64/t-ia64 (ia64.o): Update dependencies.
10121         * config/iq2000/iq2000.c: Include opts.h.
10122         (iq2000_handle_option): Update to new hook interface.
10123         * config/m32c/m32c.c: Include opts.h.
10124         (m32c_handle_option): Update to new hook interface.
10125         * config/m32r/m32r.c: Include opts.h.
10126         (m32r_handle_option): Update to new hook interface.
10127         * config/m68k/m68k.c: Include opts.h.
10128         (m68k_handle_option): Update to new hook interface.
10129         * config/mep/mep.c: Include opts.h.
10130         (mep_handle_option): Update to new hook interface.
10131         * config/microblaze/microblaze.c: Include opts.h.
10132         (microblaze_handle_option): Update to new hook interface.
10133         * config/mips/mips.c: Include opts.h.
10134         (mips_handle_option): Update to new hook interface.
10135         * config/mn10300/mn10300.c: Include opts.h.
10136         (mn10300_handle_option): Update to new hook interface.
10137         * config/pa/pa.c: Include opts.h.
10138         (pa_handle_option): Update to new hook interface.
10139         * config/pdp11/pdp11.c: Include opts.h.
10140         (pdp11_handle_option): Update to new hook interface.
10141         * config/rs6000/rs6000.c: Include opts.h.
10142         (rs6000_handle_option): Update to new hook interface.
10143         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
10144         * config/rx/rx.c: Include opts.h.
10145         (rx_handle_option): Update to new hook interface.
10146         * config/s390/s390.c: Include opts.h.
10147         (s390_handle_option): Update to new hook interface.
10148         * config/score/score.c: Include opts.h.
10149         (score_handle_option): Update to new hook interface.
10150         * config/sh/sh.c: Include opts.h.
10151         (sh_handle_option): Update to new hook interface.
10152         * config/sparc/sparc.c: Include opts.h.
10153         (sparc_handle_option): Update to new hook interface.
10154         * config/v850/v850.c: Include opts.h.
10155         (v850_handle_option): Update to new hook interface.
10156
10157 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10158
10159         * gcc.c (driver_unknown_option_callback): Only permit and save
10160         unknown -Wno- options.
10161         (driver_wrong_lang_callback): Save options directly instead of via
10162         driver_unknown_option_callback.
10163
10164 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10165
10166         * combine.c (simplify_set): Try harder to find the best CC mode when
10167         simplifying a nested COMPARE on the RHS.
10168
10169 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
10170
10171         * config/alpha/gnu.h: Remove.
10172         * config/arc: Remove directory.
10173         * config/arm/netbsd.h: Remove.
10174         * config/arm/t-pe: Remove.
10175         * config/crx: Remove directory.
10176         * config/i386/netbsd.h: Remove.
10177         * config/m68hc11: Remove directory.
10178         * config/m68k/uclinux-oldabi.h: Remove.
10179         * config/mcore/mcore-pe.h: Remove.
10180         * config/mcore/t-mcore-pe: Remove.
10181         * config/netbsd-aout.h: Remove.
10182         * config/rs6000/gnu.h: Remove.
10183         * config/sh/sh-symbian.h: Remove.
10184         * config/sh/symbian-base.c: Remove.
10185         * config/sh/symbian-c.c: Remove.
10186         * config/sh/symbian-cxx.c: Remove.
10187         * config/sh/symbian-post.h: Remove.
10188         * config/sh/symbian-pre.h: Remove.
10189         * config/sh/t-symbian: Remove.
10190         * config/svr3.h: Remove.
10191         * config/vax/netbsd.h: Remove.
10192         * config.build: Don't handle i[34567]86-*-pe.
10193         * config.gcc: Remove handling of deprecations for most deprecated
10194         targets.
10195         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
10196         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
10197         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
10198         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
10199         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
10200         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
10201         Remove cases.
10202         * config.host: Don't handle i[34567]86-*-pe.
10203         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
10204         (ASM_SPEC32): Don't handle -mcall-gnu.
10205         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
10206         -mcall-gnu.
10207         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
10208         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
10209         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
10210         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
10211         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
10212         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
10213         conditional on SYMBIAN.
10214         * configure.ac: Don't handle powerpc*-*-gnu*.
10215         * configure: Regenerate.
10216         * doc/extend.texi (interrupt attribute): Don't mention CRX.
10217         * doc/install-old.texi (m6811, m6812): Don't mention.
10218         * doc/install.texi (arc-*-elf*): Don't document multilib option.
10219         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
10220         (m68k-uclinuxoldabi): Don't mention.
10221         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
10222         Remove.
10223         (-mcall-gnu): Remove.
10224         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
10225         families): Remove constraint documentation.
10226
10227 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
10228
10229         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
10230         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
10231         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
10232
10233 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10234
10235         PR target/48226
10236         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
10237         vector when peeking at the next token for vector, don't expand the
10238         keywords.
10239
10240 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
10241
10242         * config/avr/avr-protos.h (expand_epilogue): Change prototype
10243         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
10244         * config/avr/avr.c (init_cumulative_args)
10245         (avr_function_arg_advance): Use it.
10246         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
10247         sibcall epilogues.
10248         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
10249         (avr_function_ok_for_sibcall): ...this new function.
10250         (avr_lookup_function_attribute1): New static Function.
10251         (avr_naked_function_p, interrupt_function_p)
10252         (signal_function_p, avr_OS_task_function_p)
10253         (avr_OS_main_function_p): Use it.
10254         * config/avr/avr.md ("sibcall", "sibcall_value")
10255         ("sibcall_epilogue"): New expander.
10256         ("*call_insn", "*call_value_insn"): New insn.
10257         ("call_insn", "call_value_insn"): Remove
10258         ("call", "call_value", "epilogue"): Change expander to handle
10259         sibling calls.
10260
10261 2011-03-21  Nick Clifton  <nickc@redhat.com>
10262
10263         * doc/invoke.texi (Overall Options): Move closing brace to end of
10264         options list.
10265         (Optimization Options): Add missing @gol.
10266         (Directory Options): Likewise.
10267         (i386 and x86-64 Options): Likewise.
10268         (RS6000 and PowerPC Options): Likewise.
10269         (i386 and x86-64 Windows Options): Likewise.
10270         (V850 Options): Add text missing from descriptions.
10271
10272 2011-03-22  Richard Henderson  <rth@redhat.com>
10273
10274         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
10275         (avr_incoming_return_addr_rtx): New.
10276         (emit_push_byte): New.
10277         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
10278         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
10279         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
10280         (emit_pop_byte): New.
10281         (expand_epilogue): Use it.  Pop frame pointer by bytes.
10282         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
10283         (INCOMING_RETURN_ADDR_RTX): New.
10284         (INCOMING_FRAME_SP_OFFSET): New.
10285         (ARG_POINTER_CFA_OFFSET): New.
10286         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
10287         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
10288         (pophi): Remove.
10289
10290         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
10291
10292 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10293
10294         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
10295         (FUNCTION_ARG_ADVANCE): Likewise.
10296         * tm.texi.in: Change references to them to hook references.
10297         * tm.texi: Regenerate.
10298         * targhooks.c (default_function_arg): Eliminate check for target
10299         macro.
10300         (default_function_incoming_arg): Likewise.
10301         (default_function_arg_advance): Likewise.
10302         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
10303         (function_arg_advance): Likewise.
10304         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
10305
10306 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
10307
10308         * tree.c (build_call_1): New function.
10309         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
10310
10311 2011-03-22  Richard Guenther  <rguenther@suse.de>
10312
10313         PR tree-optimization/48228
10314         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
10315         for single-arg PHIs.
10316
10317 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
10318
10319         PR rtl-optimization/48143
10320         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
10321         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
10322         sse2_cvtps2pd): Likewise.
10323
10324 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10325
10326         * recog.c (canonicalize_change_group): Use validate_unshare_change.
10327
10328 2011-03-22  Richard Guenther  <rguenther@suse.de>
10329
10330         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
10331         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
10332         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
10333         and REALIGN_LOAD_EXPR.
10334         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
10335         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
10336         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
10337         DOT_PROD_EXPR case ...
10338         (expand_expr_real_2): ... here.
10339         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
10340         and REALIGN_LOAD_EXPR.
10341         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
10342         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
10343         (vect_create_epilog_for_reduction): Likewise.
10344         (vectorizable_reduction): Likewise.
10345         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
10346         * tree-vect-stmts.c (vectorizable_load): Likewise.
10347
10348 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
10349
10350         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
10351
10352 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10353
10354         * config/s390/s390.c (s390_delegitimize_address): Fix offset
10355         handling for PLTOFF/GOTOFF.
10356
10357 2011-03-22  Nick Clifton  <nickc@redhat.com>
10358
10359         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
10360         trailing backslash from the end of the macro definition.
10361
10362 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10363
10364         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
10365         and PLT unspecs.
10366
10367 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
10368
10369         * expr.h (prepare_operand): Move to...
10370         * optabs.h (prepare_operand): ...here and change the insn code
10371         parameter from "int" to "enum insn_code".
10372         (insn_operand_matches): Declare.
10373         * expr.c (init_expr_target): Use insn_operand_matches.
10374         (compress_float_constant): Likewise.
10375         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
10376         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
10377         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
10378         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
10379         Likewise.
10380         (gen_cond_trap): Likewise.
10381         (prepare_operand): Likewise.  Change icode to an insn_code.
10382         (insn_operand_matches): New function.
10383         * reload.c (find_reloads_address_1): Use insn_operand_matches.
10384         * reload1.c (gen_reload): Likewise.
10385         * targhooks.c (default_secondary_reload): Likewise.
10386
10387 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10388
10389         * config/alpha/alpha.md (unspec): New define_c_enum.
10390         (unspecv): Ditto.
10391
10392 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
10393
10394         PR debug/48214
10395         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
10396         between a call and its CALL_ARG_LOCATION note.
10397
10398 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
10399
10400         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
10401
10402 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10403
10404         PR c/42544
10405         PR c/48197
10406         * c-common.c (shorten_compare): If primopN is first sign-extended
10407         to opN and then zero-extended to result type, set primopN to opN.
10408
10409 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
10410
10411         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
10412         for barrier handlers.
10413
10414 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10415
10416         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
10417         UNSPEC constants to be in the unspec enumeration, and redefine
10418         all UNSPECV constants to be in the unspecv enumeration, so that
10419         dumps print which unspec/unspec_volatile this is.
10420         * config/rs6000/vector.md (UNSPEC_*): Ditto.
10421         * config/rs6000/paired.md (UNSPEC_*): Ditto.
10422         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
10423         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
10424         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
10425
10426         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
10427         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
10428         UNSPECV_LWSYNC, since these are used as unspec_volatile.
10429         * config/rs6000/sync.md (isync, lwsync): Ditto.
10430
10431 2011-03-21  Richard Guenther  <rguenther@suse.de>
10432
10433         * params.def (lto-min-partition): Fix typo.
10434
10435 2011-03-21  Richard Guenther  <rguenther@suse.de>
10436
10437         PR c/47939
10438         * c-decl.c (grokdeclarator): Drop to the main variant only
10439         for array types.  Drop flag_gen_aux_info check.
10440
10441 2011-03-21  Richard Guenther  <rguenther@suse.de>
10442
10443         PR translation/47911
10444         * params.def (lto-partitions): Fix typo.
10445         (lto-min-partition): Fix wording.
10446
10447 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
10448
10449         * config/rs6000/t-freebsd: Remove duplication from file.
10450
10451 2011-03-21  Richard Guenther  <rguenther@suse.de>
10452
10453         PR middle-end/47661
10454         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
10455
10456 2011-03-21  Richard Guenther  <rguenther@suse.de>
10457
10458         PR lto/48210
10459         * params.def (lto-partitions): Require at least 1 partition.
10460
10461 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10462
10463         * gthr-solaris.h: Remove.
10464         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
10465         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
10466         (LIB_SPEC): Likewise.
10467         * config/sol2.opt (threads): Remove.
10468         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
10469         (sparc*-*-solaris2*): Likewise.
10470         * configure.ac (enable_threads): Enable solaris support.
10471         * configure: Regenerate.
10472         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
10473         * doc/install.texi (Configuration, --enable-threads=lib): Remove
10474         solaris.
10475
10476 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10477
10478         * config.gcc: Obsolete *-*-solaris2.8*.
10479         * doc/install.texi (Specific, *-*-solaris2*): Document it.
10480
10481 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10482
10483         PR bootstrap/48135
10484         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
10485         reference.  Solaris 8 perl works.
10486
10487 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10488
10489         PR bootstrap/48135
10490         * doc/install.texi (Prerequisites): Move jar etc. up.
10491         Explain support library version requirements.
10492
10493 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10494
10495         PR bootstrap/48135
10496         * doc/install.texi (Prerequisites): Move Perl to build
10497         requirements.  Always necessary on Solaris 2 with Sun ld.
10498
10499 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10500
10501         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
10502         binutils 2.21.
10503         (Specific, i?86-*-solaris2.[89]): Likewise.
10504         (Specific, i?86-*-solaris2.10): Likewise.
10505         (Specific, mips-sgi-irix6): Likewise.
10506         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
10507         Update for binutils 2.21.
10508
10509 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10510
10511         * configure.ac (gcc_cv_lto_plugin): Fix typo.
10512         Allow -fuse-linker-plugin for non-default plugin linker.
10513         * configure: Regenerate.
10514
10515 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
10516
10517         PR bootstrap/48167
10518         * gengtype.c (files_rules): Added rule for cp/parser.h.
10519
10520 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
10521
10522         PR target/48213
10523         * config/s390/s390.c (s390_delegitimize_address): Don't call
10524         lowpart_subreg if orig_x has BLKmode.
10525
10526 2011-03-21  Kai Tietz  <ktietz@redhat.com>
10527
10528         PR target/12171
10529         * doc/plugins.texi: Adjust documentation for plugin register_callback.
10530         * tree.h (attribute_spec): Add new member affects_type_identity.
10531         * attribs.c (empty_attribute_table): Adjust attribute_spec
10532         initializers.
10533         * config/alpha/alpha.c: Likewise.
10534         * config/arc/arc.c: Likewise.
10535         * config/arm/arm.c: Likewise.
10536         * config/avr/avr.c: Likewise.
10537         * config/bfin/bfin.c: Likewise.
10538         * config/crx/crx.c: Likewise.
10539         * config/darwin.h: Likewise.
10540         * config/h8300/h8300.c: Likewise.
10541         * config/i386/cygming.h: Likewise.
10542         * config/i386/i386.c: Likewise.
10543         * config/ia64/ia64.c: Likewise.
10544         * config/m32c/m32c.c: Likewise.
10545         * config/m32r/m32r.c: Likewise.
10546         * config/m68hc11/m68hc11.c: Likewise.
10547         * config/m68k/m68k.c: Likewise.
10548         * config/mcore/mcore.c: Likewise.
10549         * config/mep/mep.c: Likewise.
10550         * config/microblaze/microblaze.c: Likewise.
10551         * config/mips/mips.c: Likewise.
10552         * config/rs6000/rs6000.c: Likewise.
10553         * config/rx/rx.c: Likewise.
10554         * config/sh/sh.c: Likewise.
10555         * config/sol2.h: Likewise.
10556         * config/sparc/sparc.c: Likewise.
10557         * config/spu/spu.c: Likewise.
10558         * config/stormy16/stormy16.c: Likewise.
10559         * config/v850/v850.c: Likewise.
10560
10561 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
10562
10563         * simplify-rtx.c (simplify_binary_operation_1): Handle
10564         (xor (and A B) C) case when B and C are both constants.
10565
10566 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
10567
10568         * tree-dfa.c (add_referenced_var): Fix typo in comment.
10569
10570 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
10571
10572         PR bootstrap/48168
10573         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
10574
10575 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
10576
10577         PR rtl-optimization/48156
10578         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
10579         assume df and df_lr are not NULL.
10580
10581 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
10582
10583         PR debug/48023
10584         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
10585         between a call and its CALL_ARG_LOCATION note.
10586
10587 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
10588
10589         PR debug/48178
10590         * config/sh/sh.c (find_barrier): Don't emit a constant pool
10591         between a call and its corresponding CALL_ARG_LOCATION note.
10592
10593 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
10594
10595         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
10596         instead of loop. Use HARD_REGISTER_NUM_P predicate.
10597         * haifa-sched.c (setup_ref_regs): Ditto.
10598         * caller-save.c (add_used_regs_1): Ditto.
10599         * dse.c (look_for_hardregs): Ditto.
10600         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
10601         * sched-rgn.c (check_live_1): Ditto.
10602
10603 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10604
10605         * c-decl.c (diagnose_mismatched_decls): Give an error for
10606         redefining a typedef with variably modified type.
10607
10608 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
10609
10610         * c-decl.c (grokfield): Don't allow typedefs for structures or
10611         unions with no tag by default.
10612         * doc/extend.texi (Unnamed Fields): Update.
10613
10614 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
10615
10616         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
10617         Rewrite using indirect functions.
10618         (lwp_slwpcb): Ditto.
10619         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
10620         (avx_vinsertf128<mode>): Ditto.
10621
10622 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10623
10624         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
10625         unspecs.
10626
10627 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10628
10629         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
10630         splitting between a call and its corresponding CALL_ARG_LOCATION note.
10631
10632 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
10633
10634         PR rtl-optimization/48170
10635         * gcse.c (hoist_code): Remove bogus asserts.
10636
10637 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
10638
10639         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
10640         computation for prologue/epilogue.
10641
10642 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10643
10644         * Makefile.in (check-consistency): Remove.
10645
10646 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
10647
10648         PR debug/48176
10649         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
10650         arange_table_in_use is 0, but either text_section_used or
10651         cold_text_section_used is true.  Don't call it if
10652         !info_section_emitted.
10653
10654 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
10655
10656         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
10657         FUNCTION_VALUE_REGNO_P): Remove.
10658         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
10659         Remove.
10660         * config/avr/avr.c (avr_ret_register): Make static inline.
10661         (avr_function_value_regno_p): New function.
10662         (avr_libcall_value): Make static. Add 'func' argument.
10663         (avr_function_value): Make static. Rename 'func' argument to
10664         'fn_decl_or_type', forward it to avr_libcall_value. Call
10665         avr_ret_register function instead of RET_REGISTER macro.
10666         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
10667
10668 2011-03-18  Jason Merrill  <jason@redhat.com>
10669
10670         PR c++/23372
10671         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
10672
10673 2011-03-18  Richard Guenther  <rguenther@suse.de>
10674
10675         * doc/install.texi (--enable-gold): Remove.
10676         (--with-plugin-ld): Document.
10677         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
10678
10679 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
10680
10681         PR middle-end/47790
10682         * expr.c (optimize_bitfield_assignment_op): Revamp to work
10683         again after expansion changes.
10684
10685 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
10686
10687         * combine.c (try_combine): Do simplification only call of
10688         subst() on i2 even when i1 is present. Update comments.
10689
10690 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
10691
10692         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10693         and UNSPEC_PCREL_SYMOFF.
10694
10695 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10696
10697         * config/s390/s390.md: Use define_c_enum for the unspec constant
10698         definitions.
10699
10700 2011-03-18  Richard Henderson  <rth@redhat.com>
10701             Jakub Jelinek  <jakub@redhat.com>
10702
10703         PR bootstrap/48161
10704         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10705         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10706
10707 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10708
10709         PR middle-end/47725
10710         * combine.c (cant_combine_insn_p): Don't check zero/sign
10711         extended hard registers.
10712
10713 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10714
10715         PR middle-end/47725
10716         * combine.c (cant_combine_insn_p): Check zero/sign extended
10717         hard registers.
10718
10719 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
10720
10721         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10722         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10723         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10724         Change return type to bool.
10725         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10726
10727 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10728
10729         PR debug/48163
10730         * var-tracking.c (prepare_call_arguments): If CALL target
10731         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10732         pc instead of looking it up using cselib_lookup and use
10733         Pmode for it if x has VOIDmode.
10734         * dwarf2out.c (gen_subprogram_die): If also both first and
10735         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10736
10737         PR debug/48163
10738         * function.c (assign_parms): For data.passed_pointer parms
10739         use MEM of data.entry_parm instead of data.entry_parm itself
10740         as DECL_INCOMING_RTL.
10741         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10742         also when passed and declared mode is the same, DECL_RTL
10743         is a MEM with pseudo as address and DECL_INCOMING_RTL is
10744         a MEM too.
10745
10746 2011-03-16  Jeff Law  <law@redhat.com>
10747
10748         PR rtl-optimization/37273
10749         * ira-costs.c (scan_one_insn): Detect constants living in memory and
10750         handle them like argument loads from stack slots.  Do not double
10751         count memory for memory constants and argument loads from stack slots.
10752
10753 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10754
10755         PR debug/48160
10756         * var-tracking.c (prepare_call_arguments): Check SUBREG.
10757
10758 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
10759
10760         PR target/48171
10761         * config/i386/i386.opt: Add Save to -mavx and -mfma.
10762
10763 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10764
10765         PR bootstrap/48153
10766         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10767         if dwarf_strict.
10768         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10769         Clear call_arg_locations and call_arg_loc_last always.
10770
10771         PR middle-end/48152
10772         * var-tracking.c (prepare_call_arguments): If argument needs to be
10773         passed by reference, adjust argtype and mode.
10774
10775 2011-03-17  Richard Guenther  <rguenther@suse.de>
10776
10777         PR middle-end/48134
10778         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10779         a value make sure to fold the statement.
10780
10781 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
10782
10783         PR target/43872
10784         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10785         return condition with !cfun->calls_alloca.
10786
10787 2011-03-17  Richard Guenther  <rguenther@suse.de>
10788
10789         PR bootstrap/48148
10790         * lto-cgraph.c (input_overwrite_node): Clear the abstract
10791         origin for decls in other ltrans units.
10792         (input_varpool_node): Likewise.
10793
10794 2011-03-17  Richard Guenther  <rguenther@suse.de>
10795
10796         PR middle-end/48165
10797         * tree-object-size.c (compute_object_offset): Properly return
10798         the offset operand of MEM_REFs as sizetype.
10799
10800 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
10801
10802         PR rtl-optimization/48141
10803         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10804         * dse.c: Include params.h.
10805         (active_local_stores_len): New variable.
10806         (add_wild_read, dse_step1): Clear it when setting active_local_stores
10807         to NULL.
10808         (record_store, check_mem_read_rtx): Decrease it when removing
10809         from the chain.
10810         (scan_insn): Likewise.  Increase it when adding to chain, if it
10811         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10812         set active_local_stores to NULL before the addition.
10813         * Makefile.in (dse.o): Depend on $(PARAMS_H).
10814
10815         PR rtl-optimization/48141
10816         * dse.c (record_store): If no positions are needed in an insn
10817         that cannot be deleted, at least unchain it from active_local_stores.
10818
10819 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
10820
10821         PR debug/47510
10822         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10823         (lookup_type_die_strip_naming_typedef): ... here.
10824         (get_context_die): Use it.
10825         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10826         the anonymous struct named by the naming typedef.
10827
10828 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
10829
10830         PR target/48154
10831         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10832         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10833
10834 2011-03-16  Jeff Law  <law@redhat.com>
10835
10836         * tree-vrp.c (identify_jump_threads): Slightly simplify type
10837         check for operands of conditional.  Allow type to be a pointer.
10838
10839 2011-03-16  Richard Guenther  <rguenther@suse.de>
10840
10841         PR tree-optimization/48149
10842         * fold-const.c (fold_binary_loc): Fold
10843         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10844
10845 2011-03-16  Richard Guenther  <rguenther@suse.de>
10846
10847         PR tree-optimization/26134
10848         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10849         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10850         (non_rewritable_mem_ref_base): Handle complex type component
10851         accesses, constrain offsets for vector and complex extracts
10852         more properly.
10853
10854 2011-03-16  Richard Guenther  <rguenther@suse.de>
10855
10856         PR tree-optimization/48146
10857         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10858         operands avoiding the need for renaming.
10859
10860 2011-03-16  Richard Guenther  <rguenther@suse.de>
10861
10862         * gimple-fold.c (maybe_fold_reference): Open-code relevant
10863         constant folding.  Move MEM_REF canonicalization first.
10864         Rely on fold_const_aggregate_ref for initializer folding.
10865         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10866
10867 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10868
10869         PR middle-end/48136
10870         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10871         arg0/arg1 or their arguments are always fold converted to matching
10872         types.
10873
10874         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10875         to nargs.
10876
10877 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
10878
10879         PR lto/46944
10880         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10881         Handle in-tree gold.
10882         (ld_vers): Extract binutils version for gold.
10883         (gcc_cv_ld_hidden): Handle gold here.
10884         (gcc_cv_lto_plugin): Determine level of linker plugin support.
10885         * configure: Regenerate.
10886         * config.in: Regenerate.
10887         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10888         -fuse-linker-plugin otherwise.
10889         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
10890         (LINK_COMMAND_SPEC): Use it.
10891         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10892
10893 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
10894
10895         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10896         * calls.c: Remove debug.h include.
10897         (emit_call_1): Don't call virtual_call_token debug hook.
10898         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10899         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10900         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10901         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10902         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10903         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10904         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10905         dwarf2out_virtual_call): Remove.
10906         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10907         copy_call_info and virtual_call hooks.
10908         (dwarf2out_init): Don't initialize vcall_insn_table,
10909         debug_dcall_section and debug_vcall_section.
10910         (prune_unused_types): Don't mark nodes from dcall_table.
10911         (dwarf2out_finish): Don't output dcall or vcall tables.
10912         * final.c (final_scan_insn): Don't call direct_call or
10913         virtual_call debug hooks.
10914         * debug.h (struct gcc_debug_hooks): Remove direct_call,
10915         virtual_call_token, copy_call_info and virtual_call hooks.
10916         (debug_nothing_uid): Remove prototype.
10917         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10918         copy_call_info and virtual_call hooks.
10919         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10920         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10921         * debug.c (do_nothing_debug_hooks): Likewise.
10922         (debug_nothing_uid): Remove.
10923         * doc/invoke.texi (-fenable-icf-debug): Remove.
10924         * common.opt (-fenable-icf-debug): Likewise.
10925
10926         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10927         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10928         call's MEM.  Handle functions returning aggregate through a hidden
10929         first pointer.  For virtual calls add clobbered pc to call arguments
10930         chain.
10931         * dwarf2out.c (gen_subprogram_die): Emit
10932         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10933         can't be emitted.
10934
10935         PR debug/45882
10936         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10937         * rtl.h (ENTRY_VALUE_EXP): Define.
10938         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10939         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10940         * print-rtl.c (print_rtx): Likewise.
10941         * gengtype.c (adjust_field_rtx_def): Likewise.
10942         * var-tracking.c (vt_add_function_parameter): Adjust
10943         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10944         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10945         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10946         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10947         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10948
10949         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10950         Call var_location debug hook even on CALL_INSNs.
10951         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10952         * rtl.def (ENTRY_VALUE): New.
10953         * dwarf2out.c: Include cfglayout.h.
10954         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10955         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10956         (struct call_arg_loc_node): New type.
10957         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10958         tail_call_site_count): New variables.
10959         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10960         DW_TAG_GNU_call_site_parameter.
10961         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10962         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10963         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10964         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10965         and DW_AT_GNU_all_source_call_sites.
10966         (mem_loc_descriptor): Handle ENTRY_VALUE.
10967         (add_src_coords_attributes): Don't add enything if
10968         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10969         (dwarf2out_abstract_function): Save and clear call_arg_location,
10970         call_site_count and tail_call_site_count around dwarf2out_decl call.
10971         (gen_call_site_die): New function.
10972         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10973         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10974         (dwarf2out_function_decl): Clear call_arg_locations,
10975         call_arg_loc_last, set call_site_count and tail_call_site_count
10976         to -1 and free block_map.
10977         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10978         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
10979         followed by any real instructions.
10980         (dwarf2out_begin_function): Set call_site_count and
10981         tail_call_site_count to 0.
10982         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10983         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10984         attempt to force a DIE for it and worst case remove the attribute.
10985         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10986         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10987         the decl itself.
10988         * var-tracking.c: Include tm_p.h.
10989         (vt_stack_adjustments): For calls call note_register_arguments.
10990         (argument_reg_set): New variable.
10991         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10992         ensure the VALUE is resolved.
10993         (call_arguments): New variable.
10994         (prepare_call_arguments): New function.
10995         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10996         (struct expand_loc_callback_data): Add ignore_cur_loc field.
10997         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10998         always use the best expression.
10999         (vt_expand_loc): Add ignore_cur_loc argument.
11000         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
11001         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
11002         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
11003         note for all calls.
11004         (vt_add_function_parameter): Use cselib_lookup_from_insn.
11005         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
11006         argument.  Don't call cselib_preserve_only_values and
11007         cselib_reset_table.
11008         (note_register_arguments): New function.
11009         (vt_initialize): Compute argument_reg_set.  Call
11010         vt_add_function_parameters before processing basic blocks instead of
11011         afterwards.  For calls call prepare_call_arguments before calling
11012         cselib_process_insn.
11013         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
11014         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
11015         (var-tracking.o): Depend on $(TM_P_H).
11016         * cfglayout.h (insn_scope): New prototype.
11017         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
11018         * cfglayout.c (insn_scope): No longer static.
11019         * insn-notes.def (CALL_ARG_LOCATION): New.
11020         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
11021         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
11022         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
11023         nothing for DECL_EXTERNAL BLOCK_VARS.
11024
11025 2011-03-16  Alan Modra  <amodra@gmail.com>
11026
11027         PR target/45844
11028         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
11029         create invalid offset address for vsx splat insn.
11030         * config/rs6000/predicates.md (splat_input_operand): New.
11031         * config/rs6000/vsx.md (vsx_splat_*): Use it.
11032
11033 2011-03-15  Xinliang David Li  <davidxl@google.com>
11034
11035         PR c/47837
11036         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
11037         (normalize_preds): New function.
11038         (is_use_properly_guarded): Normalize def predicates.
11039
11040 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
11041
11042         PR target/46788
11043         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
11044         in the output template.
11045
11046 2011-03-15  Richard Guenther  <rguenther@suse.de>
11047
11048         PR middle-end/47650
11049         * tree-pretty-print.c (dump_function_declaration): Properly
11050         dump unprototyped and varargs function types.
11051
11052 2011-03-15  Richard Guenther  <rguenther@suse.de>
11053
11054         PR tree-optimization/13954
11055         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
11056         and friends.
11057
11058 2011-03-15  Richard Guenther  <rguenther@suse.de>
11059
11060         PR tree-optimization/48037
11061         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
11062         selects into BIT_FIELD_REFs.
11063         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
11064         vector select.
11065
11066 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
11067
11068         PR tree-optimization/48129
11069         * builtins.c (fold_builtin_snprintf): Convert to type of
11070         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
11071         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
11072
11073 2011-03-15  Richard Guenther  <rguenther@suse.de>
11074
11075         PR tree-optimization/41490
11076         * tree-ssa-dce.c (propagate_necessity): Handle returns without
11077         value but with VUSE.
11078         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
11079         return statements.
11080         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
11081         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
11082         * tree-tailcall.c (find_tail_calls): Ignore returns.
11083
11084 2011-03-15  Richard Guenther  <rguenther@suse.de>
11085
11086         PR middle-end/48031
11087         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
11088         or variable-indexed array accesses when in gimple form.
11089
11090 2011-03-15  Richard Guenther  <rguenther@suse.de>
11091
11092         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
11093
11094 2011-03-15  Alan Modra  <amodra@gmail.com>
11095
11096         PR target/48032
11097         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
11098         presume symbol_refs without a symbol_ref_decl are suitably
11099         aligned, nor other trees we may see here.  Handle anchor symbols.
11100         (legitimate_constant_pool_address_p): Comment.  Add mode param.
11101         Check cmodel=medium addresses.  Adjust all calls.
11102         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
11103         creating cmodel=medium optimized access to locals.
11104         * config/rs6000/constraints.md (R): Pass QImode to
11105         legitimate_constant_pool_address_p.
11106         * config/rs6000/predicates.md (input_operand): Pass mode to
11107         legitimate_constant_pool_address_p.
11108         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
11109         Update prototype.
11110
11111 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
11112
11113         PR target/48053
11114         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
11115         64-bit constants being loaded into registers other than GPRs such
11116         as loading 0 into a VSX register.
11117
11118 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
11119
11120         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
11121
11122 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11123
11124         PR middle-end/47917
11125         * builtins.c (fold_builtin_snprintf): New function.
11126         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
11127         (fold_builtin_4): Likewise.
11128
11129         PR middle-end/38878
11130         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
11131         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
11132         and C - X == X also strip nops from +/-/p+ operand.
11133         When optimizing -X == C, fold C to arg0's type.
11134
11135         PR debug/47946
11136         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
11137         emit it as add_AT_int instead of add_AT_unsigned.
11138
11139 2011-03-14  Tom Tromey  <tromey@redhat.com>
11140
11141         * unwind-dw2.c: Include sys/sdt.h if it exists.
11142         (_Unwind_DebugHook): Use STAP_PROBE2.
11143         * config.in, configure: Rebuild.
11144         * configure.ac: Check for sys/sdt.h.
11145
11146 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
11147
11148         * config/i386/i386.md (ROUND_FLOOR): New constant.
11149         (ROUND_CEIL): Ditto.
11150         (ROUND_TRUNC): Ditto.
11151         (ROUND_MXCSR): Ditto.
11152         (ROUND_NO_EXC): Ditto.
11153         (rint<mode>2): Use new defines instead of numerical constants.
11154         (floor<mode>2): Ditto.
11155         (ceil<mode>2): Ditto.
11156         (btrunc<mode>2): Ditto.
11157         * config/i386/i386-builtin-types.def: Define ROUND function type
11158         aliases.
11159         * config/i386/i386.c (enum ix86_builtins): Add
11160         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
11161         (struct builtin_description): Add
11162         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
11163         (ix86_expand_sse_round): New static function.
11164         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
11165         function types.
11166         (ix86_builtin_vectorized_function): Handle
11167         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
11168
11169 2011-03-14  Tom Tromey  <tromey@redhat.com>
11170
11171         * c-parser.c (c_parser_asm_string_literal): Clear
11172         warn_overlength_strings.
11173
11174 2011-03-14  Tom Tromey  <tromey@redhat.com>
11175
11176         * c-parser.c (disable_extension_diagnostics): Save
11177         warn_overlength_strings.
11178         (restore_extension_diagnostics): Restore warn_overlength_strings.
11179
11180 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11181
11182         * BASE-VER: Change to 4.7.0.
11183
11184 2011-03-14  Richard Guenther  <rguenther@suse.de>
11185
11186         PR middle-end/48098
11187         * tree.c (build_vector_from_val): Adjust assert to requirements
11188         and reality.
11189
11190 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
11191
11192         PR bootstrap/48102
11193         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
11194
11195 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
11196
11197         * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
11198         terms of target_flags_explicit. Adjust copyright year.
11199
11200         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
11201         * config/rs6000/t-freebsd: New file. Add override for
11202         LIB2FUNCS_EXTRA.
11203
11204 2011-03-13  Chris Demetriou  <cgd@google.com>
11205
11206         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
11207         (-fno-diagnostics-show-option): this, to reflect current default.
11208         (-Werror=): Update text about -fno-diagnostics-show-option.
11209
11210 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
11211
11212         PR target/48053
11213         * config/rs6000/predicates.md (easy_vector_constant_add_self,
11214         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
11215         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
11216         mode is not V2DImode or V2DFmode.
11217         (vspltis_constant): Do not handle V2DImode and V2DFmode.
11218         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
11219         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
11220         registers to 0.
11221         (movdi_internal64): Likewise.
11222
11223 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
11224
11225         PR tree-optimization/47127
11226         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
11227         parameter.
11228         (set_cloog_options): Same.
11229         (scop_to_clast): Same.
11230         (print_clast_stmt): Do not call cloog_state_malloc and
11231         cloog_state_free.
11232         (print_generated_program): Same.
11233         (gloog): Same.
11234         * graphite-clast-to-gimple.h (cloog_state): Declared.
11235         (scop_to_clast): Adjust declaration.
11236         * graphite.c (cloog_state): Defined here.
11237         (graphite_initialize): Call cloog_state_malloc.
11238         (graphite_finalize): Call cloog_state_free.
11239
11240 2011-03-11  Jason Merrill  <jason@redhat.com>
11241
11242         * attribs.c (lookup_attribute_spec): Take const_tree.
11243         * tree.h: Adjust.
11244
11245 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
11246
11247         * config/sparc/sparc.c (sparc_option_override): Use
11248         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
11249
11250 2011-03-11  Richard Guenther  <rguenther@suse.de>
11251
11252         PR tree-optimization/48067
11253         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
11254         multiplication result will be only used once on the target
11255         stmt.
11256
11257 2011-03-11  Richard Guenther  <rguenther@suse.de>
11258
11259         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
11260
11261 2011-03-11  Richard Guenther  <rguenther@suse.de>
11262
11263         PR lto/48073
11264         * tree.c (find_decls_types_r): Do not walk types only reachable
11265         from IDENTIFIER_NODEs.
11266
11267 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11268
11269         PR middle-end/48044
11270         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
11271         all vnode->force_output nodes as needed.
11272
11273 2011-03-11  Jason Merrill  <jason@redhat.com>
11274
11275         PR c++/48069
11276         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
11277         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
11278
11279 2011-03-11  Martin Jambor  <mjambor@suse.cz>
11280
11281         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
11282         cgraph_node.
11283
11284 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
11285
11286         PR tree-optimization/48063
11287         * ipa-inline.c (cgraph_decide_inlining): Don't try to
11288         inline functions called once if !tree_can_inline_p (node->callers).
11289
11290 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
11291
11292         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
11293         extra_objs.
11294         * config/score/score3.c: Delete.
11295         * config/score/score3.h: Delete.
11296         * config/score/mul-div.S: Delete.
11297         * config/score/sfp-machine.h: Add new file.
11298         * config/score/constraints.md: Add new file.
11299         * config/score/t-score-softfp: Add new file.
11300         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
11301         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
11302         (score7_extra_constraint): Delete.
11303         (score7_option_override): Remove unused code.
11304         * config/score/score.c: Remove score3 and score5 define and code.
11305         * config/score/score.h: Remove score3 and score5 define and code.
11306         * config/score/score.md: Remove score3 template and unusual insn.
11307         * config/score/score.opt: Remove score3 and score5 options.
11308
11309 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11310
11311         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
11312         when _HPUX_SOURCE is defined.
11313         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
11314
11315 2011-03-10  Jason Merrill  <jason@redhat.com>
11316
11317         PR c++/48029
11318         * stor-layout.c (layout_type): Don't set structural equality
11319         on arrays of incomplete type.
11320         * tree.c (type_hash_eq): Handle comparing them properly.
11321
11322 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
11323
11324         PR debug/48043
11325         * config/s390/s390.c (s390_delegitimize_address): Make sure the
11326         result mode matches original rtl mode.
11327
11328 2011-03-10  Nick Clifton  <nickc@redhat.com>
11329
11330         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
11331         (andsi3, andsi3_flags): Fix timings for three operand alternative.
11332
11333 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
11334
11335         PR rtl-optimization/47866
11336         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
11337         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
11338         if target wasn't scalar.
11339         * function.c (assign_stack_temp_for_type): Assert that neither
11340         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
11341         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
11342         macro.
11343         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
11344
11345 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11346
11347         * config/s390/s390-protos.h (s390_label_align): New prototype.
11348         * config/s390/s390.c (s390_label_align): New function.
11349         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
11350
11351 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
11352
11353         PR target/47755
11354         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
11355         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
11356         (output_vec_const_move): Ditto.
11357
11358 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
11359
11360         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
11361         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
11362         * config/mips/mips.c (mips_preferred_reload_class): Make static.
11363         Change 'rclass' argument and result type to reg_class_t.
11364         (TARGET_PREFERRED_RELOAD_CLASS): Define.
11365
11366 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
11367
11368         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11369         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
11370         (TARGET_MEMORY_MOVE_COST): Define.
11371         (avr_register_move_cost, avr_memory_move_cost): New Functions.
11372
11373 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
11374
11375         PR debug/47881
11376         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
11377         removed anything.
11378
11379         PR tree-optimization/48022
11380         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
11381         for EQ/NE_EXPR.
11382
11383 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
11384
11385         PR debug/47991
11386         * var-tracking.c (find_use_val): Return NULL for
11387         cui->sets && cui->store_p BLKmode MEMs.
11388
11389 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
11390
11391         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
11392         Remove.
11393         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
11394         xstormy16_print_operand_address): Remove.
11395         * config/stormy16/stormy16.c (xstormy16_print_operand,
11396         xstormy16_print_operand_address): Make static.
11397         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
11398
11399 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
11400
11401         PR target/47862
11402         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
11403         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
11404         before definition.
11405
11406 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
11407
11408         PR bootstrap/48000
11409         * cfgloopmanip.c (fix_bb_placements): Return immediately
11410         if FROM is BASE_LOOP's header.
11411
11412 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
11413
11414         * gimplify.c (gimplify_function_tree): Fix building calls
11415         to __builtin_return_address.
11416
11417 2011-03-07  Alan Modra  <amodra@gmail.com>
11418
11419         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
11420         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
11421         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
11422         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
11423         return_mode args.
11424         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
11425         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
11426         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
11427         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
11428         * config/rs6000/rs6000.c
11429         (rs6000_elf_end_indicate_exec_stack): Rename to..
11430         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
11431         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
11432         (rs6000_file_start): ..here.
11433         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
11434         file scope variables.
11435         (call_ABI_of_interest): New function.
11436         (init_cumulative_args): Set above vars when function return value
11437         is a float, vector, or small struct.
11438         (rs6000_function_arg_advance_1): Likewise for function args.
11439         (rs6000_va_start): Set rs6000_passes_float if variable arg function
11440         references float args.
11441
11442 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
11443
11444         * doc/cfg.texi: Remove "See" before @ref.
11445         * doc/invoke.texi: Likewise.
11446
11447 2011-03-05  Jason Merrill  <jason@redhat.com>
11448
11449         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
11450
11451 2011-03-05  Anthony Green  <green@moxielogic.com>
11452
11453         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
11454
11455 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
11456
11457         PR rtl-optimization/47899
11458         * cfgloopmanip.c (fix_bb_placements): Fix first argument
11459         to flow_loop_nested_p when moving the loop upward.
11460
11461 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
11462
11463         PR target/47719
11464         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
11465
11466 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
11467
11468         PR tree-optimization/47967
11469         * ipa-cp.c (build_const_val): Return NULL instead of creating
11470         VIEW_CONVERT_EXPR for mismatching sizes.
11471         (ipcp_create_replace_map): Return NULL if build_const_val failed.
11472         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
11473         give up on versioning.
11474
11475 2011-03-05  Alan Modra  <amodra@gmail.com>
11476
11477         PR target/47986
11478         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
11479         full cmodel medium/large lo_sum + high addresses.
11480
11481 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11482
11483         * config/s390/s390.c (s390_decompose_address): Reject non-literal
11484         pool references in UNSPEC_LTREL_OFFSET.
11485
11486 2011-03-04  Jan Hubicka  <jh@suse.cz>
11487
11488         PR lto/47497
11489         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
11490         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
11491         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
11492         Add node pointers.
11493         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
11494         cgraph_add_thunk): Add node pointers.
11495         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
11496         associated to right node.
11497         (input_node): Update use of cgraph_same_body_alias
11498         and cgraph_add_thunk.
11499
11500 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
11501
11502         * config/i386/i386.opt (mprefer-avx128): New flag.
11503         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
11504         modes when the flag -mprefer-avx128 is on.
11505
11506 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
11507
11508         * dwarf2out.c (compare_loc_operands): Fix address handling.
11509
11510 2011-03-04  Alan Modra  <amodra@gmail.com>
11511
11512         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
11513
11514 2011-03-04  Richard Guenther  <rguenther@suse.de>
11515
11516         PR middle-end/47968
11517         * expmed.c (extract_bit_field_1): Prefer vector modes that
11518         vec_extract patterns can handle.
11519
11520 2011-03-04  Richard Guenther  <rguenther@suse.de>
11521
11522         PR middle-end/47975
11523         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
11524
11525 2011-03-04  Richard Henderson  <rth@redhat.com>
11526
11527         * explow.c (emit_stack_save): Remove 'after' parameter.
11528         (emit_stack_restore): Likewise.
11529         * expr.h: Update to match.
11530         * builtins.c, calls.c, stmt.c: Likewise.
11531         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
11532         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
11533         * function.c (expand_function_end): Insert the emit_stack_save
11534         sequence before parm_birth_insn instead of after.
11535
11536 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
11537
11538         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
11539         (ssse3_pmaddubsw128): Ditto.
11540         (ssse3_pmaddubsw): Ditto.
11541
11542 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
11543
11544         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
11545
11546 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
11547
11548         PR c/47963
11549         * gimplify.c (omp_add_variable): Only call omp_notice_variable
11550         on TYPE_SIZE_UNIT if it is a DECL.
11551
11552         PR debug/47283
11553         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
11554         first operand is not is_gimple_mem_ref_addr, try to fold it.
11555         If the operand still isn't is_gimple_mem_ref_addr, clear
11556         MEM_EXPR on op0.
11557
11558 2011-03-03  Richard Guenther  <rguenther@suse.de>
11559
11560         PR middle-end/47283
11561         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
11562         match comment.
11563         (refs_may_alias_p_1): For release branches return true if
11564         we are confused by our input.
11565
11566 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11567
11568         * config/s390/s390.c (s390_function_value): Rename to ...
11569         (s390_function_and_libcall_value): ... this.
11570         (s390_function_value): New function.
11571         (s390_libcall_value): New function.
11572         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
11573         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
11574         target macro definitions.
11575         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
11576
11577 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
11578
11579         * config/i386/freebsd64.h (CC1_SPEC): Define.
11580         * config/i386/linux64.h (CC1_SPEC): Define.
11581         * config/i386/x86-64.h (CC1_SPEC): Don't define.
11582
11583 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
11584
11585         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11586         Remove.
11587         * config/stormy16/stormy16.c: Include reload.h.
11588         (xstormy16_memory_move_cost): New function.
11589         (TARGET_MEMORY_MOVE_COST): Define.
11590
11591 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
11592
11593         PR rtl-optimization/47925
11594         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
11595         with side effects.  Remove the more-specific check for volatile asms.
11596
11597 2011-03-02  Alan Modra  <amodra@gmail.com>
11598
11599         PR target/47935
11600         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
11601         toc relative addresses for valid offsets.
11602
11603 2011-03-01  Richard Guenther  <rguenther@suse.de>
11604
11605         PR tree-optimization/47890
11606         * tree-vect-loop.c (get_initial_def_for_induction): Set
11607         related stmt properly.
11608
11609 2011-03-01  Richard Guenther  <rguenther@suse.de>
11610
11611         PR lto/47924
11612         * lto-streamer.c (lto_record_common_node): Also register
11613         the canonical type.
11614
11615 2011-03-01  Richard Guenther  <rguenther@suse.de>
11616
11617         PR lto/46911
11618         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11619         Do not stream DECL_ABSTRACT_ORIGIN.
11620         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11621         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11622         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11623         Do not stream DECL_ABSTRACT_ORIGIN.
11624         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
11625         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
11626
11627 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
11628
11629         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
11630         FUNCTION_VALUE_REGNO_P): Remove.
11631         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
11632         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
11633         Add 'outgoing' argument.
11634         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
11635         function.
11636         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
11637         TARGET_FUNCTION_VALUE_REGNO_P): Define.
11638
11639 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
11640
11641         PR debug/28047
11642         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
11643         (lookup_filename): Likewise.
11644         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
11645
11646 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
11647             Jakub Jelinek  <jakub@redhat.com>
11648
11649         PR middle-end/47893
11650         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
11651         (assign_stack_local_1): Change last argument type to int.
11652         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
11653         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
11654         don't record padding space into frame_space_list nor use those areas.
11655         (assign_stack_local): Adjust caller.
11656         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
11657         of assign_stack_local, pass 0 as last argument.
11658         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
11659         callers.
11660
11661 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
11662
11663         PR debug/47283
11664         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
11665         Use target address_mode and pointer_mode hooks instead of hardcoded
11666         Pmode and ptr_mode.  Handle some simple cases of extending if
11667         POINTERS_EXTEND_UNSIGNED < 0.
11668         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
11669         Call convert_debug_memory_address.
11670         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
11671         convert_debug_memory_address.
11672
11673         PR middle-end/46790
11674         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
11675         * configure: Regenerated.
11676         * config.in: Regenerated.
11677         * varasm.c (default_function_section): Return NULL
11678         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
11679
11680 2011-02-28  Martin Jambor  <mjambor@suse.cz>
11681
11682         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11683         the description to match the printed values.
11684
11685 2011-02-28  Richard Guenther  <rguenther@suse.de>
11686
11687         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11688         of the copied scope tree.
11689
11690 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11691
11692         * doc/extend.texi (Function Attributes): Avoid deeply (and
11693         wrongly) nested tables.
11694
11695 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
11696
11697         PR middle-end/47903
11698         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11699         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11700         r isn't op0 nor op1.
11701
11702 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11703
11704         * config/avr/avr.md: Remove magic comment for emacs.
11705
11706 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
11707
11708         PR target/45261
11709         * config/avr/avr.c (avr_option_override): Use error on bad options.
11710         (avr_help): New function.
11711         (TARGET_HELP): Define.
11712
11713 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
11714
11715         PR target/42240
11716         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11717         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11718
11719 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
11720
11721         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11722         (ARM Options): Ditto.
11723         (i386 and x86-64 Options): Ditto.
11724         (RX Options): Ditto.
11725         (SPARC Options): Ditto.
11726
11727 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
11728
11729         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11730         FreeBSD 6 and later.  Generally use cpu generic.
11731
11732 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
11733
11734         * doc/cpp.texi: Update copyright years.
11735
11736 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
11737
11738         PR target/46898
11739         * config/lm32/lm32.md (ashrsi3): Added needed variable.
11740
11741 2011-02-25  Jon Beniston  <jon@beniston.com>
11742
11743         PR target/46898
11744         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11745         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11746         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11747         (lm32_block_move_inline): Add type cast to remove warning.
11748         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
11749         (gen_int_relational): Move declarations to start of function.
11750
11751 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
11752
11753         PR tree-optimization/45470
11754         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11755         can throw internally only.
11756         * tree-vect-stmts.c (vectorizable_call): Likewise.
11757
11758 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
11759
11760         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11761         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11762         * config/stormy16/stormy16-protos.h
11763         (xstormy16_preferred_reload_class): Remove.
11764         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11765         static. Change 'rclass' argument and return type to reg_class_t.
11766         (TARGET_PREFERRED_RELOAD_CLASS,
11767         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11768
11769 2011-02-24  Richard Guenther  <rguenther@suse.de>
11770
11771         * lto-streamer-in.c (input_bb): Do not find referenced vars
11772         in debug statements.
11773
11774 2011-02-23  Jason Merrill  <jason@redhat.com>
11775
11776         * common.opt (fabi-version): Document v5 and v6.
11777
11778 2011-02-23  Richard Guenther  <rguenther@suse.de>
11779
11780         PR tree-optimization/47849
11781         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11782
11783 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11784
11785         * opts-common.c (decode_cmdline_option): Print empty string
11786         argument as "" in decoded->orig_option_with_args_text.
11787         * gcc.c (execute): Print empty string argument as ""
11788         in the verbose output.
11789         (do_spec_1): Keep empty string argument.
11790
11791 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
11792
11793         * config.gcc: Declare score-* and crx-* obsolete.
11794
11795 2011-02-23  Jie Zhang  <jie@codesourcery.com>
11796
11797         PR rtl-optimization/47763
11798         * web.c (web_main): Ignore naked clobber when replacing register.
11799
11800 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
11801
11802         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11803         Remove.
11804
11805 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
11806
11807         PR doc/47848
11808         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11809
11810 2011-02-22  Mike Stump  <mikestump@comcast.net>
11811
11812         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11813         assembler.
11814         * configure: Regenerate.
11815
11816 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
11817
11818         PR rtl-optimization/46002
11819         * ira-color.c (update_copy_costs): Change class intersection
11820         test to reg_class_contents[] test of 'hard_regno'.
11821
11822 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
11823
11824         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11825         than Driver option.
11826         * config/hpux11.opt (mt): Likewise.
11827         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11828         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11829         * config/vax/elf.opt (mno-asm-pic): Likewise.
11830         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11831
11832 2011-02-21  Mike Stump  <mikestump@comcast.net>
11833
11834         PR target/47822
11835         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11836         tree so we can get save the type.
11837         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11838         for CFString instead of trying to use past the end of the builtins.
11839         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11840         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11841         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11842         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11843         Rename to darwin_builtin_cfstring.
11844         (darwin_init_cfstring_builtins): Return the built type.
11845
11846 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
11847
11848         PR target/47840
11849         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11850         (_mm256_insert_epi64): Use _mm_insert_epi64.
11851
11852 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
11853
11854         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11855         * config/stormy16/stormy16-protos.h
11856         (xstormy16_mode_dependent_address_p): Remove.
11857         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11858         Make static. Change return type to bool. Change argument type to
11859         const_rtx. Remove dead code.
11860         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11861
11862 2011-02-21  Richard Guenther  <rguenther@suse.de>
11863
11864         PR lto/47820
11865         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11866         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11867         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11868         TUs context.
11869         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11870         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11871
11872 2011-02-20  Richard Guenther  <rguenther@suse.de>
11873
11874         PR lto/47822
11875         * tree.c (free_lang_data_in_decl): Clean builtins from
11876         the TU decl BLOCK_VARS.
11877
11878 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
11879
11880         PR debug/47620
11881         PR debug/47630
11882         * haifa-sched.c (fix_tick_ready): Skip tick computation
11883         for debug insns.
11884
11885 2011-02-19  Richard Guenther  <rguenther@suse.de>
11886
11887         PR lto/47647
11888         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11889         Remove lazy BLOCK_VARS streaming.
11890         (lto_input_ts_block_tree_pointers): Likewise.
11891         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11892
11893 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11894
11895         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11896
11897 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
11898
11899         * config/i386/biarch32.h, config/i386/mach.h,
11900         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11901
11902 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
11903
11904         PR target/47800
11905         * config/i386/i386.md (peephole2 for shift and plus): Use
11906         operands[1] original mode in the first insn.
11907
11908 2011-02-18  Mike Stump  <mikestump@comcast.net>
11909
11910         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
11911
11912 2011-02-18  Jan Hubicka  <jh@suse.cz>
11913
11914         PR middle-end/47788
11915         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11916         to zero when the function is not inlinable at all.
11917
11918 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11919
11920         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11921         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11922         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11923         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11924         * config/pa/t-pa64: Likewise.
11925         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11926
11927 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11928
11929         PR driver/47787
11930         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11931
11932 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11933
11934         PR target/47792
11935         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11936
11937 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
11938
11939         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11940         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11941         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11942         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11943         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11944         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11945         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11946         m32r_load_postinc_p, m32r_store_preinc_predec_p,
11947         m32r_legitimate_address_p): New functions.
11948         * config/m32r/constraints.md (constraint "S"): Don't use
11949         STORE_PREINC_PREDEC_P.
11950         (constraint "U"): Don't use LOAD_POSTINC_P.
11951
11952 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
11953
11954         PR rtl-optimization/46178
11955         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11956         compute ira_hard_regno_cover_class[].
11957
11958 2011-02-18  Richard Guenther  <rguenther@suse.de>
11959
11960         PR lto/47798
11961         * lto-streamer.h (lto_global_var_decls): Declare.
11962         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11963         statics for global var processing.
11964
11965 2011-02-18  Richard Guenther  <rguenther@suse.de>
11966
11967         PR tree-optimization/47737
11968         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11969         edge dominance check.
11970
11971 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
11972
11973         PR debug/47780
11974         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11975         avoid invalid rtx sharing.
11976
11977 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
11978
11979         * doc/cpp.texi (Obsolete Features): Add background on the
11980         origin of assertions.
11981
11982 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
11983
11984         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
11985         objc_abi == 2.
11986         * config/darwin.c (output_objc_section_asm_op): Added support for
11987         ABI v1 and v2.
11988         (is_objc_metadata): New.
11989         (darwin_objc2_section): New.
11990         (darwin_objc1_section): New.
11991         (machopic_select_section): Added support for ABI v1 and v2.
11992         (darwin_emit_objc_zeroed): New.
11993         (darwin_output_aligned_bss): Detect objc metadata and treat it
11994         appropriately.
11995         (darwin_asm_output_aligned_decl_common): Same.
11996         (darwin_asm_output_aligned_decl_local): Same.
11997         * config/darwin-sections.def: Updated for ABI v1 and v2.
11998         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11999         compiling Objective-C code for the NeXT runtime, default to using
12000         ABI version 0 for 32-bit, and version 2 for 64-bit.
12001
12002 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12003
12004         * common.opt (optimize_fast): New Variable.
12005         * opts.c (default_options_optimization): Use opts->x_optimize_fast
12006         instead of local variable ofast.
12007
12008 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
12009
12010         * doc/invoke.texi (fobjc-abi-version): Documented.
12011         (fobjc-nilcheck): Documented.
12012         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
12013         version.
12014
12015 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12016
12017         PR driver/47390
12018         * common.opt (export-dynamic): New Driver option.
12019         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
12020
12021 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12022
12023         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
12024
12025 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
12026             Jan Hubicka  <jh@suse.cz>
12027
12028         PR debug/47106
12029         PR debug/47402
12030         * cfgexpand.c (account_used_vars_for_block): Remove.
12031         (estimated_stack_frame_size): Use referenced vars.
12032         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
12033         that were referenced in the original function.  Test src_fn
12034         rather than cfun.  Drop redundant get_var_ann.
12035         (setup_one_parameter): Drop redundant get_var_ann.
12036         (declare_return_variable): Likewise.
12037         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
12038         (copy_arguments_for_versioning): Drop redundant get_var_ann.
12039         * ipa-inline.c (compute_inline_parameters): Do not compute
12040         disregard_inline_limits here.
12041         (compute_inlinable_for_current, pass_inlinable): New.
12042         (pass_inline_parameters): Require PROP_referenced_vars.
12043         * cgraphunit.c (cgraph_process_new_functions): Don't run
12044         compute_inline_parameters explicitly unless function is in SSA form.
12045         (cgraph_analyze_function): Set .disregard_inline_limits.
12046         * tree-sra.c (convert_callers): Compute inliner parameters
12047         only for functions already in SSA form.
12048
12049 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12050
12051         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
12052         -mlittle-endian-data.
12053
12054 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
12055
12056         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
12057         -mno-fpu, not -fpu and -no-fpu.
12058         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
12059         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
12060
12061 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
12062
12063         PR target/43653
12064         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
12065         input reload with PLUS RTX.
12066
12067 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12068
12069         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
12070         of InverseVar(MDMX).
12071
12072 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12073
12074         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
12075         --m4-340.
12076
12077 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12078
12079         * config/mn10300/mn10300.opt (mno-crt0): New.
12080
12081 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12082
12083         * config/m68k/uclinux.opt (static-libc): New Driver option.
12084
12085 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12086
12087         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
12088
12089 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
12090
12091         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
12092         %{muser-extend-enabled}.
12093
12094 2011-02-16  Richard Guenther  <rguenther@suse.de>
12095
12096         PR tree-optimization/47738
12097         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
12098         the TODO from tree_predictive_commoning.
12099
12100 2011-02-15  Jeff Law  <law@redhat.com>
12101
12102         Revert
12103         2011-01-25  Jeff Law  <law@redhat.com>
12104
12105         PR rtl-optimization/37273
12106         * ira-costs.c (scan_one_insn): Detect constants living in memory and
12107         handle them like argument loads from stack slots.  Do not double
12108         count memory for memory constants and argument loads from stack slots.
12109
12110 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12111
12112         PR middle-end/47725
12113         * combine.c (cant_combine_insn_p): Revert the last change.
12114
12115 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
12116
12117         PR target/47755
12118         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
12119         mode for vector constants.  Remove code that checks for TImode.
12120
12121 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12122
12123         PR debug/47106
12124         PR debug/47402
12125         * cgraph.h (compute_inline_parameters): Return void.
12126         * ipa-inline.c (compute_inline_parameters): Adjust.
12127
12128 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12129
12130         PR debug/47106
12131         PR debug/47402
12132         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
12133         rather than decl.
12134         * cfgexpand.c (estimated_stack_frame_size): Likewise.
12135         * ipa-inline.c (compute_inline_parameters): Adjust.
12136
12137 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12138
12139         PR debug/47106
12140         PR debug/47402
12141         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
12142         Adjust all users.  Pass FN to...
12143         * tree-flow-inline.h (first_referenced_var): ... this.  Add
12144         fn argument.
12145         * ipa-struct-reorg.c: Adjust.
12146         * tree-dfa.c: Adjust.
12147         * tree-into-ssa.c: Adjust.
12148         * tree-sra.c: Adjust.
12149         * tree-ssa-alias.c: Adjust.
12150         * tree-ssa-live.c: Adjust.
12151         * tree-ssa.c: Adjust.
12152         * tree-ssanames.c: Adjust.
12153         * tree-tailcall.c: Adjust.
12154
12155 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
12156
12157         PR debug/47106
12158         PR debug/47402
12159         * tree-flow.h (referenced_var_lookup): Add fn parameter.
12160         Adjust all callers.
12161         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
12162         * tree-flow-inline.h: Adjust.
12163         * gimple-pretty-print.c: Adjust.
12164         * tree-into-ssa.c: Adjust.
12165         * tree-ssa.c: Adjust.
12166         * cfgexpand.c: Adjust.
12167
12168 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12169
12170         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
12171         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12172         (EXTRA_CONSTRAINT): Delete.
12173         * config/iq2000/constraints.md: New file.
12174         * config/iq2000/iq2000.md: Include it.
12175         (define_insn ""): Delete.
12176         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
12177         unsupported constraint letters from patterns.
12178         (call_value, call_value_internal1): Likewise.
12179         (call_value_multiple_internal1): Likewise.
12180
12181 2011-02-15  Nick Clifton  <nickc@redhat.com>
12182
12183         * config/mn10300/mn10300.c: Include tm-constrs.h.
12184         (struct liw_data): New data structure describing an LIW candidate
12185         instruction.
12186         (extract_bundle): Use struct liw_data.  Allow small integer
12187         operands for some instructions.
12188         (check_liw_constraints): Use struct liw_data.  Remove swapped
12189         parameter.  Add comments describing the checks.  Fix bug when
12190         assigning the source of liw1 to the source of liw2.
12191         (liw_candidate): Delete.  Code moved into extract_bundle.
12192         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
12193         before swapping.
12194         * config/mn10300/predicates.md (liw_operand): New predicate.
12195         Allows registers and small integer constants.
12196         * config/mn10300/constraints.md (O): New constraint.  Accetps
12197         integers in the range -8 to +7 inclusive.
12198         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
12199         for moving a small integer into a register.  Give this alternative
12200         LIW attributes.
12201         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
12202         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
12203         using the J,K,L and M constraints,
12204         (liw): Remove SI mode on second operands to allow for HI and QI
12205         mode values.
12206         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
12207         instruction.
12208
12209 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
12210
12211         PR middle-end/47725
12212         * combine.c (cant_combine_insn_p): Check zero/sign extended
12213         hard registers.
12214
12215 2011-02-15  Richard Guenther  <rguenther@suse.de>
12216
12217         PR tree-optimization/47743
12218         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
12219         for a non-type-compatible VN lookup bail out.
12220
12221 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12222
12223         * config/fr30/constraints.md: New file.
12224         * config/fr30/fr30.md: Include it.
12225         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
12226         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12227         (EXTRA_CONSTRAINT): Delete.
12228
12229 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
12230
12231         * config/frv/constraints.md: New file.
12232         * config/frv/predicates.md: Include it.
12233         * config/frv/frv.c (reg_class_from_letter): Delete.
12234         (frv_option_override): Don't initialize it.
12235         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
12236         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
12237         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
12238         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12239         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
12240         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12241         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
12242         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
12243         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
12244         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
12245         (REG_CLASS_FROM_CONSTRAINT): Delete.
12246
12247 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
12248
12249         PR middle-end/47581
12250         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
12251         if frame size is 0 in a leaf function.
12252
12253 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12254
12255         PR pch/14940
12256         * config/alpha/host-osf.c: New file.
12257         * config/alpha/x-osf: New file.
12258         * config.host (alpha*-dec-osf*): Use it.
12259
12260 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12261
12262         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12263         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
12264         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
12265         (rx_mode_dependent_address_p): ...this. Make static. Change argument
12266         type to const_rtx.
12267         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12268
12269 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12270
12271         * config/stormy16/constraints.md: New file.
12272         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
12273         Use satisfies_constraint_Q and satisfies_constraint_R.
12274         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
12275         Delete.
12276         (xstormy16_legitiamte_address_p): Declare.
12277         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
12278         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12279         (EXTRA_CONSTRAINT): Delete.
12280         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
12281         Un-staticize.
12282         (xstormy16_extra_constraint_p): Delete.
12283
12284 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
12285
12286         PR tree-optimization/46494
12287         * loop-unroll.c (split_edge_and_insert): Adjust comment.
12288         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
12289         (pass_rtl_loop_done): Add TODO_verify_flow.
12290         * fwprop.c (pass_rtl_fwprop): Likewise.
12291         * modulo-sched.c (pass_sms): Likewise.
12292         * tree-ssa-dom.c (pass_dominator): Likewise.
12293         * tree-ssa-loop-ch.c (pass_ch): Likewise.
12294         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
12295         (pass_tree_loop_done): Likewise.
12296         * tree-ssa-pre.c (execute_pre): Likewise.
12297         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
12298         * tree-ssa-sink.c (pass_sink_code): Likewise.
12299         * tree-vrp.c (pass_vrp): Likewise.
12300
12301 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12302
12303         * config/v850/constraints.md: New file.
12304         * config/v850/v850.md: Include it.
12305         * config/v850/predicates.md (reg_or_0_operand): Use
12306         satisfies_constraint_G.
12307         (special_symbolref_operand): Use satisfies_constraint_K.
12308         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
12309         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
12310         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
12311         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
12312         (EXTRA_CONSTRAINT): Delete.
12313         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
12314         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
12315         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
12316
12317 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
12318
12319         PR target/47696
12320         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
12321         description.
12322
12323 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
12324
12325         * config/mcore/constraints.md: New file.
12326         * config/mcore/mcore.md: Include it.
12327         * config/mcore/mcore.c (reg_class_from_letter): Delete.
12328         * config/mcore/mcore.h (reg_class_from_letter): Delete.
12329         (REG_CLASS_FROM_LETTER): Delete.
12330         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
12331         insn_const_int_ok_for_constraint.
12332         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
12333         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
12334         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
12335         (EXTRA_CONSTRAINT): Delete.
12336
12337 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12338
12339         PR ada/41929
12340         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
12341         (IS_SIGHANDLER): Define.
12342         (sparc64_is_sighandler): New function, split off from
12343         sparc64_fallback_frame_state.
12344         (sparc_is_sighandler): New function, split off from
12345         sparc_fallback_frame_state.
12346         (sparc64_fallback_frame_state): Merge with ...
12347         (sparc_fallback_frame_state): ... this into ...
12348         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
12349         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
12350         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
12351         stack instead of hardcoded offsets.
12352
12353 2011-02-14  Andriy Gapon  <avg@freebsd.org>
12354
12355         PR target/45808
12356         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
12357
12358 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12359
12360         * configure: Regenerate.
12361
12362 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
12363
12364         PR driver/45731
12365         * gcc.c (asm_options): Correct spec matching --target-help.
12366
12367 2011-02-12  Martin Jambor  <mjambor@suse.cz>
12368
12369         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
12370         to gimple call error.
12371
12372 2011-02-12  Mike Stump  <mikestump@comcast.net>
12373
12374         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
12375         comments in backslash regions.
12376
12377 2011-02-12  Mike Stump  <mikestump@comcast.net>
12378             Jakub Jelinek  <jakub@redhat.com>
12379             Iain Sandoe  <iains@gcc.gnu.org>
12380
12381         PR target/47324
12382         * dwarf2out.c (output_cfa_loc): When required, apply the
12383         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
12384         (output_loc_sequence): Likewise.
12385         (output_loc_operands_raw): Likewise.
12386         (output_loc_sequence_raw): Likewise.
12387         (output_cfa_loc): Likewise.
12388         (output_loc_list): Suppress register number adjustment when
12389         calling output_loc_sequence()
12390         (output_die): Likewise.
12391
12392 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
12393
12394         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
12395         Remove macros.
12396         * config/xtensa/xtensa.c (xtensa_register_move_cost,
12397         xtensa_memory_move_cost): New functions.
12398         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
12399
12400 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
12401
12402         PR lto/47225
12403         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
12404         in the current directory.
12405         * configure: Rebuilt.
12406
12407 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12408
12409         * config/darwin.c (darwin_override_options): Add a hunk missed
12410         from the commit of r168571.  Trim comment line lengths and
12411         correct indents of the preceding block.
12412
12413 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
12414
12415         * gcc.c (driver_handle_option): Concatenate the argument to -F with
12416         the switch.
12417
12418 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12419
12420         * common.opt (nostartfiles): New Driver option.
12421
12422 2011-02-11  Xinliang David Li  <davidxl@google.com>
12423
12424         PR tree-optimization/47707
12425         * tree-chrec.c (convert_affine_scev): Keep type precision.
12426
12427 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
12428
12429         PR tree-optimization/47420
12430         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
12431
12432 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
12433
12434         PR rtl-optimization/47614
12435         * rtl.h (check_for_inc_dec): Declare.
12436         * dse.c (check_for_inc_dec): Externalize...
12437         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
12438         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
12439
12440 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
12441
12442         PR driver/47678
12443         * gcc.c (main): Do not compile inputs if there were errors in
12444         option handling.
12445         * opts-common.c (read_cmdline_option): Check for wrong language
12446         after other error checks.
12447
12448 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
12449
12450         * cgraph.c: Fix comment typos.
12451         * cgraph.h: Likewise.
12452         * cgraphunit.c: Likewise.
12453         * ipa-cp.c: Likewise.
12454         * ipa-inline.c: Likewise.
12455         * ipa-prop.c: Likewise.
12456         * ipa-pure-const.c: Likewise.
12457         * ipa-ref.c: Likewise.
12458         * ipa-reference.c: Likewise.
12459
12460 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
12461
12462         PR debug/47684
12463         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
12464
12465 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12466
12467         PR testsuite/47400
12468         * doc/sourcebuild.texi (Require Support): Document
12469         dg-require-ascii-locale.
12470
12471 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
12472
12473         * doc/lto.texi (Write summary): Fix missing parentheses.
12474
12475 2011-02-10  DJ Delorie  <dj@redhat.com>
12476
12477         * config/m32c/m32c.c (m32c_option_override): Disable
12478         -fcombine-stack-adjustments until flag value tracking and compare
12479         optimization can be rewritten.
12480
12481 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
12482
12483         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
12484         PROCESSOR_POWER7.
12485         (PROCESSOR_DEFAULT64): Likewise.
12486
12487 2011-02-10  Richard Henderson  <rth@redhat.com>
12488
12489         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
12490         change from 2011-02-03.
12491         * config/rx/rx.c (flags_from_code): Likewise.
12492         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
12493         is valid, n/pz otherwise.
12494         (rx_select_cc_mode): Return CCmode if Y is not zero.
12495
12496 2011-02-10  Richard Guenther  <rguenther@suse.de>
12497
12498         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
12499
12500 2011-02-10  Richard Guenther  <rguenther@suse.de>
12501
12502         PR tree-optimization/47677
12503         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
12504
12505 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
12506
12507         PR target/47665
12508         * combine.c (make_compound_operation): Only change shifts into
12509         multiplication for SCALAR_INT_MODE_P.
12510
12511 2011-02-10  Jie Zhang  <jie@codesourcery.com>
12512
12513         PR testsuite/47622
12514         Revert
12515         2011-02-05  Jie Zhang  <jie@codesourcery.com>
12516         PR debug/42631
12517         * web.c (entry_register): Don't clobber the number of the
12518         first uninitialized reference in used[].
12519
12520 2011-02-09  Richard Guenther  <rguenther@suse.de>
12521
12522         PR tree-optimization/47664
12523         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
12524         all edges again.
12525
12526 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
12527
12528         PR target/46481
12529         PR target/47032
12530         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
12531         PROCESSOR_POWER7.
12532         (PROCESSOR_DEFAULT64): Same.
12533         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
12534
12535 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
12536
12537         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
12538
12539 2011-02-09  Martin Jambor  <mjambor@suse.cz>
12540
12541         PR middle-end/45505
12542         * tree-sra.c (struct access): New flags grp_scalar_read and
12543         grp_scalar_write.  Changed description of assignment read and write
12544         flags.
12545         (dump_access): Dump new flags, reorder all of them.
12546         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
12547         to detect multiple scalar reads.
12548         (analyze_access_subtree): Use the new scalar read write flags instead
12549         of the old flags.  Adjusted comments.
12550
12551 2011-02-08  DJ Delorie  <dj@redhat.com>
12552
12553         PR target/47548
12554         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
12555         patterns.
12556
12557 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12558
12559         * config/m68k/uclinux.opt: New.
12560         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
12561
12562 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12563
12564         * config/cris/elf.opt (sim): New Driver option.
12565
12566 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12567
12568         * config/xtensa/elf.opt: New.
12569         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
12570
12571 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12572
12573         * config/vax/elf.opt: New.
12574         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
12575
12576 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12577
12578         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
12579
12580 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12581
12582         * config/gnu-user.opt: New.
12583         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
12584         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
12585         *-*-uclinux*): Use gnu-user.opt.
12586
12587 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
12588
12589         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
12590         * config/i386/gnu.h (CPP_SPEC): Likewise.
12591
12592 2011-02-08  Ian Lance Taylor  <iant@google.com>
12593
12594         * common.opt (fcx-limited-range): Add SetByCombined flag.
12595         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
12596         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
12597         (fassociative-math, freciprocal-math): Likewise.
12598         (funsafe-math-optimizations): Likewise.
12599         * opth-gen.awk: Handle SetByCombined.
12600         * optc-gen.awk: Likewise.
12601         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
12602         (set_unsafe_math_optimizations_flags): Likewise.
12603         * doc/options.texi (Option properties): Document SetByCombined.
12604
12605 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
12606
12607         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
12608         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
12609         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
12610         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
12611         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
12612
12613 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
12614
12615         PR tree-optimization/46834
12616         PR tree-optimization/46994
12617         PR tree-optimization/46995
12618         * graphite-sese-to-poly.c (used_outside_reduction): New.
12619         (detect_commutative_reduction): Call used_outside_reduction.
12620         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
12621         translate_scalar_reduction_to_array only when at least one
12622         loop-phi/close-phi tuple has been detected.
12623
12624 2011-02-08  Richard Guenther  <rguenther@suse.de>
12625
12626         PR middle-end/47639
12627         * tree-vect-generic.c (expand_vector_operations_1): Update
12628         stmts here ...
12629         (expand_vector_operations): ... not here.  Cleanup EH info
12630         and the CFG if required.
12631
12632 2011-02-08  Richard Guenther  <rguenther@suse.de>
12633
12634         PR tree-optimization/47641
12635         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
12636         require type compatibility.
12637
12638 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12639
12640         * gimple-low.c (lower_function_body): Don't remove the location of
12641         the return statement here.
12642         (lower_gimple_return): Do it here instead but only if the return
12643         statement is actually used twice.
12644
12645 2011-02-08  Richard Guenther  <rguenther@suse.de>
12646
12647         PR tree-optimization/47632
12648         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
12649         unused up_to_stmt parameter, return whether cfg-cleanup is
12650         necessary, remove EH info properly.
12651         (forward_propagate_into_gimple_cond): Adjust caller.
12652         (forward_propagate_into_cond): Likewise.
12653         (forward_propagate_comparison): Likewise.
12654         (tree_ssa_forward_propagate_single_use_vars): Make
12655         forward_propagate_comparison case similar to the two others.
12656
12657 2011-02-08  Nick Clifton  <nickc@redhat.com>
12658
12659         * config/mn10300/mn10300.opt (mliw): New command line option.
12660         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
12661         (liw_bundling): New automaton.
12662         (liw): New attribute.
12663         (liw_op): New attribute.
12664         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
12665         (movsi_internal): Add LIW attributes.
12666         (andsi3): Likewise.
12667         (iorsi3): Likewise.
12668         (xorsi3): Likewise.
12669         (addsi3): Separate register and immediate alternatives.
12670         Add LIW attributes.
12671         (subsi3): Likewise.
12672         (cmpsi): Likewise.
12673         (aslsi3): Likewise.
12674         (lshrsi3): Likewise.
12675         (ashrsi3): Likewise.
12676         (liw): New pattern.
12677         * config/mn10300/mn10300.c (liw_op_names): New
12678         (mn10300_print_operand): Handle 'W' operand descriptor.
12679         (extract_bundle): New function.
12680         (check_liw_constraints): New function.
12681         (liw_candidate): New function.
12682         (mn10300_bundle_liw): New function.
12683         (mn10300_reorg): New function.
12684         (TARGET_MACHINE_DEPENDENT_REORG): Define.
12685         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12686         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12687         __LIW__ or __NO_LIW__.
12688         * doc/invoke.texi: Describe the -mliw command line option.
12689
12690 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
12691
12692         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12693         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12694         pthread_mutex_unlock): Remove.
12695         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12696         * config/pa/t-pa64: Likewise.
12697         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12698         shared libc if not linking against libpthread.
12699         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12700
12701 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
12702
12703         PR target/47558
12704         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12705         on 10.6 and later to ensure that we always use the unwinder from
12706         the system.  Only add -no_compact_unwind when tarteting darwin
12707         10.6 or later.
12708
12709 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
12710
12711         PR target/46997
12712         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12713         (vec_interleave_lowv2sf): Ditto.
12714         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12715         (vec_extract_oddv2sf): Ditto.
12716
12717 2011-02-07  Mike Stump  <mikestump@comcast.net>
12718
12719         PR target/42333
12720         Add __ieee_divdc3 entry point.
12721         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12722         entry point.
12723         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12724         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12725         * config/darwin.c (darwin_rename_builtins): Add.
12726         * config/darwin-protos.h (darwin_rename_builtins): Add.
12727
12728 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
12729
12730         PR target/47636
12731         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12732         for the condition.
12733
12734 2011-02-07  Mike Stump  <mikestump@comcast.net>
12735
12736         * config/darwin.opt (mmacosx-version-min): Update default OS version.
12737
12738 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
12739
12740         PR target/47534
12741         * config/avr/libgcc.S (exit): Move .endfunc
12742
12743 2011-02-07  Richard Guenther  <rguenther@suse.de>
12744
12745         PR tree-optimization/47615
12746         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12747         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12748         (run_scc_vn): Initialize it.
12749         (visit_reference_op_load): Use it.
12750         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12751
12752 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
12753
12754         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12755         DImode trapping arithmetic libfuncs.
12756
12757 2011-02-07  Richard Guenther  <rguenther@suse.de>
12758
12759         PR tree-optimization/47621
12760         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12761         two duplicates ...
12762         (execute_update_addresses_taken): ... here.  Make it more
12763         conservative in what we accept.
12764
12765 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12766
12767         * config/sparc/freebsd.h (ASM_SPEC): Define.
12768         * config/sparc/vxworks.h (ASM_SPEC): Define.
12769
12770 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
12771
12772         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12773
12774 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
12775
12776         * doc/invoke.texi: Remove reference to compiler internals from
12777         user documentation.
12778
12779         * reg-notes.def: Remove REG_VALUE_PROFILE.
12780         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12781
12782 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
12783
12784         PR middle-end/47610
12785         * varasm.c (default_section_type_flags): If decl is NULL,
12786         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
12787
12788 2011-02-05  Jie Zhang  <jie@codesourcery.com>
12789
12790         PR debug/42631
12791         * web.c (entry_register): Don't clobber the number of the
12792         first uninitialized reference in used[].
12793
12794 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
12795
12796         PR tree-optimization/46194
12797         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12798         (build_classic_dist_vector_1): Do not represent classic distance
12799         vectors when the access functions are variating in different loops.
12800
12801 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12802
12803         * config/mips/iris6.opt: New.
12804         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12805
12806 2011-02-04  Richard Henderson  <rth@redhat.com>
12807             Steve Ellcey  <sje@cup.hp.com>
12808
12809         PR target/46997
12810         * config/ia64/predicates.md (mux1_brcst_element): New.
12811         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12812         * config/ia64/ia64.c (ia64_unpack_assemble): New.
12813         (ia64_unpack_sign): New.
12814         (ia64_expand_unpack): Rewrite using new routines.
12815         (ia64_expand_widen_sum): Ditto.
12816         (ia64_expand_dot_prod_v8qi): Ditto.
12817         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12818         routines, add endian check.
12819         (pmpy2_even): Rename from pmpy2_r, add endian check.
12820         (pmpy2_odd): Rename from pmpy2_l, add endian check.
12821         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12822         (vec_widen_smult_hi_v4hi): Ditto.
12823         (vec_widen_umult_lo_v4hi): Ditto.
12824         (vec_widen_umult_hi_v4hi): Ditto.
12825         (mulv2si3): Change endian checks.
12826         (sdot_prodv4hi): Rewrite with new calls.
12827         (udot_prodv4hi): New.
12828         (vec_pack_ssat_v4hi): Add endian check.
12829         (vec_pack_usat_v4hi): Ditto.
12830         (vec_pack_ssat_v2si): Ditto.
12831         (max1_even): Rename from max1_r, add endian check.
12832         (max1_odd): Rename from max1_l, add endian check.
12833         (*mux1_rev): Format change.
12834         (*mux1_mix): Ditto.
12835         (*mux1_shuf): Ditto.
12836         (*mux1_alt): Ditto.
12837         (*mux1_brcst_v8qi): Use new predicate.
12838         (vec_extract_evenv8qi): Remove endian check.
12839         (vec_extract_oddv8qi): Ditto.
12840         (vec_interleave_lowv4hi): Format change.
12841         (vec_interleave_highv4hi): Ditto.
12842         (mix2_even): Rename from mix2_r, add endian check.
12843         (mix2_odd): Rename from mux2_l, add endian check.
12844         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12845         (vec_extract_evenodd_helper): Format change.
12846         (vec_extract_evenv4hi): Remove endian check.
12847         (vec_extract_oddv4hi): Remove endian check.
12848         (vec_interleave_lowv2si): Format change.
12849         (vec_interleave_highv2si): Format change.
12850         (vec_initv2si): Remove endian check.
12851         (vecinit_v2si): Add endian check.
12852         (reduc_splus_v2sf): Add endian check.
12853         (reduc_smax_v2sf): Ditto.
12854         (reduc_smin_v2sf): Ditto.
12855         (vec_initv2sf): Remove endian check.
12856         (fpack): Add endian check.
12857         (fswap): Add endian check.
12858         (vec_interleave_highv2sf): Add endian check.
12859         (vec_interleave_lowv2sf): Add endian check.
12860         (fmix_lr): Add endian check.
12861         (vec_setv2sf): Format change.
12862         (*vec_extractv2sf_0_be): Use shift to extract operand.
12863         (*vec_extractv2sf_1_be): New.
12864         (vec_pack_trunc_v4hi): Add endian check.
12865         (vec_pack_trunc_v2si): Format change.
12866
12867 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
12868
12869         PR inline-asm/23200
12870         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
12871         do bb, locus and block comparison and disallow loads if it is not set.
12872         (stmt_is_replaceable_p): New function.
12873         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12874         callers.
12875         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12876         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12877         SSA_NAME_DEF_STMT.
12878         * tree-flow.h (stmt_is_replaceable_p): New prototype.
12879
12880 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12881
12882         * config/rs6000/xilinx.opt: New.
12883         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12884
12885 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
12886
12887         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12888
12889 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
12890
12891         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12892         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12893         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12894         secondary_reload_info, xtensa_secondary_reload): Remove.
12895         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12896         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12897         (xtensa_preferred_reload_class): Make static. Change return and
12898         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12899         Use CONST_DOUBLE_P predicate.
12900         (xtensa_preferred_output_reload_class): New function.
12901         (xtensa_secondary_reload): Make static.
12902
12903 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
12904
12905         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12906         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12907         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12908
12909 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12910
12911         PR middle-end/31490
12912         * output.h (SECTION_RELRO): Define.
12913         (SECTION_MACH_DEP): Adjust.
12914         (get_variable_section): New prototype.
12915         * varpool.c (varpool_finalize_named_section_flags): New function.
12916         (varpool_assemble_pending_decls): Call it.
12917         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12918         * cgraphunit.c (cgraph_output_in_order): Call
12919         varpool_finalize_named_section_flags.
12920         * varasm.c (get_section): Allow section flags conflicts between
12921         relro and read-only sections if the section hasn't been declared yet.
12922         Set SECTION_OVERRIDE after diagnosing section type conflict.
12923         (get_variable_section): No longer static.
12924         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12925         readonly sections that need relocations.
12926         (decl_readonly_section_1): New function.
12927         (decl_readonly_section): Use it.
12928
12929         Revert:
12930         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
12931                     Steve Ellcey  <sje@cup.hp.com>
12932
12933         PR middle-end/31490
12934         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12935         if section attribute used.
12936
12937 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12938
12939         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12940         * config/darwin.c (SECTION_NO_ANCHOR): Define.
12941         (darwin_init_sections): Remove assertion.
12942
12943 2011-02-03  Nick Clifton  <nickc@redhat.com>
12944
12945         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12946         lt and ge.
12947         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
12948         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12949         instead of "n" and "pz".
12950         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12951         CC_FLAG_S.
12952
12953 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
12954
12955         PR target/47312
12956         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12957         fma, expand FMA_EXPR as fma{,f,l} call.
12958
12959         PR lto/47274
12960         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12961         copy them into a unsigned char variable and pass address of it to
12962         lto_output_data_stream.
12963
12964         PR target/47564
12965         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12966         around backend_init_target and lang_dependent_init_target calls.
12967         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12968         (verify_cgraph_node): Don't call set_cfun here.  Use
12969         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12970         Set error_found for incorrectly represented calls to thunks.
12971
12972 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
12973
12974         PR debug/43092
12975         PR rtl-optimization/43494
12976         * rtl.h (for_each_inc_dec_fn): New type.
12977         (for_each_inc_dec): Declare.
12978         * rtlanal.c (struct for_each_inc_dec_ops): New type.
12979         (for_each_inc_dec_find_inc_dec): New fn.
12980         (for_each_inc_dec_find_mem): New fn.
12981         (for_each_inc_dec): New fn.
12982         * dse.c (struct insn_size): Remove.
12983         (replace_inc_dec, replace_inc_dec_mem): Remove.
12984         (emit_inc_dec_insn_before): New fn.
12985         (check_for_inc_dec): Use it, along with for_each_inc_dec.
12986         (canon_address): Pass mem modes to cselib_lookup.
12987         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
12988         (cselib_lookup_from_insn): Likewise.
12989         (cselib_subst_to_values): Likewise.
12990         * cselib.c (find_slot_memmode): New var.
12991         (cselib_find_slot): New fn.  Use it instead of
12992         htab_find_slot_with_hash everywhere.
12993         (entry_and_rtx_equal_p): Use find_slot_memmode.
12994         (autoinc_split): New fn.
12995         (rtx_equal_for_cselib_p): Rename and implement in terms of...
12996         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
12997         Deal with autoinc.  Special-case recursion into MEMs.
12998         (cselib_hash_rtx): Likewise.
12999         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
13000         address and MEM modes.
13001         (cselib_subst_to_values): Add memmode, pass it on.
13002         Deal with autoinc.
13003         (cselib_lookup): Add memmode argument, pass it on.
13004         (cselib_lookup_from_insn): Add memmode.
13005         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
13006         (struct cselib_record_autoinc_data): New.
13007         (cselib_record_autoinc_cb): New fn.
13008         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
13009         mode to cselib_lookup.  Reset autoinced REGs here instead of...
13010         (cselib_process_insn): ... here.
13011         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
13012         to cselib_lookup.
13013         (add_uses): Likewise, also to cselib_subst_to_values.
13014         (add_stores): Likewise.
13015         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
13016         cselib_subst_to_values.
13017         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
13018         * gcse.c (do_local_cprop): Adjusted.
13019         * postreload.c (reload_cse_simplify_set): Adjusted.
13020         (reload_cse_simplify_operands): Adjusted.
13021         * sel-sched-dump (debug_mem_addr_value): Pass mode.
13022
13023 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
13024
13025         PR tree-optimization/45122
13026         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
13027         unsafe assumptions when there's more than one loop exit.
13028
13029 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
13030
13031         PR target/47272
13032         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
13033         Document using vector double with the load/store builtins, and
13034         that the load/store builtins always use Altivec instructions.
13035
13036         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
13037         to use altivec memory instructions, even on VSX.
13038         (vector_altivec_store_<mode>): Ditto.
13039
13040         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
13041         function.
13042
13043         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13044         V2DF, V2DI support to load/store overloaded builtins.
13045
13046         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
13047         altivec load/store builtins for V2DF/V2DI types.
13048
13049         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
13050         set avoid indexed addresses on power6 if -maltivec.
13051         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
13052         vector_altivec_load/vector_altivec_store builtins.
13053         (altivec_expand_st_builtin): Ditto.
13054         (altivec_expand_builtin): Add VSX memory builtins.
13055         (rs6000_init_builtins): Add V2DI types to internal types.
13056         (altivec_init_builtins): Add support for V2DF/V2DI altivec
13057         load/store builtins.
13058         (rs6000_address_for_altivec): Insure memory address is appropriate
13059         for Altivec.
13060
13061         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
13062         vec_vsx_ld and vec_vsx_st.
13063         (vsx_store_<mode>): Ditto.
13064
13065         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
13066         variables to hold long long types for VSX vector memory builtins.
13067         (RS6000_BTI_unsigned_long_long): Ditto.
13068         (long_long_integer_type_internal_node): Ditti.
13069         (long_long_unsigned_type_internal_node): Ditti.
13070
13071         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
13072         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
13073         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
13074
13075         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
13076         short cuts.
13077         (vec_vsx_st): Ditto.
13078
13079 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13080
13081         * config/pa/pa-hpux10.opt: New.
13082         * config/hpux11.opt (pthread): New Driver option.
13083         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
13084         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
13085
13086 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13087
13088         * config/ia64/vms.opt: New.
13089         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
13090
13091 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
13092
13093         PR target/47580
13094         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
13095         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
13096         generator functions.
13097         (vsx_floatuns<VSi><mode>2): Ditto.
13098         (vsx_fix_trunc<mode><VSi>2): Ditto.
13099         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
13100
13101 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
13102
13103         * config/i386/djgpp.opt (posix): New Driver option.
13104
13105 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
13106
13107         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
13108         Move to the unsupported targets list.
13109
13110 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
13111
13112         PR rtl-optimization/47525
13113         * df-scan.c: Update copyright years.
13114         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
13115         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
13116
13117 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13118
13119         * config/i386/sysv4.h (TARGET_VERSION): Remove.
13120         (SUBTARGET_RETURN_IN_MEMORY): Remove.
13121         (ASM_OUTPUT_ASCII): Remove.
13122         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
13123
13124 2011-02-02  Jeff Law  <law@redhat.com>
13125
13126         PR middle-end/47543
13127         * reload.c (find_reloads_address): Handle reg+d address where both
13128         components are invalid by reloading the entire address.
13129
13130 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
13131             Richard Guenther  <rguenther@suse.de>
13132
13133         PR tree-optimization/40979
13134         PR bootstrap/47044
13135         * passes.c (init_optimization_passes): After LIM call copy_prop
13136         and DCE to clean up.
13137         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
13138
13139 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
13140
13141         PR tree-optimization/47576
13142         PR tree-optimization/47555
13143         * doc/invoke.texi (scev-max-expr-complexity): Documented.
13144         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13145         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
13146         * tree-scalar-evolution.c (follow_ssa_edge): Use
13147         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
13148
13149 2011-02-02  Richard Guenther  <rguenther@suse.de>
13150
13151         PR tree-optimization/47566
13152         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
13153
13154 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13155
13156         PR debug/47106
13157         PR debug/47402
13158         * tree-inline.c (declare_return_variable): Remove unused caller
13159         variable.
13160
13161         PR debug/47106
13162         PR debug/47402
13163         * tree-flow-inline.h (clear_is_used, is_used_p): New.
13164         * cfgexpand.c (account_used_vars_for_block): Use them.
13165         * tree-nrv.c (tree_nrv): Likewise.
13166         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
13167         (dump_scope_block): Likewise.
13168         (remove_unused_locals): Likewise.
13169
13170         PR debug/47106
13171         PR debug/47402
13172         * tree-inline.c (declare_return_variable): Add result decl to
13173         local decls only once.
13174         * gimple-low.c (record_vars_into): Mark newly-created variables
13175         as referenced.
13176
13177 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
13178
13179         PR debug/47498
13180         PR debug/47501
13181         PR debug/45136
13182         PR debug/45130
13183         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13184         debug insns.
13185         (no_real_insns_p, schedule_block, set_priorities): Drop special
13186         treatment of boundary debug insns.
13187         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13188         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
13189         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13190         (BOUNDARY_DEBUG_INSN_P): Likewise.
13191         (SCHEDULE_DEBUG_INSN_P): Likewise.
13192         * sched-rgn.c (init_ready_list): Drop special treatment of
13193         boundary debug insns.
13194         * final.c (rest_of_clean_state): Clear notes' BB.
13195
13196 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13197
13198         * config/openbsd.opt (assert=): New Driver option.
13199
13200 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13201
13202         * config/i386/nto.opt: New.
13203         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
13204
13205 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13206
13207         * config/i386/netware.opt: New.
13208         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
13209
13210 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13211
13212         * config/interix.opt (posix): New Driver option.
13213
13214 2011-02-01  DJ Delorie  <dj@redhat.com>
13215
13216         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
13217
13218         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
13219         class for A0/A1.
13220
13221 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
13222
13223         PR tree-optimization/47561
13224         * toplev.c (process_options): Print the Graphite flags.  Add
13225         flag_loop_flatten to the list of options requiring Graphite.
13226
13227 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13228
13229         * config/i386/cygming.opt (posix): New Driver option.
13230
13231 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13232
13233         * config/arm/vxworks.opt: New.
13234         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
13235
13236 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
13237
13238         * config/alpha/elf.opt: New.
13239         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
13240         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
13241
13242 2011-02-01  Richard Guenther  <rguenther@suse.de>
13243
13244         PR tree-optimization/47559
13245         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
13246         store-motion on references that can throw.
13247
13248 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
13249
13250         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
13251         * tree-pass.h (TDF_CSELIB): New macro.
13252         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
13253         cselib_lookup): Check for it rather than for TDF_DETAILS.
13254
13255 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
13256
13257         PR driver/47547
13258         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
13259         is HOST_BIT_BUCKET.
13260
13261         * opts.c (finish_options): Don't add x_aux_base_name if it is
13262         HOST_BIT_BUCKET.
13263
13264 2011-02-01  Richard Guenther  <rguenther@suse.de>
13265
13266         PR tree-optimization/47555
13267         Revert
13268         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
13269
13270         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
13271
13272 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
13273
13274         PR gcc/46692
13275         * config/lm32/t-lm32: Add multilib for all CPU options.
13276
13277 2011-02-01  Richard Guenther  <rguenther@suse.de>
13278
13279         PR tree-optimization/47541
13280         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
13281         sure to have a field at offset zero.
13282
13283 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13284
13285         * config/arc/arc.opt (EB, EL): New Driver options.
13286
13287 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13288
13289         * config/alpha/osf5.opt: New.
13290         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
13291
13292 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
13293
13294         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
13295
13296 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
13297
13298         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
13299         -floop-interchange.
13300         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
13301         is an alias of -floop-interchange and that it requires the
13302         Graphite infrastructure.
13303         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
13304         flag_loop_interchange based on the value of flag_tree_loop_linear.
13305
13306 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
13307             Richard Guenther  <rguenther@suse.de>
13308
13309         PR tree-optimization/47538
13310         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
13311         type instead of r1type, except for comparisons.  For right
13312         shifts and comparisons punt if there are mismatches in
13313         sizetype vs. non-sizetype types.
13314
13315 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13316
13317         * doc/sourcebuild.texi (Effective-Target Keywords): Document
13318         avx_runtime.
13319
13320 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13321
13322         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
13323         version number.
13324         * configure: Regenerate.
13325
13326 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13327
13328         * configure.ac (gcc_cv_ld_static_option): Define.
13329         (gcc_cv_ld_dynamic_option): Define.
13330         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
13331         instead.
13332         (HAVE_LD_STATIC_DYNAMIC): Update message.
13333         (LD_STATIC_OPTION): Define.
13334         (LD_DYNAMIC_OPTION): Define.
13335         * configure: Regenerate.
13336         * config.in: Regenerate.
13337         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
13338         HAVE_LD_STATIC_DYNAMIC]: Use them.
13339
13340 2011-01-31  Nick Clifton  <nickc@redhat.com>
13341
13342         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
13343         registers inside interrupt handlers if the handler is not a leaf
13344         function.
13345
13346 2011-01-31  Nick Clifton  <nickc@redhat.com>
13347
13348         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
13349         reg_renumber returning an INVALID_REGNUM.
13350
13351 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13352
13353         PR libgcj/44341
13354         * doc/install.texi: Document host options discarded when cross
13355         configuring target libraries.
13356
13357 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
13358
13359         Reverted:
13360         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13361         PR debug/45136
13362         PR debug/45130
13363         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13364         debug insns.
13365         (no_real_insns_p, schedule_block, set_priorities): Drop special
13366         treatment of boundary debug insns.
13367         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13368         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13369         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13370         (BOUNDARY_DEBUG_INSN_P): Likewise.
13371         (SCHEDULE_DEBUG_INSN_P): Likewise.
13372         * sched-rgn.c (init_ready_list): Drop special treatment of
13373         boundary debug insns.
13374         * final.c (rest_of_clean-state): Clear notes' BB.
13375
13376 2011-01-31  Alan Modra  <amodra@gmail.com>
13377
13378         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
13379         toc relative expressions as we do in print_operand_address.
13380
13381 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
13382
13383         * doc/extend.texi: Follow spelling conventions.
13384         * doc/invoke.texi: Fix a typo.
13385
13386 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
13387
13388         * config/hpux11.opt: New.
13389         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
13390         ia64*-*-hpux*): Use hpux11.opt.
13391
13392 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
13393
13394         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
13395         to tmake_file.
13396
13397 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13398
13399         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
13400         support sites.
13401
13402 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13403
13404         * doc/install.texi (Binaries): Remove outdated reference for
13405         Motorola 68HC11/68HC12 downloads.
13406
13407 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
13408
13409         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
13410         Drepper's paper.
13411
13412 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
13413
13414         PR bootstrap/47147
13415         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
13416         used by NetBSD.
13417
13418 2011-01-28  Ahmad Sharif  <asharif@google.com>
13419
13420         * value-prof.c (check_counter): Corrected error message.
13421
13422 2011-01-29  Jie Zhang  <jie@codesourcery.com>
13423
13424         * config/arm/arm.c (arm_legitimize_reload_address): New.
13425         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13426         arm_legitimize_reload_address.
13427         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
13428
13429 2011-01-28  Ian Lance Taylor  <iant@google.com>
13430
13431         * godump.c (go_define): Ignore macros whose definitions include
13432         two adjacent operands.
13433
13434 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
13435
13436         PR target/42894
13437         * varasm.c (force_const_mem): Store copy of x in desc->constant
13438         instead of x itself.
13439         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
13440         itself into REG_EQUAL note.
13441
13442 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
13443
13444         * config/freebsd.opt (posix, rdynamic): New Driver options.
13445
13446 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13447
13448         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
13449         -Bstatic/-Bdynamic.
13450         * configure: Regenerate.
13451
13452 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
13453
13454         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
13455         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
13456
13457 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
13458
13459         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
13460         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
13461         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
13462         (s390_preferred_reload_class): Make static. Change return and
13463         'rclass' argument type to reg_class_t.
13464
13465 2011-01-27  Jan Hubicka  <jh@suse.cz>
13466
13467         PR middle-end/46949
13468         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
13469         (process_function_and_variable_attributes): Check defined weakrefs.
13470
13471 2011-01-27  Martin Jambor  <mjambor@suse.cz>
13472
13473         PR tree-optimization/47228
13474         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
13475         build_ref_for_offset.
13476
13477 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
13478
13479         * config/spu/spu-elf.h (ASM_SPEC): Remove.
13480
13481 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
13482
13483         PR rtl-optimization/46856
13484         * postreload.c (reload_combine_recognize_const_pattern): Do not
13485         separate cc0 setter and user on cc0 targets.
13486
13487 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
13488
13489         PR c/43082
13490         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
13491         passed a VOID_TYPE expression, immediately emit an error and
13492         return error_mark_node.
13493
13494 2011-01-26  Jeff Law  <law@redhat.com>
13495
13496         PR rtl-optimization/47464
13497         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
13498         rather than may_trap_p as needed.
13499
13500 2011-01-26  DJ Delorie  <dj@redhat.com>
13501
13502         PR rtl-optimization/46878
13503         * combine.c (insn_a_feeds_b): Check for the implicit cc0
13504         setter/user dependency as well.
13505
13506 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
13507
13508         PR rtl-optimization/44469
13509         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
13510         after removing trivially dead basic blocks.
13511
13512 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13513
13514         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
13515         * config/frv/frv.h (LINK_SPEC): Likewise.
13516         * config/i386/netware.h (LINK_SPEC): Likewise.
13517         * config/m68k/linux.h (ASM_SPEC): Likewise.
13518         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
13519         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13520         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13521         * config/sparc/linux.h (ASM_SPEC): Likewise.
13522         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13523         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13524
13525 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13526
13527         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
13528         * config/frv/frv.h (ASM_SPEC): Likewise.
13529         * config/m68k/linux.h (ASM_SPEC): Likewise.
13530         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13531         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
13532         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13533         * config/sparc/linux.h (ASM_SPEC): Likewise.
13534         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13535         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13536
13537 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13538
13539         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
13540         * config/frv/frv.h (LINK_SPEC): Likewise.
13541         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
13542
13543 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
13544
13545         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
13546         * config/frv/frv.h (ASM_SPEC): Likewise.
13547         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
13548         * config/m68k/linux.h (ASM_SPEC): Likewise.
13549         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
13550         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
13551         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
13552         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
13553         * config/sparc/linux.h (ASM_SPEC): Likewise.
13554         * config/sparc/linux64.h (ASM_SPEC): Likewise.
13555         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
13556         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
13557
13558 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
13559
13560         PR target/46997
13561         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
13562         (*mux2): Ditto.
13563         (vec_extract_evenodd_help): Ditto.
13564         (vec_extract_evenv4hi): Ditto.
13565         (vec_extract_oddv4hi): Ditto.
13566         (vec_interleave_lowv2si): Ditto.
13567         (vec_interleave_highv2si): Ditto.
13568         (vec_extract_evenv2si): Ditto.
13569         (vec_extract_oddv2si: Ditto.
13570         (vec_pack_trunc_v2si): Ditto.
13571
13572 2011-01-22  Jan Hubicka  <jh@suse.cz>
13573
13574         PR target/47237
13575         * cgraph.h (cgraph_local_info): New field can_change_signature.
13576         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
13577         signature can change.
13578         (ipcp_estimate_growth): Call sequence simplify only if calle signature
13579         can change.
13580         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
13581         (cgraph_function_versioning): We can not change signature of functions
13582         that don't allow that.
13583         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
13584         (lto_input_node): Likewise.
13585         * ipa-inline.c (compute_inline_parameters): Compute
13586         local.can_change_signature.
13587         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
13588         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
13589         functions that can not change signature.
13590         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
13591         init_cumulative_args): Do not use local calling conventions
13592         for functions that can not change signature.
13593
13594 2011-01-22  Jan Hubicka  <jh@suse.cz>
13595
13596         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
13597
13598 2011-01-26  Richard Guenther  <rguenther@suse.de>
13599
13600         PR tree-optimization/47190
13601         * cgraphunit.c (process_common_attributes): New function.
13602         (process_function_and_variable_attributes): Use it.
13603
13604 2011-01-26  Richard Guenther  <rguenther@suse.de>
13605
13606         PR lto/47423
13607         * cgraphbuild.c (record_eh_tables): Record reference to personality
13608         function.
13609
13610 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
13611
13612         PR debug/45454
13613         * sel-sched.c (moveup_expr): Don't let debug insns prevent
13614         non-debug insns from moving up.
13615
13616 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13617
13618         PR target/40125
13619         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
13620         t-dlldir{,-x} fragment for build and add it to tmake_file.
13621         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
13622         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
13623         * config/i386/t-dlldir: New file.
13624         (SHLIB_DLLDIR): Define.
13625         * config/i386/t-dlldir-x: New file.
13626         (SHLIB_DLLDIR): Define.
13627         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
13628         (SHLIB_INSTALL): Use it.
13629
13630 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
13631
13632         PR target/47246
13633         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
13634         lower bound of the allowed Thumb-2 coprocessor load/store
13635         index range to -256. Add explaining comment.
13636
13637 2011-01-25  Ian Lance Taylor  <iant@google.com>
13638
13639         * godump.c (go_define): Improve lexing of macro expansion to only
13640         accept expressions which match Go spec.
13641
13642 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
13643
13644         PR c++/43601
13645         * tree.c (handle_dll_attribute): Handle it.
13646         * doc/extend.texi (@item dllexport): Mention it.
13647         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
13648
13649 2011-01-25  Ian Lance Taylor  <iant@google.com>
13650
13651         PR tree-optimization/26854
13652         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
13653         (decl_jump_unsafe): Move higher in file, with no other change.
13654         (bind): Set has_jump_unsafe_decl if appropriate.
13655         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
13656         (check_earlier_gotos): Likewise.
13657         (c_check_switch_jump_warnings): Likewise.
13658
13659 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
13660
13661         * doc/invoke.texi (Warning Options): Add missing hyphen.
13662         (-fprofile-dir): Minor grammatical fixes.
13663         (-fbranch-probabilities): Likewise.
13664
13665 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
13666
13667         PR debug/45136
13668         PR debug/45130
13669         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
13670         debug insns.
13671         (no_real_insns_p, schedule_block, set_priorities): Drop special
13672         treatment of boundary debug insns.
13673         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
13674         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
13675         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
13676         (BOUNDARY_DEBUG_INSN_P): Likewise.
13677         (SCHEDULE_DEBUG_INSN_P): Likewise.
13678         * sched-rgn.c (init_ready_list): Drop special treatment of
13679         boundary debug insns.
13680         * final.c (rest_of_clean-state): Clear notes' BB.
13681
13682 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13683
13684         * Makefile.in (LAMBDA_H): Removed.
13685         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13686         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13687         lambda-trans.o, and tree-loop-linear.o.
13688         (lto-symtab.o): Remove dependence on LAMBDA_H.
13689         (tree-loop-linear.o): Remove rule.
13690         (lambda-mat.o): Same.
13691         (lambda-trans.o): Same.
13692         (lambda-code.o): Same.
13693         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13694         (tree-vect-slp.o): Same.
13695         * hwint.h (gcd): Moved here.
13696         (least_common_multiple): Same.
13697         * lambda-code.c: Removed.
13698         * lambda-mat.c: Removed.
13699         * lambda-trans.c: Removed.
13700         * lambda.h: Removed.
13701         * tree-loop-linear.c: Removed.
13702         * lto-symtab.c: Do not include lambda.h.
13703         * omega.c (gcd): Removed.
13704         * passes.c (init_optimization_passes): Remove pass_linear_transform.
13705         * tree-data-ref.c (print_lambda_vector): Moved here.
13706         (lambda_vector_copy): Same.
13707         (lambda_matrix_copy): Same.
13708         (lambda_matrix_id): Same.
13709         (lambda_vector_first_nz): Same.
13710         (lambda_matrix_row_add): Same.
13711         (lambda_matrix_row_exchange): Same.
13712         (lambda_vector_mult_const): Same.
13713         (lambda_vector_negate): Same.
13714         (lambda_matrix_row_negate): Same.
13715         (lambda_vector_equal): Same.
13716         (lambda_matrix_right_hermite): Same.
13717         * tree-data-ref.h: Do not include lambda.h.
13718         (lambda_vector): Moved here.
13719         (lambda_matrix): Same.
13720         (dependence_level): Same.
13721         (lambda_transform_legal_p): Removed declaration.
13722         (lambda_collect_parameters): Same.
13723         (lambda_compute_access_matrices): Same.
13724         (lambda_vector_gcd): Same.
13725         (lambda_vector_new): Same.
13726         (lambda_vector_clear): Same.
13727         (lambda_vector_lexico_pos): Same.
13728         (lambda_vector_zerop): Same.
13729         (lambda_matrix_new): Same.
13730         * tree-flow.h (least_common_multiple): Removed declaration.
13731         * tree-parloops.c (lambda_trans_matrix): Moved here.
13732         (LTM_MATRIX): Same.
13733         (LTM_ROWSIZE): Same.
13734         (LTM_COLSIZE): Same.
13735         (LTM_DENOMINATOR): Same.
13736         (lambda_trans_matrix_new): Same.
13737         (lambda_matrix_vector_mult): Same.
13738         (lambda_transform_legal_p): Same.
13739         * tree-pass.h (pass_linear_transform): Removed declaration.
13740         * tree-ssa-loop.c (tree_linear_transform): Removed.
13741         (gate_tree_linear_transform): Removed.
13742         (pass_linear_transform): Removed.
13743         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13744         flag_loop_interchange.
13745
13746 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13747
13748         PR tree-optimization/47265
13749         PR tree-optimization/47443
13750         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13751         if name still has some uses.
13752
13753 2011-01-25  Martin Jambor  <mjambor@suse.cz>
13754
13755         PR tree-optimization/47382
13756         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13757         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13758
13759 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
13760
13761         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13762         sjlj_except_unwind_info.
13763
13764 2011-01-25  Richard Guenther  <rguenther@suse.de>
13765
13766         PR tree-optimization/47426
13767         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13768         visible functions results escape.
13769
13770 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13771
13772         PR target/45701
13773         * config/arm/arm.c (any_sibcall_uses_r3): New function.
13774         (arm_get_frame_offsets): Use it.
13775
13776 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13777             Jakub Jelinek  <jakub@redhat.com>
13778
13779         PR tree-optimization/47271
13780         * tree-if-conv.c (bb_postdominates_preds): New.
13781         (if_convertible_bb_p): Call bb_postdominates_preds.
13782         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13783         (predicate_scalar_phi): Call bb_postdominates_preds.
13784
13785 2011-01-25  Nick Clifton  <nickc@redhat.com>
13786
13787         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13788         * config/rx/rx.c (rx_function_value): Likewise.
13789         (rx_promote_function_mode): Likewise.
13790         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13791         in order to make it legitimate.
13792         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13793         make sure that the first operand is the same as the result register.
13794         (addsi3_unspec): Delete.
13795         (subdi3): Do not accept immediate operands.
13796         (subdi3_internal): Likewise.
13797
13798 2011-01-25  Jeff Law  <law@redhat.com>
13799
13800         PR rtl-optimization/37273
13801         * ira-costs.c (scan_one_insn): Detect constants living in memory and
13802         handle them like argument loads from stack slots.  Do not double
13803         count memory for memory constants and argument loads from stack slots.
13804
13805 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
13806
13807         PR tree-optimization/47427
13808         PR tree-optimization/47428
13809         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13810         coalesce if the new root var would be TREE_READONLY.
13811
13812 2011-01-25  Richard Guenther  <rguenther@suse.de>
13813
13814         PR middle-end/47414
13815         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13816         correct type for TBAA.
13817
13818 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13819
13820         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13821         (close_phi_written_to_memory): Call for_each_index with
13822         dr_indices_valid_in_loop.
13823
13824 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13825
13826         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13827         when it is initialized.
13828
13829 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13830
13831         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13832         call to graphite_find_data_references_in_stmt.
13833         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13834         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
13835         call to graphite_find_data_references_in_stmt.
13836         (analyze_drs_in_stmts): Same.
13837         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13838         in which the scalar analysis of indices is performed.
13839         (create_data_ref): Same.  Update call to dr_analyze_indices.
13840         (find_data_references_in_stmt): Update call to create_data_ref.
13841         (graphite_find_data_references_in_stmt): Same.
13842         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13843         declaration.
13844         (create_data_ref): Same.
13845         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13846         call to create_data_ref.
13847
13848 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13849
13850         * graphite-sese-to-poly.c (build_poly_scop): Move
13851         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
13852
13853 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13854
13855         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13856         VAR_DECL, PARM_DECL, and RESULT_DECL.
13857
13858 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13859
13860         * graphite-dependences.c (reduction_dr_1): Allow several reductions
13861         in a reduction PBB.
13862         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13863         that have already been marked as PBB_IS_REDUCTION.
13864
13865 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13866
13867         * graphite-scop-detection.c (same_close_phi_node): New.
13868         (remove_duplicate_close_phi): New.
13869         (make_close_phi_nodes_unique): New.
13870         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13871
13872 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13873
13874         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13875         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13876         of both data references to be the same.
13877
13878 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13879
13880         * graphite-dependences.c (build_lexicographical_constraint): Remove
13881         the gdim parameter.
13882         (build_lexicographical_constraint): Adjust call to
13883         ppl_powerset_is_empty.
13884         (dependence_polyhedron): Same.
13885         (graphite_legal_transform_dr): Same.
13886         (graphite_carried_dependence_level_k): Same.
13887         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13888         parameter.
13889         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13890
13891 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13892
13893         * graphite-sese-to-poly.c
13894         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13895         (close_phi_written_to_memory): New.
13896         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13897         and unshare_expr.
13898
13899 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13900
13901         * doc/install.texi: Update the expected version number of PPL to 0.11.
13902         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13903         #if PPL_VERSION_MINOR < 11.
13904
13905 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13906
13907         * graphite-dependences.c: Include graphite-cloog-util.h.
13908         (new_poly_ddr): Inlined into dependence_polyhedron.
13909         (free_poly_ddr): Moved close by new_poly_ddr.
13910         (dependence_polyhedron_1): Renamed dependence_polyhedron.
13911         Early return NULL when ppl_powerset_is_empty returns true.
13912         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
13913         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
13914         (graphite_legal_transform_dr): Call new_poly_ddr.
13915         (graphite_carried_dependence_level_k): Same.
13916         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
13917         (dot_transformed_deps_stmt_1): Removed.
13918         (dot_deps_stmt_1): Call dot_deps_stmt_2.
13919         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
13920         (dot_deps_1): Call dot_deps_2.
13921         * Makefile.in (graphite-dependences.o): Add missing dependence on
13922         graphite-cloog-util.h.
13923
13924 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13925
13926         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13927         (build_lexicographical_constraint): Same.
13928         (dependence_polyhedron_1): Same.
13929         (graphite_legal_transform_dr): Same.
13930         (graphite_carried_dependence_level_k): Same.
13931         * graphite-ppl.c (ppl_powerset_is_empty): New.
13932         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13933         * tree-data-ref.c (dump_data_reference): Print the basic block index.
13934
13935 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13936
13937         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13938         the "a followed by b" relation and document it.
13939
13940 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13941
13942         * graphite-dependences.c (build_lexicographical_constraint): Stop the
13943         iteration when the bag of constraints is empty.
13944
13945 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13946
13947         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13948
13949 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13950
13951         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13952         nest and two loop depths as parameters.
13953         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13954         lst_perfect_nestify.
13955
13956 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13957
13958         * graphite-dependences.c (print_pddr): Call
13959         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13960
13961 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
13962
13963         * graphite-ppl.c (debug_gmp_value): New.
13964         * graphite-ppl.h (debug_gmp_value): Declared.
13965
13966 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
13967
13968         * doc/install.texi: Document availability of cloog-0.16.
13969
13970 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
13971
13972         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13973         invalid postdominance info.
13974
13975 2011-01-24  Jan Hubicka  <jh@suse.cz>
13976
13977         PR c/21659
13978         * doc/extend.texi (weak pragma): Drop claim that it must
13979         appear before definition.
13980         * varasm.c (merge_weak, declare_weak): Only sanity check
13981         that DECL is not output at a time it is declared weak.
13982
13983 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
13984
13985         * machmode.def: Fixed comments.
13986
13987 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
13988
13989         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13990
13991 2011-01-24  Paul Koning  <ni1d@arrl.net>
13992
13993         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
13994         WORDS_BIG_ENDIAN.
13995
13996 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
13997
13998         PR target/46519
13999         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
14000         (block_info): Add scanned and prev.
14001         (move_or_delete_vzeroupper_2): Return if the basic block
14002         has been scanned and the upper 128bit state is unchanged
14003         from the last scan.
14004         (move_or_delete_vzeroupper_1): Return true if the exit
14005         state is changed.
14006         (move_or_delete_vzeroupper): Visit basic blocks using the
14007         work-list based algorithm based on vt_find_locations in
14008         var-tracking.c.
14009
14010         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
14011
14012 2011-01-24  Nick Clifton  <nickc@redhat.com>
14013
14014         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
14015         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
14016         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
14017         then define __v850e1__.
14018         * doc/invoke.texi: Document -mv850es.
14019
14020 2011-01-24  Richard Henderson  <rth@redhat.com>
14021
14022         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
14023         compound unordered comparisons.
14024         * config/rx/rx.c (rx_split_fp_compare): Remove.
14025         * config/rx/rx-protos.h: Update.
14026         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
14027         (cbranchsf4): Don't call rx_split_fp_compare.
14028         (*cbranchsf4): Use rx_split_cbranch.
14029         (*cmpsf): Don't accept "i" constraint.
14030         (*conditional_branch): Only valid after reload.
14031         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
14032
14033 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
14034
14035         PR target/47385
14036         * config/rs6000/altivec.md (vector constant splitters): Add
14037         support for creating vector single precision constants if -mvsx is
14038         used and we would create the constant using Altivec primitives.
14039
14040 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
14041             Richard Sandiford  <rdsandiford@googlemail.com>
14042
14043         PR rtl-optimization/47166
14044         * reload1.c (emit_reload_insns): Disable the spill_reg_store
14045         mechanism for PRE_MODIFY and POST_MODIFY.
14046         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
14047         reloadreg.
14048
14049 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
14050
14051         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
14052
14053 2011-01-22  Jan Hubicka  <jh@suse.cz>
14054
14055         PR lto/47333
14056         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
14057
14058 2011-01-22  Jan Hubicka  <jh@suse.cz>
14059
14060         PR tree-optimization/43884
14061         PR lto/44334
14062         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
14063         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
14064
14065 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
14066
14067         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
14068         * config/s390/s390.c (s390_register_move_cost,
14069         s390_memory_move_cost): New.
14070         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14071
14072 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14073
14074         PR middle-end/47401
14075         * except.c (sjlj_assign_call_site_values): Move setting the
14076         crtl->uses_eh_lsda flag to ...
14077         (sjlj_mark_call_sites): ... here.
14078         (sjlj_emit_function_enter): Support NULL dispatch label.
14079         (sjlj_build_landing_pads): In a function with no landing pads
14080         that still has must-not-throw regions, generate code to register
14081         a personality function with empty LSDA.
14082
14083 2011-01-21  Richard Henderson  <rth@redhat.com>
14084
14085         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
14086
14087         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
14088
14089         * compare-elim.c: New file.
14090         * Makefile.in (OBJS-common): Add it.
14091         (compare-elim.o): New.
14092         * common.opt (fcompare-elim): New.
14093         * opts.c (default_options_table): Add OPT_fcompare_elim.
14094         * tree-pass.h (pass_compare_elim_after_reload): New.
14095         * passes.c (init_optimization_passes): Add it.
14096         * recog.h: Protect against re-inclusion.
14097         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
14098         * doc/invoke.texi (-fcompare-elim): Document it.
14099         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
14100         * doc/tm.texi: Rebuild.
14101
14102 2011-01-22  Nick Clifton  <nickc@redhat.com>
14103
14104         * config/rx/rx.md (cstoresf4): Pass comparison operator to
14105         rx_split_fp_compare.
14106
14107 2011-01-22  Nick Clifton  <nickc@redhat.com>
14108
14109         * config/rx/rx.md (UNSPEC_CONST): New.
14110         (deallocate_and_return): Wrap the amount popped off the stack in
14111         an UNSPEC_CONST in order to stop it being rejected by
14112         -mmax-constant-size.
14113         (pop_and_return): Add a "(return)" rtx.
14114         (call): Drop the immediate operand.
14115         (call_internal): Likewise.
14116         (call_value): Likewise.
14117         (call_value_internal): Likewise.
14118         (sibcall_internal): Likewise.
14119         (sibcall_value_internal): Likewise.
14120         (sibcall): Likewise.  Generate an explicit call using
14121         sibcall_internal.
14122         (sibcall_value): Likewise.
14123         (mov<>): FAIL if a constant operand is not legitimate.
14124         (addsi3_unpsec): New pattern.
14125
14126         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
14127         (ok_for_max_constant): New function.
14128         (gen_safe_add): New function.
14129         (rx_expand_prologue): Use gen_safe_add.
14130         (rx_expand_epilogue): Likewise.
14131         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
14132         UNSPEC CONSTs.
14133
14134 2011-01-21  Jeff Law  <law@redhat.com>
14135
14136         PR tree-optimization/47053
14137         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
14138         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
14139         statements are deleted.
14140         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
14141         is nonempty, then purge dead edges and cleanup the CFG.
14142
14143 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14144
14145         PR debug/47402
14146         Temporarily revert:
14147         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14148         PR debug/47106
14149         * tree-dfa.c (create_var_ann): Mark variable as used.
14150
14151 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14152
14153         PR middle-end/45566
14154         * except.c (convert_to_eh_region_ranges): Emit queued no-region
14155         notes from other section in hot/cold partitioning even if
14156         last_action is -3.  Increment call_site_base.
14157
14158         PR rtl-optimization/47366
14159         * fwprop.c (forward_propagate_into): Return bool.  If
14160         any changes are made, -fnon-call-exceptions is used and
14161         REG_EH_REGION note is present, call purge_dead_edges
14162         and return true if it purged anything.
14163         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
14164         any EH edges were purged.
14165
14166 2011-01-21  Jeff Law  <law@redhat.com>
14167
14168         PR rtl-optimization/41619
14169         * caller-save.c (setup_save_areas): Break out code to determine
14170         which hard regs are live across calls by examining the reload chains
14171         so that it is always used.
14172         Eliminate code which checked REG_N_CALLS_CROSSED.
14173
14174 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14175
14176         PR tree-optimization/47355
14177         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
14178         NOP has non-debug uses beyond PHIs in new_bb.
14179
14180 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
14181
14182         PR debug/47106
14183         * cfgexpand.c (account_used_vars_for_block): Only account vars
14184         that are annotated as used.
14185         (estimated_stack_frame_size): Don't set TREE_USED.
14186         * tree-dfa.c (create_var_ann): Mark variable as used.
14187
14188 2011-01-21  Richard Guenther  <rguenther@suse.de>
14189
14190         PR middle-end/47395
14191         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
14192
14193 2011-01-21  Richard Guenther  <rguenther@suse.de>
14194
14195         PR tree-optimization/47365
14196         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
14197         (vn_reference_lookup_pieces): Adjust.
14198         (vn_reference_lookup): Likewise.
14199         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
14200         (vn_reference_lookup_3): Only look through kills if in
14201         VN_WALKREWRITE mode.
14202         (vn_reference_lookup_pieces): Adjust.
14203         (vn_reference_lookup): Likewise.
14204         (visit_reference_op_load): Likewise.
14205         (visit_reference_op_store): Likewise.
14206         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
14207         (compute_avail): Likewise.
14208         (eliminate): Likewise.
14209
14210 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
14211
14212         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
14213         DECL_IGNORED_P non-reg vars if they are used.
14214
14215         PR tree-optimization/47391
14216         * varpool.c (const_value_known_p): Return false if
14217         decl is volatile.
14218
14219 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
14220
14221         PR bootstrap/47215
14222         * config/i386/i386.c (ix86_local_alignment): Handle
14223         case for va_list_type_node is nil.
14224         (ix86_canonical_va_list_type): Likewise.
14225
14226 2011-01-21  Alan Modra  <amodra@gmail.com>
14227
14228         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
14229         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
14230
14231 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14232
14233         * config/arm/arm.md (define_attr type): Rename f_load
14234         and f_store to f_fpa_load and f_fpa_store. Update.
14235         (write_conflict): Deal with rename fallout.
14236         (*push_fp_multi): Likewise.
14237         * config/arm/fpa.md (f_load): Use f_fpa_load.
14238         (f_store): Use f_fpa_store.
14239         (*movsf_fpa): Likewise.
14240         (*movdf_fpa): Likewise.
14241         (*movxf_fpa): Likewise.
14242         (*thumb2_movsf_fpa): Likewise.
14243         (*thumb2_movdf_fpa): Likewise.
14244         (*thumb2_movxf_fpa): Likewise.
14245         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
14246         f_loadd and f_stored.
14247         (*thumb2_movdi_vfp): Likewise.
14248         (*thumb2_movsf_vfp): Fix attribute to f_loads.
14249         (*thumb2_movsi_vfp): Likewise.
14250         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
14251         Use f_loads instead of f_load.
14252         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
14253
14254 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
14255
14256         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
14257         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
14258         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
14259         (xtensa_mode_dependent_address_p): New function.
14260         (constantpool_address_p): Make static. Change return type to bool.
14261         Change argument type to const_rtx. Use CONST_INT_P predicate.
14262
14263 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
14264
14265         PR debug/46583
14266         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
14267
14268 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14269
14270         PR debug/47283
14271         * cfgexpand.c (expand_debug_expr): Instead of generating
14272         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
14273         etc. handling.
14274
14275 2011-01-20  Richard Guenther  <rguenther@suse.de>
14276
14277         PR middle-end/47370
14278         * tree-inline.c (remap_gimple_op_r): Recurse manually for
14279         the pointer operand of MEM_REFs.
14280
14281 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
14282
14283         PR tree-optimization/46130
14284         * ipa-split.c (consider_split): If return_bb contains non-virtual
14285         PHIs other than for retval or if split_function would not adjust it,
14286         refuse to split.
14287
14288 2011-01-20  Richard Guenther  <rguenther@suse.de>
14289
14290         PR tree-optimization/47167
14291         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
14292         Revert previous change, only avoid enumeral type changes.
14293
14294 2011-01-19  Mike Stump  <mikestump@comcast.net>
14295
14296         * doc/tm.texi.in (BRANCH_COST): Englishify.
14297         * doc/tm.texi (BRANCH_COST): Likewise.
14298
14299 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
14300
14301         PR c++/47291
14302         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
14303         (gen_scheduled_generic_parms_dies): New functions.
14304         (gen_struct_or_union_type_die): Schedule template parameters DIEs
14305         generation for the end of CU compilation.
14306         (dwarf2out_finish): Generate template parameters DIEs here.
14307
14308 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14309
14310         PR debug/46240
14311         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
14312         debug bind stmt on merge edges.
14313
14314 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14315
14316         PR debug/47079
14317         PR debug/46724
14318         * function.c (instantiate_expr): Instantiate incoming rtl of
14319         implicit arguments, and recurse on VALUE_EXPRs.
14320         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
14321         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
14322
14323 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
14324
14325         * c-parser.c (c_parser_for_statement): Initialize
14326         collection_expression.
14327
14328 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14329
14330         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
14331
14332 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14333
14334         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
14335         (LINK_SHLIB_SPEC): Don't use %(link_path).
14336         (SUBTARGET_EXTRA_SPECS): Remove link_path.
14337
14338 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14339
14340         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
14341         (NO_SHARED_LIB_SUPPORT): Remove.
14342         (LINK_SHLIB_SPEC): Remove one conditional definition.
14343
14344 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
14345
14346         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
14347         %{call_shared}.
14348         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
14349         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
14350         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
14351         %{call_shared} and conditionals on these options not being passed.
14352         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
14353         %{call_shared}.
14354
14355 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14356
14357         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
14358         simplify.
14359
14360         * ipa-split.c: Spelling fixes.
14361
14362 2011-01-19  Richard Henderson  <rth@redhat.com>
14363
14364         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
14365         (*mulsi3): Likewise.
14366
14367         * longlong.h [__mn10300__] (count_leading_zeros): New.
14368         [__mn10300__] (umul_ppmm, smul_ppmm): New.
14369         [__mn10300__] (add_ssaaaa, subddmmss): New.
14370         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
14371         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
14372
14373 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14374
14375         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
14376
14377 2011-01-19  Richard Henderson  <rth@redhat.com>
14378
14379         * config/mn10300/mn10300.md (addsi3_flags): New.
14380         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
14381         (subsi3_flags, subc_internal, subdi3): New.
14382         (subdi3_internal, *subdi3_degenerate): New.
14383         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
14384
14385         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
14386         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
14387         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
14388         * config/mn10300/mn10300-protos.h: Update.
14389         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
14390         (return_ret): Likewise.  Rename from return_internal_regs.
14391         (return_internal): Remove.
14392
14393         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
14394         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
14395         (mn10300_legitimate_constant_p): Likewise.
14396         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
14397         (mn10300_frame_size): New.
14398         (mn10300_expand_prologue): Use it.
14399         (mn10300_expand_epilogue): Likewise.
14400         (mn10300_initial_offset): Likewise.
14401         * config/mn10300/mn10300-protos.h: Update.
14402         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
14403         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
14404         (prologue, epilogue, return_internal): Tidy output code.
14405         (mn10300_store_multiple_operation, return): Likewise.
14406         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
14407         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
14408         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
14409         (load_pic, am33_load_pic): New.
14410         (mn10300_load_pic0, mn10300_load_pic1): New.
14411
14412         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
14413         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
14414         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
14415         (cc_flags_for_mode, cc_flags_for_code): New.
14416         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
14417         overflow flag is not valid.  Validate that the flags we need
14418         for the comparison are valid.
14419         (mn10300_output_cmp): Remove.
14420         (mn10300_output_add): New.
14421         (mn10300_select_cc_mode): Use cc_flags_for_code.
14422         (mn10300_split_cbranch): New.
14423         (mn10300_match_ccmode): New.
14424         (mn10300_split_and_operand_count): New.
14425         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
14426         to the function.
14427         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
14428         (addsi3): ... here.  Use mn10300_output_add.
14429         (*addsi3_flags): New.
14430         (*am33_subsi3, *mn10300_subsi3): Merge...
14431         (subsi3): ... here.  Use attribute isa.
14432         (*subsi3_flags): New.
14433         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
14434         when possible.
14435         (*am33_andsi3, *mn10300_andsi3): Merge...
14436         (andsi3): ... here.
14437         (*andsi3_flags): New.
14438         (andsi3 splitters): New.
14439         (*am33_iorsi3, *mn10300_iorsi3): Merge...
14440         (iorsi3): ... here.
14441         (*iorsi3_flags): New.
14442         (*am33_xorsi3, *mn10300_xorsi3): Merge...
14443         (xorsi3): ... here.
14444         (*xorsi3_flags): New.
14445         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
14446         (one_cmplsi2): ... here.
14447         (*one_cmplsi2_flags): New.
14448         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
14449         instead of "dax" in constraints.  Use mn10300_split_cbranch.
14450         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
14451         use matching constraints to eliminate a self-comparison.
14452         (*integer_conditional_branch): Rename from integer_conditional_branch.
14453         Use int_mode_flags to match CC_REG.
14454         (*cbranchsi4_btst, *btstsi): New.
14455         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
14456         mn10300_split_cbranch.
14457         (*am33_cmpsf): Rename from am33_cmpsf.
14458         (*float_conditional_branch): Rename from float_conditional_branch.
14459         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
14460         (zero_extendqisi2): ... here.
14461         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
14462         (zero_extendhisi2): ... here.
14463         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
14464         (extendqisi2): ... here.
14465         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
14466         (extendhisi2): ... here.
14467         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
14468         (ashlsi3): ... here.
14469         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
14470         (lshrsi3): ... here.
14471         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
14472         (ashrsi3): ... here.
14473         (consecutive add peephole): Remove.
14474         * config/mn10300/predicates.md (label_ref_operand): New.
14475         (int_mode_flags): New.
14476         (CCZN_comparison_operator): New.
14477
14478         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
14479         (throughput_42_latency_43): New reservation.
14480         (mulsidi3, umulsidi3): New expanders.
14481         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
14482         the MDR register to allocation; separately allocate the low and
14483         high parts of the DImode result.
14484         (umulsidi3_internal): Similarly.
14485         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
14486         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
14487         (udivsi3, umodsi3): Remove.
14488         (udivmodsi4, divmodsi4): New expanders.
14489         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
14490         (*divmodsi4): Simiarly.
14491         (ext_internal): New.
14492
14493         * config/mn10300/constraints.md ("z"): New constraint.
14494         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
14495         (FIXED_REGISTERS): Don't fix MDR.
14496         (CALL_USED_REGSITERS): Reformat nicely.
14497         (REG_ALLOC_ORDER): Add MDR.
14498         (enum regclass): Add MDR_REGS.
14499         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
14500         (IRA_COVER_CLASSES): Add MDR_REGS.
14501         (REGNO_REG_CLASS): Handle MDR_REG.
14502         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
14503         (mn10300_register_move_cost): Likewise.
14504         * config/mn10300/mn10300.md (MDR_REG): New.
14505         (*movsi_internal): Handle moves to/from MDR_REGS.
14506
14507         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
14508         POST_MODIFY.
14509         (mn10300_secondary_reload): Tidy combination reload classes.
14510         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
14511         addresses for AM33.  Allow symbolic offsets for reg+imm.
14512         (mn10300_regno_in_class_p): New.
14513         (mn10300_legitimize_reload_address): New.
14514         * config/mn10300/mn10300.h (enum reg_class): Remove
14515         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
14516         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
14517         SP_OR_GENERAL_REGS.
14518         (REG_CLASS_NAMES): Update to match.
14519         (REG_CLASS_CONTENTS): Likewise.
14520         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
14521         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
14522         (REGNO_IN_RANGE_P): Remove.
14523         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
14524         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
14525         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
14526         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
14527         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
14528         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
14529         (REGNO_GENERAL_P): New.
14530         (HAVE_POST_MODIFY_DISP): New.
14531         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
14532         (LEGITIMIZE_RELOAD_ADDRESS): New.
14533         * config/mn10300/mn10300-protos.h: Update.
14534
14535         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
14536         DATA_REGS for AM33 stack-pointer destination.
14537         (mn10300_preferred_output_reload_class): Likewise.
14538         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
14539         into a form appropriate for ...
14540         (TARGET_SECONDARY_RELOAD): New.
14541         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
14542         * config/mn10300/mn10300-protos.h: Update.
14543         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
14544         reload_insi; use the "A" constraint for the scratch; handle AM33
14545         moves of sp to non-address registers.
14546
14547         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
14548         (*movqi_internal): ... here.
14549         (*am33_movhi, *mn10300_movhi): Merge into...
14550         (*movhi_internal): ... here.
14551         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
14552         as the source/destination of moves from/to SP.
14553         (movsf): Only allow for AM33-2.
14554         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
14555         any integer constant constraint.  Only allow for AM33-2.  Tidy
14556         all of the alternative outputs.
14557         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
14558         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
14559         for MN103.
14560         (udivsi3, umodsi3): New patterns for MN103 only.
14561
14562 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
14563
14564         * doc/tm.texi.in: Spell out that a lack of register class unions
14565         can lead to ICEs.
14566         * doc/tm.texi: Regenerate.
14567
14568 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
14569
14570         PR rtl-optimization/47337
14571         * dce.c (check_argument_store): New function.
14572         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
14573
14574         PR tree-optimization/47290
14575         * tree-eh.c (infinite_empty_loop_p): New function.
14576         (cleanup_empty_eh): Use it.
14577
14578 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
14579
14580         PR target/46997
14581         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
14582         (a64_expand_widen_sum): Ditto.
14583         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
14584         (vec_extract_evenodd_help): Ditto.
14585         (vec_extract_evenv4hi): Ditto.
14586         (vec_extract_oddv4hi): Ditto.
14587         (vec_extract_evenv2si): Ditto.
14588         (vec_extract_oddv2si): Ditto.
14589         (vec_extract_evenv2sf): Ditto.
14590         (vec_extract_oddv2sf): Ditto.
14591         (vec_pack_trunc_v4hi: Ditto.
14592         (vec_pack_trunc_v2si): Ditto.
14593         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
14594         (vec_interleave_highv8qi): Ditto.
14595         (mix1_r): Ditto.
14596         (vec_extract_oddv8qi): Ditto.
14597         (vec_interleave_lowv4hi): Ditto.
14598         (vec_interleave_highv4hi): Ditto.
14599         (vec_interleave_lowv2si): Ditto.
14600         (vec_interleave_highv2si): Ditto.
14601
14602 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
14603
14604         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
14605         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
14606         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
14607         (pa_c_mode_for_suffix): New.
14608         (TARGET_EXPAND_BUILTIN): Define.
14609         (TARGET_C_MODE_FOR_SUFFIX): Define.
14610         (pa_builtins): Define.
14611         (pa_init_builtins): Register __float128 type and init new support
14612         builtins.
14613         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
14614         * config/pa/quadlib.c (_U_Qfcopysign): New.
14615
14616 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
14617
14618         PR middle-end/46894
14619         * explow.c (allocate_dynamic_stack_space): Do not assume more than
14620         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
14621         are defined.
14622
14623 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
14624
14625         PR tree-optimization/47179
14626         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
14627         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
14628
14629 2011-01-18  Richard Guenther  <rguenther@suse.de>
14630
14631         PR rtl-optimization/47216
14632         * emit-rtl.c: Include tree-flow.h.
14633         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
14634         of replicating it with different semantics.
14635         * Makefile.in (emit-rtl.o): Adjust.
14636
14637 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14638
14639         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
14640         (cortex_a9_dp): Handle neon types correctly.
14641
14642 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
14643
14644         PR rtl-optimization/47299
14645         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
14646         subtarget.  Use normal multiplication if both operands are constants.
14647         * expmed.c (expand_widening_mult): Don't try to optimize constant
14648         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
14649         before using it.
14650
14651 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14652
14653         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
14654         spacing after 'e.g.', typos, comma, hyphenation.
14655
14656 2011-01-17  Richard Henderson  <rth@redhat.com>
14657
14658         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
14659         (rx_restricted_mem_operand): New.
14660         (rx_shift_operand): Use register_operand.
14661         (rx_source_operand, rx_compare_operand): Likewise.
14662         * config/rx/rx.md (addsi3_flags): New expander.
14663         (adddi3): Rewrite as expander.
14664         (adc_internal, *adc_flags, adddi3_internal): New patterns.
14665         (subsi3_flags): New expander.
14666         (subdi3): Rewrite as expander.
14667         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
14668
14669         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
14670         (rx_init_builtins): Remove sat builtin.
14671         (rx_expand_builtin): Likewise.
14672         * config/rx/rx.md (ssaddsi3): New.
14673         (*sat): Rename from sat.  Represent the CC_REG input.
14674
14675         * config/rx/predicates.md (rshift_operator): New.
14676         * config/rx/rx.c (rx_expand_insv): Remove.
14677         * config/rx/rx-protos.h: Update.
14678         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
14679         operand to the canonical position.
14680         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14681         (*bitclr, *bitclr_in_memory): Similarly.
14682         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14683         (insv): Retain the zero_extract in the expansion.
14684
14685         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14686         (bswaphi2, bitinvert, revw): Likewise.
14687
14688         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14689         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14690         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14691         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14692         (bitset, bitset_in_memory): Likewise.
14693         (bitinvert, bitinvert_in_memory): Likewise.
14694         (bitclr, bitclr_in_memory): Likewise.
14695         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14696         (rx_strend, rx_cmpstrn): Likewise.
14697         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
14698         (bitop peep2 patterns): Remove.
14699
14700         * config/rx/rx.c (rx_match_ccmode): New.
14701         * config/rx/rx-protos.h: Update.
14702         * config/rx/rx.md (abssi2): Clobber, don't set flags.
14703         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14704         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14705         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14706         (fix_truncsfsi2, floatsisf2): Likewise.
14707         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14708         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14709         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14710         (*subsi3_flags, *xorsi3_flags): New.
14711
14712         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14713
14714         * config/rx/rx.c (rx_print_operand): Remove workaround for
14715         unsplit comparison operations.
14716
14717         * config/rx/rx.md (movsicc): Split after reload.
14718         (*movsicc): Merge *movsieq and *movsine via match_operator.
14719         (*stcc): New pattern.
14720
14721         * config/rx/rx.c (rx_float_compare_mode): Remove.
14722         * config/rx/rx.h (rx_float_compare_mode): Remove.
14723         * config/rx/rx.md (cstoresi4): Split after reload.
14724         (*sccc): New pattern.
14725
14726         * config/rx/predicates.md (label_ref_operand): New.
14727         (rx_z_comparison_operator): New.
14728         (rx_zs_comparison_operator): New.
14729         (rx_fp_comparison_operator): New.
14730         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14731         Validate that the flags are set properly for the comparison.
14732         (rx_gen_cond_branch_template): Remove.
14733         (rx_cc_modes_compatible): Remove.
14734         (mode_from_flags): New.
14735         (flags_from_code): Rename from flags_needed_for_conditional.
14736         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14737         (rx_select_cc_mode): Likewise.
14738         (rx_split_fp_compare): New.
14739         (rx_split_cbranch): New.
14740         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14741         (*cbranchsi4): Use match_operator and rx_split_cbranch.
14742         (*cbranchsf4): Similarly.
14743         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
14744         match_operator and rx_split_cbranch.
14745         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14746         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
14747         (*cmpsi): Rename from cmpsi.
14748         (*tstsi): Rename from tstsi.
14749         (*cmpsf): Rename from cmpsf; use CC_Fmode.
14750         (*conditional_branch): Rename from conditional_branch.
14751         (*reveresed_conditional_branch): Remove.
14752         (b<code>): Remove expander.
14753         * config/rx/rx-protos.h: Update.
14754
14755         * config/rx/rx.c (rx_compare_redundant): Remove.
14756         * config/rx/rx.md (cmpsi): Don't use it.
14757         * config/rx/rx-protos.h: Update.
14758
14759         * config/rx/rx-modes.def (CC_F): New mode.
14760         * config/rx/rx.c (rx_select_cc_mode): New.
14761         * config/rx/rx.h (SELECT_CC_MODE): Use it.
14762         * config/rx/rx-protos.h: Update.
14763
14764 2011-01-17  Richard Henderson  <rth@redhat.com>
14765
14766         * except.c (dump_eh_tree): Fix stray ; after for statement.
14767
14768 2011-01-17  Richard Guenther  <rguenther@suse.de>
14769
14770         PR tree-optimization/47313
14771         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14772         handling before copying the body.  Properly deal with
14773         by-reference result in SSA form.
14774
14775 2011-01-17  Ian Lance Taylor  <iant@google.com>
14776
14777         PR target/47219
14778         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14779         (struct_value_alias_set): Don't define.
14780         (sparc_option_override): Don't set sparc_sr_alias_set and
14781         struct_value_alias_set.
14782         (save_or_restore_regs): Use gen_frame_mem rather than calling
14783         set_mem_alias_set.
14784         (sparc_struct_value_rtx): Likewise.
14785
14786 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
14787
14788         PR target/47318
14789         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
14790         (_mm_maskstore_pd): Likewise.
14791         (_mm_maskload_ps): Likewise.
14792         (_mm_maskstore_ps): Likewise.
14793         (_mm256_maskload_pd): Change mask to __m256i.
14794         (_mm256_maskstore_pd): Likewise.
14795         (_mm256_maskload_ps): Likewise.
14796         (_mm256_maskstore_ps): Likewise.
14797
14798         * config/i386/i386-builtin-types.def: Updated.
14799         (ix86_expand_special_args_builtin): Likewise.
14800
14801         * config/i386/i386.c (bdesc_special_args): Update
14802         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14803         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14804         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14805         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14806
14807         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14808         Use <avxpermvecmode> on mask register.
14809         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14810
14811 2011-01-17  Olivier Hainque  <hainque@adacore.com>
14812             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
14813             Eric Botcazou  <ebotcazou@adacore.com>
14814
14815         PR target/46655
14816         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14817         if <= USHRT_MAX in 32-bit mode.
14818
14819 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14820
14821         * doc/install.texi (Configuration, Specific): Wrap long
14822         lines in examples.  Allow line wrapping in long options
14823         and URLs where beneficial for PDF output.
14824
14825 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
14826
14827         * config/mips/mips.c (mips_classify_symbol): Don't return
14828         SYMBOL_PC_RELATIVE for nonlocal labels.
14829
14830 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
14831
14832         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14833
14834 2011-01-15  Jan Hubicka  <jh@suse.cz>
14835
14836         PR tree-optimization/47276
14837         * ipa.c (function_and_variable_visibility): Do not try to mark alias
14838         declarations as needed.
14839
14840 2011-01-15  Martin Jambor  <mjambor@suse.cz>
14841
14842         * common.opt (fdevirtualize): New flag.
14843         * doc/invoke.texi (Option Summary): Document it.
14844         * opts.c (default_options_table): Add devirtualize flag.
14845         * ipa-prop.c (detect_type_change): Return immediately if
14846         devirtualize flag is not set.
14847         (detect_type_change_ssa): Likewise.
14848         (compute_known_type_jump_func): Likewise.
14849         (ipa_analyze_virtual_call_uses): Likewise.
14850
14851 2011-01-14  Martin Jambor  <mjambor@suse.cz>
14852
14853         PR tree-optimization/45934
14854         PR tree-optimization/46302
14855         * ipa-prop.c (type_change_info): New type.
14856         (stmt_may_be_vtbl_ptr_store): New function.
14857         (check_stmt_for_type_change): Likewise.
14858         (detect_type_change): Likewise.
14859         (detect_type_change_ssa): Likewise.
14860         (compute_complex_assign_jump_func): Check for dynamic type change.
14861         (compute_complex_ancestor_jump_func): Likewise.
14862         (compute_known_type_jump_func): Likewise.
14863         (compute_scalar_jump_functions): Likewise.
14864         (ipa_analyze_virtual_call_uses): Likewise.
14865         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14866
14867 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14868
14869         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14870         * config/i386/i386.opt (msse5): New Alias.
14871
14872 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14873
14874         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14875         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14876         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14877         * config/sparc/sparc.h (CC1_SPEC): Likewise.
14878
14879 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14880
14881         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14882         -mcpu options.
14883         * config/sparc/linux64.h (CC1_SPEC): Likewise.
14884         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14885         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14886         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14887         Likewise.
14888         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14889
14890 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14891
14892         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
14893
14894 2011-01-14  Mike Stump  <mikestump@comcast.net>
14895
14896         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14897         * config/fr30/fr30.md: Likweise
14898         (movsi_push): Likewise.
14899         (movsi_pop): Likewise.
14900         (enter_func): Likewise.
14901         * config/moxie/moxie.md (movsi_push): Likewise.
14902         (movsi_pop): Likewise.
14903
14904 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14905
14906         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14907         %{no_archive} %{exact_version}.
14908         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14909         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14910         %{no_archive} %{exact_version}.
14911         * config/mips/openbsd.h (LINK_SPEC): Likewise.
14912         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14913         * config/mips/vxworks.h: Likewise.
14914
14915 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14916
14917         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
14918
14919 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14920
14921         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14922         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14923
14924 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14925
14926         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14927         -nodefaultlib.
14928
14929 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14930
14931         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14932         for mcpu not cpu.
14933         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14934         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14935         not cpu.
14936         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14937         Don't handle -shlib.
14938
14939 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14940
14941         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14942         (CC1_SPEC): Don't handle -profile.
14943
14944 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14945
14946         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14947         * config/mips/mips.h (CC1_SPEC): Likewise.
14948
14949 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14950
14951         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14952         * config/mips/mips.h (CC1_SPEC): Likewise.
14953
14954 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14955
14956         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14957         * config/m32r/linux.h (LINK_SPEC): Likewise.
14958         * config/mips/linux.h (LINK_SPEC): Likewise.
14959         * config/mips/linux64.h (LINK_SPEC): Likewise.
14960         * config/sparc/linux.h (LINK_SPEC): Likewise.
14961         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14962         LINK_SPEC): Likewise.
14963         * config/xtensa/linux.h (LINK_SPEC): Likewise.
14964
14965 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14966
14967         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14968         %{version:-v}.
14969         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14970
14971 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14972
14973         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14974         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14975
14976 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
14977
14978         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14979
14980 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14981
14982         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14983         supports -Bstatic/-Bdynamic.
14984         * configure: Regenerate.
14985
14986 2011-01-14  Jan Hubicka  <jh@suse.cz>
14987             Jack Howarth  <howarth@bromo.med.uc.edu>
14988
14989         PR target/46037
14990         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14991         when checking debug_info_level. Test write_symbols instead of
14992         debug_hooks->var_location when setting flag_var_tracking_uninit.
14993
14994 2011-01-14  Richard Guenther  <rguenther@suse.de>
14995
14996         PR tree-optimization/47179
14997         * target.def (ref_may_alias_errno): New target hook.
14998         * targhooks.h (default_ref_may_alias_errno): Declare.
14999         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
15000         (default_ref_may_alias_errno): New function.
15001         * target.h (struct ao_ref_s): Declare.
15002         * tree-ssa-alias.c: Include target.h.
15003         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
15004         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
15005         (targhooks.o): Likewise.
15006         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
15007         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
15008
15009 2011-01-14  Richard Guenther  <rguenther@suse.de>
15010
15011         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
15012
15013 2011-01-14  Richard Guenther  <rguenther@suse.de>
15014
15015         PR tree-optimization/47280
15016         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
15017         return CFG changes.
15018         (tree_ssa_forward_propagate_single_use_vars): Deal with
15019         CFG changes from associate_plusminus.
15020
15021 2011-01-14  Richard Guenther  <rguenther@suse.de>
15022
15023         PR middle-end/47281
15024         Revert
15025         2011-01-11  Richard Guenther  <rguenther@suse.de>
15026
15027         PR tree-optimization/46076
15028         * tree-ssa.c (useless_type_conversion_p): Conversions from
15029         unprototyped to empty argument list function types are useless.
15030
15031 2011-01-14  Richard Guenther  <rguenther@suse.de>
15032
15033         PR tree-optimization/47286
15034         * tree-ssa-structalias.c (new_var_info): Register variables are global.
15035
15036 2011-01-14  Martin Jambor  <mjambor@suse.cz>
15037
15038         PR middle-end/46823
15039         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
15040
15041 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
15042
15043         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
15044         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
15045         * config/xtensa/xtensa.c (xtensa_libcall_value,
15046         xtensa_function_value_regno_p): New functions.
15047         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
15048
15049 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
15050
15051         PR c++/47213
15052         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
15053         PE specific hook.
15054         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
15055         New function prototype.
15056         * config/i386/winnt.c (i386_pe_assemble_visibility):
15057         Warn only if attribute was specified by user.
15058
15059 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
15060
15061         PR target/47251
15062         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
15063         floating point.
15064         (floatunsdidf2_fcfidu): Ditto.
15065
15066 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15067
15068         * config/s390/s390.c (print_operand_address): Replace 'error' with
15069         'output_operand_lossage'.
15070         (print_operand): Likewise.
15071
15072 2011-01-13  Jeff Law  <law@redhat.com>
15073
15074         PR rtl-optimization/39077
15075         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
15076         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
15077         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
15078         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
15079         * gcse.c (prune_insertions_deletions): New function.
15080         (compute_pre_data): Use it.
15081
15082 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
15083
15084         PR debug/PR46973
15085         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
15086         static function.
15087         (prune_unused_types_mark): Use it.
15088
15089 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
15090
15091         PR rtl-optimization/45352
15092         * sel-sched.c: Update copyright years.
15093         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
15094         in the advancing loop when we have issued issue_rate insns.
15095
15096 2011-01-12  Richard Henderson  <rth@redhat.com>
15097
15098         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
15099         (TARGET_MD_ASM_CLOBBERS): New.
15100
15101         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
15102         (TARGET_DELEGITIMIZE_ADDRESS): New.
15103
15104         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
15105         (clzsi2, *bsch): New patterns.
15106
15107         * config/mn10300/mn10300.md (INT): New mode iterator.
15108         (*mov<INT>_clr): New pattern, and peep2 to generate it.
15109
15110         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
15111         flag_split_wide_types.
15112
15113         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
15114         (mn10300_trampoline_init): Rewrite without a template, an immediate
15115         load and a direct branch.
15116         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
15117
15118 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
15119
15120         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15121         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
15122         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
15123         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15124
15125 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
15126
15127         PR debug/47209
15128         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
15129         of type.
15130
15131 2011-01-12  Jan Hubicka  <jh@suse.cz>
15132
15133         PR driver/47244
15134         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
15135         (PLUGIN_COND_CLOSE): New macro.
15136         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
15137
15138 2011-01-12  Richard Guenther  <rguenther@suse.de>
15139
15140         PR lto/47259
15141         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
15142         register variables in a MEM_REF.
15143
15144 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
15145
15146         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
15147         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
15148         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
15149         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
15150         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
15151         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
15152         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
15153         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
15154         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
15155         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
15156         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
15157         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
15158         * config/gnu-user.h: New.  Copied from linux.h.
15159         (LINUX_TARGET_STARTFILE_SPEC): Rename to
15160         GNU_USER_TARGET_STARTFILE_SPEC.
15161         (LINUX_TARGET_ENDFILE_SPEC): Rename to
15162         GNU_USER_TARGET_ENDFILE_SPEC.
15163         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
15164         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
15165         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
15166         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
15167         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
15168         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
15169         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
15170         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
15171         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
15172         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
15173         * config/arm/linux-eabi.h (CC1_SPEC): Use
15174         GNU_USER_TARGET_CC1_SPEC.
15175         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
15176         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
15177         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
15178         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
15179         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
15180         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
15181         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
15182         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
15183
15184 2011-01-12  Richard Guenther  <rguenther@suse.de>
15185
15186         PR other/46946
15187         * doc/invoke.texi (ffast-math): Document it is turned on
15188         with -Ofast.
15189
15190 2011-01-12  Jan Hubicka  <jh@suse.cz>
15191
15192         PR tree-optimization/47233
15193         * opts.c (common_handle_option): Disable ipa-reference with profile
15194         feedback.
15195
15196 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15197
15198         * c-parser.c (c_parser_objc_at_property_declaration): Improved
15199         error message.
15200
15201 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
15202
15203         * c-parser.c (c_lex_one_token): Updated and reindented some
15204         comments.  No changes in code.
15205
15206 2011-01-11  Ian Lance Taylor  <iant@google.com>
15207
15208         * godump.c (go_output_var): Don't output the variable if there is
15209         already a type with the same name.
15210
15211 2011-01-11  Ian Lance Taylor  <iant@google.com>
15212
15213         * godump.c (go_format_type): Don't generate float80.
15214
15215 2011-01-11  Richard Henderson  <rth@redhat.com>
15216
15217         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
15218         declaration.  Rewrite for both speed and size.
15219         (mn10300_address_cost_1): Remove.
15220         (mn10300_register_move_cost): New.
15221         (mn10300_memory_move_cost): New.
15222         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
15223         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
15224         extensions, shifts, BSWAP, CLZ.
15225         (mn10300_wide_const_load_uses_clr): Remove.
15226         (TARGET_REGISTER_MOVE_COST): New.
15227         (TARGET_MEMORY_MOVE_COST): New.
15228         * config/mn10300/mn10300-protos.h: Update.
15229         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
15230
15231         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
15232         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
15233         * config/mn10300/mn10300-protos.h: Update.
15234         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
15235         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
15236         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
15237         (*test_int_bitfield, *test_byte_bitfield): Remove.
15238         (*bit_test, *subreg_bit_test): Remove.
15239         * config/mn10300/predicates.md (const_8bit_operand): Remove.
15240
15241         * config/mn10300/constraints.md ("c"): Rename from "A".
15242         ("A", "D"): New constraint letters.
15243         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
15244         (fmssf4, fnmasf4, fnmssf4): Likewise.
15245
15246         * config/mn10300/mn10300.md (isa): New attribute.
15247         (enabled): New attribute.
15248
15249         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
15250         (abssf2, negsf2): Define only for hardware fp.
15251         (sqrtsf2): Reformat.
15252         (addsf3, subsf3, mulsf3): Merge expander and insn.
15253
15254         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
15255         (DEBUGGER_AUTO_OFFSET): Remove.
15256         (DEBUGGER_ARG_OFFSET): Remove.
15257
15258         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
15259         Emit register stores with the same offsets as the hardware.
15260         (mn10300_store_multiple_operation): Don't check that the register
15261         save offsets are monotonic.
15262         * config/mn10300/mn10300-protos.h: Update.
15263
15264         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
15265
15266         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
15267         in terms of the value on the stack, not the MDR register.
15268
15269 2011-01-11  Jan Hubicka  <jh@suse.cz>
15270
15271         PR lto/45721
15272         PR lto/45375
15273         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
15274         (symbol_alias_set_destroy, symbol_alias_set_contains,
15275         propagate_aliases_backward): Declare.
15276         * lto-streamer-out.c (struct sets): New sturcture.
15277         (trivally_defined_alias): New function.
15278         (output_alias_pair_p): Rewrite.
15279         (output_unreferenced_globals): Fix output of alias pairs.
15280         (produce_symtab): Likewise.
15281         * ipa.c (function_and_variable_visibility): Set weak alias destination
15282         as needed in lto.
15283         * varasm.c (symbol_alias_set_t): Remove.
15284         (symbol_alias_set_destroy): Export.
15285         (propagate_aliases_forward, propagate_aliases_backward): New functions
15286         based on ...
15287         (compute_visible_aliases): ... this one; remove.
15288         (trivially_visible_alias): New
15289         (trivially_defined_alias): New.
15290         (remove_unreachable_alias_pairs): Rewrite.
15291         (finish_aliases_1): Reorganize code checking if alias is defined.
15292         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
15293         in LTO mode.
15294
15295 2011-01-11  Richard Guenther  <rguenther@suse.de>
15296
15297         PR tree-optimization/46076
15298         * tree-ssa.c (useless_type_conversion_p): Conversions from
15299         unprototyped to empty argument list function types are useless.
15300
15301 2011-01-11  Richard Guenther  <rguenther@suse.de>
15302
15303         PR middle-end/45235
15304         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
15305         volatile MEMs as MEM_READONLY_P.
15306
15307 2011-01-11  Richard Guenther  <rguenther@suse.de>
15308
15309         PR tree-optimization/47239
15310         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
15311
15312 2011-01-11  Jeff Law  <law@redhat.com>
15313
15314         PR tree-optimization/47086
15315         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
15316         IVs from statements that might throw.
15317
15318 2011-01-10  Jan Hubicka  <jh@suse.cz>
15319
15320         PR lto/45375
15321         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
15322
15323 2011-01-10  Jan Hubicka  <jh@suse.cz>
15324
15325         PR lto/45375
15326         * profile.c (read_profile_edge_counts): Ignore profile inconistency
15327         when correcting profile.
15328
15329 2011-01-10  Jan Hubicka  <jh@suse.cz>
15330
15331         PR lto/46083
15332         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
15333         DECL_FINI_PRIORITY.
15334         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
15335         Restore DECL_FINI_PRIORITY.
15336
15337 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15338
15339         * doc/gimple.texi: Fix quoting of multi-word return values in
15340         @deftypefn statements.  Ensure presence of return value.  Wrap
15341         overlong @deftypefn lines.
15342         (is_gimple_operand, is_gimple_min_invariant_address): Remove
15343         descriptions of removed functions.
15344         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
15345         of multi-word return value in @deftypefn statement.
15346
15347 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15348
15349         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
15350         (Conditional Expressions, Logical Operators)
15351         (Statement and operand traversals): Do not indent smallexample
15352         code.  Fix duplicate function argument in example.
15353
15354 2011-01-10  Jeff Law  <law@redhat.com>
15355
15356         PR tree-optimization/47141
15357         * ipa-split.c (split_function): Handle case where we are
15358         returning a value and the return block has a virtual operand phi.
15359
15360 2011-01-10  Jan Hubicka  <jh@suse.cz>
15361
15362         PR tree-optimization/47234
15363         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
15364         (pass_feedback_split_functions): Declare.
15365         * passes.c (init_optimization_passes): Add ipa-split as subpass of
15366         tree-profile.
15367         * ipa-split.c (gate_split_functions): Update comments; disable
15368         split-functions for profile_arc_flag and branch_probabilities.
15369         (gate_feedback_split_functions): New function.
15370         (execute_feedback_split_functions): New function.
15371         (pass_feedback_split_functions): New global var.
15372
15373 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
15374
15375         PR lto/46760
15376         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
15377         calling gimple_call_set_cannot_inline.
15378
15379 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
15380
15381         * config/darwin-sections.def: Remove unused section.
15382
15383 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
15384
15385         PR c++/47218
15386         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
15387
15388 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
15389
15390         PR objc/47232
15391         * c-parser.c (c_parser_declaration_or_fndef): Improved
15392         error message.
15393
15394 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
15395
15396         * config/i386/winnt.c (i386_pe_start_function): Make sure
15397         to switch back to function's section.
15398
15399 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
15400
15401         PR gcc/46902
15402         PR testsuite/46912
15403         * plugin.c: Move include of dlfcn.h from here...
15404         * system.h: ... to here.
15405
15406 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15407
15408         * doc/cpp.texi (C++ Named Operators): Fix markup for header
15409         file name.
15410         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
15411         two extra empty pages in PDF output.
15412
15413 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
15414
15415         PR objc/47078
15416         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
15417         for error recovery purposes behave as if it was not specified so
15418         that the default type is usd.
15419
15420 2011-01-07  Jan Hubicka  <jh@suse.cz>
15421
15422         PR tree-optmization/46469
15423         * ipa.c (function_and_variable_visibility): Clear needed flags on
15424         nodes with external decls; handle weakrefs merging correctly.
15425
15426 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
15427
15428         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
15429         not false.
15430
15431 2011-01-07  Jan Hubicka  <jh@suse.cz>
15432
15433         * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
15434         and no longer claim that gold is required for linker plugin.
15435         * configure: Regenerate.
15436         * gcc.c (PLUGIN_COND): New macro.
15437         (LINK_COMMAND_SPEC): Use it.
15438         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
15439         * config.in (HAVE_LTO_PLUGIN): New.
15440         * configure.ac (--with-lto-plugin): New parameter; autodetect
15441         HAVE_LTO_PLUGIN.
15442
15443 2011-01-07  Jan Hubicka  <jh@suse.cz>
15444
15445         PR tree-optimization/46367
15446         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
15447         when we can update original.
15448         (cgraph_mark_inline_edge): Sanity check.
15449         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
15450
15451 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15452
15453         * config/spu/spu.h (ASM_COMMENT_START): Define.
15454
15455 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
15456
15457         PR driver/42445
15458         * gcc.c (%>S): New.
15459         (SWITCH_KEEP_FOR_GCC): Likewise.
15460         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
15461         (do_spec_1): Handle "%>".
15462
15463         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
15464
15465 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
15466
15467         PR target/47201
15468         * config/i386/i386.c (ix86_delegitimize_address): If
15469         simplify_gen_subreg fails, return orig_x.
15470
15471         PR bootstrap/47187
15472         * value-prof.c (gimple_stringop_fixed_value): Handle
15473         lhs of the call properly.
15474
15475 2011-01-07  Jan Hubicka  <jh@suse.cz>
15476
15477         PR lto/45375
15478         * lto-opt.c (lto_reissue_options): Set flag_shlib.
15479
15480 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15481
15482         * target.def (function_switched_text_sections): New hook.
15483         * doc/tm.texi: Regenerated.
15484         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15485         * final.c (default_function_switched_text_sections): New.
15486         (final_scan_insn): Call function_switched_text_sections when a
15487         mid-function section change occurs.
15488         * output.h (default_function_switched_text_sections): Declare.
15489         * config/darwin-protos.h (darwin_function_switched_text_sections):
15490         Likewise.
15491         * config/darwin.c (darwin_function_switched_text_sections): New.
15492         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
15493
15494 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
15495
15496         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
15497         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
15498         the secondary code fragment when outputting for DWARF == 2.
15499
15500 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
15501
15502         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
15503         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
15504         Remove.
15505         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
15506         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
15507
15508 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
15509
15510         PR debug/46704
15511         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
15512         when it is not empty.
15513
15514 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
15515
15516         Bobcat Enablement
15517         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
15518         (case ${target}): Add btver1.
15519         * config/i386/driver-i386.c (host_detect_local_cpu): Let
15520         -march=native recognize btver1 processors.
15521         * config/i386/i386-c.c (ix86_target_macros_internal): Add
15522         btver1 def_and_undef
15523         * config/i386/i386.c (struct processor_costs btver1_cost): New
15524         btver1 cost table.
15525         (m_BTVER1): New definition.
15526         (m_AMD_MULTIPLE): Includes m_BTVER1.
15527         (initial_ix86_tune_features): Add btver1 tune.
15528         (processor_target_table): Add btver1 entry.
15529         (static const char *const cpu_names): Add btver1 entry.
15530         (software_prefetching_beneficial_p): Add btver1.
15531         (ix86_option_override_internal): Add btver1 instruction sets.
15532         (ix86_issue_rate): Add btver1.
15533         (ix86_adjust_cost): Add btver1.
15534         * config/i386/i386.h (TARGET_BTVER1): New definition.
15535         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
15536         (enum processor_type): Add PROCESSOR_BTVER1.
15537         * config/i386/i386.md (define_attr "cpu"): Add btver1.
15538
15539 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15540
15541         PR target/43309
15542         * config/i386/i386.c (legitimize_tls_address)
15543         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
15544         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
15545         (tls_initial_exec_64_sun): New pattern.
15546
15547 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
15548
15549         * doc/invoke.texi (Overall Options): Improve wording and markup
15550         of the description of -wrapper.
15551
15552 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15553
15554         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
15555         rdynamic, threads): New Driver options.
15556
15557 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15558
15559         PR target/38118
15560         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
15561         if coming from .tdata.
15562         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
15563
15564 2011-01-06  Jan Hubicka  <jh@suse.cz>
15565
15566         PR lto/47188
15567         * collect2.c (main): Do not enable LTOmode when plugin is active.
15568
15569 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15570
15571         PR other/45915
15572         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
15573         --version output if supported.
15574         * configure: Regenerate.
15575
15576 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
15577
15578         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
15579         Driver options.
15580
15581 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
15582
15583         PR c/47150
15584         * c-convert.c (convert): When converting a complex expression
15585         other than COMPLEX_EXPR to a different complex type, ensure
15586         c_save_expr is called instead of save_expr, unless in_late_binary_op.
15587         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
15588         when converting COMPLEX_TYPE.
15589
15590 2011-01-06  Ira Rosen  <irar@il.ibm.com>
15591
15592         PR tree-optimization/47139
15593         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
15594         only the last reduction value is used outside the loop.  Update
15595         documentation.
15596
15597 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
15598
15599         * config/rtems.opt: New.
15600         * config.gcc (*-*-rtems*): Use rtems.opt.
15601
15602 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
15603
15604         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
15605         processors do not support 3DNow instructions.
15606
15607 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15608
15609         * config/spu/spu.c (spu_option_override): Set parameter
15610         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
15611
15612 2011-01-05  Jan Hubicka  <jh@suse.cz>
15613
15614         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
15615         at the command line.
15616
15617 2011-01-05  Martin Jambor  <mjambor@suse.cz>
15618
15619         PR lto/47162
15620         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
15621         deltas on streamed outgoing edges.
15622         (output_node_opt_summary): Output info for outgoing edges only when
15623         the node is in new parameter set.
15624         (output_cgraph_opt_summary): New parameter set, passed to the two
15625         aforementioned functions.  Update its forward declaration and its
15626         callee too.
15627
15628 2011-01-05  Tom Tromey  <tromey@redhat.com>
15629
15630         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
15631         operator to c_finish_omp_atomic.
15632         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
15633         (build_unary_op): Update.
15634         (build_modify_expr): Update.
15635         (build_asm_expr): Update.
15636
15637 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15638
15639         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
15640         newly inserted insns.
15641         (pad_bb): Likewise.
15642         (spu_emit_branch_hint): Likewise.
15643         (insert_hbrp_for_ilb_runout): Likewise.
15644         (spu_machine_dependent_reorg): Call df_finish_pass after
15645         schedule_insns returns.
15646
15647 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15648
15649         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
15650
15651 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
15652
15653         PR tree-optimization/47005
15654         * tree-sra.c (struct access): Add 'non_addressable' bit.
15655         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
15656         (decide_one_param_reduction): Return 0 if the parameter is passed by
15657         reference and one of the accesses in the group is non_addressable.
15658
15659 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15660
15661         PR tree-optimization/47056
15662         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
15663         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
15664         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
15665
15666 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
15667
15668         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
15669         initializer.  Skip view conversions from aggregate types.
15670
15671 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
15672
15673         PR bootstrap/47055
15674         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
15675
15676 2011-01-04  Philipp Thomas  <pth@suse.de>
15677
15678         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
15679         obvious typo.
15680
15681 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15682
15683         * function.c (thread_prologue_and_epilogue_insns): Do not crash
15684         on empty epilogue sequences.
15685
15686 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
15687
15688         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15689         non-static): New Driver options.
15690
15691 2011-01-04  Jie Zhang  <jie@codesourcery.com>
15692
15693         PR driver/47137
15694         * gcc.c (default_compilers[]): Set combinable field to 0
15695         for all assembly languages.
15696
15697 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
15698
15699         * config/mips/loongson3a.md: New file.
15700         * config/mips/mips.md: Include loongson3a.md.
15701         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15702         TUNE_LOONGSON_3A.
15703
15704 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
15705
15706         PR middle-end/47017
15707         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15708         instead of convert_memory_address_addr_space on the base expression.
15709
15710 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15711
15712         * config/spu/spu.c (spu_option_override): Update error text
15713         for bad -march= / -mtune= values.
15714
15715 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15716
15717         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15718         if branch-hint optimization will be performed.
15719
15720 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15721
15722         PR tree-optimization/47148
15723         * ipa-split.c (split_function): Convert arguments to
15724         DECL_ARG_TYPE if possible.
15725
15726         PR tree-optimization/47155
15727         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15728         when computing uns.
15729
15730         PR rtl-optimization/47157
15731         * combine.c (try_combine): If undobuf.other_insn becomes
15732         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15733         and set *new_direct_jump_p too.
15734
15735 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
15736
15737         PR tree-optimization/47021
15738         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15739
15740 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
15741
15742         * gcc.c (process_command): Update copyright notice dates.
15743         * gcov.c (print_version): Likewise.
15744         * gcov-dump.c (print_version): Likewise.
15745         * mips-tfile.c (main): Likewise.
15746         * mips-tdump.c (main): Likewise.
15747
15748 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15749
15750         PR tree-optimization/46801
15751         * tree-sra.c (type_internals_preclude_sra_p): Check whether
15752         aggregate fields start at byte boundary instead of the bit-field flag.
15753
15754 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
15755
15756         PR driver/47137
15757         * gcc.c (main): Revert revision 168407.
15758
15759 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15760
15761         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15762
15763 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
15764
15765         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15766         vector optab to expand vector/scalar shift, update gimple to vector.
15767
15768 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15769
15770         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15771         a thunk.
15772
15773 2011-01-03  Martin Jambor  <mjambor@suse.cz>
15774
15775         PR tree-optimization/46984
15776         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15777         HOST_WIDE_INT.
15778         (cgraph_create_indirect_edge): Fixed line length.
15779         (cgraph_indirect_call_info): Declare.
15780         (cgraph_make_edge_direct) Update declaration.
15781         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15782         (cgraph_create_indirect_edge): Use it.
15783         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
15784         callees.
15785         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15786         the new thunk_delta representation.
15787         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15788         HOST_WIDE_INT.
15789         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15790         (ipa_read_indirect_edge_info): Likewise.
15791         * lto-cgraph.c (output_edge_opt_summary): New function.
15792         (output_node_opt_summary): Call it on all outgoing edges.
15793         (input_edge_opt_summary): New function.
15794         (input_node_opt_summary): Call it on all outgoing edges.
15795
15796 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
15797
15798         PR driver/47137
15799         * gcc.c (main): Don't check have_o when settting combine_inputs.
15800
15801 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
15802
15803         * regrename.c: Add general comment describing the pass.
15804         (struct du_head): Remove 'length' field.
15805         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15806         (regrename_optimize): Do not sort chains.  Rework comments, add others.
15807         Force renaming to the preferred class (if any) in the first pass and do
15808         not consider registers that belong to it in the second pass.
15809         (create_new_chain): Do not set 'length' field.
15810         (scan_rtx_reg): Likewise.
15811
15812 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
15813
15814         PR tree-optimization/47140
15815         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15816         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15817         to bit_value_binop.
15818
15819         PR rtl-optimization/47028
15820         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15821         parm_birth_insn instead of at the beginning of first bb.
15822
15823 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
15824
15825         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15826         Remove the word "see" before "@pxref".
15827         * doc/rtl.texi: Remove the word "see" before "@pxref".
15828
15829 2011-01-01  Jan Hubicka  <jh@suse.cz>
15830
15831         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15832         memory.
15833
15834 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
15835
15836         PR target/38662
15837         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
15838
15839 \f
15840 Copyright (C) 2011 Free Software Foundation, Inc.
15841
15842 Copying and distribution of this file, with or without modification,
15843 are permitted in any medium without royalty provided the copyright
15844 notice and this notice are preserved.