ipa-inline.h: New file.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2011-04-13  Jan Hubicka  <jh@suse.cz>
2
3         * ipa-inline.h: New file.
4         * ipa-inline-analysis.c: New file. Broken out of ...
5         * ipa-inline.c: ... this file; update toplevel comment;
6         include ipa-inline.h
7         (inline_summary): Move to ipa-inline.h
8         (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
9         ipa-inline-analysis.c.
10         (cgraph_estimate_time_after_inlining): Rename to estiamte_time_after_inlining;
11         move to ipa-inline-analysis.c
12         (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
13         to estimate_edge_growth.
14         (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
15         rename to estimate_size_after_inlining.
16         (cgraph_mark_inline_edge): Update for new naming convention.
17         (cgraph_check_inline_limits): Likewise.
18         (cgraph_edge_badness): Likewise.
19         (cgraph_decide_recursive_inlining): Likewise.
20         (cgraph_decide_inlining_of_small_functions): Likewise.
21         (cgraph_decide_inlining_incrementally): Likewise.
22         (cgraph_estimate_growth): Rename to estimate_growth; move to ipa-inline-analysis.c.
23         (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
24         (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
25         (compute_inline_parameters): Likewise.
26         (compute_inline_parameters_for_current): Likewise.
27         (pass_inline_parameters): Likewise.
28         (inline_indirect_intraprocedural_analysis): Likewise.
29         (analyze_function): Rename to inline_analyze_function; likewise.
30         (add_new_function): Move to ipa-inline-analysis.c.
31         (inline_generate_summary): Likewise.
32         (inline_read_summary): Likewise.
33         (inline_write_summary): Likewise.
34         * Makefile.in (ipa-inline-analysis.c): New file.
35
36 2011-04-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
37
38         * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
39         * configure: Regenerate.
40
41 2011-04-13  Nathan Froyd  <froydnj@codesourcery.com>
42
43         * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
44         instead of tree_common.
45         (struct tree_fixed_cst, struct tree_string, struct tree_complex):
46         Likewise.
47         * tree.c (initialize_tree_contains_struct): Mark such nodes as being
48         TS_TYPED rather than TS_COMMON.
49         * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
50
51 2011-04-01  Georg-Johann Lay  <avr@gjlay.de>
52
53         PR target/45263
54         * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
55         r20 around calls of __tablejump_elpm__
56
57 2011-04-13  Jakub Jelinek  <jakub@redhat.com>
58
59         PR middle-end/48591
60         * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
61         NULL.
62         (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
63
64 2011-04-13  Bernd Schmidt  <bernds@codesourcery.com>
65
66         * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
67         (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
68         (cfi_vec): New typedef.
69         (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
70         dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
71         (cie_cfi_vec): New static variable.
72         (cie_cfi_head): Delete.
73         (add_cfi): Accept a cfi_vec * as first argument. All callers and
74         declaration changed. Use vector rather than list operations.
75         (new_cfi): Don't initialize the dw_cfi_next field.
76         (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
77         rather than list operations.
78         (lookup_cfa): Use vector rather than list operations.
79         (output_cfis): New argument upto. Accept a cfi_vec rather than
80         a dw_cfi_ref list head as argument. All callers changed.
81         Iterate over the vector using upto as a maximum index.
82         (output_all_cfis): New static function.
83         (output_fde): Use vector rather than list operations. Use the
84         new upto argument for output_cfis rather than manipulating a
85         list.
86         (dwarf2out_begin_prologue): Change initializations to match
87         new struct members.
88         (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
89         from the vector length rather than searching for the end of a list.
90         Use output_all_cfis.
91         (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
92
93 2011-04-13  Nick Clifton  <nickc@redhat.com>
94
95         * config/rx/rx.md (movmemsi): Do not use this pattern when
96         volatile pointers are involved.
97
98 2011-04-13  Uros Bizjak  <ubizjak@gmail.com>
99
100         * config/i386/sse.md (pinsrbits): Remove.
101         (sse2_packsswb): Merge with *avx_packsswb.
102         (sse2_packssdw): Merge with *avx_packssdw.
103         (sse2_packuswb): Merge with *avx_packuswb.
104         (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
105         (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
106         (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
107         (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
108         (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
109         (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
110         (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
111         (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
112         (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
113         (*sse4_1_pinsrq): Merge with *avx_pinsrq.
114         (sse2_loadld): Merge with *avx_loadld.
115         (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
116         (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
117         (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
118         (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
119         (vec_concatv2di): Merge with *vec_concatv2di_avx.
120
121 2011-04-12  Nathan Froyd  <froydnj@codesourcery.com>
122
123         * c-decl.c (union lang_tree_node): Check for TS_COMMON before
124         calling TREE_CHAIN.
125         * print-tree.c (print_node): Likewise.
126         * tree-inline.c (copy_tree_r): Likewise.
127         * c-lang.c (LANG_HOOKS_INIT_TS): Define.
128         * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
129         instead of TS_COMMON.
130         * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
131         * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
132         (copy_node_stat): Zero TREE_CHAIN only if necessary.
133         (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
134         (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
135         ...and these...
136         (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
137         * tree.h: ...here.
138         (TREE_CHAIN): Check for a TS_COMMON structure.
139         (TREE_TYPE): Check for a TS_TYPED structure.
140
141 2011-04-12  Pat Haugen <pthaugen@us.ibm.com>
142
143         * config/rs6000/rs6000.c (call_ABI_of_interest): Call
144         cgraph_get_create_node instead of cgraph_node.
145
146 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
147
148         * c-parser.c (c_parser_initelt): Updated call to
149         objc_build_message_expr.
150         (c_parser_postfix_expression): Likewise.
151
152 2011-04-12  Kai Tietz  <ktietz@redhat.com>
153
154         * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
155         MASK_MS_BITFIELD_LAYOUT bit.
156
157 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
158
159         * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
160         assert it is always true.
161         (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
162         moves.
163
164 2011-04-12  Nicola Pero  <nicola.pero@meta-innovation.com>
165
166         * c-parser.c (c_lex_one_token): Rewritten conditional used when
167         compiling Objective-C to be more efficient.
168
169 2011-04-12  Axel Freyn  <axel-freyn@gmx.de>
170
171         * opts-common.c (decode_cmdline_options_to_array): Remove variable
172         argv_copied.
173
174 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
175
176         * recog.h, genoutput.c, optabs.c: Revert last patch.
177
178 2011-04-12  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
179
180        PR target/48090
181        * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
182
183 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
184
185         * recog.h (insn_operand_data): Add an "allows_mem" field.
186         * genoutput.c (output_operand_data): Initialize it.
187         * optabs.c (maybe_legitimize_operand_same_code): New function.
188         (maybe_legitimize_operand): Use it when matching the original
189         op->value.
190
191 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
192
193         * genpreds.c (process_define_predicate): Move most processing
194         to gensupport.c.  Continue to validate the expression.
195         * genrecog.c (did_you_mean_codes, compute_predicate_codes)
196         (process_define_predicate): Move processing to gensupport.c.
197         (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
198         * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
199         (compute_predicate_codes): Moved from genrecog.c.  Add lineno
200         argument.
201         (valid_predicate_name_p): New function, split out from old
202         genpreds.c:process_define_predicate.
203         (process_define_predicate): New function, combining code from
204         old genpreds.c and genrecog.c functions.
205         (process_rtx): Call it for DEFINE_PREDICATE and
206         DEFINE_SPECIAL_PREDICATE.
207
208 2011-04-12  Richard Sandiford  <richard.sandiford@linaro.org>
209
210         * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
211         size of a '%A' memory reference.
212         (T_DREG, T_QREG): New neon_builtin_type_bits.
213         (arm_init_neon_builtins): Assert that the load and store operands
214         are neon_struct_operands.
215         (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
216         (NEON_ARG_MEMORY): New builtin_arg.
217         (neon_dereference_pointer): New function.
218         (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
219         Handle NEON_ARG_MEMORY.
220         (arm_expand_neon_builtin): Update after above interface changes.
221         Use NEON_ARG_MEMORY for loads and stores.
222         * config/arm/predicates.md (neon_struct_operand): New predicate.
223         * config/arm/iterators.md (V_two_elem): Tweak formatting.
224         (V_three_elem): Use BLKmode for accesses that have no associated mode.
225         (V_four_elem): Tweak formatting.
226         * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
227         (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
228         (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
229         (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
230         (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
231         (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
232         (neon_vst4<mode>): Replace pointer operand with a memory operand.
233         Use %A in the output template.
234         (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
235         (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
236         (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
237         the width of the memory access.  Remove post-increment.
238         * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
239
240 2011-04-12  Nick Clifton  <nickc@redhat.com>
241
242         * config/v850/v850.c (expand_prologue): Do not use the CALLT
243         instruction for interrupt handlers if the target is the basic V850
244         architecture.
245         (expand_epilogue): Likewise.
246
247 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
248
249         PR rtl-optimization/48549
250         * combine.c (propagate_for_debug): Also stop after BB_END of
251         this_basic_block.  Process LAST and just stop processing after it.
252         (combine_instructions): If last_combined_insn has been deleted,
253         set last_combined_insn to its PREV_INSN.
254
255 2011-04-12  Richard Guenther  <rguenther@suse.de>
256
257         PR tree-optimization/46076
258         * gimple.h (struct gimple_statement_call): Add fntype field.
259         (gimple_call_fntype): Adjust.
260         (gimple_call_set_fntype): New function.
261         * gimple.c (gimple_build_call_1): Set the call function type.
262         * gimplify.c (gimplify_call_expr): Preserve the function
263         type the frontend used for the call.
264         (gimplify_modify_expr): Likewise.
265         * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
266         function type.
267         * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
268         function type.
269         * tree-ssa.c (useless_type_conversion_p): Function pointer
270         conversions are useless.
271
272 2011-04-12  Martin Jambor  <mjambor@suse.cz>
273
274         * cgraph.h (cgraph_node): Remove function declaration.
275         (cgraph_create_node): Declare.
276         (cgraph_get_create_node): Likewise.
277         * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
278         Updated all callers.
279         (cgraph_node): Renamed to cgraph_create_node, assert that a node for
280         the decl does not already exist.  Call cgraph_get_create_node instead
281         of cgraph_node.
282         (cgraph_get_create_node): New function.
283         (cgraph_same_body_alias): Update comment.
284         (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
285         assert it does not return NULL.
286         (cgraph_update_edges_for_call_stmt): Likewise.
287         (cgraph_clone_edge): Likewise.
288         (cgraph_create_virtual_clone): Likewise.
289         (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
290         instead of cgraph_node.
291         (cgraph_add_new_function): Call cgraph_create_node or
292         cgraph_get_create_node instead of cgraph_node.
293         * cgraphbuild.c (record_reference): Call cgraph_get_create_node
294         instead of cgraph_node.
295         (record_eh_tables): Likewise.
296         (mark_address): Likewise.
297         (mark_load): Likewise.
298         (build_cgraph_edges): Call cgraph_get_create_node instead
299         of cgraph_node.
300         (rebuild_cgraph_edges): Likewise.
301         * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
302         instead of cgraph_node.
303         (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
304         cgraph_node.
305         * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
306         cgraph_create_node instead of cgraph_node.
307         * c-decl.c (finish_function): Call cgraph_get_create_node instead
308         of cgraph_node.
309         * lto-cgraph.c (input_node): Likewise.
310         * lto-streamer-in.c (input_function): Likewise.
311         * varasm.c (mark_decl_referenced): Likewise.
312         (assemble_alias): Likewise.
313
314 2011-04-12  Martin Jambor  <mjambor@suse.cz>
315
316         * tree-inline.c (tree_function_versioning): Call cgraph_get_node
317         instead of cgraph_node and assert it does not return NULL.
318         * lto-streamer-in.c (lto_read_body): Likewise.
319         * omp-low.c (new_omp_context): Likewise.
320         (create_task_copyfn): Likewise.
321         * tree-emutls.c (lower_emutls_function_body): Likewise.
322         * matrix-reorg.c (transform_allocation_sites): Likewise.
323
324 2011-04-12  Jakub Jelinek  <jakub@redhat.com>
325
326         PR c/48552
327         * c-typeck.c (build_asm_expr): Error out on attempts to use
328         void type outputs or inputs for constraints that allow reg or
329         don't allow memory.
330
331 2011-04-11  Chung-Lin Tang  <cltang@codesourcery.com>
332             Richard Earnshaw  <rearnsha@arm.com>
333
334         PR target/48250
335         * config/arm/arm.c (arm_legitimize_reload_address): Update cases
336         to use sign-magnitude offsets. Reject unsupported unaligned
337         cases. Add detailed description in comments.
338         * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
339         condition from TARGET_32BIT to TARGET_ARM.
340
341 2011-04-11  Nathan Froyd  <froydnj@codesourcery.com>
342
343         * tree.h (struct typed_tree): New.
344         (struct tree_common): Include it instead of tree_base.
345         (TREE_TYPE): Update for new location of type field.
346         (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
347         (DECL_USER_ALIGN, DECL_PACKED): Likewise.
348         (union tree_node): Add typed field.
349         * treestruct.def (TS_TYPED): New.
350         * lto-streamer.c (check_handled_ts_structures): Handle it.
351         * tree.c (MARK_TS_TYPED): New macro.
352         (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
353
354 2011-04-11  Eric Botcazou  <ebotcazou@adacore.com>
355
356         * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
357         (force_nonfallthru): Do not alter the loop nest if no basic block
358         was created.
359
360 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
361
362         * config/i386/sse.md (VI): New mode iterator.
363         (SSEMODEI): Remove.
364         (AVX256MODEI): Ditto.
365         (AVXMODEF4P): Ditto.
366         (avxvecpsmode): Ditto.
367         (one_cmpl<mode>2): Enable for TARGET_SSE.  Use VI mode iterator.
368         (sse2_andnot<mode>3): New expander.
369         (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
370         *avx_andnot<mode>3.  Enable for TARGET_SSE.  Use VI mode iterator.
371         (<any_logic:code><mode>3): Use VI mode iterator.
372         (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
373         and *avx_<any_logic:code><mode>3.  Use VI mode iterator.
374         (*andnottf3): Handle AVX three-operand constraints.
375         (*<any_logic:code>tf3): Handle AVX three-operand constraints.
376
377 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
378             Robert Millan  <rmh@gnu.org>
379
380         * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
381         * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
382         GNU_USER_DYNAMIC_LINKER64): Define.
383         (REG_NAME): Don't undefine.
384         (MD_UNWIND_SUPPORT): Undefine.
385         * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
386         (REG_NAME): Don't undefine.
387         (MD_UNWIND_SUPPORT): Undefine.
388         * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
389
390 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
391
392         * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
393         (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
394
395 2011-04-11  Xinliang David Li  <davidxl@google.com>
396
397         * value-profile.c (check_ic_target): New function.
398         (gimple_ic_transform): Sanity check indirect call target.
399         * gimple-low.c (gimple_check_call_args): Interface change.
400         (gimple_check_call_matching_types): New function.
401         * tree-inline.c (tree_can_inline_p): Call new function.
402
403 2011-04-11  Basile Starynkevitch  <basile@starynkevitch.net>
404
405         * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
406         tree-pretty-print.h & realmpfr.h.
407
408 2011-04-11  Vladimir Makarov  <vmakarov@redhat.com>
409
410         PR middle-end/48464
411         * ira.c (setup_pressure_classes): Fix typo in loop condition.
412         (setup_allocno_and_important_classes): Ditto.
413
414 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
415
416         * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
417         GNU_USER_DYNAMIC_LINKER.
418         * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
419         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
420         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
421         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
422         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
423         GNU_USER_TARGET_OS_CPP_BUILTINS.
424         * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
425         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
426         * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
427         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
428         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
429         LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
430         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
431         GNU_USER_TARGET_OS_CPP_BUILTINS.
432         * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
433         GNU_USER_DYNAMIC_LINKER.
434         * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
435         GNU_USER_TARGET_OS_CPP_BUILTINS.
436         * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
437         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
438         * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
439         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
440         * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
441         * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
442         GNU_USER_DYNAMIC_LINKER64): Remove.
443         * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
444         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
445         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
446         GNU_USER_DYNAMIC_LINKER.
447         * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
448         GNU_USER_TARGET_OS_CPP_BUILTINS.
449         * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
450         GNU_USER_TARGET_OS_CPP_BUILTINS.
451         * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
452         to GNU_USER_TARGET_OS_CPP_BUILTINS.
453         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
454         GNU_USER_TARGET_OS_CPP_BUILTINS.
455         (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
456         (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
457         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
458         * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
459         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
460         * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
461         GNU_USER_DYNAMIC_LINKER.
462         (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
463         GNU_USER_TARGET_OS_CPP_BUILTINS.
464         * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
465         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
466         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
467         GNU_USER_DYNAMIC_LINKER.
468         * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
469         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
470         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
471         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
472         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
473         GNU_USER_DYNAMIC_LINKER.
474         * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
475         GNU_USER_DYNAMIC_LINKERN32.
476         (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
477         GNU_USER_DYNAMIC_LINKERN32.  Change LINUX_DYNAMIC_LINKER64 to
478         GNU_USER_DYNAMIC_LINKER64.  Change LINUX_DYNAMIC_LINKER32 to
479         GNU_USER_DYNAMIC_LINKER32.
480         * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
481         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
482         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
483         GNU_USER_DYNAMIC_LINKER.
484         * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
485         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
486         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
487         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
488         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
489         * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
490         GNU_USER_DYNAMIC_LINKER32.
491         (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
492         * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
493         GNU_USER_DYNAMIC_LINKER.
494         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
495         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
496         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
497         GNU_USER_DYNAMIC_LINKER32.  Change LINUX_DYNAMIC_LINKER64 to
498         GNU_USER_DYNAMIC_LINKER64.
499         * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
500         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
501         (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
502         GNU_USER_DYNAMIC_LINKER.
503         * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
504         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
505         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
506         GNU_USER_DYNAMIC_LINKER.
507         * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
508         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
509         (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
510         GNU_USER_DYNAMIC_LINKER32.
511         (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
512         GNU_USER_DYNAMIC_LINKER64.
513         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
514         GNU_USER_DYNAMIC_LINKER64.
515         * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
516         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
517         * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
518         LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
519         (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
520
521 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
522
523         * config/i386/gnu-user.h: Copy from linux.h.  Update comments.
524         (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
525         (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
526         GNU_USER_DYNAMIC_LINKER.
527         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
528         * config/i386/gnu-user64.h: Copy from linux64.h.  Update comments.
529         (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
530         (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
531         GNU_USER_DYNAMIC_LINKER64.
532         (MD_UNWIND_SUPPORT, REG_NAME): Remove.
533         * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
534         GNU_USER_LINK_EMULATION.
535         * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
536         DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
537         ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
538         MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
539         PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
540         CPP_SPEC, CC1_SPEC): Remove.
541         (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
542         (GNU_USER_DYNAMIC_LINKER): Define.
543         (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
544         ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
545         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
546         LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
547         TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
548         STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
549         TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
550         * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
551         CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
552         TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
553         LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
554         LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
555         (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
556         (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
557         TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
558         TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
559         * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
560         GNU_USER_DYNAMIC_LINKER.
561         * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
562         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
563         * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
564         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
565         * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
566         GNU_USER_DYNAMIC_LINKER.  Unconditionally undefine and redefine.
567         * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
568         i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
569         i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
570         x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
571
572 2011-04-11  Kai Tietz  <ktietz@redhat.com>
573
574         PR target/9601
575         PR target/11772
576         * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
577         * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
578         comment.
579         (ix86_is_msabi_thiscall): Removed.
580         (ix86_is_type_thiscall): Likewise.
581         (ix86_get_callcvt): New function.
582         (ix86_comp_type_attributes): Simplify check.
583         (ix86_function_regparm): Use ix86_get_callcvt for calling
584         convention attribute checks.
585         (ix86_return_pops_args): Likewise.
586         (ix86_static_chain): Likewise.
587         (x86_this_parameter): Likewise.
588         (x86_output_mi_thunk): Likewise.
589         (ix86_function_type_abi): Optimize check for types without attributes.
590         * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
591         IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
592         IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
593         by flag-values.
594         (IX86_BASE_CALLCVT): Helper macro.
595         * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
596         Use ix86_get_callcvt for calling convention attribute checks and avoid
597         symbol-decoration for stdcall in TARGET_RTD case.
598         * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
599         Likewise.
600         (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
601         for declaration.
602
603 2011-04-11  Uros Bizjak  <ubizjak@gmail.com>
604
605         * config/i386/sse.md (VI_128): New mode iterator.
606         (VI12_128): Rename from SSEMODE12.
607         (VI14_128): Rename from SSEMODE14.
608         (VI124_128): New mode iterator.
609         (VI24_128): Rename from SSEMODE248.
610         (VI248_128): Rename from SSEMODE248.
611         (SSEMODE124C8): Remove.
612         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
613         (*sse2_<plusminus_insn><mode>3): Merge with
614         *avx_<plusminus_insn><mode>3.
615         (*mulv8hi3): Merge with *avx_mulv8hi3.
616         (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
617         (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
618         (*sse2_pmaddwd): Merge with *avx_pmaddwd.
619         (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
620         (ashr<mode>3): Merge with *avx_ashr<mode>3.
621         (lshr<mode>3): Merge with *avx_lshr<mode>3.
622         (ashl<mode>3): Merge with *avx_ashl<mode>3.
623         (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
624         (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
625         (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
626         (*<smaxmin:code>v8hi3): Ditto.
627         (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
628         (*<smaxmin:code>v16qi3): Ditto.
629         (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
630         (*sse2_eq<mode>3): Ditto.
631         (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
632         (*sse2_gt<mode>3): Ditto.
633         (vcondv2di): Split out of vcond<mode>.
634         (vconduv2di): Split out of vcondu<mode>.
635
636 2011-04-11  Richard Guenther  <rguenther@suse.de>
637
638         * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
639         before calling tree_low_cst.
640
641 2011-04-11  Richard Guenther  <rguenther@suse.de>
642
643         * stor-layout.c (layout_type): Compute all array index size operations
644         in the original type.
645         (initialize_sizetypes): Add comment.
646         (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
647
648 2011-04-11  Joseph Myers  <joseph@codesourcery.com>
649
650         * common.opt (Tbss=, Tdata=, Ttext=): New options.
651
652 2011-04-11  Martin Jambor  <mjambor@suse.cz>
653
654         * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
655         of cgraph_node, handle NULL return value.
656         (cgraph_global_info): Likewise.
657         (cgraph_rtl_info): Likewise.
658         * tree-inline.c (estimate_num_insns): Likewise.
659         * gimplify.c (unshare_body): Likewise.
660         (unvisit_body): Likewise.
661         (gimplify_body): Likewise.
662         * predict.c (optimize_function_for_size_p): Likewise.
663         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
664         (call_may_clobber_ref_p_1): Likewise.
665         * varasm.c (function_section_1): Likewise.
666         (assemble_start_function): Likewise.
667
668 2011-04-11  Martin Jambor  <mjambor@suse.cz>
669
670         * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
671         of cgraph_node.
672         * final.c (rest_of_clean_state): Likewise.
673         * gimple-iterator.c (update_call_edge_frequencies): Likewise.
674         * passes.c (pass_init_dump_file): Likewise.
675         (execute_all_ipa_transforms): Likewise.
676         (function_called_by_processed_nodes_p): Likewise.
677         * predict.c (maybe_hot_frequency_p): Likewise.
678         (probably_never_executed_bb_p): Likewise.
679         (compute_function_frequency): Likewise.
680         * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
681         (unnest_nesting_tree_1): Likewise.
682         (lower_nested_functions): Likewise.
683         * tree-optimize.c (execute_fixup_cfg): Likewise.
684         (tree_rest_of_compilation): Likewise.
685         * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
686         * tree-sra.c (ipa_early_sra): Likewise.
687         * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
688         * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
689         * ipa.c (record_cdtor_fn): Likewise.
690         * ipa-inline.c (cgraph_early_inlining): Likewise.
691         (compute_inline_parameters_for_current): Likewise.
692         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
693         * ipa-pure-const.c (local_pure_const): Likewise.
694         * ipa-split.c (split_function): Likewise.
695         (execute_split_functions): Likewise.
696         * cgraphbuild.c (build_cgraph_edges): Likewise.
697         (rebuild_cgraph_edges): Likewise.
698         (cgraph_rebuild_references): Likewise.
699         (remove_cgraph_callee_edges): Likewise.
700         * cgraphunit.c (cgraph_mark_if_needed): Likewise.
701         (verify_cgraph_node): Likewise.
702         (cgraph_analyze_functions): Likewise.
703         (cgraph_preserve_function_body_p): Likewise.
704         (save_inline_function_body): Likewise.
705         (save_inline_function_body): Likewise.
706         * tree-inline.c (copy_bb): Likewise.
707         (optimize_inline_calls): Likewise.
708
709 2011-04-11  Martin Jambor  <mjambor@suse.cz>
710
711         PR tree-optimization/48195
712         * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
713         ipa_check_create_edge_args.
714         (ipcp_generate_summary): Do not call ipa_check_create_node_params and
715         ipa_check_create_edge_args.
716         * ipa-inline.c (inline_generate_summary): Do not call
717         ipa_check_create_node_params and ipa_check_create_edge_args.
718         * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
719         ipa_check_create_edge_args.
720
721 2011-04-09  Anatoly Sokolov  <aesok@post.ru>
722
723         * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
724         instead of loop.
725         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
726         * function.c (record_hard_reg_sets): Likewise.
727         * ira.c (compute_regs_asm_clobbered): Likewise.
728         * sched-deps.c (sched_analyze_1): Likewise.
729         * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
730
731 2011-04-09  Xinliang David Li  <davidxl@google.com>
732
733         PR tree-optimization/PR48484
734         * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
735         has_valid_pred lazily
736
737 2011-04-09  Duncan Sands  <baldrick@free.fr>
738
739         * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
740
741 2011-04-08  Eric Botcazou  <ebotcazou@adacore.com>
742
743         * combine.c (combine_validate_cost): Adjust comments.  Set registered
744         cost of I0 to zero at the end, if any.
745
746 2011-04-08  Xinliang David Li  <davidxl@google.com>
747
748         * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
749         to insane profile data.
750
751 2011-04-08  Xinliang David Li  <davidxl@google.com>
752
753         * final.c (dump_basic_block_info): New function.
754         (final): Dump basic block.
755         (final_scan_insn): Remove old dump.
756
757 2011-04-08  Steven G. Kargl  <kargl@gcc.gnu.org>
758
759         PR target/47829
760         * config.gcc (i386-*-freebsd): Disable unwind table generation for
761         crtbegin/crtend.
762
763 2011-04-08  Michael Matz  <matz@suse.de>
764
765         PR middle-end/48389
766         * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
767         functions.
768         (rebuild_jump_labels): Call rebuild_jump_labels_1.
769         * rtl.h (rebuild_jump_labels_chain): Declare.
770         * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
771         insns inserted on edges.
772
773 2011-04-08  Joseph Myers  <joseph@codesourcery.com>
774
775         * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
776         * config/arm/arm-arches.def: New.
777         * config/arm/arm-opts.h: New.
778         * config/arm/genopt.sh: New.
779         * config/arm/arm-tables.opt: New (generated).
780         * config/arm/arm.c (arm_handle_option, arm_target_help,
781         TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
782         (all_architectures): Get most table contents from arm-arches.def.
783         (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
784         arm_selected_tune here.
785         * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
786         * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
787         (march=, mcpu=, mtune=): Use Enum and Var.
788         * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
789         (arm.o): Update dependencies.
790
791 2011-04-08  Basile Starynkevitch  <basile@starynkevitch.net>
792
793         * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
794         of header_file.
795         (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
796         (write_typed_alloc_defns): Likewise.
797         (main): Calls write_typed_alloc_defns with output_header.
798
799 2011-04-08  Vladimir Makarov  <vmakarov@redhat.com>
800
801         PR inline-asm/48435
802         * ira-color.c (setup_profitable_hard_regs): Add comments.
803         Don't take prohibited hard regs into account.
804         (setup_conflict_profitable_regs): Rename to
805         get_conflict_profitable_regs.
806         (check_hard_reg_p): Check prohibited hard regs.
807
808 2011-04-08  Nathan Froyd  <froydnj@codesourcery.com>
809
810         * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
811         * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
812         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
813
814 2011-04-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
815
816         PR target/48366
817         * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
818         move from floating point to shift amount register .
819         (emit_move_sequence): Remove secondary reload support for floating
820         point to shift amount amount register copies.
821         (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
822         amount register copies.
823         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
824         register, return false if mode isn't a scalar integer mode.
825         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
826
827 2011-04-08  Richard Guenther  <rguenther@suse.de>
828
829         * gimple.c (gimple_call_flags): Remove kludge.
830
831 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
832
833         * sel-sched.c (sel_region_init): Move call to
834         sel_setup_region_sched_flags after setup_current_loop_nest.
835
836 2011-04-08  Andrey Belevantsev  <abel@ispras.ru>
837
838         PR rtl-optimization/48272
839         * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
840         init_insn_reg_pressure_info.  Adjust a caller.
841         * sched-int.h (init_insn_reg_pressure_info): Declare.
842         * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
843         when sched-pressure is enabled.
844
845 2011-04-08  Richard Guenther  <rguenther@suse.de>
846
847         * gimple.c (gimple_set_modified): Do not queue calls to
848         MODIFIED_NORETURN_CALLS here ...
849         * tree-ssa-operands.c (update_stmt_operands): ... but here.
850
851 2011-04-08  Richard Guenther  <rguenther@suse.de>
852
853         PR lto/48467
854         * toplev.c (lang_dependent_init): Do not open asm_out_file
855         in WPA mode, nor perform debug machinery initialization.
856         (finalize): Do not unlink asm_out_file in WPA mode.
857
858 2011-04-08  Richard Guenther  <rguenther@suse.de>
859
860         * gimple.h (gimple_call_fntype): New function.
861         (gimple_call_return_type): Use it.
862         * expr.c (expand_expr_real_1): Use gimple_call_fntype.
863         * gimple-low.c (gimple_check_call_args): Likewise.
864         * gimple.c (gimple_call_flags): Likewise.
865         (gimple_call_arg_flags): Likewise.
866         (gimple_call_return_flags): Likewise.
867         * tree-cfg.c (verify_gimple_call): Likewise.
868         (do_warn_unused_result): Likewise.
869         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
870         * value-prof.c (gimple_ic_transform): Fix fndecl check.
871
872 2011-04-08  Dmitry Melnik  <dm@ispras.ru>
873
874         PR rtl-optimization/48235
875         * sel-sched.c (code_motion_process_successors): Recompute the last
876         insn in basic block if control flow changed.
877         (code_motion_path_driver): Ditto.  Recompute the first insn as well.
878         Update condition for ilist_remove.
879
880 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
881
882         PR rtl-optimization/48302
883         * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
884         * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument.  Use
885         it to record added preheader blocks.
886         * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument.  Pass it
887         on to sel_add_loop_preheaders.
888         (sel_region_init): Move call to setup_current_loop_nest after
889         sel_init_bbs.
890
891 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
892
893         PR target/48273
894         * cfgloop.h (loop_has_exit_edges): New helper.
895         * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
896         non-clonable.
897         * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
898         that have no exit edges.
899
900 2011-04-08  Alexander Monakov  <amonakov@ispras.ru>
901
902         PR rtl-optimization/48442
903         * sel-sched.c (init_seqno): Remove number_of_insns argument.  Update
904         all callers.  Adjust assert.
905
906 2011-04-08  Jakub Jelinek  <jakub@redhat.com>
907
908         PR tree-optimization/48377
909         * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
910         is_packed to true even for types with smaller TYPE_ALIGN than
911         TYPE_SIZE.
912
913 2011-04-08  Richard Guenther  <rguenther@suse.de>
914
915         PR bootstrap/48513
916         * doc/tm.texi: Re-generate.
917
918 2011-04-08  Wei Guozhi  <carrot@google.com>
919
920         PR target/47855
921         * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
922         * config/arm/arm.c (arm_attr_length_push_multi): New function.
923         * config/arm/arm.md (*push_multi): Change the length computation to
924         call a C function.
925
926 2011-04-08  Anatoly Sokolov  <aesok@post.ru>
927
928         * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
929         (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
930         * doc/tm.texi: Regenerate.
931         * system.h (ASM_OUTPUT_BSS): Poison.
932         * varasm.c (asm_output_bss): Remove function.
933         (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
934
935         * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
936         * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
937         * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
938         * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
939         Likewise.
940         * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
941         Likewise.
942         * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
943         Likewise.
944         * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
945
946 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
947
948         * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
949         EnumValue lines.
950
951 2011-04-07  Joseph Myers  <joseph@codesourcery.com>
952
953         * config/m68k/m68k.c (m68k_handle_option): Don't handle
954         OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
955         OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
956         OPT_mcpu32.
957         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
958         handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
959         -m68030, -m68040, -m68060, -mcpu32 and -m68332.
960         * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
961         m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
962         * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
963         (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
964         (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
965         options.  Don't map other m68k options manually.  Don't handle
966         old-style options as canonical.
967         (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
968         * doc/install.texi (m68k-*-*): Document binutils version requirement.
969
970 2011-04-07  Eric Botcazou  <ebotcazou@adacore.com>
971
972         * basic-block.h (force_nonfallthru): Move to...
973         * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
974         (force_nonfallthru): ...here.
975         * cfghooks.c (force_nonfallthru): New function.
976         * cfgrtl.c (force_nonfallthru): Rename into...
977         (rtl_force_nonfallthru): ...this.
978         (commit_one_edge_insertion): Do not set AUX field.
979         (commit_edge_insertions): Do not discover new basic blocks.
980         (rtl_cfg_hooks): Add rtl_force_nonfallthru.
981         (cfg_layout_rtl_cfg_hooks): Likewise.
982         * function.c (thread_prologue_and_epilogue_insns): Remove bogus
983         ATTRIBUTE_UNUSED.  Discover new basic blocks in the prologue insns.
984         * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
985
986 2011-04-07  Anatoly Sokolov  <aesok@post.ru>
987
988         * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
989         Remove macros.
990
991 2011-04-07  Uros Bizjak  <ubizjak@gmail.com>
992
993         * config/i386/sse.md: Update copyright year.
994         (avxcvtvecmode): Remove.
995         (sse_movhlps): Merge with *avx_movhlps.
996         (sse_movlhps): Merge with *avx_movlhps.
997         (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
998         (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
999         (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
1000         (sse_loadhps): Merge with *avx_loadhps.
1001         (sse_storelps): Merge with *avx_storelps.
1002         (sse_loadlps): Merge with *avx_loadlps.
1003         (sse_movss): Merge with *avx_movss.
1004         (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
1005         (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
1006         (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
1007         (*vec_set<mode>_0_sse2): Split multi-unit alternative.
1008         (vec_set<mode>_0): Ditto.
1009         (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
1010         (sse4_1_insertps): Merge with *avx_insertps.
1011         (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
1012         (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
1013         (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
1014         (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
1015         (sse2_storehpd): Merge with *avx_storehpd.
1016         (sse2_loadhpd): Merge with *avx_loadhpd.
1017         (sse2_loadlpd): Merge with *avx_loadlpd.
1018         (sse2_movsd): Merge with *avx_movsd.
1019         (*vec_concatv2df): Merge with *vec_concatv2df.
1020
1021 2011-04-07  Jakub Jelinek  <jakub@redhat.com>
1022
1023         PR debug/48343
1024         * combine.c (combine_instructions): Add last_combined_insn,
1025         update it if insn is after it, pass it to all try_combine calls.
1026         (try_combine): Add last_combined_insn parameter, pass it instead of
1027         i3 to propagate_for_debug.
1028
1029 2011-04-07  Nick Clifton  <nickc@redhat.com>
1030
1031         * config/mn10300/mn10300.md (movqi_internal): Add alternatives
1032         to handle MDR <-> data register transfers.
1033         (movhi_internal): Likewise.
1034
1035 2011-04-07  Alan Modra  <amodra@gmail.com>
1036
1037         * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
1038         previous stack info.
1039
1040 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1041
1042         PR target/43920
1043         * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter.  Pass dir to
1044         flow_find_cross_jump.  Swap variables to implement backward replacement.
1045         (try_crossjump_bb): Add argument to try_crossjump_to_edge.
1046
1047 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1048
1049         PR target/43920
1050         * cfgcleanup.c (walk_to_nondebug_insn): New function.
1051         (flow_find_cross_jump): Use walk_to_nondebug_insn.  Recalculate bb1
1052         and bb2.
1053         (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
1054         src1 or src2.  Redirect edges to the last basic block.  Update
1055         frequency and count on multiple basic blocks in case of fallthru.
1056
1057 2011-04-07  Tom de Vries  <tom@codesourcery.com>
1058
1059         PR target/43920
1060         * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
1061         function.
1062         (old_insns_match_p): Change return type.  Replace return false/true
1063         with return dir_none/dir_both.  Use can_replace_by.
1064         (flow_find_cross_jump): Add dir_p parameter.  Init replacement
1065         direction from dir_p.  Register replacement direction in dir, last_dir
1066         and afterlast_dir.  Handle new return type of old_insns_match_p using
1067         merge_dir.  Return replacement direction in dir_p.
1068         (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
1069         return type of old_insns_match_p.
1070         (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
1071         * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
1072         flow_find_cross_jump.
1073         * basic-block.h (enum replace_direction): New type.
1074         (flow_find_cross_jump): Add parameter to declaration.
1075
1076 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
1077
1078         * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
1079         (AVXMODEDCVTPS2DQ): Ditto.
1080         (VEC_FLOAT_MODE): Ditto.
1081         (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3.  Use VF mode
1082         iterator.  Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1083         (<any_logic:code><mode>3): Use VF mode iterator.
1084         (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
1085         Use VF mode iterator.
1086         (copysign<mode>3): Use VF mode iterator.
1087         (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3.  Handle
1088         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
1089         (*<any_logic:code><MODEF:mode>3): Merge with
1090         *avx_<any_logic:code><MODEF:mode>3.
1091         (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
1092         (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
1093         (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
1094         (avx_cvtdq2ps<avxmodesuffix>): Remove.
1095         (sse2_cvtdq2ps): Use %v modifier.
1096         (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
1097         (avx_cvtps2dq<avxmodesuffix>): Remove.
1098         (sse2_cvtps2dq): Use %v modifier.
1099         (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
1100         (avx_cvttps2dq<avxmodesuffix>): Remove.
1101         (sse2_cvttps2dq): Use %v modifier.
1102         (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
1103         (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
1104         (sse2_cvtsd2siq): Fix insn template.
1105         (sse2_cvtsd2siq_2): Ditto.
1106         (sse2_cvttsd2siq): Ditto.
1107         (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
1108         (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
1109
1110 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
1111
1112         * gcov-io.c: Use GCC Runtime Library Exception.
1113
1114 2011-04-06  Jakub Jelinek  <jakub@redhat.com>
1115
1116         PR debug/48466
1117         * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
1118         as base_reg whatever register reg has been eliminated to, instead
1119         of hardcoding STACK_POINTER_REGNUM.
1120
1121 2011-04-06  Joseph Myers  <joseph@codesourcery.com>
1122
1123         * doc/tm.texi.in: Document C target hooks as separate from general
1124         target hooks.
1125         * doc/tm.texi: Regenerate.
1126         * genhooks.c (struct hook_desc): Add docname field.
1127         (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC).  Initialize
1128         docname field.
1129         (hook_array): Include c-target.def.
1130         (emit_documentation): Use docname field in output.
1131         (emit_init_macros): Take docname argument.  Only emit definitions
1132         for hooks matching docname.
1133         (main): Expect additional arguments in all cases.  Pass argument
1134         to emit_init_macros.
1135         * target.def: Move initial macro definitions and comments to
1136         target-hooks-macros.h.
1137         (gcc_targetcm): Move to c-family/c-target.def.
1138         * target.h (targetcm): Move declaration to c-family/c-target.h.
1139         * targhooks.c (default_handle_c_option): Move to
1140         c-family/c-opts.c.
1141         * targhooks.h (default_handle_c_option): Move declaration to
1142         c-family/c-common.h.
1143         * target-hooks-macros.h: New file.
1144         * config.gcc (target_has_targetcm): Define and use to add to
1145         c_target_objs and cxx_target_objs.
1146         * config/default-c.c: New file.
1147         * config/darwin-c.c: Include c-target.h and c-target-def.h instead
1148         of target.h and target-def.h.
1149         (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
1150         (darwin_objc_construct_string, darwin_cfstring_ref_p,
1151         darwin_check_cfstring_format_arg): Make static.
1152         (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1153         TARGET_STRING_OBJECT_REF_TYPE_P,
1154         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
1155         * config/darwin-protos.h (darwin_objc_construct_string,
1156         darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
1157         declare.
1158         * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
1159         TARGET_STRING_OBJECT_REF_TYPE_P,
1160         TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
1161         * config/t-darwin (darwin-c.o): Update dependencies.
1162         * system.h (TARGET_HAS_TARGETCM): Poison.
1163         * Makefile.in (TARGET_H): Update.
1164         (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
1165         (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
1166         (default-c.o): New target.
1167         (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
1168         (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
1169         (s-tm-texi): Pass -d option to genhooks.  Also test timestamp on
1170         c-target.def.
1171         (build/genhooks.o): Update dependencies.
1172
1173 2011-04-06  Richard Guenther  <rguenther@suse.de>
1174
1175         * ipa-inline.c (enum inlining_mode): Remove.
1176         (cgraph_flatten): Use some other token.
1177         (cgraph_edge_early_inlinable_p): New function, split out from ...
1178         (cgraph_perform_always_inlining): New function, split out from ...
1179         (cgraph_decide_inlining_incrementally): ... here.
1180         (cgraph_mark_inline_edge): Adjust.
1181         (cgraph_early_inlining): Re-structure.
1182         (pass_early_inline): Require SSA form.
1183
1184 2011-04-06  Andrew Stubbs  <ams@codesourcery.com>
1185             Julian Brown  <julian@codesourcery.com>
1186             Mark Shinwell  <shinwell@codesourcery.com>
1187
1188         * config/arm/arm.h (arm_class_likely_spilled_p): Check against
1189         LO_REGS only for Thumb-1.
1190         (MODE_BASE_REG_CLASS): Restrict base registers to those which can
1191         be used in short instructions when optimising for size on Thumb-2.
1192
1193 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1194
1195         * gimple-low.c (lower_gimple_return): When not optimizing, force labels
1196         associated with user returns to be preserved.
1197
1198 2011-04-06  Tristan Gingold  <gingold@adacore.com>
1199
1200         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
1201         symbol_queue_size, DBXOUT_DECR_NESTING,
1202         (DBXOUT_DECR_NESTING_AND_RETURN): Also define
1203         if XCOFF_DEBUGGING_INFO.
1204
1205 2011-04-06  Uros Bizjak  <ubizjak@gmail.com>
1206
1207         * config/i386/i386.md (attribute isa): New.
1208         (attribute enabled): New.
1209         (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
1210         (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
1211         (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
1212         (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
1213         (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
1214         (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1215         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
1216         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
1217
1218         * config/i386/sse.md (VF): New mode iterator.
1219         (VF1): Ditto.
1220         (VF2): Ditto.
1221         (VF_128): Ditto.
1222         (SSEMODEF4): Remove.
1223         (attribute sse): Handle V8SF and V4DF modes.
1224         (<absneg:code><mode>2): Use VF mode iterator.
1225         (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2.  Use VF
1226         mode iterator.
1227         (<plusminus_insn><mode>3): Use VF mode iterator.
1228         (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
1229         Use VF mode iterator.
1230         (<sse>_vm<plusminus_insn><mode>3): Merge with
1231         *avx_vm<plusminus_insn><mode>3.  Use VF_128 mode iterator.
1232         (mul<mode>3): Use VF mode iterator.
1233         (*mul<mode>3): Merge with *avx_mul<mode>3.  Use VF mode iterator.
1234         (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3.  Use VF_128
1235         mode iterator.
1236         (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
1237         (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
1238         (<sse>_div<mode>3): Merge with *avx_div<mode>3.  Use VF mode iterator.
1239         (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3.  Use VF_128
1240         mode iterator.
1241         (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
1242         Use VF1 mode iterator.
1243         (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
1244         (sqrt<VF2:mode>2): New expander.
1245         (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
1246         (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
1247         and sqrtv2df2.  Use VF mode iterator.
1248         (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2.  Use VF_128
1249         mode iterator.
1250         (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
1251         (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
1252         Use VF1 mode iterator.
1253         (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
1254         (<smaxmin:code><mode>3): Use VF mode iterator.
1255         (*<smaxmin:code><mode>3_finite): Merge with
1256         *avx_<smaxmin:code><mode>3_finite.  Use VF mode iterator.
1257         (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
1258         (<sse>_vm<smaxmin:code><mode>2): Merge with
1259         *avx_vm<smaxmin:code><mode>2.  Use VF_128 mode iterator.
1260         (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.  Use VF
1261         mode iterator.
1262         (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.  Use VF
1263         mode iterator.
1264         (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
1265         (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
1266         (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
1267         (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
1268         (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3.  Use
1269         VF mode iterator.
1270         (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
1271         Use VF_128 mode iterator.
1272         (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3.  Use VF
1273         mode iterator.
1274         (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3.  Use
1275         VF_128 mode iterator.
1276         (vcond<mode>): Use VF mode iterator.
1277         * config/i386/predicates.md (sse_comparison_operator): Merge with
1278         avx_comparison_float_operator.  Do not declare as special_predicate.
1279         * config/i386/i386.c (struct builtin_description): Update for renamed
1280         compare patterns.
1281         (ix86_expand_args_builtin): Ditto.
1282         (ix86_expand_sse_compare_mask): Ditto.
1283
1284 2011-04-06  Richard Guenther  <rguenther@suse.de>
1285
1286         * tree-inline.c (estimate_num_insns): For calls simply account
1287         for all passed arguments and a used return value.
1288
1289 2011-04-06  Richard Guenther  <rguenther@suse.de>
1290
1291         PR tree-optimization/47663
1292         * cgraph.h (struct cgraph_edge): Add call_stmt_size and
1293         call_stmt_time fields.
1294         (cgraph_edge_inlinable_p): Declare.
1295         (cgraph_edge_recursive_p): New inline function.
1296         * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
1297         (cgraph_clone_edge): Copy it.
1298         * ipa-inline.c (cgraph_estimate_edge_time): New function.
1299         Account for call stmt time.
1300         (cgraph_estimate_time_after_inlining): Take edge argument.
1301         (cgraph_estimate_edge_growth): Account call stmt size.
1302         (cgraph_estimate_size_after_inlining): Take edge argument.
1303         (cgraph_mark_inline_edge): Adjust.
1304         (cgraph_check_inline_limits): Likewise.
1305         (cgraph_recursive_inlining_p): Remove.
1306         (cgraph_edge_badness): Use cgraph_edge_recursive_p.
1307         (cgraph_decide_recursive_inlining): Take edge argument and
1308         adjust.
1309         (cgraph_decide_inlining_of_small_functions): Do not avoid
1310         diags for recursive inlining here.
1311         (cgraph_flatten): Adjust.
1312         (cgraph_decide_inlining_incrementally): Likewise.
1313         (estimate_function_body_sizes): Remove call cost handling.
1314         (compute_inline_parameters): Initialize caller edge call costs.
1315         (cgraph_estimate_edge_growth): New function.
1316         (cgraph_estimate_growth): Use it.
1317         (cgraph_edge_badness): Likewise.
1318         (cgraph_check_inline_limits): Take an edge argument.
1319         (cgraph_decide_inlining_of_small_functions): Adjust.
1320         (cgraph_decide_inlining): Likewise.
1321         * tree-inline.c (estimate_num_insns): Only account for call
1322         return value if it is used.
1323         (expand_call_inline): Avoid diagnostics on recursive inline
1324         functions here.
1325         * lto-cgraph.c (lto_output_edge): Output edge call costs.
1326         (input_edge): Input edge call costs.
1327
1328 2011-04-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1329
1330         * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
1331
1332 2011-04-06  Jonathan Wakely  <jwakely.gcc@gmail.com>
1333
1334         * doc/invoke.texi (Spec Files): Fix typo.
1335
1336 2011-04-06  Eric Botcazou  <ebotcazou@adacore.com>
1337
1338         * profile.c (branch_prob): Move declaration of local variable.  Remove
1339         obsolete ??? comment.  Expand the location explicitly instead of using
1340         the LOCATION_FILE and LOCATION_LINE macros.
1341
1342 2011-04-06  Wei Guozhi  <carrot@google.com>
1343
1344         PR target/47855
1345         * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
1346         (arm_cond_branch): Likewise.
1347         (arm_cond_branch_reversed): Likewise.
1348         (arm_jump): Likewise.
1349         (push_multi): Likewise.
1350         * config/arm/constraints.md (Py): New constraint.
1351
1352 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
1353
1354         PR bootstrap/48471
1355         * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
1356         Move these...
1357         (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
1358         (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
1359         #ifdef DBX_DEBUGGING_INFO.
1360
1361 2011-04-05  Bernd Schmidt  <bernds@codesourcery.com>
1362
1363         PR bootstrap/48403
1364         * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
1365         if old and new states differ.
1366
1367 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
1368
1369         * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
1370         OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
1371         * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
1372         handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
1373         * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
1374         mcfv4e): Use Alias.
1375         * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
1376         ColdFire options to -mcpu= options.
1377
1378 2011-04-05  Jeff Law  <law@redhat.com>
1379
1380         * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
1381         check if BB is a successor of LOOP->header and return
1382         NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
1383
1384 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
1385
1386         * cprop.c (struct reg_use): Remove.
1387         (reg_use_table): Make an array of RTX.
1388         (find_used_regs, constprop_register, local_cprop_pass,
1389         bypass_block): Simplify users of reg_use_table.
1390         (cprop_insn): Likewise.  Iterate if copy propagation succeeded
1391         on one of the uses found by find_used_regs.
1392
1393 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
1394
1395         PR bootstrap/48469
1396         * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
1397         declaration.
1398
1399 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
1400
1401         * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
1402         as an rtx.
1403         (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
1404
1405 2011-04-05  Steven Bosscher  <steven@gcc.gnu.org>
1406
1407         PR middle-end/48441
1408         * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
1409
1410 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
1411
1412         * combine.c: Include obstack.h.
1413         (struct insn_link): Define.
1414         (uid_log_links): Adjust type.
1415         (FOR_EACH_LOG_LINK): New macro.
1416         (insn_link_obstack): Declare.
1417         (alloc_insn_link): Define.
1418         (create_log_links): Call it.  Use FOR_EACH_LOG_LINK and adjust
1419         type of link variables.
1420         (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
1421         (try_combine, record_promoted_values, distribute_notes): Likewise.
1422         (distribute_links): Likewise.  Tweak prototype.
1423         (clear_log_links): Delete.
1424         (adjust_for_new_dest): Call alloc_insn_link.
1425         * Makefile.in (combine.o): Depend on $(OBSTACK_H).
1426
1427 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
1428
1429         * gcse.c (modify_mem_list): Convert to an array of VECs.
1430         (canon_modify_mem_list, compute_transp): Tweak formatting.
1431         (alloc_gcse_mem): Likewise.  Adjust for modify_mem_list change.
1432         (load_killed_in_block_p): Likewise.
1433         (record_last_mem_set_info): Likewise.
1434         (clear_modify_mem_tables): Likewise.
1435
1436 2011-04-05  Tom de Vries  <tom@codesourcery.com>
1437
1438         PR middle-end/48461
1439         * function.c (emit_use_return_register_into_block): Only define if
1440         HAVE_return.
1441
1442 2011-04-05  Eric Botcazou  <ebotcazou@adacore.com>
1443
1444         * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
1445
1446 2011-04-05  Joseph Myers  <joseph@codesourcery.com>
1447
1448         * config/rx/rx-opts.h: New.
1449         * config/rx/rx.c (rx_cpu_type): Remove.
1450         (rx_handle_option): Don't assert that global structures are in
1451         use.  Access variables via opts pointer.  Defer most handling of
1452         OPT_mint_register_.  Use error_at.
1453         (rx_option_override): Handle deferred OPT_mint_register_ here.
1454         * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
1455         * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
1456         (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
1457         (rx_cpu_types): New Enum and EnumValue entries.
1458         (mint-register=): Use Defer and use Var accordingly.
1459
1460 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
1461
1462         * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
1463         (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
1464         * final.c (debug_flush_symbol_queue, debug_queue_symbol):
1465         Move these...
1466         (debug_free_queue, debug_nesting, symbol_queue_index):
1467         ...and these...
1468         * dbxout.c: ...to here.  Make static.
1469
1470 2011-04-05  Nathan Froyd  <froydnj@codesourcery.com>
1471
1472         * gcse.c (modify_pair): Define.  Define a VEC of it.
1473         (canon_modify_mem_list): Convert to an array of VECs.
1474         (free_insn_expr_list_list): Delete.
1475         (clear_modify_mem_tables): Call VEC_free instead.
1476         (record_last_mem_set_info): Don't modify canon_modify_mem_list.
1477         (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
1478         (canon_list_insert, compute_transp): Likewise.
1479
1480 2011-04-05  Tom de Vries  <tom@codesourcery.com>
1481
1482         PR target/43920
1483         * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
1484         for size.
1485
1486 2011-04-05  Tom de Vries  <tom@codesourcery.com>
1487
1488         PR target/43920
1489         * function.c (emit_use_return_register_into_block): New function.
1490         (thread_prologue_and_epilogue_insns): Use
1491         emit_use_return_register_into_block.
1492
1493 2011-04-05  Tom de Vries  <tom@codesourcery.com>
1494
1495         PR target/43920
1496         * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
1497         insn.
1498
1499 2011-04-05  Tom de Vries  <tom@codesourcery.com>
1500
1501         * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
1502
1503 2011-04-05  Yufeng Zhang  <yufeng.zhang@arm.com>
1504
1505         * config/arm/arm.md (define_constants for unspec): Replace with
1506         define_c_enum.
1507         (define_constants for unspecv): Replace with define_c_enum.
1508         * config/arm/neon.md (define_constants for unspec): Replace with
1509         define_c_enum.
1510
1511 2011-04-04  Richard Henderson  <rth@redhat.com>
1512
1513         PR bootstrap/48400
1514         * dwarf2out.c (output_line_info): Always emit line info from
1515         at least one section.
1516         (dwarf2out_init): Create text_section_line_info here ...
1517         (set_cur_line_info_table): ... not here.
1518
1519 2011-04-04  Vladimir Makarov  <vmakarov@redhat.com>
1520
1521         PR target/48380
1522         * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
1523         not called.
1524
1525         * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
1526
1527 2011-04-04  Steven Bosscher  <steven@gcc.gnu.org>
1528
1529         * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
1530         (expr_equiv_p): Remove.
1531         (insert_set_in_table): Look at <dest, src> pair instead of expr.
1532         (hash_scan_set): Update call to insert_set_in_table.
1533         (dump_hash_table): Dump <dest, src> pair.
1534         (lookup_set): Simplify.  Lookup <dest, src> pair.
1535         (compute_transp): Remove, fold heavily simplified code into...
1536         (compute_local_properties): ...here.  Expect COMP and TRANSP
1537         unconditionally.
1538         (find_avail_set): Take set directly from struct expr.
1539         (find_bypass-set): Likewise.
1540         (bypass_block): Likewise.
1541         (cprop_insn): Likewise.  Remove redundant INSN_P test.
1542
1543         * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
1544         checks on form of COND from find_implicit_sets to here.
1545         (find_implicit_sets): Cleanup control flow. Split critical edges
1546         if it exposes implicit sets.  Allocate/resize implicit_sets as
1547         necessary.
1548         (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
1549         changed something.  Run df_analyze after find_implicit_sets if any
1550         edges were split.  Do not allocate implicit_sets here.
1551
1552         * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
1553         (gcse_obstack): Renamed to cprop_obstack.
1554         (GNEW, GNEWVEC, GNEWVAR): Remove.
1555         (gmalloc): Remove.
1556         (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
1557         (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
1558         (gcse_alloc): Likewise, and rename to cprop_alloc.
1559         (alloc_gcse_men, free_gcse_mem): Remove.
1560         (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
1561         (compute_hash_table_work): Allocate and free reg_set_bitmap here.
1562         (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
1563
1564         * cprop.c (oprs_not_set_p): Remove.
1565         (mark_set, mark_clobber): Remove.
1566         (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
1567         (reg_not_set_p): New function.
1568         (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
1569         (cprop_insn): Likewise.
1570         (cprop_jump): Use FOR_EACH_EDGE.
1571
1572 2011-04-04  Bernd Schmidt  <bernds@codesourcery.com>
1573
1574         PR bootstrap/48403
1575         * haifa-sched.c (nonscheduled_insns_begin): New static variable.
1576         (rank_for_schedule): Use scheduled_insns vector instead of
1577         last_scheduled_insn.
1578         (ok_for_early_queue_removal): Likewise.
1579         (queue_to_ready): Search forward in nonscheduled_insns_begin if
1580         we have a dbg_cnt.
1581         (choose_ready): Likewise.
1582         (commit_schedule): Use VEC_iterate.
1583         (schedule_block): Initialize nonscheduled_insns_begin.  If we have
1584         a dbg_cnt, use it and ensure the first insn is in the ready list.
1585         (haifa_sched_init): Allocate scheduled_insns.
1586         (sched_extend_ready_list): Don't allocate it; reserve space.
1587         (haifa_sched_finish): Free it.
1588
1589 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
1590
1591         * optc-gen.awk: Always remove type from Variable entry before
1592         recording in var_seen.
1593
1594 2011-04-04  Eric Botcazou  <ebotcazou@adacore.com>
1595
1596         * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
1597         * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
1598         call to tidy_fallthru_edges.
1599
1600 2011-04-04  Joseph Myers  <joseph@codesourcery.com>
1601
1602         * doc/options.texi (ToLower): Document.
1603         * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
1604         * opts-common.c (decode_cmdline_option): Handle cl_tolower.
1605         * opts.h (cl_option): Add cl_tolower field.
1606         * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
1607         arguments with lowercase strings.
1608         * config/rx/rx.opt (mcpu=): Add ToLower.
1609         * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
1610         argument.
1611
1612 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
1613
1614         * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
1615
1616 2011-04-04  Richard Sandiford  <richard.sandiford@linaro.org>
1617
1618         * config/vax/vax.c: Include reload.h.
1619
1620 2011-04-04  Anatoly Sokolov  <aesok@post.ru>
1621
1622         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
1623         * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
1624         (sparc_preferred_reload_class): New function.
1625
1626 2011-04-04  Jakub Jelinek  <jakub@redhat.com>
1627
1628         PR debug/48401
1629         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
1630         Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
1631
1632 2011-04-03  Nathan Froyd  <froydnj@codesourcery.com>
1633
1634         * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
1635         * tree.c (initialize_tree_contains_struct): Adjust accordingly.
1636
1637 2011-04-03  Anatoly Sokolov  <aesok@post.ru>
1638
1639         * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
1640         (ASM_OUTPUT_ALIGNED_BSS): Define.
1641
1642 2011-04-03  Michael Matz  <matz@suse.de>
1643
1644         * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
1645         and next_slot members.
1646         (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
1647         lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
1648         (lto_streamer_cache_append): Declare.
1649         * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
1650         unsigned index, remove offset parameter, ensure that we append
1651         or update existing entries.
1652         (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
1653         parameter, update next_slot for append.
1654         (lto_streamer_cache_insert): Use unsigned index, remove offset_p
1655         parameter.
1656         (lto_streamer_cache_insert_at): Likewise.
1657         (lto_streamer_cache_append): New function.
1658         (lto_streamer_cache_lookup): Use unsigned index.
1659         (lto_streamer_cache_get): Likewise.
1660         (lto_record_common_node): Don't test tree_node_can_be_shared.
1661         (preload_common_node): Adjust call to lto_streamer_cache_insert.
1662         (lto_streamer_cache_delete): Don't free offsets member.
1663         * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
1664         (lto_output_string_with_length): Use lto_output_data_stream.
1665         (lto_output_tree_header): Remove ix parameter, don't write it.
1666         (lto_output_builtin_tree): Likewise.
1667         (lto_write_tree): Adjust callers to above, don't track and write
1668         offset, write unsigned index.
1669         (output_unreferenced_globals): Don't emit all global vars.
1670         (write_global_references): Use unsigned indices.
1671         (lto_output_decl_state_refs): Likewise.
1672         (write_symbol): Likewise.
1673         * lto-streamer-in.c (lto_input_chain): Move earlier.
1674         (input_function): Use unsigned index.
1675         (input_alias_pairs): Don't read and then ignore all global vars.
1676         (lto_materialize_tree): Remove ix_p parameter, don't read index,
1677         don't pass it back, use lto_streamer_cache_append.
1678         (lto_register_var_decl_in_symtab): Use unsigned index.
1679         (lto_register_function_decl_in_symtab): Likewise.
1680         (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
1681         index.
1682         (lto_get_builtin_tree): Don't read index, use
1683         lto_streamer_cache_append.
1684         (lto_read_tree): Adjust call to lto_materialize_tree.
1685
1686         * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
1687         don't use function calls in arguments to MIN.
1688
1689         * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
1690         twice.
1691
1692         * gimple.c (gimple_type_leader_entry): Mark deletable.
1693
1694 2011-04-03  Alan Modra  <amodra@gmail.com>
1695
1696         * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
1697
1698 2011-04-03  Michael Matz  <matz@suse.de>
1699
1700         * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
1701         an integer.
1702         * tree.h (tree_decl_non_common.vindex): Adjust comment.
1703
1704 2011-04-03  Michael Matz  <matz@suse.de>
1705
1706         * cgraphbuild.c (record_reference): Canonicalize constructor values.
1707         * gimple-fold.c (canonicalize_constructor_val): Accept being called
1708         without function context.
1709         * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
1710         current_function_decl and cfun.
1711
1712 2011-04-03  Michael Matz  <matz@suse.de>
1713
1714         * tree.c (decl_init_priority_insert): Don't create entry for
1715         default priority.
1716         (decl_fini_priority_insert): Ditto.
1717         (fields_compatible_p, find_compatible_field): Remove.
1718         * tree.h (fields_compatible_p, find_compatible_field): Remove.
1719         * gimple.c (gimple_compare_field_offset): Adjust block comment.
1720
1721 2011-04-03  Eric Botcazou  <ebotcazou@adacore.com>
1722
1723         * combine.c (try_combine): Remove useless local variable.
1724
1725 2011-04-03  Richard Guenther  <rguenther@suse.de>
1726             Ira Rosen  <ira.rosen@linaro.org>
1727
1728         * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
1729         non-variable offsets and compare the remaining bases of the two
1730         accesses instead of looking for exact same data-ref.
1731
1732 2011-04-02  Kai Tietz  <ktietz@redhat.com>
1733
1734         PR target/48416
1735         * i386.c (ix86_function_arg_boundary): Fix printf formatter.
1736
1737         * i386.c (ix86_is_msabi_thiscall): New helper function.
1738         (ix86_is_type_thiscall): New helper function.
1739         (ix86_comp_type_attributes): Handle thiscall for method-functions
1740         special.
1741         (init_cumulative_args): Likewise.
1742         (find_drap_reg): Likewise.
1743         (ix86_static_chain): Likewise.
1744         (x86_this_parameter): Likewise.
1745         (x86_output_mi_thunk): Likewise.
1746
1747 2011-04-01  Olivier Hainque  <hainque@adacore.com>
1748             Nicolas Setton  <setton@adacore.com>
1749             Eric Botcazou  <ebotcazou@adacore.com>
1750
1751         * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
1752         (add_gnat_descriptive_type_attribute): New function.
1753         (gen_array_type_die): Call it.
1754         (gen_enumeration_type_die): Likewise.
1755         (gen_struct_or_union_type_die): Likewise.
1756         (modified_type_die): Likewise.
1757         * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
1758         * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
1759         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
1760
1761 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
1762
1763         PR bootstrap/48148
1764         * dwarf2out.c (resolve_addr): Don't call force_decl_die
1765         if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
1766
1767         Revert:
1768         2011-03-17  Richard Guenther  <rguenther@suse.de>
1769
1770         PR bootstrap/48148
1771         * lto-cgraph.c (input_overwrite_node): Clear the abstract
1772         origin for decls in other ltrans units.
1773         (input_varpool_node): Likewise.
1774
1775 2011-04-01  Jakub Jelinek  <jakub@redhat.com>
1776
1777         PR middle-end/48335
1778         * expr.c (expand_assignment): Handle all possibilities
1779         if TO_RTX is CONCAT.
1780         * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
1781         (store_split_bit_field): If SUBREG_REG (op0) or
1782         op0 itself has smaller mode than word, return it
1783         for offset 0 and const0_rtx for out-of-bounds stores.
1784         If word is const0_rtx, skip it.
1785
1786 2011-04-01  Naveen H.S  <naveen.S@kpitcummins.com>
1787
1788         * config/h8300/h8300.c (print_operand_address): Rename to...
1789         (h8300_print_operand_address): ...this. Make static. Adjust comments.
1790         Call h8300_print_operand and h8300_print_operand_address instead of
1791         print_operand and print_operand_address. Declare.
1792         (print_operand): Renake to...
1793         (h8300_print_operand): ...this. Make static. Adjust comments.
1794         Call h8300_print_operand instead of print_operand. Declare.
1795         (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
1796         (h8300_register_move_cost): Likewise.
1797         (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
1798         TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
1799         * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
1800         PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
1801         * config/h8300/h8300-protos.h (print_operand): Delete.
1802         (print_operand_address): Delete.
1803
1804 2011-04-01  Richard Henderson  <rth@redhat.com>
1805
1806         PR 48400
1807         * dwarf2out.c (dwarf2out_source_line): Disable discriminators
1808         in strict mode before dwarf4.  Re-order tests to early out
1809         before switching sections.
1810
1811 2011-04-01  Nathan Froyd  <froydnj@codesourcery.com>
1812
1813         * config/h8300/constraints.md: New file.
1814         * config/h8300/h8300.md: Include it.  Use satisfies_constraint_J,
1815         satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
1816         (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
1817         * config/h8300/predicates.md (bit_operand): Likewise.
1818         (incdec_operand): Use satisfies_constraint_M and
1819         satisfies_constraint_O.  Don't use C code block.
1820         * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
1821         * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
1822         (compute_mov_length): Use satisfies_constraint_G.
1823         (fix_bit_operand): Use satisfies_constraint_U.
1824         * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
1825         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
1826         (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
1827         (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
1828         (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
1829         (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
1830         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
1831         (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
1832         (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
1833         (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
1834         (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
1835         (EXTRA_MEMORY_CONSTRAINT): Delete.
1836
1837 2011-04-01  Andrew Pinski  <pinskia@gmail.com>
1838             Michael Meissner  <meissner@linux.vnet.ibm.com>
1839
1840         PR target/48262
1841         * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
1842         operands, as per the specifications.
1843
1844         * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
1845         (vec_extract_evenv4sf): Ditto.
1846         (vec_extract_evenv8hi): Ditto.
1847         (vec_extract_evenv16qi): Ditto.
1848         (vec_extract_oddv4si): Ditto.
1849
1850 2011-03-31  Mark Wielaard  <mjw@redhat.com>
1851
1852         * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
1853         high_pc attribute if the CU has no associated code. Only output
1854         DW_AT_entry_pc for CU if not generating strict dwarf and
1855         dwarf_version < 4.
1856
1857 2011-04-01  Bernd Schmidt  <bernds@codesourcery.com>
1858
1859         * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
1860         * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
1861         out of ...
1862         (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
1863         * final.c (final_start_function): Call the new function rather
1864         than using a NULL argument for dwarf2out_frame_debug.
1865
1866         * ifcvt.c (cond_exec_process_insns): Disallow converting a block
1867         that contains the prologue.
1868
1869         * haifa-sched.c (queue_insn): New arg REASON.  All callers
1870         changed.  Print it in debugging output.
1871
1872         * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
1873
1874         * sched-ebb.c (begin_schedule_ready): Remove second argument.
1875         Split most of the code into...
1876         (begin_move_insn): ... here.  New function.
1877         (ebb_sched_info): Add a pointer to it.
1878         * haifa-sched.c (scheduled_insns): New static variable.
1879         (sched_extend_ready_list): Allocate it.
1880         (schedule_block): Use it to record the order of scheduled insns.
1881         Perform RTL changes to move insns only after all scheduling
1882         decisions have been made.
1883         * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
1884         begin_move_insn field.
1885         * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
1886         * sched-int.h (struct haifa_sched_info): Remove second argument
1887         from begin_schedule_ready hook.  Add new member begin_move_insn.
1888         * sched-rgn.c (begin_schedule_ready): Remove second argument.
1889         (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
1890
1891         * haifa-sched.c (prune_ready_list): New function, broken out of
1892         schedule_block.
1893         (schedule_block): Use it.
1894
1895 2011-04-01  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
1896
1897         * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
1898
1899 2011-04-01  Kai Tietz  <ktietz@redhat.com>
1900
1901         * config.gcc (*-*-mingw*): Allow as option the
1902         posix threading model.
1903         * config/i386/mingw32.h (SPEC_PTHREAD1,  SPEC_PTHREAD2):
1904         New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
1905         definition.
1906         (CPP_SPEC): Add pthread/no-pthread handling.
1907         (LIB_SPEC): Likewise.
1908         * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
1909         (LIB_SPEC): Likewise.
1910         * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
1911         flag to pass -pthread option for shared libgcc build.
1912         (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
1913         for shared libgcc build.
1914         * config/i386/t-mingw-pthread: New file.
1915         * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
1916         New define to enable use of library pthread by default.
1917         * config/i386/mingw.opt (pthread): New driver option.
1918         (no-pthread): New driver option.
1919         * config/i386/cygming.opt: Make sure trailing empty line is retained.
1920         * config/i386/mingw-w64.opt: Likewise.
1921
1922 2011-04-01  Gary Funck <gary@intrepid.com>
1923
1924         * c-decl.c (grokdeclarator): Fix formatting.
1925
1926 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
1927
1928         * expr.c (emit_block_move_via_movmem): Use n_generator_args
1929         instead of n_operands.
1930         (set_storage_via_setmem): Likewise.
1931         * optabs.c (maybe_gen_insn): Likewise.
1932         * config/arm/arm.c (arm_init_neon_builtins): Likewise.
1933         * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
1934         (mips_expand_builtin_direct): Likewise.
1935         * config/spu/spu.c (expand_builtin_args): Likewise.
1936
1937 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
1938
1939         * recog.h (insn_data_d): Add n_generator_args.
1940         * genoutput.c (data): Likewise.
1941         (output_insn_data): Print it.
1942         (max_opno, num_dups): Delete.
1943         (scan_operands): Just fill in "d->operand[...]".
1944         (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
1945
1946 2011-04-01  Richard Sandiford  <richard.sandiford@linaro.org>
1947
1948         * gensupport.h (pattern_stats): New structure.
1949         * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
1950         * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
1951         (max_operand_1, max_operand_vec): Delete.
1952         (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
1953
1954 2011-03-31  Nathan Froyd  <froydnj@codesourcery.com>
1955
1956         * emit-rtl.c (emit_pattern_after_setloc): New function.
1957         (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
1958         (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
1959         (emit_pattern_after): New function.
1960         (emit_insn_after, emit_jump_insn_after): Call it.
1961         (emit_call_insn_after, emit_debug_insn_after): Likewise.
1962         (emit_pattern_before_setloc): New function.
1963         (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
1964         (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
1965         Likewise.
1966         (emit_pattern_before): New function.
1967         (emit_insn_before, emit_jump_insn_before): Call it.
1968         (emit_call_insn_before, emit_debug_insn_before): Likewise.
1969
1970 2011-03-31  Richard Henderson  <rth@redhat.com>
1971
1972         * dwarf2out.c (dw_separate_line_info_ref): Remove.
1973         (dw_separate_line_info_entry): Remove.
1974         (enum dw_line_info_opcode): New.
1975         (dw_line_info_entry): Use it.
1976         (dw_line_info_table, dw_line_info_table_p): New.
1977         (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
1978         (line_info_table, line_info_label_num): Remove.
1979         (line_info_table_in_use): Remove.
1980         (separate_line_info_table): Remove.
1981         (separate_line_info_table_allocated): Remove.
1982         (separate_line_info_table_in_use): Remove.
1983         (LINE_INFO_TABLE_INCREMENT): Remove.
1984         (line_info_label_num): New.
1985         (cur_line_info_table): New.
1986         (text_section_line_info, cold_text_section_line_info): New.
1987         (separate_line_info): New.
1988         (SEPARATE_LINE_CODE_LABEL): Remove.
1989         (print_dwarf_line_table): Remove.
1990         (debug_dwarf): Don't dump it.
1991         (output_one_line_info_table): New.
1992         (output_line_info): Use it.
1993         (new_line_info_table): New.
1994         (set_cur_line_info_table): New.
1995         (dwarf2out_switch_text_section): Use it.
1996         (dwarf2out_begin_function): Likewise.
1997         (push_dw_line_info_entry): New.
1998         (dwarf2out_source_line): Rewrite for new line info tables.
1999         (dwarf2out_init): Remove dead initailizations.
2000
2001 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
2002
2003         * opts.h (cl_option): Add comments to fields.  Add bit-fields for
2004         various flags.
2005         (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
2006         CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
2007         CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
2008         CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
2009         (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
2010         * opt-functions.awk (flag_init, switch_bit_fields): New.
2011         (switch_flags): Don't handle flags moved to bit-fields.  Don't
2012         generate CL_MISSING_OK or CL_SAVE.
2013         * optc-gen.awk: Update to generate bit-field output as well as
2014         flags field.
2015         * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
2016         bit-field instead of CL_REJECT_DRIVER flag.
2017         * opts-common.c (generate_canonical_option,
2018         decode_cmdline_option): Use bit-fields instead of CL_* flags.
2019         * opts.c (maybe_default_option): Use cl_reject_negative bit-field
2020         instead of CL_REJECT_NEGATIVE flag.
2021         * toplev.c (print_switch_values): Use cl_report bit-field instead
2022         of CL_REPORT flag.
2023
2024 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2025
2026         * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
2027         a zero minimum index only if it is redundant.
2028
2029 2011-03-31  Vladimir Makarov  <vmakarov@redhat.com>
2030
2031         PR rtl-optimization/48381
2032         * ira-color.c (assign_hard_reg): Use hard reg set intersection
2033         instead of ira_class_hard_reg_index for calculating conflicting
2034         hard registers.
2035
2036 2011-03-31  Steven Bosscher  <steven@gcc.gnu.org>
2037
2038         * cprop.c: Clean up hash table building.
2039         (reg_avail_info): Remove.
2040         (oprs_available_p): Remove.
2041         (record_last_reg_set_info): Remove.
2042         (record_last_set_info): Remove.
2043         (reg_available_p): New function.
2044         (gcse_constant_p): Do not treat unfolded conditions as constants.
2045         (make_set_regs_unavailable): New function.
2046         (hash_scan_set): Simplify with new reg_available_p.
2047         (compute_hash_table_work): Traverse insns stream only once.
2048         Do not compute reg_avail_info. Traverse insns in reverse order.
2049         Record implicit sets after recording explicit sets from the block.
2050
2051 2011-03-31  Michael Matz  <matz@suse.de>
2052
2053         * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
2054
2055 2011-03-31  Anatoly Sokolov  <aesok@post.ru>
2056
2057         * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
2058         * config/h8300/h8300-protos.h (h8300_get_index): Remove.
2059         * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
2060         (h8300_mode_dependent_address_p): New function.
2061         (h8300_get_index): Make static.
2062
2063 2011-03-31  Jeff Law  <law@redhat.com>
2064
2065         * reload1.c (elimination_effects): Fix typo in recent change.
2066
2067         * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
2068         typo potentially leading to null pointer dereference.
2069
2070         * caller-save.c (new_saved_hard_reg): Eliminate return value.
2071         (setup_save_areas): Corresponding changes to avoid useless
2072         assignments.
2073
2074         * jump.c (reversed_comparison_code_parts): Avoid successive return
2075         statements when REVERSE_CONDITION is defined.
2076
2077         * expr.c (expand_assignment): Avoid useless assignments.
2078         (expand_expr_real_1): Likewise.
2079         (expand_expr_real_2): Avoid useless statements.
2080
2081         * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
2082
2083         * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
2084
2085         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
2086         statements.
2087
2088         * stmt.c (expand_expr_stmt): Avoid useless assignment.
2089
2090 2011-03-31  Joseph Myers  <joseph@codesourcery.com>
2091
2092         PR target/47109
2093         * doc/tm.texi.in (TARGET_VERSION): Remove.
2094         * doc/tm.texi: Regenerate.
2095         * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
2096         * collect2.c (main): Don't use TARGET_VERSION.
2097         * mips-tdump.c (main): Don't use TARGET_VERSION.
2098         * mips-tfile.c (main): Don't use TARGET_VERSION.
2099         * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
2100         * config/rs6000/vxworksae.h: Remove.
2101         * config/alpha/alpha.h (TARGET_VERSION): Remove.
2102         * config/alpha/freebsd.h (TARGET_VERSION): Remove.
2103         * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
2104         * config/alpha/netbsd.h (TARGET_VERSION): Remove.
2105         * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2106         * config/arm/arm.h (TARGET_VERSION): Remove.
2107         * config/arm/coff.h (TARGET_VERSION): Remove.
2108         * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
2109         * config/arm/elf.h (TARGET_VERSION): Remove.
2110         * config/arm/freebsd.h (TARGET_VERSION): Remove.
2111         * config/arm/linux-elf.h (TARGET_VERSION): Remove.
2112         * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
2113         * config/arm/pe.h (TARGET_VERSION): Remove.
2114         * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
2115         * config/arm/semi.h (TARGET_VERSION): Remove.
2116         * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
2117         * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
2118         * config/arm/vxworks.h (TARGET_VERSION): Remove.
2119         * config/avr/avr.h (TARGET_VERSION): Remove.
2120         * config/bfin/bfin.h (TARGET_VERSION): Remove.
2121         * config/fr30/fr30.h (TARGET_VERSION): Remove.
2122         * config/frv/frv.h (TARGET_VERSION): Remove.
2123         * config/h8300/h8300.h (TARGET_VERSION): Remove.
2124         * config/i386/cygwin.h (TARGET_VERSION): Remove.
2125         * config/i386/darwin.h (TARGET_VERSION): Remove.
2126         * config/i386/darwin64.h (TARGET_VERSION): Remove.
2127         * config/i386/djgpp.h (TARGET_VERSION): Remove.
2128         * config/i386/freebsd.h (TARGET_VERSION): Remove.
2129         * config/i386/freebsd64.h (TARGET_VERSION): Remove.
2130         * config/i386/gnu.h (TARGET_VERSION): Remove.
2131         * config/i386/i386-interix.h (TARGET_VERSION): Remove.
2132         * config/i386/i386elf.h (TARGET_VERSION): Remove.
2133         * config/i386/linux.h (TARGET_VERSION): Remove.
2134         * config/i386/linux64.h (TARGET_VERSION): Remove.
2135         * config/i386/lynx.h (TARGET_VERSION): Remove.
2136         * config/i386/mingw32.h (TARGET_VERSION): Remove.
2137         * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
2138         * config/i386/netbsd64.h (TARGET_VERSION): Remove.
2139         * config/i386/netware.h (TARGET_VERSION): Remove.
2140         * config/i386/nto.h (TARGET_VERSION): Remove.
2141         * config/i386/openbsd.h (TARGET_VERSION): Remove.
2142         * config/i386/vxworks.h (TARGET_VERSION): Remove.
2143         * config/ia64/elf.h (TARGET_VERSION): Remove.
2144         * config/ia64/freebsd.h (TARGET_VERSION): Remove.
2145         * config/ia64/hpux.h (TARGET_VERSION): Remove.
2146         * config/ia64/linux.h (TARGET_VERSION): Remove.
2147         * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
2148         * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
2149         TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2150         * config/lm32/lm32.h (TARGET_VERSION): Remove.
2151         * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
2152         * config/m32c/m32c.h (TARGET_VERSION): Remove.
2153         * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
2154         * config/m32r/m32r.h (TARGET_VERSION): Remove.
2155         * config/m68k/linux.h (TARGET_VERSION): Remove.
2156         * config/m68k/m68k.h (TARGET_VERSION): Remove.
2157         * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
2158         * config/m68k/uclinux.h (TARGET_VERSION): Remove.
2159         * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
2160         * config/mep/mep.h (TARGET_VERSION): Remove.
2161         * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
2162         MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2163         * config/mips/iris6.h (MACHINE_TYPE): Remove.
2164         * config/mips/linux.h (TARGET_VERSION): Remove.
2165         * config/mips/netbsd.h (MACHINE_TYPE): Remove.
2166         * config/mips/vxworks.h (TARGET_VERSION): Remove.
2167         * config/mmix/mmix.h (TARGET_VERSION): Remove.
2168         * config/mn10300/linux.h (TARGET_VERSION): Remove.
2169         * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
2170         * config/pa/pa.h (TARGET_VERSION): Remove.
2171         * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
2172         * config/picochip/picochip.h (TARGET_VERSION): Remove.
2173         * config/rs6000/aix.h (TARGET_VERSION): Remove.
2174         * config/rs6000/darwin.h (TARGET_VERSION): Remove.
2175         * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
2176         * config/rs6000/eabi.h (TARGET_VERSION): Remove.
2177         * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
2178         * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
2179         * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
2180         * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
2181         * config/rs6000/linux.h (TARGET_VERSION): Remove.
2182         * config/rs6000/linux64.h (TARGET_VERSION): Remove.
2183         * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
2184         * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
2185         * config/rs6000/lynx.h (TARGET_VERSION): Remove.
2186         * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
2187         * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
2188         * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
2189         * config/s390/linux.h (TARGET_VERSION): Remove.
2190         * config/s390/s390.h (TARGET_VERSION): Remove.
2191         * config/s390/tpf.h (TARGET_VERSION): Remove.
2192         * config/score/score.h (TARGET_VERSION): Remove.
2193         * config/sh/linux.h (TARGET_VERSION): Remove.
2194         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
2195         TARGET_VERSION_CPU, TARGET_VERSION): Remove.
2196         * config/sh/sh.h (TARGET_VERSION): Remove.
2197         * config/sh/sh64.h (TARGET_VERSION): Remove.
2198         * config/sh/superh.h (TARGET_VERSION): Remove.
2199         * config/sh/vxworks.h (TARGET_VERSION): Remove.
2200         * config/sparc/freebsd.h (TARGET_VERSION): Remove.
2201         * config/sparc/linux.h (TARGET_VERSION): Remove.
2202         * config/sparc/linux64.h (TARGET_VERSION): Remove.
2203         * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
2204         TARGET_NAME32, TARGET_NAME): Remove.
2205         * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
2206         * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
2207         * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
2208         * config/sparc/sysv4.h (TARGET_VERSION): Remove.
2209         * config/sparc/vxworks.h (TARGET_VERSION): Remove.
2210         * config/spu/spu.h (TARGET_VERSION): Remove.
2211         * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
2212         * config/v850/v850.h (TARGET_VERSION): Remove.
2213         * config/vax/linux.h (TARGET_VERSION): Remove.
2214         * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
2215         * config/xtensa/elf.h (TARGET_VERSION): Remove.
2216         * config/xtensa/linux.h (TARGET_VERSION): Remove.
2217
2218 2011-03-31  Eric Botcazou  <ebotcazou@adacore.com>
2219
2220         PR target/48142
2221         * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
2222         frame-related from frame-unrelated adjustments to the stack pointer.
2223
2224 2011-03-31  Jakub Jelinek  <jakub@redhat.com>
2225
2226         * common.opt (fdebug-types-section): Move earlier.
2227         * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
2228
2229 2011-03-31  Andreas Tobler  <andreast@fgznet.ch>
2230
2231         * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
2232         var.
2233
2234 2011-03-30  Nathan Froyd  <froydnj@codesourcery.com>
2235
2236         * tree.h (CASE_CHAIN): Define.
2237         * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
2238         (gimple_redirect_edge_and_branch): Likewise.
2239
2240 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2241
2242         PR middle-end/48367
2243         * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
2244         calculation.
2245
2246 2011-03-30  Jeff Law  <law@redhat.com>
2247
2248         * PR bootstrap/48371
2249         * reload1.c (reload): Fix botch in last change.
2250
2251         * reload.h (struct reload): Fix typo introduced in last change.
2252
2253 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
2254
2255         * config/arm/arm.opt (mhard-float, msoft-float): Mark
2256         Undocumented.  Remove help text.
2257         * doc/invoke.texi (ARM Options): Don't document -msoft-float and
2258         -mhard-float.
2259
2260 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
2261
2262         * doc/options.texi (NegativeAlias): Document.
2263         (Alias): Mention NegativeAlias.
2264         * opt-functions.awk: Handle NegativeAlias.
2265         * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
2266         * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
2267         * opts.h (CL_NEGATIVE_ALIAS): Define.
2268         * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
2269         (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
2270         OPT_mspe_.
2271         * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
2272         Alias entries.
2273         * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
2274         mno-spe and mno-isel instead of mspe=no and -misel=no.
2275
2276 2011-03-29  Mark Wielaard  <mjw@redhat.com>
2277
2278         * common.opt (fdebug-types-section): New flag.
2279         * doc/invoke.texi: Document new -fno-debug-types-section flag.
2280         * dwarf2out.c (use_debug_types): New define.
2281         (struct die_struct): Mark die_id with GTY desc use_debug_types.
2282         (print_die): Guard output of type unit signatures using
2283         use_debug_types.
2284         (build_abbrev_table): Replace assert of dwarf_version >= 4
2285         with assert on use_debug_types.
2286         (size_of_die): Likewise.
2287         (unmark_dies): Likewise.
2288         (value_format): Decide AT_ref_external form on use_debug_types.
2289         (output_die): Replace dwarf_version version check guard with
2290         use_debug_types where appropriate.
2291         (modified_type_die): Likewise.
2292         (gen_reference_type_die): Likewise.
2293         (dwarf2out_start_source_file): Likewise.
2294         (dwarf2out_end_source_file): Likewise.
2295         (prune_unused_types_walk_attribs): Likewise.
2296         (dwarf2out_finish): Likewise.
2297
2298 2011-03-30  Vladimir Makarov  <vmakarov@redhat.com>
2299
2300         * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
2301
2302 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
2303
2304         PR rtl-optimization/48332
2305         * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
2306         mode of input operand N and modeN to its actual mode.
2307
2308 2011-03-30  Jeff Law  <law@redhat.com>
2309
2310         * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
2311         define accessor macro.
2312         (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
2313         (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
2314         (reg_equiv_init): Likewise.
2315         (reg_equivs_size): New variable.
2316         (reg_equiv_init_size): Remove.
2317         (allocate_initial_values): Move prototype to here from....
2318         * integrate.h (allocate_initial_values): Remove prototype.
2319         * integrate.c: Include reload.h.
2320         (allocate_initial_values): Corresponding changes.
2321         * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
2322         (fix_reg_equiv_init, no_equiv): Corresponding changes.
2323         (update_equiv_regs): Corresponding changes.
2324         (ira): Corresponding changes.
2325         * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
2326         (push_secondary_reload): Corresponding changes.
2327         (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
2328         (make_memloc, find_reloads_address): Corresponding changes.
2329         (subst_reg_equivs, subst_indexed_address): Corresponding changes.
2330         (find_reloads_address_1): Corresponding changes.
2331         (find_reloads_subreg_address, subst_reloads): Corresponding changes.
2332         (refers_to_regno_for_reload_p): Corresponding changes.
2333         (reg_overlap_mentioned_for_reload_p): Corresponding changes.
2334         (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
2335         * reload1.c: Include ggc.h.
2336         (grow_reg_equivs): New function.
2337         (replace_pseudos_in, reload): Corresponding changes.
2338         (calculate_needs_all_insns, alter_regs): Corresponding changes.
2339         (eliminate_regs_1, elimination_effects): Corresponding changes.
2340         (emit_input_reload_insns, emit_output_reload_insns): Likewise.
2341         (delete_output_reload): Likewise.
2342         * caller-save.c (mark_referenced_regs): Corresponding changes.
2343         * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
2344         * frv/predicates.md (frv_load_operand): Corresponding changes.
2345         * microblaze/microblaze.c (double_memory_operand): Corresponding
2346         changes.
2347         * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
2348         * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
2349         * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
2350         * m68k/m68k.c (emit_move_sequence): Corresponding changes.
2351         * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
2352         changes.
2353         * pa/pa.c (emit_move_sequence): Corresponding changes.
2354         * vax/vax.c (nonindexed_address_p): Corresponding changes.
2355
2356 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
2357
2358         PR target/47551
2359         * config/arm/arm.c (coproc_secondary_reload_class): Handle
2360         structure modes.  Don't check neon_vector_mem_operand for
2361         vector or structure modes.
2362
2363 2011-03-30  Richard Sandiford  <richard.sandiford@linaro.org>
2364             Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
2365
2366         PR target/43590
2367         * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
2368         operand 1 and reshuffle the operands to match.
2369         (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
2370
2371 2011-03-30  Christian Schüler  <cschueler@gmx.de>
2372
2373         PR driver/48208
2374         * config/c.opt (F): Added 'Driver' to -F option.
2375
2376         PR driver/48260
2377         * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
2378           handler function.
2379         * config/darwin.opt: Added '-arch' option.
2380
2381 2011-03-30  Nick Clifton  <nickc@redhat.com>
2382
2383         * config/rx/rx.md: Add peepholes and patterns to combine
2384         extending loads and simple arithmetic instructions.
2385         * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
2386         * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
2387         * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
2388         modes to use pre-decrement and post-increment addressing.
2389         (rx_is_restricted_memory_address): Add range checking of REG+INT
2390         addresses.
2391         (rx_print_operand): Add support for %Q.  Fix handling of %Q.
2392         (rx_memory_move_cost): Adjust cost of stores.
2393         (rx_adjust_insn_length): New function.
2394
2395 2011-03-30  Jakub Jelinek  <jakub@redhat.com>
2396
2397         PR c/48305
2398         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
2399         arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
2400         matching arg00/arg01 types.
2401
2402 2011-03-30  Eric Botcazou  <ebotcazou@adacore.com>
2403
2404         * cfglayout.c (insn_locators_alloc): Initialize curr_location and
2405         last_location to UNKNOWN_LOCATION.
2406
2407 2011-03-30  H.J. Lu  <hongjiu.lu@intel.com>
2408
2409         PR target/48349
2410         * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
2411         FLOAT_SSE_REGS.
2412
2413 2011-03-30  Joseph Myers  <joseph@codesourcery.com>
2414             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2415
2416         PR bootstrap/48337
2417         * config/sparc/sparc.opt (sparc_cpu_and_features): Add
2418         Init(PROCESSOR_V7).
2419         (sparc_cpu): Likewise.
2420         * config/sparc/sparc.c (sparc_option_override): Replace 0 by
2421         PROCESSOR_V7.
2422
2423 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
2424
2425         PR target/48336
2426         PR middle-end/48342
2427         PR rtl-optimization/48345
2428         * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
2429         hard regs for given mode from profitable regs when doing secondary
2430         allocation.
2431
2432 2011-03-29  Jeff Law  <law@redhat.com>
2433
2434         PR bootstrap/48327
2435         * tree-ssa-threadupdate.c (struct redirection_data): Remove
2436         do_not_duplicate field.
2437         (lookup_redirection_data): Corresponding changes.
2438         (create_duplicates): Always create a template block.
2439         (redirect_edges): Remove code which reused the original block
2440         when it was going to become unreachable code.
2441         (thread_block): Don't set do_not_duplicate field.
2442
2443 2011-03-29  Joseph Myers  <joseph@codesourcery.com>
2444
2445         * lto-opts.c (register_user_option_p, lto_register_user_option):
2446         Make type argument unsigned.
2447         * lto-streamer.h (lto_register_user_option): Make type argument
2448         unsigned.
2449         * opth-gen.awk: Make CL_* macros unsigned.
2450         * opts-common.c (find_opt): Make lang_mask argument unsigned.
2451         * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
2452         CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
2453         CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
2454         CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
2455         CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
2456         (find_opt): Make lang_mask argument unsigned.
2457
2458 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
2459
2460         PR rtl-optimization/48331
2461         PR rtl-optimization/48334
2462         * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
2463         for any used algorithm.
2464
2465 2011-03-29  Vladimir Makarov  <vmakarov@redhat.com>
2466
2467         * ira-conflicts.c (build_object_conflicts): Add unused attribute
2468         to parent_max.
2469
2470 2011-03-29  Uros Bizjak  <ubizjak@gmail.com>
2471
2472         * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
2473         (alpha_option_override): Don't set alpha_sr_alias_set.
2474         (emit_frame_store_1): Use gen_frame_mem rather than calling
2475         set_mem_alias_set.
2476         (alpha_expand_epilogue): Ditto.
2477
2478 2011-03-29  Ira Rosen  <ira.rosen@linaro.org>
2479
2480         PR tree-optimization/48290
2481         * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
2482         vectorization, check that relevant phis in the basic block after
2483         the inner loop are really inner loop's exit phis.
2484
2485 2011-03-29  Richard Sandiford  <richard.sandiford@linaro.org>
2486
2487         PR debug/48190
2488         * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
2489         (cached_dw_loc_list_def): New structure.
2490         (cached_dw_loc_list): New typedef.
2491         (cached_dw_loc_list_table): New variable.
2492         (cached_dw_loc_list_table_hash): New function.
2493         (cached_dw_loc_list_table_eq): Likewise.
2494         (add_location_or_const_value_attribute): Take a bool cache_p.
2495         Cache the list when the parameter is true.
2496         (gen_formal_parameter_die): Update caller.
2497         (gen_variable_die): Likewise.
2498         (dwarf2out_finish): Likewise.
2499         (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
2500         while generating debug info for the decl.
2501         (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
2502         (dwarf2out_init): Initialize cached_dw_loc_list_table.
2503         (resolve_addr): Cache the result of resolving a chain of
2504         location lists.
2505
2506 2011-03-28  Vladimir Makarov  <vmakarov@redhat.com>
2507
2508         * ira-color.c (update_left_conflict_sizes_p): Don't assume that
2509         conflict object hard regset nodes have intersecting hard reg sets.
2510
2511         * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
2512         after regstat_init_n_sets_and_refs.
2513
2514         * ira.c: Add more comments at the top.
2515         (setup_stack_reg_pressure_class, setup_pressure_classes):
2516         Add comments how we compute the register pressure classes.
2517         (setup_allocno_and_important_classes): Add more comments.
2518         (setup_class_translate_array, reorder_important_classes)
2519         (setup_reg_class_relations): Add comments.
2520
2521         * ira-emit.c: Add 2011 to the Copyright line.  Add comments at the
2522         start of the file.
2523
2524         * ira-color.c: Add 2011 to the Copyright line.
2525         (assign_hard_reg):  Add more comments.
2526         (improve_allocation): Ditto.
2527
2528         * ira-costs.c: Add 2011 to the Copyright line.
2529         (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
2530         comments.
2531         (setup_regno_cost_classes_by_mode): Ditto.
2532
2533         Initial patches from ira-improv branch:
2534
2535         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
2536
2537         * ira-build.c: (ira_create_object): Remove initialization of
2538         OBJECT_PROFITABLE_HARD_REGS.  Initialize OBJECT_ADD_DATA.
2539         (ira_create_allocno): Remove initialization of
2540         ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
2541         ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
2542         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
2543         ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
2544         ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
2545         Initialize ALLOCNO_ADD_DATA.
2546         (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
2547         and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
2548         ALLOCNO_REG.
2549         (ira_flattening): Ditto.  Use ALLOCNO_EMIT_DATA instead of
2550         ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
2551
2552         * ira.c (ira_reallocate): Remove.
2553         (setup_pressure_classes): Call
2554         ira_init_register_move_cost_if_necessary.  Use
2555         ira_register_move_cost instead of ira_get_register_move_cost.
2556         (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
2557         (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
2558
2559         * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
2560         ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
2561         ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
2562         ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
2563         instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
2564         OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
2565         Fix formatting.
2566         (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
2567         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
2568         (struct allocno_color_data): New.
2569         (allocno_color_data_t): New typedef.
2570         (allocno_color_data): New definition.
2571         (ALLOCNO_COLOR_DATA): New macro.
2572         (struct object_color_data): New.
2573         (object_color_data_t): New typedef.
2574         (object_color_data): New definition.
2575         (OBJECT_COLOR_DATA): New macro.
2576         (update_copy_costs, calculate_allocno_spill_cost): Call
2577         ira_init_register_move_cost_if_necessary.  Use
2578         ira_register_move_cost instead of ira_get_register_move_cost.
2579         (move_spill_restore, update_curr_costs): Ditto.
2580         (allocno_spill_priority): Make it inline.
2581         (color_pass): Allocate and free allocno_color_dat and object_color_data.
2582         (struct coalesce_data, coalesce_data_t): New.
2583         (allocno_coalesce_data): New definition.
2584         (ALLOCNO_COALESCE_DATA): New macro.
2585         (merge_allocnos, coalesced_allocno_conflict_p): Use
2586         ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
2587         ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
2588         (coalesce_allocnos): Ditto.
2589         (setup_coalesced_allocno_costs_and_nums): Ditto.
2590         (collect_spilled_coalesced_allocnos): Ditto.
2591         (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
2592         (setup_slot_coalesced_allocno_live_ranges): Ditto.
2593         (coalesce_spill_slots): Ditto.
2594         (ira_sort_regnos_for_alter_reg): Ditto.  Allocate, initialize and
2595         free allocno_coalesce_data.
2596
2597         * ira-conflicts.c: Fix formatting.
2598         (process_regs_for_copy): Call
2599         ira_init_register_move_cost_if_necessary.  Use
2600         ira_register_move_cost instead of ira_get_register_move_cost.
2601         (build_object_conflicts): Optimize.
2602
2603         * ira-costs.c (record_reg_classes): Optimize.  Call
2604         ira_init_register_move_cost_if_necessary.  Use
2605         ira_register_move_cost, ira_may_move_in_cost, and
2606         ira_may_move_out_cost instead of ira_get_register_move_cost and
2607         ira_get_may_move_cost.
2608         (record_address_regs): Ditto.
2609         (scan_one_insn): Optimize.
2610         (find_costs_and_classes): Optimize.
2611         (process_bb_node_for_hard_reg_moves): Call
2612         ira_init_register_move_cost_if_necessary.  Use
2613         ira_register_move_cost instead of ira_get_register_move_cost.
2614
2615         * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
2616         ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
2617         ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
2618         (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
2619         definitions.
2620         (ira_initiate_emit_data, ira_finish_emit_data)
2621         (create_new_allocno): New functions.
2622         (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
2623         (emit_move_list): Call ira_init_register_move_cost_if_necessary.
2624         Use ira_register_move_cost instead of ira_get_register_move_cost.
2625
2626         * ira-int.h: Fix some comments.
2627         (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
2628         (struct object_hard_regs, struct object_hard_regs_node): Ditto.
2629         (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
2630         hard_regs_subnodes_start, hard_regs_subnodes_num.  Add new member
2631         add_data.
2632         (struct ira_allocno): Make mode and aclass a bitfield.  Move other
2633         bitfield after mode.  Make hard_regno a short int.  Make
2634         hard_regno short.  Remove first_coalesced_allocno and
2635         next_coalesced_allocno.  Move mem_optimized_dest_p,
2636         somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
2637         into struct ira_emit_data.  Remove in_graph_p, may_be_spilled_p,
2638         available_regs_num, next_bucket_allocno, prev_bucket_allocno,
2639         temp, colorable_p.  Add new member add_data.
2640         (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
2641         (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
2642         (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
2643         (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
2644         (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
2645         (ALLOCNO_ADD_DATA): New macro.
2646         (ira_emit_data_t): New typedef.
2647         (struct ira_emit_data): New.  Move mem_optimized_dest_p,
2648         somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
2649         from struct ira_allocno.
2650         (ALLOCNO_EMIT_DATA): New macro.
2651         (ira_allocno_emit_data, allocno_emit_reg): New.
2652         (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
2653         (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
2654         (OBJECT_ADD_DATA): New macro.
2655         (ira_reallocate): Remove.
2656         (ira_initiate_emit_data, ira_finish_emit_data): New.
2657         (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
2658         (ira_init_register_move_cost_if_necessary): New.
2659         (ira_object_conflict_iter_next): Merge into
2660         ira_object_conflict_iter_cond.
2661         (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
2662
2663         * ira-live.c: (process_single_reg_class_operands): Call
2664         ira_init_register_move_cost_if_necessary.  Use
2665         ira_register_move_cost instead of ira_get_register_move_cost.
2666
2667         2010-08-13  Vladimir Makarov  <vmakarov@redhat.com>
2668
2669         * ira-int.h (struct target_ira_int): Remove x_cost_classes.
2670
2671         * ira-costs.c: Fix formatting.
2672         (cost_classes, cost_classes_num): Remove.
2673         (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
2674         (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
2675         (cost_classes_del, cost_classes_htab): New.
2676         (cost_classes_aclass_cache, cost_classes_mode_cache): New.
2677         (initiate_regno_cost_classes, setup_cost_classes): New.
2678         (setup_regno_cost_classes_by_aclass): New.
2679         (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
2680         (record_reg_classes): Use regno_cost_classes instead of
2681         cost_classes.  Move checking opposite operand up.
2682         (record_address_regs): Use regno_cost_classes
2683         instead of cost_classes.
2684         (scan_one_insn): Ditto.  Use always general register.
2685         (print_allocno_costs): Use regno_cost_classes instead of
2686         cost_classes.
2687         (print_pseudo_costs): Ditto.  Use Reg_N_REFS.
2688         (find_costs_and_classes): Set up cost classes for each registers.
2689         Use also their mode for this.  Use regno_cost_classes instead of
2690         cost_classes.
2691         (setup_allocno_class_and_costs): Use regno_cost_classes instead of
2692         cost_classes.
2693         (free_ira_costs, ira_init_costs): Don't use cost_classes.
2694         (ira_costs, ira_set_pseudo_classes): Call
2695         initiate_regno_cost_classes and finish_regno_cost_classes.
2696
2697         2010-10-04  Vladimir Makarov  <vmakarov@redhat.com>
2698
2699         * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
2700
2701         * target.def (ira_cover_classes): Remove.
2702
2703         * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
2704
2705         * doc/tm.texi.in: Ditto.
2706
2707         * ira-conflicts.c: Remove mentioning cover classes from the file.
2708         Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Use
2709         ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST.  Fix formatting.
2710
2711         * targhooks.c (default_ira_cover_classes): Remove.
2712
2713         * targhooks.h (default_ira_cover_classes): Ditto.
2714
2715         * haifa-sched.c: Remove mentioning cover classes from the file.
2716         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
2717         ira_pressure_classes and ira_pressure_classes_num instead of
2718         ira_reg_class_cover_size and ira_reg_class_cover.  Use
2719         sched_regno_pressure_class instead of sched_regno_cover_class.
2720         (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
2721         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2722
2723         * ira-int.h: Add 2010 to Copyright.  Remove mentioning cover
2724         classes from the file.
2725         (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
2726         (struct object_hard_regs, struct object_hard_regs_node): New.
2727         (struct ira_object): New members profitable_hard_regs,
2728         hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
2729         (struct ira_allocno): Rename cover_class to aclass.  Rename
2730         cover_class_cost and updated_cover_class_cost to class_cost and
2731         updated_class_cost.  Remove splay_removed_p and
2732         left_conflict_size.  Add new members colorable_p.
2733         (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
2734         (ALLOCNO_COLORABLE_P): New macro.
2735         (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
2736         (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
2737         Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
2738         (OBJECT_...): Rename parameter C to O.
2739         (OBJECT_PROFITABLE_HARD_REGS): New macro.
2740         (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
2741         (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
2742         (struct target_ira_int): New members x_ira_max_memory_move_cost,
2743         x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
2744         x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
2745         x_ira_reg_pressure_class_p, x_ira_important_class_nums,
2746         x_ira_reg_class_superunion.  Rename x_prohibited_class_mode_reg to
2747         x_ira_prohibited_class_mode_reg.  Rename x_ira_reg_class_union to
2748         x_ira_reg_class_subunion.
2749         (ira_max_memory_move_cost, ira_max_register_move_cost)
2750         (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
2751         (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
2752         (ira_important_class_nums, ira_reg_class_superunion): New macros.
2753         (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
2754         (ira_reg_class_union): Rename to ira_reg_class_subunion.
2755         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
2756         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
2757         (ira_tune_allocno_costs_and_cover_classes): Rename to
2758         ira_tune_allocno_costs.
2759         (ira_debug_hard_regs_forest): New.
2760         (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
2761         (ira_object_conflict_iter_next): Fix comments.
2762         (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
2763         (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
2764         cover_class to aclass.
2765         (ira_allocate_and_accumulate_costs): Ditto.
2766         (ira_allocate_and_set_or_copy_costs): Ditto.
2767
2768         * opts.c (decode_options): Remove ira_cover_class check.
2769
2770         * ira-color.c: Remove mentioning cover classes from the file.  Use
2771         ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
2772         instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
2773         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
2774         (splay-tree.h): Remove include.
2775         (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
2776         before copy_freq_compare_func.
2777         (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
2778         (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
2779         New definitions.
2780         (hard_regs_roots, hard_regs_node_vec): Ditto.
2781         (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
2782         (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
2783         (finish_object_hard_regs, object_hard_regs_compare): Ditto.
2784         (create_new_object_hard_regs_node): Ditto.
2785         (add_new_object_hard_regs_node_to_forest): Ditto.
2786         (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
2787         (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
2788         Ditto.
2789         (print_hard_reg_set, print_hard_regs_subforest): Ditto.
2790         (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
2791         (remove_unused_object_hard_regs_nodes): Ditto.
2792         (enumerate_object_hard_regs_nodes): Ditto.
2793         (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
2794         (object_hard_regs_subnode_t): Ditto.
2795         (struct object_hard_regs_subnode): Ditto.
2796         (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
2797         (setup_object_hard_regs_subnode_index): Ditto.
2798         (get_object_hard_regs_subnodes_num): Ditto.
2799         (form_object_hard_regs_nodes_forest): Ditto.
2800         (finish_object_hard_regs_nodes_tree): Ditto.
2801         (finish_object_hard_regs_nodes_forest): Ditto.
2802         (allocnos_have_intersected_live_ranges_p): Rename to
2803         allocnos_conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
2804         (pseudos_have_intersected_live_ranges_p): Rename to
2805         conflict_by_live_ranges_p.  Move before copy_freq_compare_func.
2806         (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
2807         (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
2808         (update_copy_costs): Remove assert.  Skip cost update if the hard
2809         reg does not belong the class.
2810         (assign_hard_reg): Process only profitable hard regs.
2811         (uncolorable_allocnos_num): Make it scalar.
2812         (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
2813         and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
2814         and ira_reg_class_max_nregs.
2815         (bucket_allocno_compare_func): Check frequency first.
2816         (sort_bucket): Add compare function as a parameter.
2817         (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
2818         (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
2819         (push_allocno_to_stack): Rewrite for checking new allocno
2820         colorability.
2821         (remove_allocno_from_bucket_and_push): Print cost too.  Remove assert.
2822         (push_only_colorable): Pass new parameter to sort_bucket.
2823         (push_allocno_to_spill): Remove.
2824         (allocno_spill_priority_compare): Make it inline and rewrite.
2825         (splay_tree_allocate, splay_tree_free): Remove.
2826         (allocno_spill_sort_compare): New function.
2827         (push_allocnos_to_stack): Sort allocnos for spilling once.  Don't
2828         build and use splay tree.  Choose first allocno in uncolorable
2829         allocno bucket to spill.  Remove setting spill cost.
2830         (all_conflicting_hard_regs): Remove.
2831         (setup_allocno_available_regs_num): Check only profitable hard
2832         regs.  Print info about hard regs nodes.
2833         (setup_allocno_left_conflicts_size): Remove.
2834         (put_allocno_into_bucket): Don't call
2835         setup_allocno_left_conflicts_size.  Use setup_left_conflict_sizes_p.
2836         (improve_allocation): New.
2837         (color_allocnos): Call setup_profitable_hard_regs,
2838         form_object_hard_regs_nodes_forest, improve_allocation,
2839         finish_object_hard_regs_nodes_forest.  Setup spill cost.
2840         (print_loop_title): Use pressure classes.
2841         (color_allocnso): Ditto.
2842         (do_coloring): Remove allocation and freeing splay_tree_node_pool
2843         and allocnos_for_spilling.
2844         (ira_sort_regnos_for_alter_reg): Don't setup members
2845         {first,next}_coalesced_allocno.
2846         (color): Remove allocating and freeing removed_splay_allocno_vec.
2847         (fast_allocation): Use ira_prohibited_class_mode_regs instead of
2848         prohibited_class_mode_regs.
2849
2850         * ira-lives.c: Remove mentioning cover classes from the file.  Fix
2851         formatting.
2852         (update_allocno_pressure_excess_length): Use pressure classes.
2853         (inc_register_pressure, dec_register_pressure): Check for pressure
2854         class.
2855         (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
2856         pressure class.  Use ira_reg_class_nregs instead of
2857         ira_reg_class_max_nregs.
2858         (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
2859         (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
2860         (single_reg_class): Use ira_reg_class_nregs instead of
2861         ira_reg_class_max_nregs.
2862         (process_bb_node_lives): Use pressure classes.
2863
2864         * ira-emit.c: Remove mentioning cover classes from the file.  Use
2865         ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS.  Fix formatting.
2866         (change_loop): Use pressure classes.
2867         (modify_move_list): Call ira_set_allocno_class instead of
2868         ira_set_allocno_cover_class.
2869
2870         * ira-build.c: Remove mentioning cover classes from the file.  Use
2871         ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
2872         ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST.  Use
2873         ALLOCNO_UPDATED_CLASS_COST instead of
2874         ALLOCNO_UPDATED_COVER_CLASS_COST.  Fix formatting.
2875         (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
2876         (ira_create_allocno): Remove initialization of
2877         ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE.  Initialize
2878         ALLOCNO_COLORABLE_P.
2879         (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
2880         Update conflict regs for the objects.
2881         (create_cap_allocno): Remove assert.  Don't propagate
2882         ALLOCNO_AVAILABLE_REGS_NUM.
2883         (ira_free_allocno_costs): New function.
2884         (finish_allocno): Change a part of code into call of
2885         ira_free_allocno_costs.
2886         (low_pressure_loop_node_p): Use pressure classes.
2887         (object_range_compare_func): Don't compare classes.
2888         (setup_min_max_conflict_allocno_ids): Ditto.
2889
2890         * loop-invariant.c: Remove mentioning cover classes from the file.
2891         Use ira_pressure_classes and ira_pressure_classes_num instead of
2892         ira_reg_class_cover_size and ira_reg_class_cover.  Fix formatting.
2893         (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
2894         Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2895         Use reg_allocno_class instead of reg_cover_class.
2896         (get_inv_cost): Use instead ira_stack_reg_pressure_class of
2897         STACK_REG_COVER_CLASS.
2898         (get_regno_cover_class): Rename to get_regno_pressure_class.
2899         (move_loop_invariants): Initialize and finalize regstat.
2900
2901         * ira.c: Remove mentioning cover classes from the file.  Add
2902         comments about coloring without cover classes.  Use ALLOCNO_CLASS
2903         instead of ALLOCNO_COVER_CLASS.  Fix formatting.
2904         (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
2905         setup_class_subset_and_memory_move_costs.
2906         (setup_stack_reg_pressure_class, setup_pressure_classes): New.
2907         (setup_cover_and_important_classes): Rename to
2908         setup_allocno_and_important_classes.
2909         (setup_class_translate_array): New.
2910         (setup_class_translate): Call it for allocno and pressure classes.
2911         (cover_class_order): Rename to allocno_class_order.
2912         (comp_reg_classes_func): Use ira_allocno_class_translate instead
2913         of ira_class_translate.
2914         (reorder_important_classes): Set up ira_important_class_nums.
2915         (setup_reg_class_relations): Set up ira_reg_class_superunion.
2916         (print_class_cover): Rename to print_classes.  Add parameter.
2917         (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
2918         Print pressure classes too.
2919         (find_reg_class_closure): Rename to find_reg_classes.  Don't call
2920         setup_reg_subclasses.
2921         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
2922         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
2923         (setup_prohibited_class_mode_regs): Use
2924         ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
2925         (clarify_prohibited_class_mode_regs): New function.
2926         (ira_init_register_move_cost): Set up ira_max_register_move_cost,
2927         ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
2928         (ira_init_once): Initialize them.
2929         (free_register_move_costs): Process them.
2930         (ira_init): Move calls of find_reg_classes and
2931         setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
2932         Call clarify_prohibited_class_mode_regs.
2933         (ira_no_alloc_reg): Remove.
2934         (too_high_register_pressure_p): Use pressure classes.
2935
2936         * sched-deps.c: Remove mentioning cover classes from the file.
2937         Use ira_reg_pressure_cover instead of ira_reg_class_cover.  Use
2938         ira_pressure_classes and ira_pressure_classes_num instead of
2939         ira_reg_class_cover_size and ira_reg_class_cover.
2940         (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
2941         sched_regno_pressure_class instead of sched_regno_cover_class.
2942         (mark_insn_pseudo_birth, mark_pseudo_death): Ditto.  Use
2943         ira_reg_class_max_nregs instead of ira_reg_class_nregs.
2944
2945         * ira.h: Add 2010 to Copyright.
2946         (ira_no_alloc_reg): Remove external.
2947         (struct target_ira): Rename x_ira_hard_regno_cover_class,
2948         x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
2949         x_ira_class_translate to x_ira_hard_regno_allocno_class,
2950         x_ira_allocno_classes_num, x_ira_allocno_classes, and
2951         x_ira_allocno_class_translate.  Add x_ira_pressure_classes_num,
2952         x_ira_pressure_classes, x_ira_pressure_class_translate, and
2953         x_ira_stack_reg_pressure_class.  Rename x_ira_reg_class_nregs to
2954         x_ira_reg_class_max_nregs.  Add x_ira_reg_class_min_nregs and
2955         x_ira_no_alloc_regs.
2956         (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
2957         (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
2958         ira_allocno_classes_num and ira_allocno_classes.
2959         (ira_class_translate): Rename to ira_allocno_class_translate.
2960         (ira_pressure_classes_num, ira_pressure_classes): New definitions.
2961         (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
2962         (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
2963         (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
2964         (ira_no_alloc_regs): New.
2965
2966         * ira-costs.c: Add 2010 to Copyright.  Remove mentioning cover
2967         classes from the file.  Use ALLOCNO_CLASS instead of
2968         ALLOCNO_COVER_CLASS.  Use ALLOCNO_CLASS_COST instead of
2969         ALLOCNO_COVER_CLASS_COST.
2970         (regno_cover_class): Rename to regno_aclass.
2971         (record_reg_classes): Use ira_reg_class_subunion instead of
2972         ira_reg_class_union.
2973         (record_address_regs): Check overflow.
2974         (scan_one_insn): Ditto.
2975         (print_allocno_costs): Print total mem cost fore regional allocation.
2976         (print_pseudo_costs): Use REG_N_REFS.
2977         (find_costs_and_classes): Use classes intersected with them on the
2978         1st pass. Check overflow.  Use ira_reg_class_subunion instead of
2979         ira_reg_class_union.  Use ira_allocno_class_translate and
2980         regno_aclass instead of ira_class_translate and regno_cover_class.
2981         Modify code for finding regno_aclass.  Setup preferred classes for
2982         the next pass.
2983         (setup_allocno_cover_class_and_costs): Rename to
2984         setup_allocno_class_and_costs.  Use regno_aclass instead of
2985         regno_cover_class.  Use ira_set_allocno_class instead of
2986         ira_set_allocno_cover_class.
2987         (init_costs, finish_costs): Use regno_aclass instead of
2988         regno_cover_class.
2989         (ira_costs): Use setup_allocno_class_and_costs instead of
2990         setup_allocno_cover_class_and_costs.
2991         (ira_tune_allocno_costs_and_cover_classes): Rename to
2992         ira_tune_allocno_costs.  Check overflow.  Skip conflict hard regs
2993         by processing objects.  Use ira_reg_class_max_nregs instead of
2994         ira_reg_class_nregs.
2995
2996         * rtl.h (reg_cover_class): Rename to reg_allocno_class.
2997
2998         * sched-int.h: Remove mentioning cover classes from the file.
2999         (sched_regno_cover_class): Rename to sched_regno_pressure_class.
3000
3001         * reginfo.c: Add 2010 to Copyright.  Remove mentioning cover
3002         classes from the file.
3003         (struct reg_pref): Rename coverclass into allocnoclass.
3004         (reg_cover_class): Rename to reg_allocno_class.
3005
3006         * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
3007
3008         * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
3009
3010         * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
3011
3012         * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
3013
3014         * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
3015
3016         * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
3017
3018         * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
3019
3020         * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
3021
3022         * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
3023
3024         * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
3025
3026         * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
3027         (i386_ira_cover_classes): Ditto.
3028
3029         * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
3030
3031         * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
3032
3033         * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
3034
3035         * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
3036
3037         * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
3038
3039         * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
3040
3041         * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
3042         (mips_ira_cover_classes): Ditto.
3043
3044         * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
3045
3046         * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
3047
3048         * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
3049
3050         * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
3051
3052         * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
3053
3054         * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
3055         (IRA_COVER_CLASSES_VSX): Ditto.
3056
3057         * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
3058         (rs6000_ira_cover_classes): Ditto.
3059
3060         * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
3061
3062         * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
3063
3064         * config/score/score.h (IRA_COVER_CLASSES): Ditto.
3065
3066         * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
3067
3068         * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
3069
3070         * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
3071
3072         * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
3073
3074         * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
3075
3076         * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
3077
3078         * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
3079
3080 2011-03-29  Jakub Jelinek  <jakub@redhat.com>
3081
3082         PR debug/48253
3083         * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
3084         dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
3085         dw_fde_unlikely_section_end_label, cold_in_std_section,
3086         dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
3087         Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
3088         fields.
3089         (output_fde): Use dw_fde_second_{begin,end} if second is
3090         true, otherwise dw_fde_{begin,end}.
3091         (output_call_frame_info): Test dw_fde_second_begin != NULL
3092         instead of dw_fde_switched_sections.
3093         (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
3094         fields, initialize new fields.  Initialize in_std_section
3095         unconditionally from the first partition.
3096         (dwarf2out_end_epilogue): Don't override dw_fde_end when
3097         dw_fde_second_begin is non-NULL.
3098         (dwarf2out_switch_text_section): Stop initializing removed
3099         dw_fde_struct fields, initialize new fields, initialize
3100         also dw_fde_end here.  Set dw_fde_switch_cfi even when
3101         dwarf2out_do_cfi_asm ().  Call var_location_switch_text_section.
3102         (struct var_loc_list_def): Add last_before_switch field.
3103         (arange_table, arange_table_allocated, arange_table_in_use,
3104         ARANGE_TABLE_INCREMENT, add_arange): Removed.
3105         (size_of_aranges): Count !in_std_section and !second_in_std_section
3106         hunks in fdes, instead of looking at arange_table_in_use.
3107         (output_aranges): Add aranges_length argument, don't call
3108         size_of_aranges here.  Instead of using aranges_table*
3109         emit ranges for fdes when !in_std_section resp.
3110         !second_in_std_section.
3111         (dw_loc_list): Break ranges crossing section switch.
3112         (convert_cfa_to_fb_loc_list): Likewise.  If switched sections,
3113         use dw_fde_second_end instead of dw_fde_end as end of last range.
3114         (gen_subprogram_die): Don't call add_arange.  Use
3115         dw_fde_{begin,end} for first partition and if switched
3116         section dw_fde_second_{begin,end} for the second.
3117         (var_location_switch_text_section_1,
3118         var_location_switch_text_section): New functions.
3119         (dwarf2out_begin_function): Initialize cold_text_section even
3120         when function_section () isn't text_section.
3121         (prune_unused_types): Don't walk arange_table.
3122         (dwarf2out_finish): Don't needlessly test
3123         flag_reorder_blocks_and_partition when testing cold_text_section_used.
3124         If info_section_emitted, call size_of_aranges and if it indicates
3125         non-empty .debug_aranges, call output_aranges with the computed
3126         size.  Stop using removed dw_fde_struct fields, use
3127         dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
3128         for second.
3129
3130         PR debug/48203
3131         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
3132         create ENTRY_VALUE if incoming or address of incoming's MEM
3133         is a hard REG.
3134         * dwarf2out.c (mem_loc_descriptor): Don't emit
3135         DW_OP_GNU_entry_value of DW_OP_fbreg.
3136         * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
3137         on ENTRY_VALUE is able to find the canonical parameter VALUE.
3138         * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
3139         rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
3140         ENTRY_VALUE_EXPs.
3141         (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
3142         is a REG_P or MEM_P with REG_P address, compute hash directly
3143         instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
3144         (preserve_only_constants): Don't clear VALUES forwaring
3145         ENTRY_VALUE to some other VALUE.
3146
3147 2011-03-28  Richard Sandiford  <richard.sandiford@linaro.org>
3148
3149         * builtins.c (expand_builtin_memset_args): Use gen_int_mode
3150         instead of GEN_INT.
3151
3152 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
3153
3154         * cfgexpand.c (expand_gimple_cond): Always set the source location and
3155         block before expanding the statement.
3156         (expand_gimple_stmt_1): Likewise.  Set them here...
3157         (expand_gimple_stmt): ...and not here.  Tidy.
3158         * cfglayout.c (curr_insn_locator): Return 0 if the current location is
3159         unknown.
3160
3161 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
3162
3163         * Makefile.in: New rule for cprop.o.
3164         * gcse.c: Move constant/copy propagation to cprop.c.
3165         (compute_local_properties): Only handle expression tables.
3166         (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
3167         (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
3168         (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
3169         next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
3170         mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
3171         compute_cprop_data, find_used_regs, try_replace_reg,
3172         find_avail_set, cprop_jump, constprop_register, cprop_insn,
3173         local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
3174         fis_get_condition, implicit_set_cond_p, find_implicit_sets,
3175         find_bypass_set, reg_killed_on_edge, bypass_block,
3176         bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
3177         execute_rtl_cprop, pass_rtl_cprop): Move to...
3178         * cprop.c: ...here.  New file, constant/copy propagation for RTL
3179         moved from gcse.c to here with minor cleanups in duplicated code.
3180
3181 2011-03-28  H.J. Lu  <hongjiu.lu@intel.com>
3182
3183         * config/i386/i386.c (flag_opts): Fix a typo in
3184         -mavx256-split-unaligned-store.
3185
3186 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
3187
3188         * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3189         LIBCALL_VALUE): Remove macros.
3190         * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3191         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3192         (h8300_function_value, h8300_libcall_value,
3193         h8300_function_value_regno_p): New functions.
3194
3195 2011-03-28  Anatoly Sokolov  <aesok@post.ru>
3196
3197         * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
3198
3199 2011-03-28  Jeff Law  <law@redhat.com>
3200
3201         * tree-ssa-threadupdate.c (redirect_edges): Call
3202         create_edge_and_update_destination_phis as needed.
3203         (create_edge_and_update_destination_phis): Accept new BB argument.
3204         All callers updated.
3205         (thread_block): Do not update the profile when threading around
3206         intermediate blocks.
3207         (thread_single_edge): Likewise.
3208         (determine_bb_domination_status): If BB is not a successor of the
3209         loop header, return NONDOMINATING.
3210         (register_jump_thread): Note when we register a jump thread around
3211         an intermediate block.
3212         * tree-ssa-threadedge.c (thread_around_empty_block): New function.
3213         (thread_across_edge): Use it.
3214
3215 2011-03-28  Tristan Gingold  <gingold@adacore.com>
3216
3217         * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
3218         when for_return is 2.
3219
3220 2011-03-28  Jeff Law  <law@redhat.com>
3221
3222         * var-tracking.c (canonicalize_values_mark): Delete unused
3223         lhs assignment.
3224         (canonicalize_values_star, set_variable_part): Likewise.
3225         (clobber_variable_part, delete_variable_part): Likewise.
3226
3227 2011-03-28  Steven Bosscher  <steven@gcc.gnu.org>
3228
3229         * gcse.c (free_gcse_mem): Free reg_set_bitmap.
3230
3231 2011-03-28  Martin Jambor  <mjambor@suse.cz>
3232
3233         * tree-inline.c (expand_call_inline): Do not check that destination
3234         node is analyzed.
3235         (optimize_inline_calls): Assert that destination node is analyzed.
3236         * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
3237         not call tree_lowering_passes.
3238         * cgraph.h (cgraph_analyze_function): Declare.
3239         * cgraphunit.c (cgraph_analyze_function): Make public.
3240
3241 2011-03-28  Joseph Myers  <joseph@codesourcery.com>
3242
3243         * config/sparc/sparc-opts.h: New.
3244         * config/sparc/sparc.c (sparc_handle_option, sparc_select,
3245         sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
3246         (sparc_option_override): Store processor_type enumeration rather
3247         than string in cpu_default.  Remove name and enumeration from
3248         cpu_table.  Directly default -mcpu then default -mtune from -mcpu
3249         without using sparc_select.  Use target_flags_explicit instead of
3250         fpu_option_set.
3251         * config/sparc/sparc.h (enum processor_type): Move to
3252         sparc-opts.h.
3253         (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
3254         * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
3255         HeaderInclude entry.
3256         (mcpu=, mtune=): Use Var and Enum.
3257         (sparc_processor_type): New Enum and EnumValue entries.
3258
3259 2011-03-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3260             Iain Sandoe  <iains@gcc.gnu.org>
3261
3262         PR target/48245
3263         * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
3264
3265 2011-03-28  Eric Botcazou  <ebotcazou@adacore.com>
3266
3267         * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
3268         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
3269         Insert new statements at it in lieu of STMT.
3270         (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
3271         * tree-vect-stmts.c (vectorizable_store): Likewise.
3272         (vectorizable_load): Likewise.
3273
3274 2011-03-28  Uros Bizjak  <ubizjak@gmail.com>
3275
3276         * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
3277         (divtf3): Ditto.
3278         (multf3): Ditto.
3279         (subtf3): Ditto.
3280
3281 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3282
3283         * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
3284         unaligned 256bit load/store.
3285         (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
3286         (*avx_movdqu<avxmodesuffix>): Likewise.
3287
3288 2011-03-27  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3289
3290         PR target/48288
3291         * config/pa/predicates.md (reg_or_ior_operand): New predicate.
3292         * config/pa/pa.md (iordi3): Use new predicate in expander.
3293         (iorsi3): Likewise.
3294
3295 2011-03-27  Anatoly Sokolov  <aesok@post.ru>
3296
3297         * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
3298         FUNCTION_VALUE_REGNO_P): Remove macros.
3299         * config/mips/mips-protos.h (mips_function_value): Remove.
3300         * config/mips/mips.c (mips_function_value): Rename to...
3301         (mips_function_value_1): ... this. Make static.  Handle receiving
3302         the function type in 'fn_decl_or_type' argument.
3303         (mips_function_value, mips_libcall_value,
3304         mips_function_value_regno_p): New function.
3305         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3306         TARGET_FUNCTION_VALUE_REGNO_P): Define.
3307
3308 2011-03-27  H.J. Lu  <hongjiu.lu@intel.com>
3309
3310         * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
3311         and -mavx256-split-unaligned-store.
3312         (ix86_option_override_internal): Split 32-byte AVX unaligned
3313         load/store by default.
3314         (ix86_avx256_split_vector_move_misalign): New.
3315         (ix86_expand_vector_move_misalign): Use it.
3316
3317         * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
3318         -mavx256-split-unaligned-store.
3319
3320         * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
3321         256bit load/store.  Generate unaligned store on misaligned memory
3322         operand.
3323         (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
3324         256bit load/store.
3325         (*avx_movdqu<avxmodesuffix>): Likewise.
3326
3327         * doc/invoke.texi: Document -mavx256-split-unaligned-load and
3328         -mavx256-split-unaligned-store.
3329
3330 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
3331
3332         PR target/38598
3333         * config/mips/mips.md (extendsidi2): Add an "l" alternative.
3334         Update commentary.
3335
3336 2011-03-27  Richard Sandiford  <rdsandiford@googlemail.com>
3337
3338         * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
3339         opno arguments with an expand_operand.  Use create_input_operand.
3340         (mips_prepare_builtin_target): Delete.
3341         (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
3342         functions.
3343         (mips_expand_builtin_direct): Use create_output_operand and
3344         mips_expand_builtin_insn.  Update call to mips_prepare_builtin_arg.
3345         (mips_expand_builtin_movtf): Likewise.  Use mips_expand_fp_comparison.
3346         (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
3347
3348 2011-03-27  Ira Rosen  <ira.rosen@linaro.org>
3349
3350         * config/arm/arm.c (arm_autovectorize_vector_sizes): New
3351         function.
3352         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
3353
3354 2011-03-26  Eric Botcazou  <ebotcazou@adacore.com>
3355
3356         * basic-block.h (fixup_abnormal_edges): Adjust prototype.
3357         * reload1.c (reload): Adjust call to fixup_abnormal_edges.  Rediscover
3358         basic blocks and call commit_edge_insertions directly.
3359         (fixup_abnormal_edges): Move from here to...
3360         * cfgrtl.c (fixup_abnormal_edges): ...here.  Only insert instructions
3361         on the edges and return whether some have actually been inserted.
3362         * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
3363         compensation code.
3364
3365 2011-03-26  Andrey Belevantsev  <abel@ispras.ru>
3366
3367         PR rtl-optimization/48144
3368         * sel-sched-ir.c (merge_history_vect): Factor out from ...
3369         (merge_expr_data): ... here.
3370         (av_set_intersect): Rename to av_set_code_motion_filter.
3371         Update all callers.  Call merge_history_vect when an expression
3372         is found in both sets.
3373         * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
3374
3375 2011-03-26  Alan Modra  <amodra@gmail.com>
3376
3377         * config/rs6000/predicates.md (word_offset_memref_op): Handle
3378         cmodel medium addresses.
3379         * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
3380         64-bit gpr loads and stores.
3381         (rs6000_secondary_reload_ppc64): New function.
3382         * config/rs6000/rs6000-protos.h: Declare it.
3383         * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
3384
3385 2011-03-26  Alan Modra  <amodra@gmail.com>
3386
3387         PR target/47487
3388         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
3389         GNU Go in traceback table.
3390
3391 2011-03-25  Richard Henderson  <rth@redhat.com>
3392
3393         * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
3394         if there are exactly 6 operands.
3395         (set_storage_via_setmem): Similarly.
3396
3397 2011-03-25  Kai Tietz  <ktietz@redhat.com>
3398
3399         * collect2.c (write_c_file_stat): Handle backslash
3400         as right-hand directory separator.
3401         (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
3402         checking just for slash.
3403         * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
3404         instead of checking for trailing slash.
3405         * gcc.c (record_temp_file): Use filename_cmp instead
3406         of strcmp.
3407         (do_spec_1): Likewise.
3408         (replace_outfile_spec_function): Likewise.
3409         (is_directory): Use filename_ncmp instead of strncmp.
3410         (print_multilib_info): Likewise.
3411         * gcov.c (find_source): Use filename_cmp instead
3412         instead of strcmp.
3413         (make_gcov_file_name): Fix order of slash/backslash
3414         checks.
3415         * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
3416         (add_standard_paths): Likewise.
3417         * mips-tfile.c (saber_stop): Handle backslash.
3418         * prefix.c (update_path): Use filename_ncmp instead of
3419         strncmp.
3420         * profile.c (output_location): Use filename_cmp instead
3421         of strcmp.
3422         * read-md.c (handle_toplevel_file): Handle backslash.
3423         * tlink.c (frob_extension):  Likewise.
3424         * tree-cfg.c (same_line_p): Use filename_cmp instead of
3425         strcmp.
3426         * tree-dump.c (dequeue_and_dump): Handle backslash.
3427         * tree.c (get_file_function_name): Likewise.
3428         * gengtype.c (read_input_list): Likewise.
3429         (get_file_realbasename): Likewise.
3430         (get_output_file_with_visibility): Use filename_cmp
3431         instead of strcmp.
3432
3433 2011-03-25  Richard Sandiford  <richard.sandiford@linaro.org>
3434
3435         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
3436         case to VFPv1.
3437
3438 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
3439
3440         * fold-const.c (expr_location_or): New function.
3441         (fold_truth_not_expr): Call it.
3442
3443 2011-03-25  Jeff Law  <law@redhat.com>
3444
3445         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
3446         va_end.
3447         * c-family/c-common.c (def_fn_type): Likewise.
3448         * ada/gcc-interface/utils.c (def_fn_type): Likewise.
3449         * emit-rtl.c (gen_rtvec): Likewise.
3450         * lto/lto-lang.c (def_fn_type): Likewise.
3451
3452 2011-03-25  Richard Guenther  <rguenther@suse.de>
3453
3454         * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
3455         also generate copies.
3456         (fini_copy_prop): Handle constant values properly.
3457
3458 2011-03-25  Jakub Jelinek  <jakub@redhat.com>
3459
3460         * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
3461         mode size instead of bitsize with DWARF2_ADDR_SIZE.
3462         (hash_loc_operands, compare_loc_operands): Handle
3463         DW_OP_GNU_entry_value.
3464
3465 2011-03-25  Kai Tietz  <ktietz@redhat.com>
3466
3467         * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
3468         (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
3469         * config/i386/i386.c (ix86_conditional_register_usage): Adjust
3470         comment and use macro TARGET_64BIT_MS_ABI instead.
3471         (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
3472         and change default behavior for 32-bit MS_ABI.
3473         (ix86_reg_parm_stack_space): Check additionally for bit-ness.
3474         (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
3475         32-bit, too.
3476         (ix86_cfun_abi): Likewise.
3477         (ix86_maybe_switch_abi): Adjust comment.
3478         (init_cumulative_args): Check for bit-ness in MS_ABI case.
3479         (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
3480         instead of checking for SYSV_ABI.
3481         (ix86_nsaved_sseregs): Likewise.
3482         (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
3483         to 16 bytes.
3484         (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
3485         * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
3486         (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
3487         (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
3488         * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
3489
3490 2011-03-25  Richard Guenther  <rguenther@suse.de>
3491
3492         * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
3493         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
3494         (verify_gimple): Remove.
3495         * tree-cfg.c (verify_gimple_call): Merge verification
3496         from verify_stmts.
3497         (verify_gimple_phi): Merge verification from verify_stmts.
3498         (verify_gimple_label): New function.
3499         (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
3500         (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
3501         (verify_stmt): Merge into verify_gimple_in_cfg and callees.
3502         (verify_stmts): Rename to verify_gimple_in_cfg.
3503         (verify_gimple_in_cfg): New function.
3504         * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
3505         * tree-ssa.c (verify_ssa): Likewise.
3506         * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
3507
3508 2011-03-25  Richard Guenther  <rguenther@suse.de>
3509
3510         * passes.c (init_optimization_passes): Add FRE pass after
3511         early SRA.
3512
3513 2011-03-25  Bernd Schmidt  <bernds@codesourcery.com>
3514             Andrew Stubbs  <ams@codesourcery.com>
3515
3516         * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
3517         for Cortex-A8.
3518         (arm_movdi_vfp_cortexa8): New pattern.
3519         * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
3520         iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
3521         instructions when tuning for Cortex-A8.  Set attribute "arch".
3522         * config/arm/arm.md: Move include arm-tune.md up a bit.
3523         (define_attr "arch"): Add "onlya8" and "nota8" values.
3524         (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
3525
3526 2011-03-25  Nathan Froyd  <froydnj@codesourcery.com>
3527
3528         PR bootstrap/48282
3529         Revert:
3530         2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
3531
3532         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
3533         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
3534         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
3535         * passes.c (init_optimization_passes): Move
3536         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
3537
3538 2011-03-25  Kai Tietz  <ktietz@redhat.com>
3539
3540         * c-typeck.c (comptypes_internal): Replace target
3541         hook call of comp_type_attributes by version in tree.c file.
3542         * gimple.c (gimple_types_compatible_p_1): Likewise.
3543         * tree-ssa.c (useless_type_conversion_p): Likewise.
3544         * tree.c (build_type_attribute_qual_variant): Likewise.
3545         (attribute_value_equal): New static helper function.
3546         (comp_type_attributes): New function.
3547         (merge_attributes): Use attribute_value_equal for comparison.
3548         (attribute_list_contained): Likewise.
3549         * tree.h (comp_type_attributes): New prototype.
3550
3551 2011-03-25  Richard Guenther  <rguenther@suse.de>
3552
3553         * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
3554         of complex types at -O0.
3555         (verify_gimple_assign_binary): Likewise.
3556         (verify_gimple_assign_ternary): Likewise.
3557
3558 2011-03-24  Mark Wielaard  <mjw@redhat.com>
3559
3560         * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
3561         (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
3562
3563 2011-03-24  Mark Wielaard  <mjw@redhat.com>
3564
3565         PR debug/48041
3566         * dwarf2out.c (output_abbrev_section): Only write table when
3567         abbrev_die_table_in_use > 1.
3568
3569 2011-02-24  Richard Henderson  <rth@redhat.com>
3570
3571         * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
3572         (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
3573         (alpha_expand_unaligned_load_words): Use extql.
3574         (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
3575         (emit_insxl): Handle all modes for consistency.
3576
3577 2011-02-24  Richard Henderson  <rth@redhat.com>
3578
3579         * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
3580         (alpha_expand_unaligned_load): Likewise.
3581         (alpha_expand_unaligned_store): Likewise.
3582         (alpha_expand_unaligned_load_words): Likewise.
3583         (alpha_expand_unaligned_store_words): Likewise.
3584         (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
3585         (alpha_split_lock_test_and_set_12): Likewise.
3586         (print_operand, alpha_fold_builtin_extxx): Likewise.
3587         (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
3588         * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
3589         (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
3590         (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
3591         (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
3592         (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
3593         (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
3594         (unaligned_storeqi_be, unaligned_storehi_be): Remove.
3595         (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
3596         (extwl, extll, extql): Similarly.
3597         (inswh, inslh, insqh): Similarly.
3598         (mskbl, mskwl, mskll, mskql): Similarly.
3599         (mskwh, msklh, mskqh): Similarly.
3600
3601 2011-02-24  Richard Henderson  <rth@redhat.com>
3602
3603         * config/alpha/alpha.md (attribute isa): Add er, ner.
3604         (attribute enabled): Handle them.
3605         (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
3606
3607 2011-02-24  Richard Henderson  <rth@redhat.com>
3608
3609         * config/alpha/alpha.md (attribute isa): Add vms.
3610         (attribute enabled): Handle it.
3611         (*movsf): Merge *movsf_{nofix,fix,nofp}.
3612         (*movdf): Merge *movdf_{nofix,fix,nofp}.
3613         (*movtf): Rename from *movtf_internal for consistency.
3614         (*movsi): Merge with *movsi_nt_vms.
3615         (*movhi): Merge *movhi_nobwx, *movhi_bwx.
3616         (*movqi): Merge *movqi_nobwx, *movqi_bwx.
3617         (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
3618         * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
3619
3620 2011-02-24  Richard Henderson  <rth@redhat.com>
3621
3622         * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
3623         (extendqisi2, extendhisi2): Likewise.
3624         (extendqidi2): Simplify BWX/non-BWX expansions.
3625         (extendhidi2): Similarly.
3626
3627 2011-02-24  Richard Henderson  <rth@redhat.com>
3628
3629         * config/alpha/alpha.md (attribute isa): New.
3630         (attribute enabled): New.
3631         (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
3632         (zero_extendqisi2, zero_extendqidi2): Similarly.
3633         (zero_extendhisi2, zero_extendhidi2): Similarly.
3634         * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
3635
3636 2011-02-24  Richard Henderson  <rth@redhat.com>
3637
3638         * config/alpha/predicates.md (input_operand): Revert last change;
3639         update comment to mention 32-bit VMS rather than Windows.
3640
3641 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
3642
3643         * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
3644         FOR_BB_INSNS_SAFE to iterate through insns.  Re-indent.
3645         (pass_instantiate_virtual_regs): Require PROP_cfglayout.
3646         * passes.c (init_optimization_passes): Move
3647         pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
3648
3649 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
3650
3651         * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
3652
3653 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
3654
3655         * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
3656         correctly.
3657
3658 2011-03-24  Jakub Jelinek  <jakub@redhat.com>
3659
3660         PR debug/48204
3661         * simplify-rtx.c (simplify_const_unary_operation): Call
3662         real_convert when changing mode class with FLOAT_EXTEND.
3663
3664 2011-03-24  Nick Clifton  <nickc@redhat.com>
3665
3666         * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
3667         (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
3668         * config/rx/rx.c (rx_option_override): Set align_jumps,
3669         align_loops and align_labels if not set by the user.
3670         (rx_align_for_label): New function.
3671         (rx_max_skip_for_label): New function.
3672         (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
3673         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
3674         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
3675         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
3676         * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
3677
3678 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
3679
3680         PR rtl-optimization/48263
3681         * optabs.c (expand_binop_directly): Reinstate convert_modes code
3682         and original commutative_p handling.  Use maybe_gen_insn.
3683
3684 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3685
3686         * reload.c (find_reloads_subreg_address): Add address_reloaded
3687         parameter and return true there if the full address has been
3688         reloaded.
3689         (find_reloads_toplev): Pass address_reloaded flag.
3690         (find_reloads_address_1): Don't use address_reloaded parameter.
3691
3692 2011-03-24  Jeff Law  <law@redhat.com>
3693
3694         * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
3695         unused variable "ann".
3696         (remove_unused_locals): Likewise.
3697
3698         * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
3699         statement.
3700
3701         * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
3702         after it is freed.
3703
3704 2011-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3705
3706         * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
3707         for invalid symbolic addresses.
3708         (s390_secondary_reload): Don't use s390_check_symref_alignment for
3709         larl operands.
3710
3711 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
3712
3713         * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
3714         the argument in calls to fold_truth_not_expr.
3715
3716 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
3717
3718         * tree.c (record_node_allocation_statistics): New function.
3719         (make_node_stat, copy_node_stat, build_string): Call it.
3720         (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
3721         (build1_stat, build_omp_clause): Likewise.
3722
3723 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
3724
3725         * builtins.c (expand_movstr): Fix endp == 1 adjustment after
3726         last commit.
3727
3728 2011-03-24  Richard Guenther  <rguenther@suse.de>
3729
3730         PR tree-optimization/48271
3731         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
3732         blocks that still exist.
3733
3734 2011-03-24  Richard Guenther  <rguenther@suse.de>
3735
3736         PR tree-optimization/48270
3737         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
3738         not free datarefs before ddrs.
3739
3740 2011-03-24  Eric Botcazou  <ebotcazou@adacore.com>
3741
3742         * tree-sra.c (build_ref_for_offset): Strip useless type conversions
3743         from the address built for a reference with variable offset.
3744
3745 2011-03-24  Uros Bizjak  <ubizjak@gmail.com>
3746
3747         PR target/48237
3748         * config/i386/i386.md (*movdf_internal_rex64): Do not split
3749         alternatives that can be handled with movq or movabsq insn.
3750         (*movdf_internal): Disable for !TARGET_64BIT.
3751         (*movdf_internal_nointeger): Ditto.
3752         * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
3753
3754 2011-03-24  Nathan Froyd  <froydnj@codesourcery.com>
3755
3756         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
3757         (FUNCTION_ARG_ADVANCE): Likewise.
3758         * tm.texi.in: Change references to them to hook references.
3759         * tm.texi: Regenerate.
3760         * targhooks.c (default_function_arg): Eliminate check for target macro.
3761         (default_function_incoming_arg): Likewise.
3762         (default_function_arg_advance): Likewise.
3763         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
3764         (function_arg_advance): Likewise.
3765         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
3766
3767 2011-03-24  Richard Guenther  <rguenther@suse.de>
3768
3769         PR middle-end/48269
3770         * tree-object-size.c (addr_object_size): Do not double-account
3771         for MEM_REF offsets.
3772
3773 2011-03-24  Diego Novillo  <dnovillo@google.com>
3774
3775         * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
3776         * lto-streamer-in.c (input_string_internal): Add clarifying comments.
3777         (lto_input_data_block): Move from lto-opts.c.  Make extern.
3778         Update all users.
3779         (lto_input_string): Rename from input_string.  Make extern.
3780         Update all users.
3781         * lto-streamer-out.c (lto_output_string_with_length): Rename from
3782         output_string_with_length.
3783         Output 0 to indicate a non-NULL string.  Update all callers to
3784         not emit 0.
3785         (lto_output_string): Rename from output_string.  Make extern.
3786         Update all users.
3787         (lto_output_decl_state_streams): Make extern.
3788         (lto_output_decl_state_refs): Make extern.
3789         * lto-streamer.h (lto_input_string): Declare.
3790         (lto_input_data_block): Declare.
3791         (lto_output_string): Declare.
3792         (lto_output_string_with_length): Declare.
3793         (lto_output_decl_state_streams): Declare.
3794         (lto_output_decl_state_refs): Declare.
3795
3796 2011-03-24  Richard Guenther  <rguenther@suse.de>
3797
3798         PR tree-optimization/46562
3799         * tree.c (build_invariant_address): New function.
3800         * tree.h (build_invariant_address): Declare.
3801         * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
3802         a renamed function moved ...
3803         * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
3804         Take valueization callback parameter.
3805         * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
3806         * gimple-fold.h: New file.
3807         * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
3808         (ccp_fold, fold_const_aggregate_ref,
3809         fold_ctor_reference, fold_nonarray_ctor_reference,
3810         fold_array_ctor_reference, fold_string_cst_ctor_reference,
3811         get_base_constructor): Move ...
3812         * gimple-fold.c: ... here.
3813         (gimple_fold_stmt_to_constant_1): New function
3814         split out from ccp_fold.  Take a valueization callback parameter.
3815         Valueize all operands.
3816         (gimple_fold_stmt_to_constant): New wrapper function.
3817         (fold_const_aggregate_ref_1): New function split out from
3818         fold_const_aggregate_ref.  Take a valueization callback parameter.
3819         (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
3820         * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
3821         invariant POINTER_PLUS_EXPRs to invariant form.
3822         (vn_valueize): New function.
3823         (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
3824         * tree-vrp.c (vrp_valueize): New function.
3825         (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
3826         to fold statements to constants.
3827         * tree-ssa-pre.c (eliminate): Properly guard propagation of
3828         function declarations.
3829         * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
3830         tree-ssa-ccp.o): Add gimple-fold.h dependencies.
3831
3832 2011-03-24  Richard Sandiford  <richard.sandiford@linaro.org>
3833
3834         * config/h8300/predicates.md (jump_address_operand): Fix register
3835         mode check.
3836
3837 2011-03-24  Ira Rosen  <ira.rosen@linaro.org>
3838
3839         * doc/invoke.texi (max-stores-to-sink): Document.
3840         * params.h (MAX_STORES_TO_SINK): Define.
3841         * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
3842         if either vectorization or if-conversion is disabled.
3843         * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
3844         tree-vect-data-refs.c vect_equal_offsets.
3845         (dr_equal_offsets_p): New function.
3846         (find_data_references_in_bb): Remove static.
3847         * tree-data-ref.h (find_data_references_in_bb): Declare.
3848         (dr_equal_offsets_p): Likewise.
3849         * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
3850         (vect_drs_dependent_in_basic_block): Update calls to
3851         vect_equal_offsets.
3852         (vect_check_interleaving): Likewise.
3853         * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
3854         (cond_if_else_store_replacement): Rename to...
3855         (cond_if_else_store_replacement_1): ... this.  Change arguments and
3856         documentation.
3857         (cond_if_else_store_replacement): New function.
3858         * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
3859         * params.def (PARAM_MAX_STORES_TO_SINK): Define.
3860
3861 2011-03-23  Chung-Lin Tang  <cltang@codesourcery.com>
3862
3863         PR target/46934
3864         * config/arm/arm.md (casesi): Use the gen_int_mode() function
3865         to subtract lower bound instead of GEN_INT().
3866
3867 2011-03-23  Jonathan Wakely  <jwakely.gcc@gmail.com>
3868
3869         PR other/48179
3870         PR other/48221
3871         PR other/48234
3872         * doc/extend.texi (Alignment): Move section to match order in TOC.
3873         * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
3874         (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
3875
3876 2011-03-23  Jeff Law  <law@redhat.com>
3877
3878         * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
3879         before removing the edge.
3880
3881         * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
3882         it may have been freed by redirect_branch_edge or
3883         redirect_edge_succ_nodup.
3884
3885 2011-03-23  Richard Guenther  <rguenther@suse.de>
3886
3887         * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
3888         (check_va_list_escapes): Likewise.
3889         (check_all_va_list_escapes): Likewise.
3890
3891 2011-03-23  Richard Guenther  <rguenther@suse.de>
3892
3893         * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
3894         (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
3895         (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
3896         (alias.o): Likewise.
3897         (ipa-type-escape.o): Remove.
3898         (ipa-struct-reorg.o): Likewise.
3899         (GTFILES): Remove ipa-struct-reorg.c.
3900         * alias.c: Do not include ipa-type-escape.h.
3901         * tree-ssa-alias.c: Likewise.
3902         * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
3903         * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
3904         * passes.c (init_optimization_passes): Remove ipa-struct-reorg
3905         and ipa-type-escape passes.
3906         * tree-pass.h (pass_ipa_type_escape): Remove.
3907         (pass_ipa_struct_reorg): Likewise.
3908         * ipa-struct-reorg.h: Remove.
3909         * ipa-struct-reorg.c: Likewise.
3910         * ipa-type-escape.h: Likewise.
3911         * ipa-type-escape.c: Likewise.
3912         * doc/invoke.texi (-fipa-struct-reorg): Remove.
3913         (--param struct-reorg-cold-struct-ratio): Likewise.
3914         * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
3915         * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
3916         * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
3917
3918 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3919
3920         * config/s390/2084.md: Enable all insn reservations also for z9_ec
3921         cpu attribute value.
3922         * config/s390/s390-opts.h (enum s390_arch_option): Remove.
3923         (enum processor_type): Add PROCESSOR_2094_Z9_EC.
3924         * config/s390/s390.c (processor_flags_table): New constant array.
3925         (s390_handle_arch_option): Remove.
3926         (s390_handle_option): Remove s390_handle_arch_option invocations
3927         and OPT_mwarn_framesize_ handling.
3928         (s390_option_override): Remove s390_handle_arch_option invocation.
3929         (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
3930         warnings.
3931         * config/s390/s390.md (cpu attribute): Add z9_ec value.
3932         * config/s390/s390.opt (s390_tune, s390_arch)
3933         (march=): Replace s390_arch_option enum and values with
3934         processor_type.  Set variable name to s390_arch.  Set
3935         initialization value.
3936         (mtune=): Replace s390_arch_option with processor_type.  Set
3937         variable name to s390_tune.  Set initialization value.
3938
3939 2011-03-23  Julian Brown  <julian@codesourcery.com>
3940
3941         * expr.c (expand_expr_real_1): Only use BLKmode for volatile
3942         accesses which are not naturally aligned.
3943
3944 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
3945
3946         PR target/47553
3947         * config/arm/predicates.md (neon_lane_number): Accept 0..15.
3948
3949 2011-03-23  Richard Sandiford  <richard.sandiford@linaro.org>
3950
3951         * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
3952         parameter from "int" to "enum insn_code".
3953         (expand_operand_type): New enum.
3954         (expand_operand): New structure.
3955         (create_expand_operand): New function.
3956         (create_fixed_operand, create_output_operand): Likewise
3957         (create_input_operand, create_convert_operand_to): Likewise.
3958         (create_convert_operand_from, create_address_operand): Likewise.
3959         (create_integer_operand): Likewise.
3960         (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
3961         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
3962         (expand_insn, expand_jump_insn): Likewise.
3963         * builtins.c (expand_builtin_prefetch): Use the new interfaces.
3964         (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
3965         (expand_movstr, expand_builtin___clear_cache): Likewise.
3966         (expand_builtin_lock_release): Likewise.
3967         * explow.c (allocate_dynamic_stack_space): Likewise.
3968         (probe_stack_range): Likewise.  Allow check_stack to FAIL,
3969         and use the default handling in that case.
3970         * expmed.c (check_predicate_volatile_ok): Delete.
3971         (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
3972         (emit_cstore): Likewise.
3973         * expr.c (emit_block_move_via_movmem): Likewise.
3974         (set_storage_via_setmem, expand_assignment): Likewise.
3975         (emit_storent_insn, try_casesi): Likewise.
3976         (emit_single_push_insn): Likewise.  Allow the expansion to fail.
3977         * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
3978         (expand_vec_shift_expr, expand_binop_directly): Likewise.
3979         (expand_twoval_unop, expand_twoval_binop): Likewise.
3980         (expand_unop_direct, emit_indirect_jump): Likewise.
3981         (emit_conditional_move, vector_compare_rtx): Likewise.
3982         (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
3983         (expand_sync_operation, expand_sync_fetch_operation): Likewise.
3984         (expand_sync_lock_test_and_set): Likewise.
3985         (maybe_emit_unop_insn): Likewise.  Change icode to an insn_code.
3986         (emit_unop_insn): Likewise.
3987         (expand_copysign_absneg): Change icode to an insn_code.
3988         (create_convert_operand_from_type): New function.
3989         (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
3990         (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
3991         (expand_insn, expand_jump_insn): Likewise.
3992         * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
3993         than const_int_operand for operand 2.
3994
3995 2011-03-23  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3996
3997         * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
3998         if possible.
3999
4000 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4001
4002         * emit-rtl.c (emit_pattern_before_noloc): New function.
4003         (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
4004         (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
4005         (emit_pattern_after_noloc): New function.
4006         (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
4007         (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
4008
4009 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4010
4011         * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
4012         (__ffsDI2): Likewise.
4013
4014 2011-03-22  Richard Henderson  <rth@redhat.com>
4015
4016         * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
4017         of !TARGET_ABI_OPEN_VMS.
4018         (alpha_trampoline_init, alpha_start_function): Likewise.
4019         (alpha_expand_epilogue, alpha_file_start): Likewise.
4020         * config/alpha/alpha.md (divsi3, modsi3): Likewise.
4021         (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
4022         (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
4023         (*divmodsi_internal, *divmoddi_internal_er): Likewise.
4024         (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
4025
4026 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4027
4028         * config/s390/s390-opts.h: New.
4029         * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
4030         s390_arch_flags, s390_warn_framesize, s390_stack_size,
4031         s390_stack_guard): Remove.
4032         (s390_handle_arch_option): Return void.  Take enum
4033         s390_arch_option value instead of string and searching array.
4034         (s390_handle_option): Don't assert that global structures are in
4035         use.  Access variables via opts pointer.  Use error_at.  Don't use
4036         sscanf for -mstack-guard= or -mstack-size=.  Update call to
4037         s390_handle_arch_option.
4038         (s390_option_override): Update call to s390_handle_arch_option.
4039         (s390_emit_prologue): Use %d format for s390_stack_size in
4040         diagnostic.  Use %wd for HOST_WIDE_INT.
4041         * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
4042         (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
4043         * config/s390/s390.opt (config/s390/s390-opts.h): New
4044         HeaderInclude entry.
4045         (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
4046         s390_arch_flags, s390_warn_framesize): New Variable entries.
4047         (s390_arch_option): New Enum and EnumValue entries.
4048         (march=): Use Enum instead of Var.
4049         (mstack-guard=, mstack-size=): Use UInteger and Var.
4050         (mtune=): Use Enum.
4051
4052 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4053
4054         * config/score/score.c (score_handle_option): Don't assert that
4055         global structures are in use.  Access target_flags via opts
4056         pointer.  Use value of -march= option to determine target_flags
4057         settings.
4058         * config/score/score.opt (march=): Use Enum.
4059         (score_arch): New Enum and EnumValue entries.
4060
4061 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4062
4063         * config/mep/mep.c (option_mtiny_specified): Remove.
4064         (mep_option_override): Move register handling for -mivc2 from
4065         mep_handle_option.  Use global_options_set.x_mep_tiny_cutoff
4066         instead of option_mtiny_specified.
4067         (mep_handle_option): Access target_flags via opts pointer.  Don't
4068         assert that global structures are in use.  Defer part of -mivc2
4069         handling and move it to mep_option_override.
4070         * config/mep/mep.opt (IVC2): New Mask entry.
4071         (mivc2): Use Var and Defer instead of Mask.
4072
4073 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4074
4075         * config/v850/v850-opts.h: New.
4076         * config/v850/v850.c (small_memory): Replace with
4077         small_memory_physical_max array.  Make that array static const.
4078         (v850_handle_memory_option): Take integer value of argument.  Take
4079         gcc_options pointer, option text and location.  Return void.
4080         Update for changes to small memory structures.
4081         (v850_handle_option): Access target_flags via opts pointer.  Don't
4082         assert that global structures are in use.  Update calls to
4083         v850_handle_memory_option.
4084         (v850_encode_data_area): Update references to small memory settings.
4085         * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4086         (enum small_memory_type): Move to v850-opts.h.
4087         * config/v850/v850.opt (config/v850/v850-opts.h): New
4088         HeaderInclude entry.
4089         (small_memory_max): New Variable entry.
4090         (msda): Replace by pair of options msda= and msda-.  Use UInteger.
4091         (mtda, mzda): Likewise.
4092
4093 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4094
4095         * config/sh/sh.c (sh_handle_option): Access target_flags via opts
4096         pointer.  Don't assert that global structures are in use.
4097
4098 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4099
4100         * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
4101         via opts pointer.  Don't assert that global structures are in use.
4102
4103 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4104
4105         * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
4106         (munix=93): Use Var.
4107         * config/pa/pa-hpux1010.opt (munix=95): Use Var.
4108         * config/pa/pa-hpux1111.opt (munix=98): Use Var.
4109         * config/pa/pa-opts.h: New.
4110         * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
4111         (pa_handle_option): Don't assert that global structures are in
4112         use.  Access target_flags via opts pointer.  Don't handle
4113         OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
4114         OPT_munix_98 here.
4115         (pa_option_override): Handle deferred OPT_mfixed_range_.
4116
4117 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4118
4119         * config/mn10300/mn10300-opts.h: New.
4120         * config/mn10300/mn10300.c (mn10300_processor,
4121         mn10300_tune_string): Remove.
4122         (mn10300_handle_option): Don't assert that global structures are
4123         in use.  Access mn10300_processor via opts pointer.  Don't handle
4124         OPT_mtune_ here.
4125         * config/mn10300/mn10300.h (enum processor_type): Move to
4126         mn10300-opts.h.
4127         (mn10300_processor): Remove.
4128         * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
4129         HeaderInclude entry.
4130         (mn10300_processor): New Variable entry.
4131         (mtune=): Use Var.
4132
4133 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4134
4135         * config/microblaze/microblaze.c: Don't include opts.h.
4136         (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
4137         * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
4138         (mno-clearbss): Use Var and Warn.
4139
4140 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4141
4142         * config/m32r/m32r-opts.h: New.
4143         * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
4144         (m32r_handle_option): Don't assert that global structures are in
4145         use.  Access target_flags and m32r_cache_flush_func via opts
4146         pointer.  Don't handle OPT_mmodel_, OPT_msdata_ or
4147         OPT_mno_flush_trap here.
4148         * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
4149         include of m32r-opts.h.
4150         * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
4151         HeaderInclude entry.
4152         (m32r_model_selected, m32r_sdata_selected): New Variable entries.
4153         (mmodel=): Use Enum and Var.
4154         (m32r_model): New Enum and EnumValue entries.
4155         (mno-flush-trap): Use Var.
4156         (msdata=): Use Enum and Var.
4157         (m32r_sdata): New Enum and EnumValue entries.
4158
4159 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4160
4161         * config/m32c/m32c.c: Don't include opts.h.
4162         (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
4163         m32c_handle_option): Remove.
4164         (m32c_option_override): Check global_options_set.x_target_memregs
4165         instead of target_memregs_set.
4166         * config/m32c/m32c.h (target_memregs): Remove.
4167         * config/m32c/m32c.opt (memregs=): Use UInteger with integer
4168         variable.
4169
4170 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4171
4172         * config/iq2000/iq2000-opts.h: New.
4173         * config/iq2000/iq2000.c: Don't include opts.h.
4174         (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
4175         * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
4176         * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
4177         HeaderInclude entry.
4178         (iq2000_tune): New Variable entry.
4179         (march=): Add comment.  Use Enum.
4180         (iq2000_arch): New Enum and EnumValue entries.
4181         (mcpu=): Use Enum and Var.
4182         (iq2000_tune): New Enum and EnumValue entries.
4183
4184 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4185
4186         * config/ia64/ia64-opts.h: New.
4187         * config/ia64/ia64.c (ia64_tune): Remove.
4188         (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
4189         here.  Use error_at.
4190         (ia64_option_override): Handle deferred OPT_mfixed_range_.
4191         * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
4192         * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
4193         HeaderInclude entry.
4194         (ia64_tune): New Variable entry.
4195         (mfixed-range=): Use Defer and Var.
4196         (mtune=): Use Enum and Var.
4197         (ia64_tune): New Enum and EnumValue entries.
4198
4199 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4200
4201         * config/frv/frv-opts.h: New.
4202         * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
4203         frv-opts.h.
4204         (frv_cpu_type): Remove.
4205         * config/frv/frv.c: Don't include opts.h.
4206         (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
4207         * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
4208         (frv_cpu_type): New Variable entry.
4209         (frv_cpu): New Enum and EnumValue entries.
4210
4211 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4212
4213         * config/cris/cris.c (cris_handle_option): Access target_flags via
4214         opts pointer.  Don't assert that global structures are in use.
4215         Don't call CRIS_SUBTARGET_HANDLE_OPTION.
4216         * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
4217
4218 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4219
4220         * config/bfin/bfin-opts.h: New.
4221         * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
4222         bfin_si_revision, bfin_workarounds): Remove.
4223         (bfin_cpus): Make static const.
4224         (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
4225         not bfin_lib_id_given.
4226         (bfin_handle_option): Don't set bfin_lib_id_given.  Access
4227         bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
4228         pointer. Use error_at.  Don't assert that global structures are in use.
4229         * config/bfin/bfin.h: Include bfin-opts.h.
4230         (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
4231         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
4232         * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
4233         (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
4234         entries.
4235
4236 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4237
4238         * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
4239         * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
4240         or -msoft-float here.
4241         * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
4242         -msoft-float and -mhard-float.
4243         (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
4244         * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4245         msoft-float.
4246         * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
4247         -msoft-float.
4248         (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
4249         * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
4250         not mhard-float.
4251         (LIBGCC_SPEC): Don't handle -msoft-float.
4252         * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
4253         -mhard-float.
4254         * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
4255         msoft-float.
4256         * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
4257         -mfloat-abi=*, not -msoft-float and -mhard-float.
4258         * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
4259         -msoft-float.
4260         * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
4261         Use mfloat-abi=hard and mfloat-abi=soft in comments, not
4262         mhard-float and msoft-float.
4263         * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
4264         mfloat-abi=soft in comments, not mhard-float and msoft-float.
4265         * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
4266         mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
4267         mhard-float.
4268         * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
4269         mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
4270         msoft-float.
4271         * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
4272         not mhard-float.
4273         * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
4274         not msoft-float.
4275
4276 2011-03-22  Richard Henderson  <rth@redhat.com>
4277
4278         * config/alpha/alpha.c (alpha_expand_prologue): Don't test
4279         TARGET_ABI_WINDOWS_NT.
4280         (alpha_output_function_end_prologue): Likewise.
4281         * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
4282         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
4283         * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
4284         (trap, *movsi_nt_vms): Likewise.
4285         (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
4286         (*tablejump_osf_nt_internal): Remove.
4287         * config/alpha/predicates.md (input_operand): Only test Pmode.
4288
4289 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4290
4291         * config/alpha/alpha.c (alpha_handle_option): Access target_flags
4292         via opts pointer.  Use error_at.  Don't assert that global
4293         structures are in use.
4294
4295 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4296
4297         * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
4298         (ix86_handle_option): Access ix86_isa_flags and
4299         ix86_isa_flags_explicit via opts pointer.  Don't assert that
4300         global structures are in use.
4301         (ix86_function_specific_save, ix86_function_specific_restore):
4302         Update ix86_isa_flags_explicit field name.
4303         * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
4304         (ix86_isa_flags_explicit): Rename TargetSave entry to
4305         x_ix86_isa_flags_explicit.
4306
4307 2011-03-22  Richard Henderson  <rth@redhat.com>
4308
4309         * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
4310         (alpha_option_override, direct_return): Likewise.
4311         (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
4312         (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
4313         (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
4314         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
4315         (alpha_expand_epilogue, alpha_end_function): Likewise.
4316         (alpha_init_libfuncs): Likewise.
4317         (struct machine_function): Remove unicosmk members.
4318         (print_operand) ['t']: Remove.
4319         (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
4320         unicosmk_output_module_name, unicosmk_output_common,
4321         current_section_align, unicosmk_output_text_section_asm_op,
4322         unicosmk_output_data_section_asm_op, unicosmk_init_sections,
4323         unicosmk_section_type_flags, unicosmk_unique_section,
4324         unicosmk_asm_named_section, unicosmk_insert_attributes,
4325         unicosmk_output_align, unicosmk_defer_case_vector,
4326         unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
4327         SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
4328         unicosmk_output_ssib, unicosmk_add_call_info_word,
4329         unicosmk_extern_head, unicosmk_output_default_externs,
4330         unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
4331         unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
4332         unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
4333         * config/alpha/alpha-protos.h: Update.
4334         * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
4335         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
4336         (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
4337         (mulsi3): Don't test TARGET_ABI_UNICOSMK.
4338         (*mulsi_se, mulvsi3): Likewise.
4339         (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
4340         (*divmodsi_internal, call, call_value, realign): Likewise.
4341         (moddi3, umoddi3): Likewise; remove duplicate expander.
4342         (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
4343         (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
4344         (*movdi_nofix): Remove r/U alternative.
4345         (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
4346         * config/alpha/constraints.md ("U"): Remove.
4347         * config/alpha/predicates.md (call_operand"): Don't test
4348         TARGET_ABI_UNICOSMK.
4349
4350 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4351
4352         * target.def (handle_option): Take gcc_options and
4353         cl_decoded_option pointers and location_t.
4354         * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
4355         * doc/tm.texi: Regenerate.
4356         * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
4357         * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
4358         * lto-opts.c (lto_reissue_options): Generate option structure for
4359         targetm.handle_option call.
4360         * opts.c (target_handle_option): Update call to
4361         targetm.handle_option.  Remove assertions about values now passed
4362         down to hook.
4363         * targhooks.c (default_target_handle_option): New.
4364         * targhooks.h (default_target_handle_option): Declare.
4365         * config/alpha/alpha.c: Include opts.h.
4366         (alpha_handle_option): Update to new hook interface.
4367         * config/arm/arm.c: Include opts.h.
4368         (arm_handle_option): Update to new hook interface.
4369         * config/arm/t-arm (arm.o): Update dependencies.
4370         * config/bfin/bfin.c: Include opts.h.
4371         (bfin_handle_option): Update to new hook interface.
4372         * config/cris/cris.c: Include opts.h.
4373         (cris_handle_option): Update to new hook interface.
4374         * config/frv/frv.c: Include opts.h.
4375         (frv_handle_option): Update to new hook interface.
4376         * config/i386/i386.c: Include opts.h.
4377         (ix86_handle_option): Update to new hook interface.
4378         (ix86_valid_target_attribute_inner_p): Generate option structure
4379         for call to ix86_handle_option.
4380         * config/i386/t-i386 (i386.o): Update dependencies.
4381         * config/ia64/ia64.c: Include opts.h.
4382         (ia64_handle_option): Update to new hook interface.
4383         * config/ia64/t-ia64 (ia64.o): Update dependencies.
4384         * config/iq2000/iq2000.c: Include opts.h.
4385         (iq2000_handle_option): Update to new hook interface.
4386         * config/m32c/m32c.c: Include opts.h.
4387         (m32c_handle_option): Update to new hook interface.
4388         * config/m32r/m32r.c: Include opts.h.
4389         (m32r_handle_option): Update to new hook interface.
4390         * config/m68k/m68k.c: Include opts.h.
4391         (m68k_handle_option): Update to new hook interface.
4392         * config/mep/mep.c: Include opts.h.
4393         (mep_handle_option): Update to new hook interface.
4394         * config/microblaze/microblaze.c: Include opts.h.
4395         (microblaze_handle_option): Update to new hook interface.
4396         * config/mips/mips.c: Include opts.h.
4397         (mips_handle_option): Update to new hook interface.
4398         * config/mn10300/mn10300.c: Include opts.h.
4399         (mn10300_handle_option): Update to new hook interface.
4400         * config/pa/pa.c: Include opts.h.
4401         (pa_handle_option): Update to new hook interface.
4402         * config/pdp11/pdp11.c: Include opts.h.
4403         (pdp11_handle_option): Update to new hook interface.
4404         * config/rs6000/rs6000.c: Include opts.h.
4405         (rs6000_handle_option): Update to new hook interface.
4406         * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
4407         * config/rx/rx.c: Include opts.h.
4408         (rx_handle_option): Update to new hook interface.
4409         * config/s390/s390.c: Include opts.h.
4410         (s390_handle_option): Update to new hook interface.
4411         * config/score/score.c: Include opts.h.
4412         (score_handle_option): Update to new hook interface.
4413         * config/sh/sh.c: Include opts.h.
4414         (sh_handle_option): Update to new hook interface.
4415         * config/sparc/sparc.c: Include opts.h.
4416         (sparc_handle_option): Update to new hook interface.
4417         * config/v850/v850.c: Include opts.h.
4418         (v850_handle_option): Update to new hook interface.
4419
4420 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4421
4422         * gcc.c (driver_unknown_option_callback): Only permit and save
4423         unknown -Wno- options.
4424         (driver_wrong_lang_callback): Save options directly instead of via
4425         driver_unknown_option_callback.
4426
4427 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
4428
4429         * combine.c (simplify_set): Try harder to find the best CC mode when
4430         simplifying a nested COMPARE on the RHS.
4431
4432 2011-03-22  Joseph Myers  <joseph@codesourcery.com>
4433
4434         * config/alpha/gnu.h: Remove.
4435         * config/arc: Remove directory.
4436         * config/arm/netbsd.h: Remove.
4437         * config/arm/t-pe: Remove.
4438         * config/crx: Remove directory.
4439         * config/i386/netbsd.h: Remove.
4440         * config/m68hc11: Remove directory.
4441         * config/m68k/uclinux-oldabi.h: Remove.
4442         * config/mcore/mcore-pe.h: Remove.
4443         * config/mcore/t-mcore-pe: Remove.
4444         * config/netbsd-aout.h: Remove.
4445         * config/rs6000/gnu.h: Remove.
4446         * config/sh/sh-symbian.h: Remove.
4447         * config/sh/symbian-base.c: Remove.
4448         * config/sh/symbian-c.c: Remove.
4449         * config/sh/symbian-cxx.c: Remove.
4450         * config/sh/symbian-post.h: Remove.
4451         * config/sh/symbian-pre.h: Remove.
4452         * config/sh/t-symbian: Remove.
4453         * config/svr3.h: Remove.
4454         * config/vax/netbsd.h: Remove.
4455         * config.build: Don't handle i[34567]86-*-pe.
4456         * config.gcc: Remove handling of deprecations for most deprecated
4457         targets.
4458         (m68k-*-uclinuxoldabi*): Add to second deprecated list.
4459         (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
4460         i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
4461         m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
4462         powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
4463         sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
4464         Remove cases.
4465         * config.host: Don't handle i[34567]86-*-pe.
4466         * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
4467         (ASM_SPEC32): Don't handle -mcall-gnu.
4468         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
4469         -mcall-gnu.
4470         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
4471         STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
4472         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
4473         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
4474         (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
4475         * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
4476         conditional on SYMBIAN.
4477         * configure.ac: Don't handle powerpc*-*-gnu*.
4478         * configure: Regenerate.
4479         * doc/extend.texi (interrupt attribute): Don't mention CRX.
4480         * doc/install-old.texi (m6811, m6812): Don't mention.
4481         * doc/install.texi (arc-*-elf*): Don't document multilib option.
4482         (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
4483         (m68k-uclinuxoldabi): Don't mention.
4484         * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
4485         Remove.
4486         (-mcall-gnu): Remove.
4487         * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
4488         families): Remove constraint documentation.
4489
4490 2011-03-22  Marius Strobl  <marius@FreeBSD.org>
4491
4492         * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
4493         (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
4494         (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
4495
4496 2011-03-21  Georg-Johann Lay  <avr@gjlay.de>
4497
4498         * config/avr/avr-protos.h (expand_epilogue): Change prototype
4499         * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
4500         * config/avr/avr.c (init_cumulative_args)
4501         (avr_function_arg_advance): Use it.
4502         * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
4503         sibcall epilogues.
4504         (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
4505         (avr_function_ok_for_sibcall): ...this new function.
4506         (avr_lookup_function_attribute1): New static Function.
4507         (avr_naked_function_p, interrupt_function_p)
4508         (signal_function_p, avr_OS_task_function_p)
4509         (avr_OS_main_function_p): Use it.
4510         * config/avr/avr.md ("sibcall", "sibcall_value")
4511         ("sibcall_epilogue"): New expander.
4512         ("*call_insn", "*call_value_insn"): New insn.
4513         ("call_insn", "call_value_insn"): Remove
4514         ("call", "call_value", "epilogue"): Change expander to handle
4515         sibling calls.
4516
4517 2011-03-21  Nick Clifton  <nickc@redhat.com>
4518
4519         * doc/invoke.texi (Overall Options): Move closing brace to end of
4520         options list.
4521         (Optimization Options): Add missing @gol.
4522         (Directory Options): Likewise.
4523         (i386 and x86-64 Options): Likewise.
4524         (RS6000 and PowerPC Options): Likewise.
4525         (i386 and x86-64 Windows Options): Likewise.
4526         (V850 Options): Add text missing from descriptions.
4527
4528 2011-03-22  Richard Henderson  <rth@redhat.com>
4529
4530         * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
4531         (avr_incoming_return_addr_rtx): New.
4532         (emit_push_byte): New.
4533         (expand_prologue): Use it.  Remove incorrect dwarf annotation for
4534         SREG, RAMPZ, zero register.  Push frame pointer by bytes.  Add dwarf
4535         annotation for __prologue_saves__.  Fixup dwarf annotation for CFA.
4536         (emit_pop_byte): New.
4537         (expand_epilogue): Use it.  Pop frame pointer by bytes.
4538         * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
4539         (INCOMING_RETURN_ADDR_RTX): New.
4540         (INCOMING_FRAME_SP_OFFSET): New.
4541         (ARG_POINTER_CFA_OFFSET): New.
4542         * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
4543         (*pushhi, *pushsi, *pushsf, popqi): Likewise.
4544         (pophi): Remove.
4545
4546         * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
4547
4548 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4549
4550         * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
4551         (FUNCTION_ARG_ADVANCE): Likewise.
4552         * tm.texi.in: Change references to them to hook references.
4553         * tm.texi: Regenerate.
4554         * targhooks.c (default_function_arg): Eliminate check for target
4555         macro.
4556         (default_function_incoming_arg): Likewise.
4557         (default_function_arg_advance): Likewise.
4558         * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
4559         (function_arg_advance): Likewise.
4560         * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
4561
4562 2011-03-22  Nathan Froyd  <froydnj@codesourcery.com>
4563
4564         * tree.c (build_call_1): New function.
4565         (build_call_valist, build_call_array_loc, build_call_vec): Call it.
4566
4567 2011-03-22  Richard Guenther  <rguenther@suse.de>
4568
4569         PR tree-optimization/48228
4570         * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
4571         for single-arg PHIs.
4572
4573 2011-03-22  Andrey Belevantsev  <abel@ispras.ru>
4574
4575         PR rtl-optimization/48143
4576         * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
4577         (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
4578         sse2_cvtps2pd): Likewise.
4579
4580 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4581
4582         * recog.c (canonicalize_change_group): Use validate_unshare_change.
4583
4584 2011-03-22  Richard Guenther  <rguenther@suse.de>
4585
4586         * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
4587         a valid RHS.  Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
4588         * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
4589         and REALIGN_LOAD_EXPR.
4590         (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
4591         DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
4592         * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
4593         DOT_PROD_EXPR case ...
4594         (expand_expr_real_2): ... here.
4595         * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
4596         and REALIGN_LOAD_EXPR.
4597         * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
4598         * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
4599         (vect_create_epilog_for_reduction): Likewise.
4600         (vectorizable_reduction): Likewise.
4601         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
4602         * tree-vect-stmts.c (vectorizable_load): Likewise.
4603
4604 2011-03-22  Eric Botcazou  <ebotcazou@adacore.com>
4605
4606         * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
4607
4608 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4609
4610         * config/s390/s390.c (s390_delegitimize_address): Fix offset
4611         handling for PLTOFF/GOTOFF.
4612
4613 2011-03-22  Nick Clifton  <nickc@redhat.com>
4614
4615         * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
4616         trailing backslash from the end of the macro definition.
4617
4618 2011-03-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4619
4620         * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
4621         and PLT unspecs.
4622
4623 2011-03-21  Richard Sandiford  <richard.sandiford@linaro.org>
4624
4625         * expr.h (prepare_operand): Move to...
4626         * optabs.h (prepare_operand): ...here and change the insn code
4627         parameter from "int" to "enum insn_code".
4628         (insn_operand_matches): Declare.
4629         * expr.c (init_expr_target): Use insn_operand_matches.
4630         (compress_float_constant): Likewise.
4631         * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
4632         * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
4633         (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
4634         (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
4635         Likewise.
4636         (gen_cond_trap): Likewise.
4637         (prepare_operand): Likewise.  Change icode to an insn_code.
4638         (insn_operand_matches): New function.
4639         * reload.c (find_reloads_address_1): Use insn_operand_matches.
4640         * reload1.c (gen_reload): Likewise.
4641         * targhooks.c (default_secondary_reload): Likewise.
4642
4643 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
4644
4645         * config/alpha/alpha.md (unspec): New define_c_enum.
4646         (unspecv): Ditto.
4647
4648 2011-03-21  Uros Bizjak  <ubizjak@gmail.com>
4649
4650         PR debug/48214
4651         * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
4652         between a call and its CALL_ARG_LOCATION note.
4653
4654 2011-03-21  Eric Botcazou  <ebotcazou@adacore.com>
4655
4656         * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
4657
4658 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
4659
4660         PR c/42544
4661         PR c/48197
4662         * c-common.c (shorten_compare): If primopN is first sign-extended
4663         to opN and then zero-extended to result type, set primopN to opN.
4664
4665 2011-03-21  Daniel Jacobowitz  <dan@codesourcery.com>
4666
4667         * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
4668         for barrier handlers.
4669
4670 2011-03-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
4671
4672         * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
4673         UNSPEC constants to be in the unspec enumeration, and redefine
4674         all UNSPECV constants to be in the unspecv enumeration, so that
4675         dumps print which unspec/unspec_volatile this is.
4676         * config/rs6000/vector.md (UNSPEC_*): Ditto.
4677         * config/rs6000/paired.md (UNSPEC_*): Ditto.
4678         * config/rs6000/vsx.md (UNSPEC_*): Ditto.
4679         * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
4680         * config/rs6000/dfp.md (UNSPEC_*): Ditto.
4681
4682         * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
4683         UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
4684         UNSPECV_LWSYNC, since these are used as unspec_volatile.
4685         * config/rs6000/sync.md (isync, lwsync): Ditto.
4686
4687 2011-03-21  Richard Guenther  <rguenther@suse.de>
4688
4689         * params.def (lto-min-partition): Fix typo.
4690
4691 2011-03-21  Richard Guenther  <rguenther@suse.de>
4692
4693         PR c/47939
4694         * c-decl.c (grokdeclarator): Drop to the main variant only
4695         for array types.  Drop flag_gen_aux_info check.
4696
4697 2011-03-21  Richard Guenther  <rguenther@suse.de>
4698
4699         PR translation/47911
4700         * params.def (lto-partitions): Fix typo.
4701         (lto-min-partition): Fix wording.
4702
4703 2011-03-21  Andreas Tobler  <andreast@fgznet.ch>
4704
4705         * config/rs6000/t-freebsd: Remove duplication from file.
4706
4707 2011-03-21  Richard Guenther  <rguenther@suse.de>
4708
4709         PR middle-end/47661
4710         * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
4711
4712 2011-03-21  Richard Guenther  <rguenther@suse.de>
4713
4714         PR lto/48210
4715         * params.def (lto-partitions): Require at least 1 partition.
4716
4717 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4718
4719         * gthr-solaris.h: Remove.
4720         * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
4721         * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
4722         (LIB_SPEC): Likewise.
4723         * config/sol2.opt (threads): Remove.
4724         * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
4725         (sparc*-*-solaris2*): Likewise.
4726         * configure.ac (enable_threads): Enable solaris support.
4727         * configure: Regenerate.
4728         * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
4729         * doc/install.texi (Configuration, --enable-threads=lib): Remove
4730         solaris.
4731
4732 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4733
4734         * config.gcc: Obsolete *-*-solaris2.8*.
4735         * doc/install.texi (Specific, *-*-solaris2*): Document it.
4736
4737 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4738
4739         PR bootstrap/48135
4740         * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
4741         reference.  Solaris 8 perl works.
4742
4743 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4744
4745         PR bootstrap/48135
4746         * doc/install.texi (Prerequisites): Move jar etc. up.
4747         Explain support library version requirements.
4748
4749 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4750
4751         PR bootstrap/48135
4752         * doc/install.texi (Prerequisites): Move Perl to build
4753         requirements.  Always necessary on Solaris 2 with Sun ld.
4754
4755 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4756
4757         * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
4758         binutils 2.21.
4759         (Specific, i?86-*-solaris2.[89]): Likewise.
4760         (Specific, i?86-*-solaris2.10): Likewise.
4761         (Specific, mips-sgi-irix6): Likewise.
4762         (Specific, *-*-solaris2*): Remove Sun Studio download URL.
4763         Update for binutils 2.21.
4764
4765 2011-03-21  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4766
4767         * configure.ac (gcc_cv_lto_plugin): Fix typo.
4768         Allow -fuse-linker-plugin for non-default plugin linker.
4769         * configure: Regenerate.
4770
4771 2011-03-21  Nicola Pero  <nicola.pero@meta-innovation.com>
4772
4773         PR bootstrap/48167
4774         * gengtype.c (files_rules): Added rule for cp/parser.h.
4775
4776 2011-03-21  Jakub Jelinek  <jakub@redhat.com>
4777
4778         PR target/48213
4779         * config/s390/s390.c (s390_delegitimize_address): Don't call
4780         lowpart_subreg if orig_x has BLKmode.
4781
4782 2011-03-21  Kai Tietz  <ktietz@redhat.com>
4783
4784         PR target/12171
4785         * doc/plugins.texi: Adjust documentation for plugin register_callback.
4786         * tree.h (attribute_spec): Add new member affects_type_identity.
4787         * attribs.c (empty_attribute_table): Adjust attribute_spec
4788         initializers.
4789         * config/alpha/alpha.c: Likewise.
4790         * config/arc/arc.c: Likewise.
4791         * config/arm/arm.c: Likewise.
4792         * config/avr/avr.c: Likewise.
4793         * config/bfin/bfin.c: Likewise.
4794         * config/crx/crx.c: Likewise.
4795         * config/darwin.h: Likewise.
4796         * config/h8300/h8300.c: Likewise.
4797         * config/i386/cygming.h: Likewise.
4798         * config/i386/i386.c: Likewise.
4799         * config/ia64/ia64.c: Likewise.
4800         * config/m32c/m32c.c: Likewise.
4801         * config/m32r/m32r.c: Likewise.
4802         * config/m68hc11/m68hc11.c: Likewise.
4803         * config/m68k/m68k.c: Likewise.
4804         * config/mcore/mcore.c: Likewise.
4805         * config/mep/mep.c: Likewise.
4806         * config/microblaze/microblaze.c: Likewise.
4807         * config/mips/mips.c: Likewise.
4808         * config/rs6000/rs6000.c: Likewise.
4809         * config/rx/rx.c: Likewise.
4810         * config/sh/sh.c: Likewise.
4811         * config/sol2.h: Likewise.
4812         * config/sparc/sparc.c: Likewise.
4813         * config/spu/spu.c: Likewise.
4814         * config/stormy16/stormy16.c: Likewise.
4815         * config/v850/v850.c: Likewise.
4816
4817 2011-03-21  Chung-Lin Tang  <cltang@codesourcery.com>
4818
4819         * simplify-rtx.c (simplify_binary_operation_1): Handle
4820         (xor (and A B) C) case when B and C are both constants.
4821
4822 2011-03-21  Mingjie Xing  <mingjie.xing@gmail.com>
4823
4824         * tree-dfa.c (add_referenced_var): Fix typo in comment.
4825
4826 2011-03-20  Eric Botcazou  <ebotcazou@adacore.com>
4827
4828         PR bootstrap/48168
4829         * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
4830
4831 2011-03-20  Jakub Jelinek  <jakub@redhat.com>
4832
4833         PR rtl-optimization/48156
4834         * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
4835         assume df and df_lr are not NULL.
4836
4837 2011-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
4838
4839         PR debug/48023
4840         * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
4841         between a call and its CALL_ARG_LOCATION note.
4842
4843 2011-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
4844
4845         PR debug/48178
4846         * config/sh/sh.c (find_barrier): Don't emit a constant pool
4847         between a call and its corresponding CALL_ARG_LOCATION note.
4848
4849 2011-03-19  Anatoly Sokolov  <aesok@post.ru>
4850
4851         * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
4852         instead of loop. Use HARD_REGISTER_NUM_P predicate.
4853         * haifa-sched.c (setup_ref_regs): Ditto.
4854         * caller-save.c (add_used_regs_1): Ditto.
4855         * dse.c (look_for_hardregs): Ditto.
4856         * df-problems.c (df_simulate_one_insn_forwards): Ditto.
4857         * sched-rgn.c (check_live_1): Ditto.
4858
4859 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
4860
4861         * c-decl.c (diagnose_mismatched_decls): Give an error for
4862         redefining a typedef with variably modified type.
4863
4864 2011-03-18  Joseph Myers  <joseph@codesourcery.com>
4865
4866         * c-decl.c (grokfield): Don't allow typedefs for structures or
4867         unions with no tag by default.
4868         * doc/extend.texi (Unnamed Fields): Update.
4869
4870 2011-03-18  Uros Bizjak  <ubizjak@gmail.com>
4871
4872         * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
4873         Rewrite using indirect functions.
4874         (lwp_slwpcb): Ditto.
4875         * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
4876         (avx_vinsertf128<mode>): Ditto.
4877
4878 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4879
4880         * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
4881         unspecs.
4882
4883 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4884
4885         * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
4886         splitting between a call and its corresponding CALL_ARG_LOCATION note.
4887
4888 2011-03-18  Maxim Kuvyrkov  <maxim@codesourcery.com>
4889
4890         PR rtl-optimization/48170
4891         * gcse.c (hoist_code): Remove bogus asserts.
4892
4893 2011-03-18  Georg-Johann Lay  <avr@gjlay.de>
4894
4895         * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
4896         computation for prologue/epilogue.
4897
4898 2011-03-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4899
4900         * Makefile.in (check-consistency): Remove.
4901
4902 2011-03-18  Jakub Jelinek  <jakub@redhat.com>
4903
4904         PR debug/48176
4905         * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
4906         arange_table_in_use is 0, but either text_section_used or
4907         cold_text_section_used is true.  Don't call it if
4908         !info_section_emitted.
4909
4910 2011-03-18  Anatoly Sokolov  <aesok@post.ru>
4911
4912         * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
4913         FUNCTION_VALUE_REGNO_P): Remove.
4914         * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
4915         Remove.
4916         * config/avr/avr.c (avr_ret_register): Make static inline.
4917         (avr_function_value_regno_p): New function.
4918         (avr_libcall_value): Make static. Add 'func' argument.
4919         (avr_function_value): Make static. Rename 'func' argument to
4920         'fn_decl_or_type', forward it to avr_libcall_value. Call
4921         avr_ret_register function instead of RET_REGISTER macro.
4922         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
4923
4924 2011-03-18  Jason Merrill  <jason@redhat.com>
4925
4926         PR c++/23372
4927         * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
4928
4929 2011-03-18  Richard Guenther  <rguenther@suse.de>
4930
4931         * doc/install.texi (--enable-gold): Remove.
4932         (--with-plugin-ld): Document.
4933         * doc/invoke.texi (-fuse-linker-plugin): Clarify.
4934
4935 2011-03-18  Andrew Pinski  <pinskia@gmail.com>
4936
4937         PR middle-end/47790
4938         * expr.c (optimize_bitfield_assignment_op): Revamp to work
4939         again after expansion changes.
4940
4941 2011-03-18  Chung-Lin Tang  <cltang@codesourcery.com>
4942
4943         * combine.c (try_combine): Do simplification only call of
4944         subst() on i2 even when i1 is present. Update comments.
4945
4946 2011-03-18  Kaz Kojima  <kkojima@gcc.gnu.org>
4947
4948         * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
4949         and UNSPEC_PCREL_SYMOFF.
4950
4951 2011-03-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4952
4953         * config/s390/s390.md: Use define_c_enum for the unspec constant
4954         definitions.
4955
4956 2011-03-18  Richard Henderson  <rth@redhat.com>
4957             Jakub Jelinek  <jakub@redhat.com>
4958
4959         PR bootstrap/48161
4960         * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
4961         instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
4962
4963 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
4964
4965         PR middle-end/47725
4966         * combine.c (cant_combine_insn_p): Don't check zero/sign
4967         extended hard registers.
4968
4969 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
4970
4971         PR middle-end/47725
4972         * combine.c (cant_combine_insn_p): Check zero/sign extended
4973         hard registers.
4974
4975 2011-03-17  Anatoly Sokolov  <aesok@post.ru>
4976
4977         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
4978         * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
4979         * config/v850/v850.c (v850_output_addr_const_extra): Make static.
4980         Change return type to bool.
4981         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
4982
4983 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
4984
4985         PR debug/48163
4986         * var-tracking.c (prepare_call_arguments): If CALL target
4987         is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
4988         pc instead of looking it up using cselib_lookup and use
4989         Pmode for it if x has VOIDmode.
4990         * dwarf2out.c (gen_subprogram_die): If also both first and
4991         second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
4992
4993         PR debug/48163
4994         * function.c (assign_parms): For data.passed_pointer parms
4995         use MEM of data.entry_parm instead of data.entry_parm itself
4996         as DECL_INCOMING_RTL.
4997         * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
4998         also when passed and declared mode is the same, DECL_RTL
4999         is a MEM with pseudo as address and DECL_INCOMING_RTL is
5000         a MEM too.
5001
5002 2011-03-16  Jeff Law  <law@redhat.com>
5003
5004         PR rtl-optimization/37273
5005         * ira-costs.c (scan_one_insn): Detect constants living in memory and
5006         handle them like argument loads from stack slots.  Do not double
5007         count memory for memory constants and argument loads from stack slots.
5008
5009 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5010
5011         PR debug/48160
5012         * var-tracking.c (prepare_call_arguments): Check SUBREG.
5013
5014 2011-03-17  H.J. Lu  <hongjiu.lu@intel.com>
5015
5016         PR target/48171
5017         * config/i386/i386.opt: Add Save to -mavx and -mfma.
5018
5019 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5020
5021         PR bootstrap/48153
5022         * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
5023         if dwarf_strict.
5024         (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
5025         Clear call_arg_locations and call_arg_loc_last always.
5026
5027         PR middle-end/48152
5028         * var-tracking.c (prepare_call_arguments): If argument needs to be
5029         passed by reference, adjust argtype and mode.
5030
5031 2011-03-17  Richard Guenther  <rguenther@suse.de>
5032
5033         PR middle-end/48134
5034         * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
5035         a value make sure to fold the statement.
5036
5037 2011-03-17  Chung-Lin Tang  <cltang@codesourcery.com>
5038
5039         PR target/43872
5040         * config/arm/arm.c (arm_get_frame_offsets): Adjust early
5041         return condition with !cfun->calls_alloca.
5042
5043 2011-03-17  Richard Guenther  <rguenther@suse.de>
5044
5045         PR bootstrap/48148
5046         * lto-cgraph.c (input_overwrite_node): Clear the abstract
5047         origin for decls in other ltrans units.
5048         (input_varpool_node): Likewise.
5049
5050 2011-03-17  Richard Guenther  <rguenther@suse.de>
5051
5052         PR middle-end/48165
5053         * tree-object-size.c (compute_object_offset): Properly return
5054         the offset operand of MEM_REFs as sizetype.
5055
5056 2011-03-17  Jakub Jelinek  <jakub@redhat.com>
5057
5058         PR rtl-optimization/48141
5059         * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
5060         * dse.c: Include params.h.
5061         (active_local_stores_len): New variable.
5062         (add_wild_read, dse_step1): Clear it when setting active_local_stores
5063         to NULL.
5064         (record_store, check_mem_read_rtx): Decrease it when removing
5065         from the chain.
5066         (scan_insn): Likewise.  Increase it when adding to chain, if it
5067         reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
5068         set active_local_stores to NULL before the addition.
5069         * Makefile.in (dse.o): Depend on $(PARAMS_H).
5070
5071         PR rtl-optimization/48141
5072         * dse.c (record_store): If no positions are needed in an insn
5073         that cannot be deleted, at least unchain it from active_local_stores.
5074
5075 2011-03-16  Dodji Seketeli  <dodji@redhat.com>
5076
5077         PR debug/47510
5078         * dwarf2out.c (strip_naming_typedef): Factorize out of ...
5079         (lookup_type_die_strip_naming_typedef): ... here.
5080         (get_context_die): Use it.
5081         (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
5082         the anonymous struct named by the naming typedef.
5083
5084 2011-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5085
5086         PR target/48154
5087         * config/i386/i386.c (ix86_builtin_vectorized_function): Check
5088         TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5089
5090 2011-03-16  Jeff Law  <law@redhat.com>
5091
5092         * tree-vrp.c (identify_jump_threads): Slightly simplify type
5093         check for operands of conditional.  Allow type to be a pointer.
5094
5095 2011-03-16  Richard Guenther  <rguenther@suse.de>
5096
5097         PR tree-optimization/48149
5098         * fold-const.c (fold_binary_loc): Fold
5099         COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
5100
5101 2011-03-16  Richard Guenther  <rguenther@suse.de>
5102
5103         PR tree-optimization/26134
5104         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
5105         complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
5106         (non_rewritable_mem_ref_base): Handle complex type component
5107         accesses, constrain offsets for vector and complex extracts
5108         more properly.
5109
5110 2011-03-16  Richard Guenther  <rguenther@suse.de>
5111
5112         PR tree-optimization/48146
5113         * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
5114         operands avoiding the need for renaming.
5115
5116 2011-03-16  Richard Guenther  <rguenther@suse.de>
5117
5118         * gimple-fold.c (maybe_fold_reference): Open-code relevant
5119         constant folding.  Move MEM_REF canonicalization first.
5120         Rely on fold_const_aggregate_ref for initializer folding.
5121         * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
5122
5123 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
5124
5125         PR middle-end/48136
5126         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
5127         arg0/arg1 or their arguments are always fold converted to matching
5128         types.
5129
5130         * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
5131         to nargs.
5132
5133 2011-03-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5134
5135         PR lto/46944
5136         * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
5137         Handle in-tree gold.
5138         (ld_vers): Extract binutils version for gold.
5139         (gcc_cv_ld_hidden): Handle gold here.
5140         (gcc_cv_lto_plugin): Determine level of linker plugin support.
5141         * configure: Regenerate.
5142         * config.in: Regenerate.
5143         * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
5144         -fuse-linker-plugin otherwise.
5145         (LINK_PLUGIN_SPEC): Define.  Extract from LINK_COMMAND_SPEC.
5146         (LINK_COMMAND_SPEC): Use it.
5147         (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
5148
5149 2011-03-16  Jakub Jelinek  <jakub@redhat.com>
5150
5151         * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
5152         * calls.c: Remove debug.h include.
5153         (emit_call_1): Don't call virtual_call_token debug hook.
5154         * dwarf2out.c (debug_dcall_section, debug_vcall_section,
5155         dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
5156         vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
5157         size_of_dcall_table, output_dcall_table, size_of_vcall_table,
5158         output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
5159         vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
5160         dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
5161         dwarf2out_virtual_call): Remove.
5162         (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
5163         copy_call_info and virtual_call hooks.
5164         (dwarf2out_init): Don't initialize vcall_insn_table,
5165         debug_dcall_section and debug_vcall_section.
5166         (prune_unused_types): Don't mark nodes from dcall_table.
5167         (dwarf2out_finish): Don't output dcall or vcall tables.
5168         * final.c (final_scan_insn): Don't call direct_call or
5169         virtual_call debug hooks.
5170         * debug.h (struct gcc_debug_hooks): Remove direct_call,
5171         virtual_call_token, copy_call_info and virtual_call hooks.
5172         (debug_nothing_uid): Remove prototype.
5173         * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
5174         copy_call_info and virtual_call hooks.
5175         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
5176         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
5177         * debug.c (do_nothing_debug_hooks): Likewise.
5178         (debug_nothing_uid): Remove.
5179         * doc/invoke.texi (-fenable-icf-debug): Remove.
5180         * common.opt (-fenable-icf-debug): Likewise.
5181
5182         * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
5183         * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
5184         call's MEM.  Handle functions returning aggregate through a hidden
5185         first pointer.  For virtual calls add clobbered pc to call arguments
5186         chain.
5187         * dwarf2out.c (gen_subprogram_die): Emit
5188         DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
5189         can't be emitted.
5190
5191         PR debug/45882
5192         * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
5193         * rtl.h (ENTRY_VALUE_EXP): Define.
5194         * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
5195         * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
5196         * print-rtl.c (print_rtx): Likewise.
5197         * gengtype.c (adjust_field_rtx_def): Likewise.
5198         * var-tracking.c (vt_add_function_parameter): Adjust
5199         gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
5200         * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
5201         * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
5202         partition is a default definition of a PARM_DECL, use ENTRY_VALUE
5203         of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
5204
5205         * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
5206         Call var_location debug hook even on CALL_INSNs.
5207         (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
5208         * rtl.def (ENTRY_VALUE): New.
5209         * dwarf2out.c: Include cfglayout.h.
5210         (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
5211         output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
5212         (struct call_arg_loc_node): New type.
5213         (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
5214         tail_call_site_count): New variables.
5215         (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
5216         DW_TAG_GNU_call_site_parameter.
5217         (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
5218         DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
5219         DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
5220         DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
5221         and DW_AT_GNU_all_source_call_sites.
5222         (mem_loc_descriptor): Handle ENTRY_VALUE.
5223         (add_src_coords_attributes): Don't add enything if
5224         DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
5225         (dwarf2out_abstract_function): Save and clear call_arg_location,
5226         call_site_count and tail_call_site_count around dwarf2out_decl call.
5227         (gen_call_site_die): New function.
5228         (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
5229         (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
5230         (dwarf2out_function_decl): Clear call_arg_locations,
5231         call_arg_loc_last, set call_site_count and tail_call_site_count
5232         to -1 and free block_map.
5233         (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
5234         CALL_INSNs.  Add NOTE_DURING_CALL_P var location notes even when not
5235         followed by any real instructions.
5236         (dwarf2out_begin_function): Set call_site_count and
5237         tail_call_site_count to 0.
5238         (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
5239         is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
5240         attempt to force a DIE for it and worst case remove the attribute.
5241         (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
5242         check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
5243         the decl itself.
5244         * var-tracking.c: Include tm_p.h.
5245         (vt_stack_adjustments): For calls call note_register_arguments.
5246         (argument_reg_set): New variable.
5247         (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
5248         ensure the VALUE is resolved.
5249         (call_arguments): New variable.
5250         (prepare_call_arguments): New function.
5251         (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
5252         (struct expand_loc_callback_data): Add ignore_cur_loc field.
5253         (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
5254         always use the best expression.
5255         (vt_expand_loc): Add ignore_cur_loc argument.
5256         (vt_expand_loc_dummy): Clear ignore_cur_loc field.
5257         (emit_note_insn_var_location): Adjust vt_expand_loc callers.
5258         (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
5259         note for all calls.
5260         (vt_add_function_parameter): Use cselib_lookup_from_insn.
5261         If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
5262         argument.  Don't call cselib_preserve_only_values and
5263         cselib_reset_table.
5264         (note_register_arguments): New function.
5265         (vt_initialize): Compute argument_reg_set.  Call
5266         vt_add_function_parameters before processing basic blocks instead of
5267         afterwards.  For calls call prepare_call_arguments before calling
5268         cselib_process_insn.
5269         * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
5270         * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
5271         (var-tracking.o): Depend on $(TM_P_H).
5272         * cfglayout.h (insn_scope): New prototype.
5273         * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
5274         * cfglayout.c (insn_scope): No longer static.
5275         * insn-notes.def (CALL_ARG_LOCATION): New.
5276         * calls.c (expand_call, emit_library_call_value_1): Put USEs for
5277         MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
5278         * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
5279         nothing for DECL_EXTERNAL BLOCK_VARS.
5280
5281 2011-03-16  Alan Modra  <amodra@gmail.com>
5282
5283         PR target/45844
5284         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
5285         create invalid offset address for vsx splat insn.
5286         * config/rs6000/predicates.md (splat_input_operand): New.
5287         * config/rs6000/vsx.md (vsx_splat_*): Use it.
5288
5289 2011-03-15  Xinliang David Li  <davidxl@google.com>
5290
5291         PR c/47837
5292         * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
5293         (normalize_preds): New function.
5294         (is_use_properly_guarded): Normalize def predicates.
5295
5296 2011-03-15  Ramana Radhakrishnan  <ramana.radhakrishnan@linaro.org>
5297
5298         PR target/46788
5299         * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
5300         in the output template.
5301
5302 2011-03-15  Richard Guenther  <rguenther@suse.de>
5303
5304         PR middle-end/47650
5305         * tree-pretty-print.c (dump_function_declaration): Properly
5306         dump unprototyped and varargs function types.
5307
5308 2011-03-15  Richard Guenther  <rguenther@suse.de>
5309
5310         PR tree-optimization/13954
5311         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
5312         and friends.
5313
5314 2011-03-15  Richard Guenther  <rguenther@suse.de>
5315
5316         PR tree-optimization/48037
5317         * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
5318         selects into BIT_FIELD_REFs.
5319         (non_rewritable_mem_ref_base): Check if a MEM_REF is a
5320         vector select.
5321
5322 2011-03-15  Jakub Jelinek  <jakub@redhat.com>
5323
5324         PR tree-optimization/48129
5325         * builtins.c (fold_builtin_snprintf): Convert to type of
5326         built_in_decls[BUILT_IN_SNPRINTF] retval instead of
5327         implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
5328
5329 2011-03-15  Richard Guenther  <rguenther@suse.de>
5330
5331         PR tree-optimization/41490
5332         * tree-ssa-dce.c (propagate_necessity): Handle returns without
5333         value but with VUSE.
5334         * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
5335         return statements.
5336         * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
5337         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
5338         * tree-tailcall.c (find_tail_calls): Ignore returns.
5339
5340 2011-03-15  Richard Guenther  <rguenther@suse.de>
5341
5342         PR middle-end/48031
5343         * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
5344         or variable-indexed array accesses when in gimple form.
5345
5346 2011-03-15  Richard Guenther  <rguenther@suse.de>
5347
5348         * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
5349
5350 2011-03-15  Alan Modra  <amodra@gmail.com>
5351
5352         PR target/48032
5353         * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
5354         presume symbol_refs without a symbol_ref_decl are suitably
5355         aligned, nor other trees we may see here.  Handle anchor symbols.
5356         (legitimate_constant_pool_address_p): Comment.  Add mode param.
5357         Check cmodel=medium addresses.  Adjust all calls.
5358         (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
5359         creating cmodel=medium optimized access to locals.
5360         * config/rs6000/constraints.md (R): Pass QImode to
5361         legitimate_constant_pool_address_p.
5362         * config/rs6000/predicates.md (input_operand): Pass mode to
5363         legitimate_constant_pool_address_p.
5364         * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
5365         Update prototype.
5366
5367 2011-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5368
5369         PR target/48053
5370         * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
5371         64-bit constants being loaded into registers other than GPRs such
5372         as loading 0 into a VSX register.
5373
5374 2011-03-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
5375
5376         * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
5377
5378 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
5379
5380         PR middle-end/47917
5381         * builtins.c (fold_builtin_snprintf): New function.
5382         (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
5383         (fold_builtin_4): Likewise.
5384
5385         PR middle-end/38878
5386         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
5387         STRIP_NOPS on arg0 and arg1.  When optimizing X +- C == X
5388         and C - X == X also strip nops from +/-/p+ operand.
5389         When optimizing -X == C, fold C to arg0's type.
5390
5391         PR debug/47946
5392         * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
5393         emit it as add_AT_int instead of add_AT_unsigned.
5394
5395 2011-03-14  Tom Tromey  <tromey@redhat.com>
5396
5397         * unwind-dw2.c: Include sys/sdt.h if it exists.
5398         (_Unwind_DebugHook): Use STAP_PROBE2.
5399         * config.in, configure: Rebuild.
5400         * configure.ac: Check for sys/sdt.h.
5401
5402 2011-03-14  Uros Bizjak  <ubizjak@gmail.com>
5403
5404         * config/i386/i386.md (ROUND_FLOOR): New constant.
5405         (ROUND_CEIL): Ditto.
5406         (ROUND_TRUNC): Ditto.
5407         (ROUND_MXCSR): Ditto.
5408         (ROUND_NO_EXC): Ditto.
5409         (rint<mode>2): Use new defines instead of numerical constants.
5410         (floor<mode>2): Ditto.
5411         (ceil<mode>2): Ditto.
5412         (btrunc<mode>2): Ditto.
5413         * config/i386/i386-builtin-types.def: Define ROUND function type
5414         aliases.
5415         * config/i386/i386.c (enum ix86_builtins): Add
5416         IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
5417         (struct builtin_description): Add
5418         __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
5419         (ix86_expand_sse_round): New static function.
5420         (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
5421         function types.
5422         (ix86_builtin_vectorized_function): Handle
5423         BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
5424
5425 2011-03-14  Tom Tromey  <tromey@redhat.com>
5426
5427         * c-parser.c (c_parser_asm_string_literal): Clear
5428         warn_overlength_strings.
5429
5430 2011-03-14  Tom Tromey  <tromey@redhat.com>
5431
5432         * c-parser.c (disable_extension_diagnostics): Save
5433         warn_overlength_strings.
5434         (restore_extension_diagnostics): Restore warn_overlength_strings.
5435
5436 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
5437
5438         * BASE-VER: Change to 4.7.0.
5439
5440 2011-03-14  Richard Guenther  <rguenther@suse.de>
5441
5442         PR middle-end/48098
5443         * tree.c (build_vector_from_val): Adjust assert to requirements
5444         and reality.
5445
5446 2011-03-14  Jakub Jelinek  <jakub@redhat.com>
5447
5448         PR bootstrap/48102
5449         * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
5450
5451 2011-03-14  Andreas Tobler  <andreast@fgznet.ch>
5452
5453         * config/rs6000/freebsd.h: (RELOCATABLE_NEEDS_FIXUP): Define in
5454         terms of target_flags_explicit. Adjust copyright year.
5455
5456         * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
5457         * config/rs6000/t-freebsd: New file. Add override for
5458         LIB2FUNCS_EXTRA.
5459
5460 2011-03-13  Chris Demetriou  <cgd@google.com>
5461
5462         * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
5463         (-fno-diagnostics-show-option): this, to reflect current default.
5464         (-Werror=): Update text about -fno-diagnostics-show-option.
5465
5466 2011-03-12  Peter Bergner  <bergner@vnet.ibm.com>
5467
5468         PR target/48053
5469         * config/rs6000/predicates.md (easy_vector_constant_add_self,
5470         easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
5471         * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
5472         mode is not V2DImode or V2DFmode.
5473         (vspltis_constant): Do not handle V2DImode and V2DFmode.
5474         (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
5475         * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
5476         registers to 0.
5477         (movdi_internal64): Likewise.
5478
5479 2011-03-12  Sebastian Pop  <sebastian.pop@amd.com>
5480
5481         PR tree-optimization/47127
5482         * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
5483         parameter.
5484         (set_cloog_options): Same.
5485         (scop_to_clast): Same.
5486         (print_clast_stmt): Do not call cloog_state_malloc and
5487         cloog_state_free.
5488         (print_generated_program): Same.
5489         (gloog): Same.
5490         * graphite-clast-to-gimple.h (cloog_state): Declared.
5491         (scop_to_clast): Adjust declaration.
5492         * graphite.c (cloog_state): Defined here.
5493         (graphite_initialize): Call cloog_state_malloc.
5494         (graphite_finalize): Call cloog_state_free.
5495
5496 2011-03-11  Jason Merrill  <jason@redhat.com>
5497
5498         * attribs.c (lookup_attribute_spec): Take const_tree.
5499         * tree.h: Adjust.
5500
5501 2011-03-11  Joseph Myers  <joseph@codesourcery.com>
5502
5503         * config/sparc/sparc.c (sparc_option_override): Use
5504         PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
5505
5506 2011-03-11  Richard Guenther  <rguenther@suse.de>
5507
5508         PR tree-optimization/48067
5509         * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
5510         multiplication result will be only used once on the target
5511         stmt.
5512
5513 2011-03-11  Richard Guenther  <rguenther@suse.de>
5514
5515         * doc/invoke.texi (max-inline-insns-single): Adjust default value.
5516
5517 2011-03-11  Richard Guenther  <rguenther@suse.de>
5518
5519         PR lto/48073
5520         * tree.c (find_decls_types_r): Do not walk types only reachable
5521         from IDENTIFIER_NODEs.
5522
5523 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
5524
5525         PR middle-end/48044
5526         * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
5527         all vnode->force_output nodes as needed.
5528
5529 2011-03-11  Jason Merrill  <jason@redhat.com>
5530
5531         PR c++/48069
5532         * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
5533         COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
5534
5535 2011-03-11  Martin Jambor  <mjambor@suse.cz>
5536
5537         * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
5538         cgraph_node.
5539
5540 2011-03-11  Jakub Jelinek  <jakub@redhat.com>
5541
5542         PR tree-optimization/48063
5543         * ipa-inline.c (cgraph_decide_inlining): Don't try to
5544         inline functions called once if !tree_can_inline_p (node->callers).
5545
5546 2011-03-11  Chen Liqin  <liqin.gcc@gmail.com>
5547
5548         * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
5549         extra_objs.
5550         * config/score/score3.c: Delete.
5551         * config/score/score3.h: Delete.
5552         * config/score/mul-div.S: Delete.
5553         * config/score/sfp-machine.h: Add new file.
5554         * config/score/constraints.md: Add new file.
5555         * config/score/t-score-softfp: Add new file.
5556         * config/score/t-score-elf: Remove score3.o, do not generate multilib.
5557         * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
5558         (score7_extra_constraint): Delete.
5559         (score7_option_override): Remove unused code.
5560         * config/score/score.c: Remove score3 and score5 define and code.
5561         * config/score/score.h: Remove score3 and score5 define and code.
5562         * config/score/score.md: Remove score3 template and unusual insn.
5563         * config/score/score.opt: Remove score3 and score5 options.
5564
5565 2011-03-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5566
5567         * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
5568         when _HPUX_SOURCE is defined.
5569         (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
5570
5571 2011-03-10  Jason Merrill  <jason@redhat.com>
5572
5573         PR c++/48029
5574         * stor-layout.c (layout_type): Don't set structural equality
5575         on arrays of incomplete type.
5576         * tree.c (type_hash_eq): Handle comparing them properly.
5577
5578 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
5579
5580         PR debug/48043
5581         * config/s390/s390.c (s390_delegitimize_address): Make sure the
5582         result mode matches original rtl mode.
5583
5584 2011-03-10  Nick Clifton  <nickc@redhat.com>
5585
5586         * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
5587         (andsi3, andsi3_flags): Fix timings for three operand alternative.
5588
5589 2011-03-09  Jakub Jelinek  <jakub@redhat.com>
5590
5591         PR rtl-optimization/47866
5592         * expr.c (store_field): If MEM_SCALAR_P (target), don't use
5593         MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
5594         if target wasn't scalar.
5595         * function.c (assign_stack_temp_for_type): Assert that neither
5596         MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
5597         MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
5598         macro.
5599         * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
5600
5601 2011-03-09  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5602
5603         * config/s390/s390-protos.h (s390_label_align): New prototype.
5604         * config/s390/s390.c (s390_label_align): New function.
5605         * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
5606
5607 2011-03-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
5608
5609         PR target/47755
5610         * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
5611         V2DI/V2DF constants.  Only all 0's or all 1's are easy.
5612         (output_vec_const_move): Ditto.
5613
5614 2011-03-08  Anatoly Sokolov  <aesok@post.ru>
5615
5616         * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
5617         * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
5618         * config/mips/mips.c (mips_preferred_reload_class): Make static.
5619         Change 'rclass' argument and result type to reg_class_t.
5620         (TARGET_PREFERRED_RELOAD_CLASS): Define.
5621
5622 2011-03-08  Georg-Johann Lay  <avr@gjlay.de>
5623
5624         * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5625         * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
5626         (TARGET_MEMORY_MOVE_COST): Define.
5627         (avr_register_move_cost, avr_memory_move_cost): New Functions.
5628
5629 2011-03-08  Jakub Jelinek  <jakub@redhat.com>
5630
5631         PR debug/47881
5632         * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
5633         removed anything.
5634
5635         PR tree-optimization/48022
5636         * fold-const.c (fold_comparison): Don't call fold_overflow_warning
5637         for EQ/NE_EXPR.
5638
5639 2011-03-07  Jakub Jelinek  <jakub@redhat.com>
5640
5641         PR debug/47991
5642         * var-tracking.c (find_use_val): Return NULL for
5643         cui->sets && cui->store_p BLKmode MEMs.
5644
5645 2011-03-07  Anatoly Sokolov  <aesok@post.ru>
5646
5647         * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
5648         Remove.
5649         * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
5650         xstormy16_print_operand_address): Remove.
5651         * config/stormy16/stormy16.c (xstormy16_print_operand,
5652         xstormy16_print_operand_address): Make static.
5653         (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
5654
5655 2011-03-07  Pat Haugen  <pthaugen@us.ibm.com>
5656
5657         PR target/47862
5658         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
5659         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
5660         before definition.
5661
5662 2011-03-07  Zdenek Dvorak  <ook@ucw.cz>
5663
5664         PR bootstrap/48000
5665         * cfgloopmanip.c (fix_bb_placements): Return immediately
5666         if FROM is BASE_LOOP's header.
5667
5668 2011-03-07  Paul Wögerer  <paul_woegerer@mentor.com>
5669
5670         * gimplify.c (gimplify_function_tree): Fix building calls
5671         to __builtin_return_address.
5672
5673 2011-03-07  Alan Modra  <amodra@gmail.com>
5674
5675         * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
5676         * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
5677         * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
5678         * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
5679         return_mode args.
5680         * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
5681         (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
5682         (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
5683         (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
5684         * config/rs6000/rs6000.c
5685         (rs6000_elf_end_indicate_exec_stack): Rename to..
5686         (rs6000_elf_file_end): ..this.  Only call file_end_indicate_exec_stack
5687         for POWERPC_LINUX.  Move code emitting .gnu_attribute to here, from..
5688         (rs6000_file_start): ..here.
5689         (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
5690         file scope variables.
5691         (call_ABI_of_interest): New function.
5692         (init_cumulative_args): Set above vars when function return value
5693         is a float, vector, or small struct.
5694         (rs6000_function_arg_advance_1): Likewise for function args.
5695         (rs6000_va_start): Set rs6000_passes_float if variable arg function
5696         references float args.
5697
5698 2011-03-07  Mingjie Xing  <mingjie.xing@gmail.com>
5699
5700         * doc/cfg.texi: Remove "See" before @ref.
5701         * doc/invoke.texi: Likewise.
5702
5703 2011-03-05  Jason Merrill  <jason@redhat.com>
5704
5705         * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
5706
5707 2011-03-05  Anthony Green  <green@moxielogic.com>
5708
5709         * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
5710
5711 2011-03-05  Zdenek Dvorak  <ook@ucw.cz>
5712
5713         PR rtl-optimization/47899
5714         * cfgloopmanip.c (fix_bb_placements): Fix first argument
5715         to flow_loop_nested_p when moving the loop upward.
5716
5717 2011-03-05  Richard Earnshaw  <rearnsha@arm.com>
5718
5719         PR target/47719
5720         * arm.md (movhi_insn_arch4):  Accept any immediate constant.
5721
5722 2011-03-05  Jakub Jelinek  <jakub@redhat.com>
5723
5724         PR tree-optimization/47967
5725         * ipa-cp.c (build_const_val): Return NULL instead of creating
5726         VIEW_CONVERT_EXPR for mismatching sizes.
5727         (ipcp_create_replace_map): Return NULL if build_const_val failed.
5728         (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
5729         give up on versioning.
5730
5731 2011-03-05  Alan Modra  <amodra@gmail.com>
5732
5733         PR target/47986
5734         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
5735         full cmodel medium/large lo_sum + high addresses.
5736
5737 2011-03-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5738
5739         * config/s390/s390.c (s390_decompose_address): Reject non-literal
5740         pool references in UNSPEC_LTREL_OFFSET.
5741
5742 2011-03-04  Jan Hubicka  <jh@suse.cz>
5743
5744         PR lto/47497
5745         * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
5746         (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
5747         * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
5748         Add node pointers.
5749         * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
5750         cgraph_add_thunk): Add node pointers.
5751         * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
5752         associated to right node.
5753         (input_node): Update use of cgraph_same_body_alias
5754         and cgraph_add_thunk.
5755
5756 2011-03-04  Changpeng Fang  <changpeng.fang@amd.com>
5757
5758         * config/i386/i386.opt (mprefer-avx128): New flag.
5759         * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
5760         modes when the flag -mprefer-avx128 is on.
5761
5762 2011-03-04  Richard Sandiford  <richard.sandiford@linaro.org>
5763
5764         * dwarf2out.c (compare_loc_operands): Fix address handling.
5765
5766 2011-03-04  Alan Modra  <amodra@gmail.com>
5767
5768         * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
5769
5770 2011-03-04  Richard Guenther  <rguenther@suse.de>
5771
5772         PR middle-end/47968
5773         * expmed.c (extract_bit_field_1): Prefer vector modes that
5774         vec_extract patterns can handle.
5775
5776 2011-03-04  Richard Guenther  <rguenther@suse.de>
5777
5778         PR middle-end/47975
5779         * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
5780
5781 2011-03-04  Richard Henderson  <rth@redhat.com>
5782
5783         * explow.c (emit_stack_save): Remove 'after' parameter.
5784         (emit_stack_restore): Likewise.
5785         * expr.h: Update to match.
5786         * builtins.c, calls.c, stmt.c: Likewise.
5787         * config/alpha/alpha.md, config/avr/avr.md: Likewise.
5788         * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
5789         * function.c (expand_function_end): Insert the emit_stack_save
5790         sequence before parm_birth_insn instead of after.
5791
5792 2011-03-03  Uros Bizjak  <ubizjak@gmail.com>
5793
5794         * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
5795         (ssse3_pmaddubsw128): Ditto.
5796         (ssse3_pmaddubsw): Ditto.
5797
5798 2011-03-03  Steve Ellcey  <sje@cup.hp.com>
5799
5800         * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
5801
5802 2011-03-03  Jakub Jelinek  <jakub@redhat.com>
5803
5804         PR c/47963
5805         * gimplify.c (omp_add_variable): Only call omp_notice_variable
5806         on TYPE_SIZE_UNIT if it is a DECL.
5807
5808         PR debug/47283
5809         * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
5810         first operand is not is_gimple_mem_ref_addr, try to fold it.
5811         If the operand still isn't is_gimple_mem_ref_addr, clear
5812         MEM_EXPR on op0.
5813
5814 2011-03-03  Richard Guenther  <rguenther@suse.de>
5815
5816         PR middle-end/47283
5817         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
5818         match comment.
5819         (refs_may_alias_p_1): For release branches return true if
5820         we are confused by our input.
5821
5822 2011-03-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5823
5824         * config/s390/s390.c (s390_function_value): Rename to ...
5825         (s390_function_and_libcall_value): ... this.
5826         (s390_function_value): New function.
5827         (s390_libcall_value): New function.
5828         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
5829         * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
5830         target macro definitions.
5831         * config/s390/s390-protos.h (s390_function_value): Remove prototype.
5832
5833 2011-03-02  Joseph Myers  <joseph@codesourcery.com>
5834
5835         * config/i386/freebsd64.h (CC1_SPEC): Define.
5836         * config/i386/linux64.h (CC1_SPEC): Define.
5837         * config/i386/x86-64.h (CC1_SPEC): Don't define.
5838
5839 2011-03-02  Anatoly Sokolov  <aesok@post.ru>
5840
5841         * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
5842         Remove.
5843         * config/stormy16/stormy16.c: Include reload.h.
5844         (xstormy16_memory_move_cost): New function.
5845         (TARGET_MEMORY_MOVE_COST): Define.
5846
5847 2011-03-02  Richard Sandiford  <richard.sandiford@linaro.org>
5848
5849         PR rtl-optimization/47925
5850         * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
5851         with side effects.  Remove the more-specific check for volatile asms.
5852
5853 2011-03-02  Alan Modra  <amodra@gmail.com>
5854
5855         PR target/47935
5856         * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
5857         toc relative addresses for valid offsets.
5858
5859 2011-03-01  Richard Guenther  <rguenther@suse.de>
5860
5861         PR tree-optimization/47890
5862         * tree-vect-loop.c (get_initial_def_for_induction): Set
5863         related stmt properly.
5864
5865 2011-03-01  Richard Guenther  <rguenther@suse.de>
5866
5867         PR lto/47924
5868         * lto-streamer.c (lto_record_common_node): Also register
5869         the canonical type.
5870
5871 2011-03-01  Richard Guenther  <rguenther@suse.de>
5872
5873         PR lto/46911
5874         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
5875         Do not stream DECL_ABSTRACT_ORIGIN.
5876         (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
5877         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
5878         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
5879         Do not stream DECL_ABSTRACT_ORIGIN.
5880         (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
5881         BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
5882
5883 2011-02-28  Anatoly Sokolov  <aesok@post.ru>
5884
5885         * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
5886         FUNCTION_VALUE_REGNO_P): Remove.
5887         * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
5888         * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
5889         Add 'outgoing' argument.
5890         (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
5891         function.
5892         (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
5893         TARGET_FUNCTION_VALUE_REGNO_P): Define.
5894
5895 2011-02-28  Kai Tietz  <kai.tietz@onevision.com>
5896
5897         PR debug/28047
5898         * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
5899         (lookup_filename): Likewise.
5900         * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
5901
5902 2011-02-28  Bernd Schmidt  <bernds@codesourcery.com>
5903             Jakub Jelinek  <jakub@redhat.com>
5904
5905         PR middle-end/47893
5906         * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
5907         (assign_stack_local_1): Change last argument type to int.
5908         * function.c (assign_stack_local_1): Replace reduce_alignment_ok
5909         argument with kind.  If bit ASLK_RECORD_PAD is not set in it,
5910         don't record padding space into frame_space_list nor use those areas.
5911         (assign_stack_local): Adjust caller.
5912         (assign_stack_temp_for_type): Call assign_stack_local_1 instead
5913         of assign_stack_local, pass 0 as last argument.
5914         * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
5915         callers.
5916
5917 2011-02-28  Jakub Jelinek  <jakub@redhat.com>
5918
5919         PR debug/47283
5920         * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
5921         Use target address_mode and pointer_mode hooks instead of hardcoded
5922         Pmode and ptr_mode.  Handle some simple cases of extending if
5923         POINTERS_EXTEND_UNSIGNED < 0.
5924         (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
5925         Call convert_debug_memory_address.
5926         (expand_debug_expr) <case ADDR_EXPR>: Pass as to
5927         convert_debug_memory_address.
5928
5929         PR middle-end/46790
5930         * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
5931         * configure: Regenerated.
5932         * config.in: Regenerated.
5933         * varasm.c (default_function_section): Return NULL
5934         if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
5935
5936 2011-02-28  Martin Jambor  <mjambor@suse.cz>
5937
5938         * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
5939         the description to match the printed values.
5940
5941 2011-02-28  Richard Guenther  <rguenther@suse.de>
5942
5943         * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
5944         of the copied scope tree.
5945
5946 2011-02-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5947
5948         * doc/extend.texi (Function Attributes): Avoid deeply (and
5949         wrongly) nested tables.
5950
5951 2011-02-27  Jakub Jelinek  <jakub@redhat.com>
5952
5953         PR middle-end/47903
5954         * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
5955         MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
5956         r isn't op0 nor op1.
5957
5958 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
5959
5960         * config/avr/avr.md: Remove magic comment for emacs.
5961
5962 2011-02-23  Georg-Johann Lay  <avr@gjlay.de>
5963
5964         PR target/45261
5965         * config/avr/avr.c (avr_option_override): Use error on bad options.
5966         (avr_help): New function.
5967         (TARGET_HELP): Define.
5968
5969 2011-02-22  Georg-Johann Lay  <avr@gjlay.de>
5970
5971         PR target/42240
5972         * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
5973         (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
5974
5975 2011-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
5976
5977         * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
5978         (ARM Options): Ditto.
5979         (i386 and x86-64 Options): Ditto.
5980         (RX Options): Ditto.
5981         (SPARC Options): Ditto.
5982
5983 2011-02-26  Tijl Coosemans  <tijl@coosemans.org>
5984
5985         * config.gcc (i386-*-freebsd*): Make i486 the default arch on
5986         FreeBSD 6 and later.  Generally use cpu generic.
5987
5988 2011-02-25  Gerald Pfeifer  <gerald@pfeifer.com>
5989
5990         * doc/cpp.texi: Update copyright years.
5991
5992 2011-02-25  Sebastien Bourdeauducq  <sebastien@milkymist.org>
5993
5994         PR target/46898
5995         * config/lm32/lm32.md (ashrsi3): Added needed variable.
5996
5997 2011-02-25  Jon Beniston  <jon@beniston.com>
5998
5999         PR target/46898
6000         * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
6001         * config/lm32/lm32.md (ashlsi3): Remove unused variable.
6002         * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
6003         (lm32_block_move_inline): Add type cast to remove warning.
6004         (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
6005         (gen_int_relational): Move declarations to start of function.
6006
6007 2011-02-25  Eric Botcazou  <ebotcazou@adacore.com>
6008
6009         PR tree-optimization/45470
6010         * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
6011         can throw internally only.
6012         * tree-vect-stmts.c (vectorizable_call): Likewise.
6013
6014 2011-02-24  Anatoly Sokolov  <aesok@post.ru>
6015
6016         * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
6017         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6018         * config/stormy16/stormy16-protos.h
6019         (xstormy16_preferred_reload_class): Remove.
6020         * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
6021         static. Change 'rclass' argument and return type to reg_class_t.
6022         (TARGET_PREFERRED_RELOAD_CLASS,
6023         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6024
6025 2011-02-24  Richard Guenther  <rguenther@suse.de>
6026
6027         * lto-streamer-in.c (input_bb): Do not find referenced vars
6028         in debug statements.
6029
6030 2011-02-23  Jason Merrill  <jason@redhat.com>
6031
6032         * common.opt (fabi-version): Document v5 and v6.
6033
6034 2011-02-23  Richard Guenther  <rguenther@suse.de>
6035
6036         PR tree-optimization/47849
6037         * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
6038
6039 2011-02-23  Jie Zhang  <jie@codesourcery.com>
6040
6041         * opts-common.c (decode_cmdline_option): Print empty string
6042         argument as "" in decoded->orig_option_with_args_text.
6043         * gcc.c (execute): Print empty string argument as ""
6044         in the verbose output.
6045         (do_spec_1): Keep empty string argument.
6046
6047 2011-02-23  Nathan Froyd  <froydnj@codesourcery.com>
6048
6049         * config.gcc: Declare score-* and crx-* obsolete.
6050
6051 2011-02-23  Jie Zhang  <jie@codesourcery.com>
6052
6053         PR rtl-optimization/47763
6054         * web.c (web_main): Ignore naked clobber when replacing register.
6055
6056 2011-02-22  Anatoly Sokolov  <aesok@post.ru>
6057
6058         * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6059         Remove.
6060
6061 2011-02-22  Sebastian Pop  <sebastian.pop@amd.com>
6062
6063         PR doc/47848
6064         * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
6065
6066 2011-02-22  Mike Stump  <mikestump@comcast.net>
6067
6068         * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
6069         assembler.
6070         * configure: Regenerate.
6071
6072 2011-02-21  Chung-Lin Tang  <cltang@codesourcery.com>
6073
6074         PR rtl-optimization/46002
6075         * ira-color.c (update_copy_costs): Change class intersection
6076         test to reg_class_contents[] test of 'hard_regno'.
6077
6078 2011-02-21  Joseph Myers  <joseph@codesourcery.com>
6079
6080         * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
6081         than Driver option.
6082         * config/hpux11.opt (mt): Likewise.
6083         * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
6084         * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
6085         * config/vax/elf.opt (mno-asm-pic): Likewise.
6086         * config/vms/vms.opt (map, mvms-return-codes): Likewise.
6087
6088 2011-02-21  Mike Stump  <mikestump@comcast.net>
6089
6090         PR target/47822
6091         * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
6092         tree so we can get save the type.
6093         * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
6094         for CFString instead of trying to use past the end of the builtins.
6095         * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
6096         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
6097         * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
6098         * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
6099         Rename to darwin_builtin_cfstring.
6100         (darwin_init_cfstring_builtins): Return the built type.
6101
6102 2011-02-21  Uros Bizjak  <ubizjak@gmail.com>
6103
6104         PR target/47840
6105         * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
6106         (_mm256_insert_epi64): Use _mm_insert_epi64.
6107
6108 2011-02-21  Anatoly Sokolov  <aesok@post.ru>
6109
6110         * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6111         * config/stormy16/stormy16-protos.h
6112         (xstormy16_mode_dependent_address_p): Remove.
6113         * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
6114         Make static. Change return type to bool. Change argument type to
6115         const_rtx. Remove dead code.
6116         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6117
6118 2011-02-21  Richard Guenther  <rguenther@suse.de>
6119
6120         PR lto/47820
6121         * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
6122         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6123         (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
6124         TUs context.
6125         * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
6126         Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
6127
6128 2011-02-20  Richard Guenther  <rguenther@suse.de>
6129
6130         PR lto/47822
6131         * tree.c (free_lang_data_in_decl): Clean builtins from
6132         the TU decl BLOCK_VARS.
6133
6134 2011-02-19  Alexandre Oliva  <aoliva@redhat.com>
6135
6136         PR debug/47620
6137         PR debug/47630
6138         * haifa-sched.c (fix_tick_ready): Skip tick computation
6139         for debug insns.
6140
6141 2011-02-19  Richard Guenther  <rguenther@suse.de>
6142
6143         PR lto/47647
6144         * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
6145         Remove lazy BLOCK_VARS streaming.
6146         (lto_input_ts_block_tree_pointers): Likewise.
6147         * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
6148
6149 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
6150
6151         * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
6152
6153 2011-02-19  Joseph Myers  <joseph@codesourcery.com>
6154
6155         * config/i386/biarch32.h, config/i386/mach.h,
6156         config/rs6000/aix.opt, config/sh/superh64.h: Remove.
6157
6158 2011-02-19  Jakub Jelinek  <jakub@redhat.com>
6159
6160         PR target/47800
6161         * config/i386/i386.md (peephole2 for shift and plus): Use
6162         operands[1] original mode in the first insn.
6163
6164 2011-02-18  Mike Stump  <mikestump@comcast.net>
6165
6166         * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
6167
6168 2011-02-18  Jan Hubicka  <jh@suse.cz>
6169
6170         PR middle-end/47788
6171         * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
6172         to zero when the function is not inlinable at all.
6173
6174 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6175
6176         * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
6177         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6178         pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
6179         * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
6180         * config/pa/t-pa64: Likewise.
6181         * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6182
6183 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
6184
6185         PR driver/47787
6186         * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
6187
6188 2011-02-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6189
6190         PR target/47792
6191         * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
6192
6193 2011-02-18  Anatoly Sokolov  <aesok@post.ru>
6194
6195         * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
6196         RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
6197         LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
6198         GO_IF_LEGITIMATE_ADDRESS): Remove macros.
6199         * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
6200         (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
6201         m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
6202         m32r_load_postinc_p, m32r_store_preinc_predec_p,
6203         m32r_legitimate_address_p): New functions.
6204         * config/m32r/constraints.md (constraint "S"): Don't use
6205         STORE_PREINC_PREDEC_P.
6206         (constraint "U"): Don't use LOAD_POSTINC_P.
6207
6208 2011-02-18  Chung-Lin Tang  <cltang@codesourcery.com>
6209
6210         PR rtl-optimization/46178
6211         * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
6212         compute ira_hard_regno_cover_class[].
6213
6214 2011-02-18  Richard Guenther  <rguenther@suse.de>
6215
6216         PR lto/47798
6217         * lto-streamer.h (lto_global_var_decls): Declare.
6218         * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
6219         statics for global var processing.
6220
6221 2011-02-18  Richard Guenther  <rguenther@suse.de>
6222
6223         PR tree-optimization/47737
6224         * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
6225         edge dominance check.
6226
6227 2011-02-18  Jakub Jelinek  <jakub@redhat.com>
6228
6229         PR debug/47780
6230         * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
6231         avoid invalid rtx sharing.
6232
6233 2011-02-18  Gerald Pfeifer  <gerald@pfeifer.com>
6234
6235         * doc/cpp.texi (Obsolete Features): Add background on the
6236         origin of assertions.
6237
6238 2011-02-17  Iain Sandoe  <iains@gcc.gnu.org>
6239
6240         * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
6241         objc_abi == 2.
6242         * config/darwin.c (output_objc_section_asm_op): Added support for
6243         ABI v1 and v2.
6244         (is_objc_metadata): New.
6245         (darwin_objc2_section): New.
6246         (darwin_objc1_section): New.
6247         (machopic_select_section): Added support for ABI v1 and v2.
6248         (darwin_emit_objc_zeroed): New.
6249         (darwin_output_aligned_bss): Detect objc metadata and treat it
6250         appropriately.
6251         (darwin_asm_output_aligned_decl_common): Same.
6252         (darwin_asm_output_aligned_decl_local): Same.
6253         * config/darwin-sections.def: Updated for ABI v1 and v2.
6254         * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
6255         compiling Objective-C code for the NeXT runtime, default to using
6256         ABI version 0 for 32-bit, and version 2 for 64-bit.
6257
6258 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6259
6260         * common.opt (optimize_fast): New Variable.
6261         * opts.c (default_options_optimization): Use opts->x_optimize_fast
6262         instead of local variable ofast.
6263
6264 2011-02-17  Nicola Pero  <nicola.pero@meta-innovation.com>
6265
6266         * doc/invoke.texi (fobjc-abi-version): Documented.
6267         (fobjc-nilcheck): Documented.
6268         (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
6269         version.
6270
6271 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6272
6273         PR driver/47390
6274         * common.opt (export-dynamic): New Driver option.
6275         * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
6276
6277 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6278
6279         * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
6280
6281 2011-02-17  Alexandre Oliva  <aoliva@redhat.com>
6282             Jan Hubicka  <jh@suse.cz>
6283
6284         PR debug/47106
6285         PR debug/47402
6286         * cfgexpand.c (account_used_vars_for_block): Remove.
6287         (estimated_stack_frame_size): Use referenced vars.
6288         * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
6289         that were referenced in the original function.  Test src_fn
6290         rather than cfun.  Drop redundant get_var_ann.
6291         (setup_one_parameter): Drop redundant get_var_ann.
6292         (declare_return_variable): Likewise.
6293         (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
6294         (copy_arguments_for_versioning): Drop redundant get_var_ann.
6295         * ipa-inline.c (compute_inline_parameters): Do not compute
6296         disregard_inline_limits here.
6297         (compute_inlinable_for_current, pass_inlinable): New.
6298         (pass_inline_parameters): Require PROP_referenced_vars.
6299         * cgraphunit.c (cgraph_process_new_functions): Don't run
6300         compute_inline_parameters explicitly unless function is in SSA form.
6301         (cgraph_analyze_function): Set .disregard_inline_limits.
6302         * tree-sra.c (convert_callers): Compute inliner parameters
6303         only for functions already in SSA form.
6304
6305 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6306
6307         * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
6308         -mlittle-endian-data.
6309
6310 2011-02-17  Joseph Myers  <joseph@codesourcery.com>
6311
6312         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
6313         -mno-fpu, not -fpu and -no-fpu.
6314         * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
6315         * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
6316
6317 2011-02-17  Uros Bizjak  <ubizjak@gmail.com>
6318
6319         PR target/43653
6320         * config/i386/i386.c (ix86_secondary_reload): Handle SSE
6321         input reload with PLUS RTX.
6322
6323 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6324
6325         * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
6326         of InverseVar(MDMX).
6327
6328 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6329
6330         * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
6331         --m4-340.
6332
6333 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6334
6335         * config/mn10300/mn10300.opt (mno-crt0): New.
6336
6337 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6338
6339         * config/m68k/uclinux.opt (static-libc): New Driver option.
6340
6341 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6342
6343         * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
6344
6345 2011-02-16  Joseph Myers  <joseph@codesourcery.com>
6346
6347         * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
6348         %{muser-extend-enabled}.
6349
6350 2011-02-16  Richard Guenther  <rguenther@suse.de>
6351
6352         PR tree-optimization/47738
6353         * tree-ssa-loop.c (run_tree_predictive_commoning): Return
6354         the TODO from tree_predictive_commoning.
6355
6356 2011-02-15  Jeff Law  <law@redhat.com>
6357
6358         Revert
6359         2011-01-25  Jeff Law  <law@redhat.com>
6360
6361         PR rtl-optimization/37273
6362         * ira-costs.c (scan_one_insn): Detect constants living in memory and
6363         handle them like argument loads from stack slots.  Do not double
6364         count memory for memory constants and argument loads from stack slots.
6365
6366 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
6367
6368         PR middle-end/47725
6369         * combine.c (cant_combine_insn_p): Revert the last change.
6370
6371 2011-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
6372
6373         PR target/47755
6374         * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
6375         mode for vector constants.  Remove code that checks for TImode.
6376
6377 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
6378
6379         PR debug/47106
6380         PR debug/47402
6381         * cgraph.h (compute_inline_parameters): Return void.
6382         * ipa-inline.c (compute_inline_parameters): Adjust.
6383
6384 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
6385
6386         PR debug/47106
6387         PR debug/47402
6388         * tree-inline.h (estimated_stack_frame_size): Take cgraph node
6389         rather than decl.
6390         * cfgexpand.c (estimated_stack_frame_size): Likewise.
6391         * ipa-inline.c (compute_inline_parameters): Adjust.
6392
6393 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
6394
6395         PR debug/47106
6396         PR debug/47402
6397         * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
6398         Adjust all users.  Pass FN to...
6399         * tree-flow-inline.h (first_referenced_var): ... this.  Add
6400         fn argument.
6401         * ipa-struct-reorg.c: Adjust.
6402         * tree-dfa.c: Adjust.
6403         * tree-into-ssa.c: Adjust.
6404         * tree-sra.c: Adjust.
6405         * tree-ssa-alias.c: Adjust.
6406         * tree-ssa-live.c: Adjust.
6407         * tree-ssa.c: Adjust.
6408         * tree-ssanames.c: Adjust.
6409         * tree-tailcall.c: Adjust.
6410
6411 2011-02-15  Alexandre Oliva  <aoliva@redhat.com>
6412
6413         PR debug/47106
6414         PR debug/47402
6415         * tree-flow.h (referenced_var_lookup): Add fn parameter.
6416         Adjust all callers.
6417         * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
6418         * tree-flow-inline.h: Adjust.
6419         * gimple-pretty-print.c: Adjust.
6420         * tree-into-ssa.c: Adjust.
6421         * tree-ssa.c: Adjust.
6422         * cfgexpand.c: Adjust.
6423
6424 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
6425
6426         * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
6427         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6428         (EXTRA_CONSTRAINT): Delete.
6429         * config/iq2000/constraints.md: New file.
6430         * config/iq2000/iq2000.md: Include it.
6431         (define_insn ""): Delete.
6432         (movsi_internal2, movhi_internal2, movqi_internal2): Delete
6433         unsupported constraint letters from patterns.
6434         (call_value, call_value_internal1): Likewise.
6435         (call_value_multiple_internal1): Likewise.
6436
6437 2011-02-15  Nick Clifton  <nickc@redhat.com>
6438
6439         * config/mn10300/mn10300.c: Include tm-constrs.h.
6440         (struct liw_data): New data structure describing an LIW candidate
6441         instruction.
6442         (extract_bundle): Use struct liw_data.  Allow small integer
6443         operands for some instructions.
6444         (check_liw_constraints): Use struct liw_data.  Remove swapped
6445         parameter.  Add comments describing the checks.  Fix bug when
6446         assigning the source of liw1 to the source of liw2.
6447         (liw_candidate): Delete.  Code moved into extract_bundle.
6448         (mn10300_bundle_liw): Use struct liw_data.  Check constraints
6449         before swapping.
6450         * config/mn10300/predicates.md (liw_operand): New predicate.
6451         Allows registers and small integer constants.
6452         * config/mn10300/constraints.md (O): New constraint.  Accetps
6453         integers in the range -8 to +7 inclusive.
6454         * config/mn10300/mn10300.md (movesi_internal): Add an alternative
6455         for moving a small integer into a register.  Give this alternative
6456         LIW attributes.
6457         (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
6458         (ashlsi3): Likewise, plus give LIW attributes to the alternatives
6459         using the J,K,L and M constraints,
6460         (liw): Remove SI mode on second operands to allow for HI and QI
6461         mode values.
6462         (cmp_liw, liw_cmp): Likewise.  Plus fix order of operands in the
6463         instruction.
6464
6465 2011-02-15  H.J. Lu  <hongjiu.lu@intel.com>
6466
6467         PR middle-end/47725
6468         * combine.c (cant_combine_insn_p): Check zero/sign extended
6469         hard registers.
6470
6471 2011-02-15  Richard Guenther  <rguenther@suse.de>
6472
6473         PR tree-optimization/47743
6474         * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
6475         for a non-type-compatible VN lookup bail out.
6476
6477 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
6478
6479         * config/fr30/constraints.md: New file.
6480         * config/fr30/fr30.md: Include it.
6481         * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
6482         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6483         (EXTRA_CONSTRAINT): Delete.
6484
6485 2011-02-15  Nathan Froyd  <froydnj@codesourcery.com>
6486
6487         * config/frv/constraints.md: New file.
6488         * config/frv/predicates.md: Include it.
6489         * config/frv/frv.c (reg_class_from_letter): Delete.
6490         (frv_option_override): Don't initialize it.
6491         * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
6492         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
6493         (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
6494         (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
6495         (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
6496         (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6497         (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
6498         (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
6499         (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
6500         (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
6501         (REG_CLASS_FROM_CONSTRAINT): Delete.
6502
6503 2011-02-15  Jakub Jelinek  <jakub@redhat.com>
6504
6505         PR middle-end/47581
6506         * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
6507         if frame size is 0 in a leaf function.
6508
6509 2011-02-15  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6510
6511         PR pch/14940
6512         * config/alpha/host-osf.c: New file.
6513         * config/alpha/x-osf: New file.
6514         * config.host (alpha*-dec-osf*): Use it.
6515
6516 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
6517
6518         * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
6519         * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
6520         * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
6521         (rx_mode_dependent_address_p): ...this. Make static. Change argument
6522         type to const_rtx.
6523         (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
6524
6525 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
6526
6527         * config/stormy16/constraints.md: New file.
6528         * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
6529         Use satisfies_constraint_Q and satisfies_constraint_R.
6530         * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
6531         Delete.
6532         (xstormy16_legitiamte_address_p): Declare.
6533         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
6534         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6535         (EXTRA_CONSTRAINT): Delete.
6536         * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
6537         Un-staticize.
6538         (xstormy16_extra_constraint_p): Delete.
6539
6540 2011-02-14  Eric Botcazou  <ebotcazou@adacore.com>
6541
6542         PR tree-optimization/46494
6543         * loop-unroll.c (split_edge_and_insert): Adjust comment.
6544         * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
6545         (pass_rtl_loop_done): Add TODO_verify_flow.
6546         * fwprop.c (pass_rtl_fwprop): Likewise.
6547         * modulo-sched.c (pass_sms): Likewise.
6548         * tree-ssa-dom.c (pass_dominator): Likewise.
6549         * tree-ssa-loop-ch.c (pass_ch): Likewise.
6550         * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
6551         (pass_tree_loop_done): Likewise.
6552         * tree-ssa-pre.c (execute_pre): Likewise.
6553         * tree-ssa-reassoc.c (pass_reassoc): Likewise.
6554         * tree-ssa-sink.c (pass_sink_code): Likewise.
6555         * tree-vrp.c (pass_vrp): Likewise.
6556
6557 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
6558
6559         * config/v850/constraints.md: New file.
6560         * config/v850/v850.md: Include it.
6561         * config/v850/predicates.md (reg_or_0_operand): Use
6562         satisfies_constraint_G.
6563         (special_symbolref_operand): Use satisfies_constraint_K.
6564         * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
6565         (GO_IF_LEGITIMATE_ADDRESS): Likewise.
6566         (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
6567         (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
6568         (EXTRA_CONSTRAINT): Delete.
6569         (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
6570         (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
6571         (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
6572
6573 2011-02-14  Anatoly Sokolov  <aesok@post.ru>
6574
6575         PR target/47696
6576         * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
6577         description.
6578
6579 2011-02-14  Nathan Froyd  <froydnj@codesourcery.com>
6580
6581         * config/mcore/constraints.md: New file.
6582         * config/mcore/mcore.md: Include it.
6583         * config/mcore/mcore.c (reg_class_from_letter): Delete.
6584         * config/mcore/mcore.h (reg_class_from_letter): Delete.
6585         (REG_CLASS_FROM_LETTER): Delete.
6586         (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
6587         insn_const_int_ok_for_constraint.
6588         (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
6589         (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
6590         (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6591         (EXTRA_CONSTRAINT): Delete.
6592
6593 2011-02-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6594
6595         PR ada/41929
6596         * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
6597         (IS_SIGHANDLER): Define.
6598         (sparc64_is_sighandler): New function, split off from
6599         sparc64_fallback_frame_state.
6600         (sparc_is_sighandler): New function, split off from
6601         sparc_fallback_frame_state.
6602         (sparc64_fallback_frame_state): Merge with ...
6603         (sparc_fallback_frame_state): ... this into ...
6604         (MD_FALLBACK_FRAME_STATE_FOR): ... this.
6605         Change new_cfa to long.  Remove regs_off, fpu_save_off, fpu_save.
6606         Define nframes, mctx.  Use IS_SIGHANDLER, handler_args, mctx, walk
6607         stack instead of hardcoded offsets.
6608
6609 2011-02-14  Andriy Gapon  <avg@freebsd.org>
6610
6611         PR target/45808
6612         * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
6613
6614 2011-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6615
6616         * configure: Regenerate.
6617
6618 2011-02-12  Joseph Myers  <joseph@codesourcery.com>
6619
6620         PR driver/45731
6621         * gcc.c (asm_options): Correct spec matching --target-help.
6622
6623 2011-02-12  Martin Jambor  <mjambor@suse.cz>
6624
6625         * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
6626         to gimple call error.
6627
6628 2011-02-12  Mike Stump  <mikestump@comcast.net>
6629
6630         * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
6631         comments in backslash regions.
6632
6633 2011-02-12  Mike Stump  <mikestump@comcast.net>
6634             Jakub Jelinek  <jakub@redhat.com>
6635             Iain Sandoe  <iains@gcc.gnu.org>
6636
6637         PR target/47324
6638         * dwarf2out.c (output_cfa_loc): When required, apply the
6639         DWARF2_FRAME_REG_OUT macro to adjust register numbers.
6640         (output_loc_sequence): Likewise.
6641         (output_loc_operands_raw): Likewise.
6642         (output_loc_sequence_raw): Likewise.
6643         (output_cfa_loc): Likewise.
6644         (output_loc_list): Suppress register number adjustment when
6645         calling output_loc_sequence()
6646         (output_die): Likewise.
6647
6648 2011-02-12  Anatoly Sokolov  <aesok@post.ru>
6649
6650         * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
6651         Remove macros.
6652         * config/xtensa/xtensa.c (xtensa_register_move_cost,
6653         xtensa_memory_move_cost): New functions.
6654         (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
6655
6656 2011-02-12  Alexandre Oliva  <aoliva@redhat.com>
6657
6658         PR lto/47225
6659         * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
6660         in the current directory.
6661         * configure: Rebuilt.
6662
6663 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
6664
6665         * config/darwin.c (darwin_override_options): Add a hunk missed
6666         from the commit of r168571.  Trim comment line lengths and
6667         correct indents of the preceding block.
6668
6669 2011-02-12  Iain Sandoe  <iains@gcc.gnu.org>
6670
6671         * gcc.c (driver_handle_option): Concatenate the argument to -F with
6672         the switch.
6673
6674 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
6675
6676         * common.opt (nostartfiles): New Driver option.
6677
6678 2011-02-11  Xinliang David Li  <davidxl@google.com>
6679
6680         PR tree-optimization/47707
6681         * tree-chrec.c (convert_affine_scev): Keep type precision.
6682
6683 2011-02-11  Eric Botcazou  <ebotcazou@adacore.com>
6684
6685         PR tree-optimization/47420
6686         * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
6687
6688 2011-02-11  Pat Haugen  <pthaugen@us.ibm.com>
6689
6690         PR rtl-optimization/47614
6691         * rtl.h (check_for_inc_dec): Declare.
6692         * dse.c (check_for_inc_dec): Externalize...
6693         * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
6694         (reload_cse_simplify_operands): Don't simplify opnds with side effects.
6695
6696 2011-02-11  Joseph Myers  <joseph@codesourcery.com>
6697
6698         PR driver/47678
6699         * gcc.c (main): Do not compile inputs if there were errors in
6700         option handling.
6701         * opts-common.c (read_cmdline_option): Check for wrong language
6702         after other error checks.
6703
6704 2011-02-11  Nathan Froyd  <froydnj@codesourcery.com>
6705
6706         * cgraph.c: Fix comment typos.
6707         * cgraph.h: Likewise.
6708         * cgraphunit.c: Likewise.
6709         * ipa-cp.c: Likewise.
6710         * ipa-inline.c: Likewise.
6711         * ipa-prop.c: Likewise.
6712         * ipa-pure-const.c: Likewise.
6713         * ipa-ref.c: Likewise.
6714         * ipa-reference.c: Likewise.
6715
6716 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
6717
6718         PR debug/47684
6719         * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
6720
6721 2011-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6722
6723         PR testsuite/47400
6724         * doc/sourcebuild.texi (Require Support): Document
6725         dg-require-ascii-locale.
6726
6727 2011-02-11  Mingjie Xing  <mingjie.xing@gmail.com>
6728
6729         * doc/lto.texi (Write summary): Fix missing parentheses.
6730
6731 2011-02-10  DJ Delorie  <dj@redhat.com>
6732
6733         * config/m32c/m32c.c (m32c_option_override): Disable
6734         -fcombine-stack-adjustments until flag value tracking and compare
6735         optimization can be rewritten.
6736
6737 2011-02-10  Peter Bergner  <bergner@vnet.ibm.com>
6738
6739         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
6740         PROCESSOR_POWER7.
6741         (PROCESSOR_DEFAULT64): Likewise.
6742
6743 2011-02-10  Richard Henderson  <rth@redhat.com>
6744
6745         * config/rx/predicates.md (rx_zs_comparison_operator): Revert
6746         change from 2011-02-03.
6747         * config/rx/rx.c (flags_from_code): Likewise.
6748         (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
6749         is valid, n/pz otherwise.
6750         (rx_select_cc_mode): Return CCmode if Y is not zero.
6751
6752 2011-02-10  Richard Guenther  <rguenther@suse.de>
6753
6754         * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
6755
6756 2011-02-10  Richard Guenther  <rguenther@suse.de>
6757
6758         PR tree-optimization/47677
6759         * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
6760
6761 2011-02-10  Jakub Jelinek  <jakub@redhat.com>
6762
6763         PR target/47665
6764         * combine.c (make_compound_operation): Only change shifts into
6765         multiplication for SCALAR_INT_MODE_P.
6766
6767 2011-02-10  Jie Zhang  <jie@codesourcery.com>
6768
6769         PR testsuite/47622
6770         Revert
6771         2011-02-05  Jie Zhang  <jie@codesourcery.com>
6772         PR debug/42631
6773         * web.c (entry_register): Don't clobber the number of the
6774         first uninitialized reference in used[].
6775
6776 2011-02-09  Richard Guenther  <rguenther@suse.de>
6777
6778         PR tree-optimization/47664
6779         * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
6780         all edges again.
6781
6782 2011-02-09  David Edelsohn  <dje.gcc@gmail.com>
6783
6784         PR target/46481
6785         PR target/47032
6786         * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
6787         PROCESSOR_POWER7.
6788         (PROCESSOR_DEFAULT64): Same.
6789         (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
6790
6791 2011-02-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6792
6793         * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
6794
6795 2011-02-09  Martin Jambor  <mjambor@suse.cz>
6796
6797         PR middle-end/45505
6798         * tree-sra.c (struct access): New flags grp_scalar_read and
6799         grp_scalar_write.  Changed description of assignment read and write
6800         flags.
6801         (dump_access): Dump new flags, reorder all of them.
6802         (sort_and_splice_var_accesses): Set the new flag accordingly, use them
6803         to detect multiple scalar reads.
6804         (analyze_access_subtree): Use the new scalar read write flags instead
6805         of the old flags.  Adjusted comments.
6806
6807 2011-02-08  DJ Delorie  <dj@redhat.com>
6808
6809         PR target/47548
6810         * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
6811         patterns.
6812
6813 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
6814
6815         * config/m68k/uclinux.opt: New.
6816         * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
6817
6818 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
6819
6820         * config/cris/elf.opt (sim): New Driver option.
6821
6822 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
6823
6824         * config/xtensa/elf.opt: New.
6825         * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
6826
6827 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
6828
6829         * config/vax/elf.opt: New.
6830         * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
6831
6832 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
6833
6834         * config/rs6000/aix64.opt (posix, pthread): New Driver options.
6835
6836 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
6837
6838         * config/gnu-user.opt: New.
6839         * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
6840         *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
6841         *-*-uclinux*): Use gnu-user.opt.
6842
6843 2011-02-08  Thomas Schwinge  <thomas@schwinge.name>
6844
6845         * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
6846         * config/i386/gnu.h (CPP_SPEC): Likewise.
6847
6848 2011-02-08  Ian Lance Taylor  <iant@google.com>
6849
6850         * common.opt (fcx-limited-range): Add SetByCombined flag.
6851         (ffinite-math-only, fmath-errno, frounding-math): Likewise.
6852         (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
6853         (fassociative-math, freciprocal-math): Likewise.
6854         (funsafe-math-optimizations): Likewise.
6855         * opth-gen.awk: Handle SetByCombined.
6856         * optc-gen.awk: Likewise.
6857         * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
6858         (set_unsafe_math_optimizations_flags): Likewise.
6859         * doc/options.texi (Option properties): Document SetByCombined.
6860
6861 2011-02-08  Joseph Myers  <joseph@codesourcery.com>
6862
6863         * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
6864         i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
6865         m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
6866         m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
6867         sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
6868
6869 2011-02-08  Sebastian Pop  <sebastian.pop@amd.com>
6870
6871         PR tree-optimization/46834
6872         PR tree-optimization/46994
6873         PR tree-optimization/46995
6874         * graphite-sese-to-poly.c (used_outside_reduction): New.
6875         (detect_commutative_reduction): Call used_outside_reduction.
6876         (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
6877         translate_scalar_reduction_to_array only when at least one
6878         loop-phi/close-phi tuple has been detected.
6879
6880 2011-02-08  Richard Guenther  <rguenther@suse.de>
6881
6882         PR middle-end/47639
6883         * tree-vect-generic.c (expand_vector_operations_1): Update
6884         stmts here ...
6885         (expand_vector_operations): ... not here.  Cleanup EH info
6886         and the CFG if required.
6887
6888 2011-02-08  Richard Guenther  <rguenther@suse.de>
6889
6890         PR tree-optimization/47641
6891         * tree-ssa.c (execute_update_addresses_taken): For asm outputs
6892         require type compatibility.
6893
6894 2011-02-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6895
6896         * gimple-low.c (lower_function_body): Don't remove the location of
6897         the return statement here.
6898         (lower_gimple_return): Do it here instead but only if the return
6899         statement is actually used twice.
6900
6901 2011-02-08  Richard Guenther  <rguenther@suse.de>
6902
6903         PR tree-optimization/47632
6904         * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
6905         unused up_to_stmt parameter, return whether cfg-cleanup is
6906         necessary, remove EH info properly.
6907         (forward_propagate_into_gimple_cond): Adjust caller.
6908         (forward_propagate_into_cond): Likewise.
6909         (forward_propagate_comparison): Likewise.
6910         (tree_ssa_forward_propagate_single_use_vars): Make
6911         forward_propagate_comparison case similar to the two others.
6912
6913 2011-02-08  Nick Clifton  <nickc@redhat.com>
6914
6915         * config/mn10300/mn10300.opt (mliw): New command line option.
6916         * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
6917         (liw_bundling): New automaton.
6918         (liw): New attribute.
6919         (liw_op): New attribute.
6920         (liw_op1, liw_op2, liw_both, liw_either): New reservations.
6921         (movsi_internal): Add LIW attributes.
6922         (andsi3): Likewise.
6923         (iorsi3): Likewise.
6924         (xorsi3): Likewise.
6925         (addsi3): Separate register and immediate alternatives.
6926         Add LIW attributes.
6927         (subsi3): Likewise.
6928         (cmpsi): Likewise.
6929         (aslsi3): Likewise.
6930         (lshrsi3): Likewise.
6931         (ashrsi3): Likewise.
6932         (liw): New pattern.
6933         * config/mn10300/mn10300.c (liw_op_names): New
6934         (mn10300_print_operand): Handle 'W' operand descriptor.
6935         (extract_bundle): New function.
6936         (check_liw_constraints): New function.
6937         (liw_candidate): New function.
6938         (mn10300_bundle_liw): New function.
6939         (mn10300_reorg): New function.
6940         (TARGET_MACHINE_DEPENDENT_REORG): Define.
6941         (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
6942         * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
6943         __LIW__ or __NO_LIW__.
6944         * doc/invoke.texi: Describe the -mliw command line option.
6945
6946 2011-02-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6947
6948         * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
6949         * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
6950         pthread_mutex_unlock): Remove.
6951         * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
6952         * config/pa/t-pa64: Likewise.
6953         * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
6954         shared libc if not linking against libpthread.
6955         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
6956
6957 2011-02-07  Iain Sandoe  <iains@gcc.gnu.org>
6958
6959         PR target/47558
6960         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
6961         on 10.6 and later to ensure that we always use the unwinder from
6962         the system.  Only add -no_compact_unwind when tarteting darwin
6963         10.6 or later.
6964
6965 2011-02-07  Steve Ellcey  <sje@cup.hp.com>
6966
6967         PR target/46997
6968         * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
6969         (vec_interleave_lowv2sf): Ditto.
6970         (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
6971         (vec_extract_oddv2sf): Ditto.
6972
6973 2011-02-07  Mike Stump  <mikestump@comcast.net>
6974
6975         PR target/42333
6976         Add __ieee_divdc3 entry point.
6977         * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
6978         entry point.
6979         (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
6980         * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
6981         * config/darwin.c (darwin_rename_builtins): Add.
6982         * config/darwin-protos.h (darwin_rename_builtins): Add.
6983
6984 2011-02-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
6985
6986         PR target/47636
6987         * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
6988         for the condition.
6989
6990 2011-02-07  Mike Stump  <mikestump@comcast.net>
6991
6992         * config/darwin.opt (mmacosx-version-min): Update default OS version.
6993
6994 2011-02-07  Denis Chertykov  <chertykov@gmail.com>
6995
6996         PR target/47534
6997         * config/avr/libgcc.S (exit): Move .endfunc
6998
6999 2011-02-07  Richard Guenther  <rguenther@suse.de>
7000
7001         PR tree-optimization/47615
7002         * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
7003         * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
7004         (run_scc_vn): Initialize it.
7005         (visit_reference_op_load): Use it.
7006         * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
7007
7008 2011-02-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7009
7010         * config/spu/spu.c (spu_init_libfuncs): Install SImode and
7011         DImode trapping arithmetic libfuncs.
7012
7013 2011-02-07  Richard Guenther  <rguenther@suse.de>
7014
7015         PR tree-optimization/47621
7016         * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
7017         two duplicates ...
7018         (execute_update_addresses_taken): ... here.  Make it more
7019         conservative in what we accept.
7020
7021 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
7022
7023         * config/sparc/freebsd.h (ASM_SPEC): Define.
7024         * config/sparc/vxworks.h (ASM_SPEC): Define.
7025
7026 2011-02-06  Joseph Myers  <joseph@codesourcery.com>
7027
7028         * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
7029
7030 2011-02-06  Steven Bosscher  <steven@gcc.gnu.org>
7031
7032         * doc/invoke.texi: Remove reference to compiler internals from
7033         user documentation.
7034
7035         * reg-notes.def: Remove REG_VALUE_PROFILE.
7036         * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
7037
7038 2011-02-05  Jakub Jelinek  <jakub@redhat.com>
7039
7040         PR middle-end/47610
7041         * varasm.c (default_section_type_flags): If decl is NULL,
7042         and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
7043
7044 2011-02-05  Jie Zhang  <jie@codesourcery.com>
7045
7046         PR debug/42631
7047         * web.c (entry_register): Don't clobber the number of the
7048         first uninitialized reference in used[].
7049
7050 2011-02-04  Sebastian Pop  <sebastian.pop@amd.com>
7051
7052         PR tree-optimization/46194
7053         * tree-data-ref.c (analyze_miv_subscript): Remove comment.
7054         (build_classic_dist_vector_1): Do not represent classic distance
7055         vectors when the access functions are variating in different loops.
7056
7057 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7058
7059         * config/mips/iris6.opt: New.
7060         * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
7061
7062 2011-02-04  Richard Henderson  <rth@redhat.com>
7063             Steve Ellcey  <sje@cup.hp.com>
7064
7065         PR target/46997
7066         * config/ia64/predicates.md (mux1_brcst_element): New.
7067         * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
7068         * config/ia64/ia64.c (ia64_unpack_assemble): New.
7069         (ia64_unpack_sign): New.
7070         (ia64_expand_unpack): Rewrite using new routines.
7071         (ia64_expand_widen_sum): Ditto.
7072         (ia64_expand_dot_prod_v8qi): Ditto.
7073         * config/ia64/vect.md (mulv8qi3): Rewrite to use new
7074         routines, add endian check.
7075         (pmpy2_even): Rename from pmpy2_r, add endian check.
7076         (pmpy2_odd): Rename from pmpy2_l, add endian check.
7077         (vec_widen_smult_lo_v4hi): Rewrite using new routines.
7078         (vec_widen_smult_hi_v4hi): Ditto.
7079         (vec_widen_umult_lo_v4hi): Ditto.
7080         (vec_widen_umult_hi_v4hi): Ditto.
7081         (mulv2si3): Change endian checks.
7082         (sdot_prodv4hi): Rewrite with new calls.
7083         (udot_prodv4hi): New.
7084         (vec_pack_ssat_v4hi): Add endian check.
7085         (vec_pack_usat_v4hi): Ditto.
7086         (vec_pack_ssat_v2si): Ditto.
7087         (max1_even): Rename from max1_r, add endian check.
7088         (max1_odd): Rename from max1_l, add endian check.
7089         (*mux1_rev): Format change.
7090         (*mux1_mix): Ditto.
7091         (*mux1_shuf): Ditto.
7092         (*mux1_alt): Ditto.
7093         (*mux1_brcst_v8qi): Use new predicate.
7094         (vec_extract_evenv8qi): Remove endian check.
7095         (vec_extract_oddv8qi): Ditto.
7096         (vec_interleave_lowv4hi): Format change.
7097         (vec_interleave_highv4hi): Ditto.
7098         (mix2_even): Rename from mix2_r, add endian check.
7099         (mix2_odd): Rename from mux2_l, add endian check.
7100         (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
7101         (vec_extract_evenodd_helper): Format change.
7102         (vec_extract_evenv4hi): Remove endian check.
7103         (vec_extract_oddv4hi): Remove endian check.
7104         (vec_interleave_lowv2si): Format change.
7105         (vec_interleave_highv2si): Format change.
7106         (vec_initv2si): Remove endian check.
7107         (vecinit_v2si): Add endian check.
7108         (reduc_splus_v2sf): Add endian check.
7109         (reduc_smax_v2sf): Ditto.
7110         (reduc_smin_v2sf): Ditto.
7111         (vec_initv2sf): Remove endian check.
7112         (fpack): Add endian check.
7113         (fswap): Add endian check.
7114         (vec_interleave_highv2sf): Add endian check.
7115         (vec_interleave_lowv2sf): Add endian check.
7116         (fmix_lr): Add endian check.
7117         (vec_setv2sf): Format change.
7118         (*vec_extractv2sf_0_be): Use shift to extract operand.
7119         (*vec_extractv2sf_1_be): New.
7120         (vec_pack_trunc_v4hi): Add endian check.
7121         (vec_pack_trunc_v2si): Format change.
7122
7123 2011-02-04  Jakub Jelinek  <jakub@redhat.com>
7124
7125         PR inline-asm/23200
7126         * tree-ssa-ter.c (is_replaceable_p): Add TER argument.  Don't
7127         do bb, locus and block comparison and disallow loads if it is not set.
7128         (stmt_is_replaceable_p): New function.
7129         (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
7130         callers.
7131         * expr.c (expand_expr_real_1) <case SSA_NAME>: If
7132         get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
7133         SSA_NAME_DEF_STMT.
7134         * tree-flow.h (stmt_is_replaceable_p): New prototype.
7135
7136 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7137
7138         * config/rs6000/xilinx.opt: New.
7139         * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
7140
7141 2011-02-04  Joseph Myers  <joseph@codesourcery.com>
7142
7143         * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
7144
7145 2011-02-03  Anatoly Sokolov  <aesok@post.ru>
7146
7147         * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
7148         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
7149         * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
7150         secondary_reload_info, xtensa_secondary_reload): Remove.
7151         * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
7152         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
7153         (xtensa_preferred_reload_class): Make static. Change return and
7154         'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
7155         Use CONST_DOUBLE_P predicate.
7156         (xtensa_preferred_output_reload_class): New function.
7157         (xtensa_secondary_reload): Make static.
7158
7159 2011-02-03  Joseph Myers  <joseph@codesourcery.com>
7160
7161         * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
7162         Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
7163         Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
7164
7165 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7166
7167         PR middle-end/31490
7168         * output.h (SECTION_RELRO): Define.
7169         (SECTION_MACH_DEP): Adjust.
7170         (get_variable_section): New prototype.
7171         * varpool.c (varpool_finalize_named_section_flags): New function.
7172         (varpool_assemble_pending_decls): Call it.
7173         * cgraph.h (varpool_finalize_named_section_flags): New prototype.
7174         * cgraphunit.c (cgraph_output_in_order): Call
7175         varpool_finalize_named_section_flags.
7176         * varasm.c (get_section): Allow section flags conflicts between
7177         relro and read-only sections if the section hasn't been declared yet.
7178         Set SECTION_OVERRIDE after diagnosing section type conflict.
7179         (get_variable_section): No longer static.
7180         (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
7181         readonly sections that need relocations.
7182         (decl_readonly_section_1): New function.
7183         (decl_readonly_section): Use it.
7184
7185         Revert:
7186         2010-11-17  Dinar Temirbulatov  <dtemirbulatov@gmail.com>
7187                     Steve Ellcey  <sje@cup.hp.com>
7188
7189         PR middle-end/31490
7190         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
7191         if section attribute used.
7192
7193 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7194
7195         * config/darwin.h (SECTION_NO_ANCHOR): Remove.
7196         * config/darwin.c (SECTION_NO_ANCHOR): Define.
7197         (darwin_init_sections): Remove assertion.
7198
7199 2011-02-03  Nick Clifton  <nickc@redhat.com>
7200
7201         * config/rx/predicates.md (rx_zs_comparison_operator): Remove
7202         lt and ge.
7203         * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
7204         * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
7205         instead of "n" and "pz".
7206         (flags_from_code): LT and GE tests need CC_FLAG_O as well as
7207         CC_FLAG_S.
7208
7209 2011-02-03  Jakub Jelinek  <jakub@redhat.com>
7210
7211         PR target/47312
7212         * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
7213         fma, expand FMA_EXPR as fma{,f,l} call.
7214
7215         PR lto/47274
7216         * lto-streamer-out.c (write_symbol): When writing kind and visibility,
7217         copy them into a unsigned char variable and pass address of it to
7218         lto_output_data_stream.
7219
7220         PR target/47564
7221         * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
7222         around backend_init_target and lang_dependent_init_target calls.
7223         * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
7224         (verify_cgraph_node): Don't call set_cfun here.  Use
7225         cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
7226         Set error_found for incorrectly represented calls to thunks.
7227
7228 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
7229
7230         PR debug/43092
7231         PR rtl-optimization/43494
7232         * rtl.h (for_each_inc_dec_fn): New type.
7233         (for_each_inc_dec): Declare.
7234         * rtlanal.c (struct for_each_inc_dec_ops): New type.
7235         (for_each_inc_dec_find_inc_dec): New fn.
7236         (for_each_inc_dec_find_mem): New fn.
7237         (for_each_inc_dec): New fn.
7238         * dse.c (struct insn_size): Remove.
7239         (replace_inc_dec, replace_inc_dec_mem): Remove.
7240         (emit_inc_dec_insn_before): New fn.
7241         (check_for_inc_dec): Use it, along with for_each_inc_dec.
7242         (canon_address): Pass mem modes to cselib_lookup.
7243         * cselib.h (cselib_lookup): Add memmode argument.  Adjust callers.
7244         (cselib_lookup_from_insn): Likewise.
7245         (cselib_subst_to_values): Likewise.
7246         * cselib.c (find_slot_memmode): New var.
7247         (cselib_find_slot): New fn.  Use it instead of
7248         htab_find_slot_with_hash everywhere.
7249         (entry_and_rtx_equal_p): Use find_slot_memmode.
7250         (autoinc_split): New fn.
7251         (rtx_equal_for_cselib_p): Rename and implement in terms of...
7252         (rtx_equal_for_cselib_1): ... this.  Take memmode, pass it on.
7253         Deal with autoinc.  Special-case recursion into MEMs.
7254         (cselib_hash_rtx): Likewise.
7255         (cselib_lookup_mem): Infer pmode from address mode.  Distinguish
7256         address and MEM modes.
7257         (cselib_subst_to_values): Add memmode, pass it on.
7258         Deal with autoinc.
7259         (cselib_lookup): Add memmode argument, pass it on.
7260         (cselib_lookup_from_insn): Add memmode.
7261         (cselib_invalidate_rtx): Discard obsolete push_operand handling.
7262         (struct cselib_record_autoinc_data): New.
7263         (cselib_record_autoinc_cb): New fn.
7264         (cselib_record_sets): Use it, along with for_each_inc_dec.  Pass MEM
7265         mode to cselib_lookup.  Reset autoinced REGs here instead of...
7266         (cselib_process_insn): ... here.
7267         * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
7268         to cselib_lookup.
7269         (add_uses): Likewise, also to cselib_subst_to_values.
7270         (add_stores): Likewise.
7271         * sched-deps.c  (add_insn_mem_dependence): Pass mode to
7272         cselib_subst_to_values.
7273         (sched_analyze_1, sched_analyze_2): Likewise.  Adjusted.
7274         * gcse.c (do_local_cprop): Adjusted.
7275         * postreload.c (reload_cse_simplify_set): Adjusted.
7276         (reload_cse_simplify_operands): Adjusted.
7277         * sel-sched-dump (debug_mem_addr_value): Pass mode.
7278
7279 2011-02-03  Alexandre Oliva  <aoliva@redhat.com>
7280
7281         PR tree-optimization/45122
7282         * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
7283         unsafe assumptions when there's more than one loop exit.
7284
7285 2011-02-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
7286
7287         PR target/47272
7288         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
7289         Document using vector double with the load/store builtins, and
7290         that the load/store builtins always use Altivec instructions.
7291
7292         * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
7293         to use altivec memory instructions, even on VSX.
7294         (vector_altivec_store_<mode>): Ditto.
7295
7296         * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
7297         function.
7298
7299         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7300         V2DF, V2DI support to load/store overloaded builtins.
7301
7302         * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
7303         altivec load/store builtins for V2DF/V2DI types.
7304
7305         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
7306         set avoid indexed addresses on power6 if -maltivec.
7307         (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
7308         vector_altivec_load/vector_altivec_store builtins.
7309         (altivec_expand_st_builtin): Ditto.
7310         (altivec_expand_builtin): Add VSX memory builtins.
7311         (rs6000_init_builtins): Add V2DI types to internal types.
7312         (altivec_init_builtins): Add support for V2DF/V2DI altivec
7313         load/store builtins.
7314         (rs6000_address_for_altivec): Insure memory address is appropriate
7315         for Altivec.
7316
7317         * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
7318         vec_vsx_ld and vec_vsx_st.
7319         (vsx_store_<mode>): Ditto.
7320
7321         * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
7322         variables to hold long long types for VSX vector memory builtins.
7323         (RS6000_BTI_unsigned_long_long): Ditto.
7324         (long_long_integer_type_internal_node): Ditti.
7325         (long_long_unsigned_type_internal_node): Ditti.
7326
7327         * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
7328         (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
7329         (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
7330
7331         * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
7332         short cuts.
7333         (vec_vsx_st): Ditto.
7334
7335 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
7336
7337         * config/pa/pa-hpux10.opt: New.
7338         * config/hpux11.opt (pthread): New Driver option.
7339         * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
7340         * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
7341
7342 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
7343
7344         * config/ia64/vms.opt: New.
7345         * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
7346
7347 2011-02-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
7348
7349         PR target/47580
7350         * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
7351         gpc_reg_operand instead of vsx_register_operand to match rs6000.md
7352         generator functions.
7353         (vsx_floatuns<VSi><mode>2): Ditto.
7354         (vsx_fix_trunc<mode><VSi>2): Ditto.
7355         (vsx_fixuns_trunc<mode><VSi>2): Ditto.
7356
7357 2011-02-02  Joseph Myers  <joseph@codesourcery.com>
7358
7359         * config/i386/djgpp.opt (posix): New Driver option.
7360
7361 2011-02-02  Gerald Pfeifer  <gerald@pfeifer.com>
7362
7363         * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
7364         Move to the unsupported targets list.
7365
7366 2011-02-02  Peter Bergner  <bergner@vnet.ibm.com>
7367
7368         PR rtl-optimization/47525
7369         * df-scan.c: Update copyright years.
7370         (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
7371         and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
7372
7373 2011-02-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7374
7375         * config/i386/sysv4.h (TARGET_VERSION): Remove.
7376         (SUBTARGET_RETURN_IN_MEMORY): Remove.
7377         (ASM_OUTPUT_ASCII): Remove.
7378         * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
7379
7380 2011-02-02  Jeff Law  <law@redhat.com>
7381
7382         PR middle-end/47543
7383         * reload.c (find_reloads_address): Handle reg+d address where both
7384         components are invalid by reloading the entire address.
7385
7386 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
7387             Richard Guenther  <rguenther@suse.de>
7388
7389         PR tree-optimization/40979
7390         PR bootstrap/47044
7391         * passes.c (init_optimization_passes): After LIM call copy_prop
7392         and DCE to clean up.
7393         * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
7394
7395 2011-02-02  Sebastian Pop  <sebastian.pop@amd.com>
7396
7397         PR tree-optimization/47576
7398         PR tree-optimization/47555
7399         * doc/invoke.texi (scev-max-expr-complexity): Documented.
7400         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
7401         (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
7402         * tree-scalar-evolution.c (follow_ssa_edge): Use
7403         PARAM_SCEV_MAX_EXPR_COMPLEXITY.
7404
7405 2011-02-02  Richard Guenther  <rguenther@suse.de>
7406
7407         PR tree-optimization/47566
7408         * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
7409
7410 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
7411
7412         PR debug/47106
7413         PR debug/47402
7414         * tree-inline.c (declare_return_variable): Remove unused caller
7415         variable.
7416
7417         PR debug/47106
7418         PR debug/47402
7419         * tree-flow-inline.h (clear_is_used, is_used_p): New.
7420         * cfgexpand.c (account_used_vars_for_block): Use them.
7421         * tree-nrv.c (tree_nrv): Likewise.
7422         * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
7423         (dump_scope_block): Likewise.
7424         (remove_unused_locals): Likewise.
7425
7426         PR debug/47106
7427         PR debug/47402
7428         * tree-inline.c (declare_return_variable): Add result decl to
7429         local decls only once.
7430         * gimple-low.c (record_vars_into): Mark newly-created variables
7431         as referenced.
7432
7433 2011-02-02  Alexandre Oliva  <aoliva@redhat.com>
7434
7435         PR debug/47498
7436         PR debug/47501
7437         PR debug/45136
7438         PR debug/45130
7439         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7440         debug insns.
7441         (no_real_insns_p, schedule_block, set_priorities): Drop special
7442         treatment of boundary debug insns.
7443         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7444         * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
7445         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7446         (BOUNDARY_DEBUG_INSN_P): Likewise.
7447         (SCHEDULE_DEBUG_INSN_P): Likewise.
7448         * sched-rgn.c (init_ready_list): Drop special treatment of
7449         boundary debug insns.
7450         * final.c (rest_of_clean_state): Clear notes' BB.
7451
7452 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
7453
7454         * config/openbsd.opt (assert=): New Driver option.
7455
7456 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
7457
7458         * config/i386/nto.opt: New.
7459         * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
7460
7461 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
7462
7463         * config/i386/netware.opt: New.
7464         * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
7465
7466 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
7467
7468         * config/interix.opt (posix): New Driver option.
7469
7470 2011-02-01  DJ Delorie  <dj@redhat.com>
7471
7472         * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
7473
7474         * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
7475         class for A0/A1.
7476
7477 2011-02-01  Sebastian Pop  <sebastian.pop@amd.com>
7478
7479         PR tree-optimization/47561
7480         * toplev.c (process_options): Print the Graphite flags.  Add
7481         flag_loop_flatten to the list of options requiring Graphite.
7482
7483 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
7484
7485         * config/i386/cygming.opt (posix): New Driver option.
7486
7487 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
7488
7489         * config/arm/vxworks.opt: New.
7490         * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
7491
7492 2011-02-01  Joseph Myers  <joseph@codesourcery.com>
7493
7494         * config/alpha/elf.opt: New.
7495         * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
7496         alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
7497
7498 2011-02-01  Richard Guenther  <rguenther@suse.de>
7499
7500         PR tree-optimization/47559
7501         * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
7502         store-motion on references that can throw.
7503
7504 2011-02-01  Bernd Schmidt  <bernds@codesourcery.com>
7505
7506         * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
7507         * tree-pass.h (TDF_CSELIB): New macro.
7508         * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
7509         cselib_lookup): Check for it rather than for TDF_DETAILS.
7510
7511 2011-02-01  H.J. Lu  <hongjiu.lu@intel.com>
7512
7513         PR driver/47547
7514         * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
7515         is HOST_BIT_BUCKET.
7516
7517         * opts.c (finish_options): Don't add x_aux_base_name if it is
7518         HOST_BIT_BUCKET.
7519
7520 2011-02-01  Richard Guenther  <rguenther@suse.de>
7521
7522         PR tree-optimization/47555
7523         Revert
7524         2010-07-15  Sebastian Pop  <sebastian.pop@amd.com>
7525
7526         * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
7527
7528 2011-02-01  Sebastien Bourdeauducq  <sebastien@milkymist.org>
7529
7530         PR gcc/46692
7531         * config/lm32/t-lm32: Add multilib for all CPU options.
7532
7533 2011-02-01  Richard Guenther  <rguenther@suse.de>
7534
7535         PR tree-optimization/47541
7536         * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
7537         sure to have a field at offset zero.
7538
7539 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
7540
7541         * config/arc/arc.opt (EB, EL): New Driver options.
7542
7543 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
7544
7545         * config/alpha/osf5.opt: New.
7546         * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
7547
7548 2011-01-31  Joseph Myers  <joseph@codesourcery.com>
7549
7550         * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
7551
7552 2011-01-31  Sebastian Pop  <sebastian.pop@amd.com>
7553
7554         * common.opt (ftree-loop-linear): Use Alias to make it an alias of
7555         -floop-interchange.
7556         * invoke.texi (-ftree-loop-linear): Make it clear that this flag
7557         is an alias of -floop-interchange and that it requires the
7558         Graphite infrastructure.
7559         * tree-ssa-loop.c (gate_graphite_transforms): Do not set
7560         flag_loop_interchange based on the value of flag_tree_loop_linear.
7561
7562 2011-01-31  Jakub Jelinek  <jakub@redhat.com>
7563             Richard Guenther  <rguenther@suse.de>
7564
7565         PR tree-optimization/47538
7566         * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
7567         type instead of r1type, except for comparisons.  For right
7568         shifts and comparisons punt if there are mismatches in
7569         sizetype vs. non-sizetype types.
7570
7571 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7572
7573         * doc/sourcebuild.texi (Effective-Target Keywords): Document
7574         avx_runtime.
7575
7576 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7577
7578         * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
7579         version number.
7580         * configure: Regenerate.
7581
7582 2011-01-31  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7583
7584         * configure.ac (gcc_cv_ld_static_option): Define.
7585         (gcc_cv_ld_dynamic_option): Define.
7586         (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
7587         instead.
7588         (HAVE_LD_STATIC_DYNAMIC): Update message.
7589         (LD_STATIC_OPTION): Define.
7590         (LD_DYNAMIC_OPTION): Define.
7591         * configure: Regenerate.
7592         * config.in: Regenerate.
7593         * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
7594         HAVE_LD_STATIC_DYNAMIC]: Use them.
7595
7596 2011-01-31  Nick Clifton  <nickc@redhat.com>
7597
7598         * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
7599         registers inside interrupt handlers if the handler is not a leaf
7600         function.
7601
7602 2011-01-31  Nick Clifton  <nickc@redhat.com>
7603
7604         * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
7605         reg_renumber returning an INVALID_REGNUM.
7606
7607 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
7608
7609         PR libgcj/44341
7610         * doc/install.texi: Document host options discarded when cross
7611         configuring target libraries.
7612
7613 2011-01-31  Alexandre Oliva  <aoliva@redhat.com>
7614
7615         Reverted:
7616         2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
7617         PR debug/45136
7618         PR debug/45130
7619         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7620         debug insns.
7621         (no_real_insns_p, schedule_block, set_priorities): Drop special
7622         treatment of boundary debug insns.
7623         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7624         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
7625         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7626         (BOUNDARY_DEBUG_INSN_P): Likewise.
7627         (SCHEDULE_DEBUG_INSN_P): Likewise.
7628         * sched-rgn.c (init_ready_list): Drop special treatment of
7629         boundary debug insns.
7630         * final.c (rest_of_clean-state): Clear notes' BB.
7631
7632 2011-01-31  Alan Modra  <amodra@gmail.com>
7633
7634         * config/rs6000/rs6000.c (print_operand): Rearrange addends in
7635         toc relative expressions as we do in print_operand_address.
7636
7637 2011-01-30  Kazu Hirata  <kazu@codesourcery.com>
7638
7639         * doc/extend.texi: Follow spelling conventions.
7640         * doc/invoke.texi: Fix a typo.
7641
7642 2011-01-30  Joseph Myers  <joseph@codesourcery.com>
7643
7644         * config/hpux11.opt: New.
7645         * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
7646         ia64*-*-hpux*): Use hpux11.opt.
7647
7648 2011-01-30  Jonathan Yong  <jon_y@users.sourceforge.net>
7649
7650         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
7651         to tmake_file.
7652
7653 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
7654
7655         * doc/install.texi (hppa-hp-hpux10): Remove references to HP
7656         support sites.
7657
7658 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
7659
7660         * doc/install.texi (Binaries): Remove outdated reference for
7661         Motorola 68HC11/68HC12 downloads.
7662
7663 2011-01-30  Gerald Pfeifer  <gerald@pfeifer.com>
7664
7665         * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
7666         Drepper's paper.
7667
7668 2011-01-29  Jonathan Wakely  <jwakely.gcc@gmail.com>
7669
7670         PR bootstrap/47147
7671         * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
7672         used by NetBSD.
7673
7674 2011-01-28  Ahmad Sharif  <asharif@google.com>
7675
7676         * value-prof.c (check_counter): Corrected error message.
7677
7678 2011-01-29  Jie Zhang  <jie@codesourcery.com>
7679
7680         * config/arm/arm.c (arm_legitimize_reload_address): New.
7681         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
7682         arm_legitimize_reload_address.
7683         * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
7684
7685 2011-01-28  Ian Lance Taylor  <iant@google.com>
7686
7687         * godump.c (go_define): Ignore macros whose definitions include
7688         two adjacent operands.
7689
7690 2011-01-28  Jakub Jelinek  <jakub@redhat.com>
7691
7692         PR target/42894
7693         * varasm.c (force_const_mem): Store copy of x in desc->constant
7694         instead of x itself.
7695         * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
7696         itself into REG_EQUAL note.
7697
7698 2011-01-28  Joseph Myers  <joseph@codesourcery.com>
7699
7700         * config/freebsd.opt (posix, rdynamic): New Driver options.
7701
7702 2011-01-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7703
7704         * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
7705         -Bstatic/-Bdynamic.
7706         * configure: Regenerate.
7707
7708 2011-01-27  Joseph Myers  <joseph@codesourcery.com>
7709
7710         * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
7711         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
7712
7713 2011-01-27  Anatoly Sokolov  <aesok@post.ru>
7714
7715         * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
7716         * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
7717         * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
7718         (s390_preferred_reload_class): Make static. Change return and
7719         'rclass' argument type to reg_class_t.
7720
7721 2011-01-27  Jan Hubicka  <jh@suse.cz>
7722
7723         PR middle-end/46949
7724         * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
7725         (process_function_and_variable_attributes): Check defined weakrefs.
7726
7727 2011-01-27  Martin Jambor  <mjambor@suse.cz>
7728
7729         PR tree-optimization/47228
7730         * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
7731         build_ref_for_offset.
7732
7733 2011-01-27  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7734
7735         * config/spu/spu-elf.h (ASM_SPEC): Remove.
7736
7737 2011-01-26  Mikael Pettersson  <mikpe@it.uu.se>
7738
7739         PR rtl-optimization/46856
7740         * postreload.c (reload_combine_recognize_const_pattern): Do not
7741         separate cc0 setter and user on cc0 targets.
7742
7743 2011-01-26  Nicola Pero  <nicola.pero@meta-innovation.com>
7744
7745         PR c/43082
7746         * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
7747         passed a VOID_TYPE expression, immediately emit an error and
7748         return error_mark_node.
7749
7750 2011-01-26  Jeff Law  <law@redhat.com>
7751
7752         PR rtl-optimization/47464
7753         * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
7754         rather than may_trap_p as needed.
7755
7756 2011-01-26  DJ Delorie  <dj@redhat.com>
7757
7758         PR rtl-optimization/46878
7759         * combine.c (insn_a_feeds_b): Check for the implicit cc0
7760         setter/user dependency as well.
7761
7762 2011-01-26  Eric Botcazou  <ebotcazou@adacore.com>
7763
7764         PR rtl-optimization/44469
7765         * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
7766         after removing trivially dead basic blocks.
7767
7768 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
7769
7770         * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
7771         * config/frv/frv.h (LINK_SPEC): Likewise.
7772         * config/i386/netware.h (LINK_SPEC): Likewise.
7773         * config/m68k/linux.h (ASM_SPEC): Likewise.
7774         * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
7775         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
7776         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7777         * config/sparc/linux.h (ASM_SPEC): Likewise.
7778         * config/sparc/linux64.h (ASM_SPEC): Likewise.
7779         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7780
7781 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
7782
7783         * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
7784         * config/frv/frv.h (ASM_SPEC): Likewise.
7785         * config/m68k/linux.h (ASM_SPEC): Likewise.
7786         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
7787         * config/rs6000/linux64.h (ASM_SPEC): Likewise.
7788         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7789         * config/sparc/linux.h (ASM_SPEC): Likewise.
7790         * config/sparc/linux64.h (ASM_SPEC): Likewise.
7791         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7792
7793 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
7794
7795         * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
7796         * config/frv/frv.h (LINK_SPEC): Likewise.
7797         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
7798
7799 2011-01-26  Joseph Myers  <joseph@codesourcery.com>
7800
7801         * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
7802         * config/frv/frv.h (ASM_SPEC): Likewise.
7803         * config/i386/sol2-10.h (ASM_SPEC): Likewise.
7804         * config/m68k/linux.h (ASM_SPEC): Likewise.
7805         * config/pa/pa-linux.h (ASM_SPEC): Likewise.
7806         * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
7807         * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
7808         * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
7809         * config/sparc/linux.h (ASM_SPEC): Likewise.
7810         * config/sparc/linux64.h (ASM_SPEC): Likewise.
7811         * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
7812         * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
7813
7814 2011-01-26  Steve Ellcey  <sje@cup.hp.com>
7815
7816         PR target/46997
7817         * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
7818         (*mux2): Ditto.
7819         (vec_extract_evenodd_help): Ditto.
7820         (vec_extract_evenv4hi): Ditto.
7821         (vec_extract_oddv4hi): Ditto.
7822         (vec_interleave_lowv2si): Ditto.
7823         (vec_interleave_highv2si): Ditto.
7824         (vec_extract_evenv2si): Ditto.
7825         (vec_extract_oddv2si: Ditto.
7826         (vec_pack_trunc_v2si): Ditto.
7827
7828 2011-01-22  Jan Hubicka  <jh@suse.cz>
7829
7830         PR target/47237
7831         * cgraph.h (cgraph_local_info): New field can_change_signature.
7832         * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
7833         signature can change.
7834         (ipcp_estimate_growth): Call sequence simplify only if calle signature
7835         can change.
7836         (ipcp_insert_stage): Only compute args_to_skip if signature can change.
7837         (cgraph_function_versioning): We can not change signature of functions
7838         that don't allow that.
7839         * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
7840         (lto_input_node): Likewise.
7841         * ipa-inline.c (compute_inline_parameters): Compute
7842         local.can_change_signature.
7843         * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
7844         * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
7845         functions that can not change signature.
7846         * i386.c (ix86_function_regparm, ix86_function_sseregparm,
7847         init_cumulative_args): Do not use local calling conventions
7848         for functions that can not change signature.
7849
7850 2011-01-22  Jan Hubicka  <jh@suse.cz>
7851
7852         * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
7853
7854 2011-01-26  Richard Guenther  <rguenther@suse.de>
7855
7856         PR tree-optimization/47190
7857         * cgraphunit.c (process_common_attributes): New function.
7858         (process_function_and_variable_attributes): Use it.
7859
7860 2011-01-26  Richard Guenther  <rguenther@suse.de>
7861
7862         PR lto/47423
7863         * cgraphbuild.c (record_eh_tables): Record reference to personality
7864         function.
7865
7866 2011-01-26  Alexandre Oliva  <aoliva@redhat.com>
7867
7868         PR debug/45454
7869         * sel-sched.c (moveup_expr): Don't let debug insns prevent
7870         non-debug insns from moving up.
7871
7872 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
7873
7874         PR target/40125
7875         * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
7876         t-dlldir{,-x} fragment for build and add it to tmake_file.
7877         (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
7878         * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
7879         * config/i386/t-dlldir: New file.
7880         (SHLIB_DLLDIR): Define.
7881         * config/i386/t-dlldir-x: New file.
7882         (SHLIB_DLLDIR): Define.
7883         * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
7884         (SHLIB_INSTALL): Use it.
7885
7886 2011-01-26  Chung-Lin Tang  <cltang@codesourcery.com>
7887
7888         PR target/47246
7889         * config/arm/arm.c (thumb2_legitimate_index_p): Change the
7890         lower bound of the allowed Thumb-2 coprocessor load/store
7891         index range to -256. Add explaining comment.
7892
7893 2011-01-25  Ian Lance Taylor  <iant@google.com>
7894
7895         * godump.c (go_define): Improve lexing of macro expansion to only
7896         accept expressions which match Go spec.
7897
7898 2011-01-26  Dave Korn  <dave.korn.cygwin@gmail.com>
7899
7900         PR c++/43601
7901         * tree.c (handle_dll_attribute): Handle it.
7902         * doc/extend.texi (@item dllexport): Mention it.
7903         * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
7904
7905 2011-01-25  Ian Lance Taylor  <iant@google.com>
7906
7907         PR tree-optimization/26854
7908         * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
7909         (decl_jump_unsafe): Move higher in file, with no other change.
7910         (bind): Set has_jump_unsafe_decl if appropriate.
7911         (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
7912         (check_earlier_gotos): Likewise.
7913         (c_check_switch_jump_warnings): Likewise.
7914
7915 2011-01-25  Jonathan Wakely  <jwakely.gcc@gmail.com>
7916
7917         * doc/invoke.texi (Warning Options): Add missing hyphen.
7918         (-fprofile-dir): Minor grammatical fixes.
7919         (-fbranch-probabilities): Likewise.
7920
7921 2011-01-25  Alexandre Oliva  <aoliva@redhat.com>
7922
7923         PR debug/45136
7924         PR debug/45130
7925         * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
7926         debug insns.
7927         (no_real_insns_p, schedule_block, set_priorities): Drop special
7928         treatment of boundary debug insns.
7929         * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
7930         * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
7931         * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
7932         (BOUNDARY_DEBUG_INSN_P): Likewise.
7933         (SCHEDULE_DEBUG_INSN_P): Likewise.
7934         * sched-rgn.c (init_ready_list): Drop special treatment of
7935         boundary debug insns.
7936         * final.c (rest_of_clean-state): Clear notes' BB.
7937
7938 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
7939
7940         * Makefile.in (LAMBDA_H): Removed.
7941         (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
7942         (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
7943         lambda-trans.o, and tree-loop-linear.o.
7944         (lto-symtab.o): Remove dependence on LAMBDA_H.
7945         (tree-loop-linear.o): Remove rule.
7946         (lambda-mat.o): Same.
7947         (lambda-trans.o): Same.
7948         (lambda-code.o): Same.
7949         (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
7950         (tree-vect-slp.o): Same.
7951         * hwint.h (gcd): Moved here.
7952         (least_common_multiple): Same.
7953         * lambda-code.c: Removed.
7954         * lambda-mat.c: Removed.
7955         * lambda-trans.c: Removed.
7956         * lambda.h: Removed.
7957         * tree-loop-linear.c: Removed.
7958         * lto-symtab.c: Do not include lambda.h.
7959         * omega.c (gcd): Removed.
7960         * passes.c (init_optimization_passes): Remove pass_linear_transform.
7961         * tree-data-ref.c (print_lambda_vector): Moved here.
7962         (lambda_vector_copy): Same.
7963         (lambda_matrix_copy): Same.
7964         (lambda_matrix_id): Same.
7965         (lambda_vector_first_nz): Same.
7966         (lambda_matrix_row_add): Same.
7967         (lambda_matrix_row_exchange): Same.
7968         (lambda_vector_mult_const): Same.
7969         (lambda_vector_negate): Same.
7970         (lambda_matrix_row_negate): Same.
7971         (lambda_vector_equal): Same.
7972         (lambda_matrix_right_hermite): Same.
7973         * tree-data-ref.h: Do not include lambda.h.
7974         (lambda_vector): Moved here.
7975         (lambda_matrix): Same.
7976         (dependence_level): Same.
7977         (lambda_transform_legal_p): Removed declaration.
7978         (lambda_collect_parameters): Same.
7979         (lambda_compute_access_matrices): Same.
7980         (lambda_vector_gcd): Same.
7981         (lambda_vector_new): Same.
7982         (lambda_vector_clear): Same.
7983         (lambda_vector_lexico_pos): Same.
7984         (lambda_vector_zerop): Same.
7985         (lambda_matrix_new): Same.
7986         * tree-flow.h (least_common_multiple): Removed declaration.
7987         * tree-parloops.c (lambda_trans_matrix): Moved here.
7988         (LTM_MATRIX): Same.
7989         (LTM_ROWSIZE): Same.
7990         (LTM_COLSIZE): Same.
7991         (LTM_DENOMINATOR): Same.
7992         (lambda_trans_matrix_new): Same.
7993         (lambda_matrix_vector_mult): Same.
7994         (lambda_transform_legal_p): Same.
7995         * tree-pass.h (pass_linear_transform): Removed declaration.
7996         * tree-ssa-loop.c (tree_linear_transform): Removed.
7997         (gate_tree_linear_transform): Removed.
7998         (pass_linear_transform): Removed.
7999         (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
8000         flag_loop_interchange.
8001
8002 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8003
8004         PR tree-optimization/47265
8005         PR tree-optimization/47443
8006         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
8007         if name still has some uses.
8008
8009 2011-01-25  Martin Jambor  <mjambor@suse.cz>
8010
8011         PR tree-optimization/47382
8012         * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
8013         (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
8014
8015 2011-01-25  Joel Sherrill  <joel.sherrill@oarcorp.com>
8016
8017         * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
8018         sjlj_except_unwind_info.
8019
8020 2011-01-25  Richard Guenther  <rguenther@suse.de>
8021
8022         PR tree-optimization/47426
8023         * tree-ssa-structalias.c (ipa_pta_execute): Make externally
8024         visible functions results escape.
8025
8026 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8027
8028         PR target/45701
8029         * config/arm/arm.c (any_sibcall_uses_r3): New function.
8030         (arm_get_frame_offsets): Use it.
8031
8032 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8033             Jakub Jelinek  <jakub@redhat.com>
8034
8035         PR tree-optimization/47271
8036         * tree-if-conv.c (bb_postdominates_preds): New.
8037         (if_convertible_bb_p): Call bb_postdominates_preds.
8038         (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
8039         (predicate_scalar_phi): Call bb_postdominates_preds.
8040
8041 2011-01-25  Nick Clifton  <nickc@redhat.com>
8042
8043         * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
8044         * config/rx/rx.c (rx_function_value): Likewise.
8045         (rx_promote_function_mode): Likewise.
8046         (gen_safe_add): Place an outsized immediate value inside an UNSPEC
8047         in order to make it legitimate.
8048         * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
8049         make sure that the first operand is the same as the result register.
8050         (addsi3_unspec): Delete.
8051         (subdi3): Do not accept immediate operands.
8052         (subdi3_internal): Likewise.
8053
8054 2011-01-25  Jeff Law  <law@redhat.com>
8055
8056         PR rtl-optimization/37273
8057         * ira-costs.c (scan_one_insn): Detect constants living in memory and
8058         handle them like argument loads from stack slots.  Do not double
8059         count memory for memory constants and argument loads from stack slots.
8060
8061 2011-01-25  Jakub Jelinek  <jakub@redhat.com>
8062
8063         PR tree-optimization/47427
8064         PR tree-optimization/47428
8065         * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
8066         coalesce if the new root var would be TREE_READONLY.
8067
8068 2011-01-25  Richard Guenther  <rguenther@suse.de>
8069
8070         PR middle-end/47414
8071         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
8072         correct type for TBAA.
8073
8074 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8075
8076         * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
8077         (close_phi_written_to_memory): Call for_each_index with
8078         dr_indices_valid_in_loop.
8079
8080 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8081
8082         * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
8083         when it is initialized.
8084
8085 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8086
8087         * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
8088         call to graphite_find_data_references_in_stmt.
8089         * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
8090         (try_generate_gimple_bb): Call outermost_loop_in_sese_1.  Update
8091         call to graphite_find_data_references_in_stmt.
8092         (analyze_drs_in_stmts): Same.
8093         * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
8094         in which the scalar analysis of indices is performed.
8095         (create_data_ref): Same.  Update call to dr_analyze_indices.
8096         (find_data_references_in_stmt): Update call to create_data_ref.
8097         (graphite_find_data_references_in_stmt): Same.
8098         * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
8099         declaration.
8100         (create_data_ref): Same.
8101         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
8102         call to create_data_ref.
8103
8104 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8105
8106         * graphite-sese-to-poly.c (build_poly_scop): Move
8107         rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
8108
8109 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8110
8111         * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
8112         VAR_DECL, PARM_DECL, and RESULT_DECL.
8113
8114 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8115
8116         * graphite-dependences.c (reduction_dr_1): Allow several reductions
8117         in a reduction PBB.
8118         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
8119         that have already been marked as PBB_IS_REDUCTION.
8120
8121 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8122
8123         * graphite-scop-detection.c (same_close_phi_node): New.
8124         (remove_duplicate_close_phi): New.
8125         (make_close_phi_nodes_unique): New.
8126         (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
8127
8128 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8129
8130         * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
8131         * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
8132         of both data references to be the same.
8133
8134 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8135
8136         * graphite-dependences.c (build_lexicographical_constraint): Remove
8137         the gdim parameter.
8138         (build_lexicographical_constraint): Adjust call to
8139         ppl_powerset_is_empty.
8140         (dependence_polyhedron): Same.
8141         (graphite_legal_transform_dr): Same.
8142         (graphite_carried_dependence_level_k): Same.
8143         * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
8144         parameter.
8145         * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
8146
8147 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8148
8149         * graphite-sese-to-poly.c
8150         (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
8151         (close_phi_written_to_memory): New.
8152         (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
8153         and unshare_expr.
8154
8155 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8156
8157         * doc/install.texi: Update the expected version number of PPL to 0.11.
8158         * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
8159         #if PPL_VERSION_MINOR < 11.
8160
8161 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8162
8163         * graphite-dependences.c: Include graphite-cloog-util.h.
8164         (new_poly_ddr): Inlined into dependence_polyhedron.
8165         (free_poly_ddr): Moved close by new_poly_ddr.
8166         (dependence_polyhedron_1): Renamed dependence_polyhedron.
8167         Early return NULL when ppl_powerset_is_empty returns true.
8168         (dependence_polyhedron): Renamed new_poly_ddr.  Call only once
8169         poly_drs_may_alias_p.  Avoid one call to ppl_powerset_is_empty.
8170         (graphite_legal_transform_dr): Call new_poly_ddr.
8171         (graphite_carried_dependence_level_k): Same.
8172         (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2.  Use new_poly_ddr.
8173         (dot_transformed_deps_stmt_1): Removed.
8174         (dot_deps_stmt_1): Call dot_deps_stmt_2.
8175         (dot_original_deps): Renamed dot_deps_2.  Call new_poly_ddr.
8176         (dot_deps_1): Call dot_deps_2.
8177         * Makefile.in (graphite-dependences.o): Add missing dependence on
8178         graphite-cloog-util.h.
8179
8180 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8181
8182         * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
8183         (build_lexicographical_constraint): Same.
8184         (dependence_polyhedron_1): Same.
8185         (graphite_legal_transform_dr): Same.
8186         (graphite_carried_dependence_level_k): Same.
8187         * graphite-ppl.c (ppl_powerset_is_empty): New.
8188         * graphite-ppl.h (ppl_powerset_is_empty): Declared.
8189         * tree-data-ref.c (dump_data_reference): Print the basic block index.
8190
8191 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8192
8193         * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
8194         the "a followed by b" relation and document it.
8195
8196 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8197
8198         * graphite-dependences.c (build_lexicographical_constraint): Stop the
8199         iteration when the bag of constraints is empty.
8200
8201 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8202
8203         * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
8204
8205 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8206
8207         * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
8208         nest and two loop depths as parameters.
8209         (lst_try_interchange_loops): Call lst_interchange_profitable_p after
8210         lst_perfect_nestify.
8211
8212 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8213
8214         * graphite-dependences.c (print_pddr): Call
8215         ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
8216
8217 2011-01-25  Sebastian Pop  <sebastian.pop@amd.com>
8218
8219         * graphite-ppl.c (debug_gmp_value): New.
8220         * graphite-ppl.h (debug_gmp_value): Declared.
8221
8222 2011-01-25  Tobias Grosser  <grosser@fim.uni-passau.de>
8223
8224         * doc/install.texi: Document availability of cloog-0.16.
8225
8226 2011-01-25  Vladimir Kargov  <kargov@gmail.com>
8227
8228         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
8229         invalid postdominance info.
8230
8231 2011-01-24  Jan Hubicka  <jh@suse.cz>
8232
8233         PR c/21659
8234         * doc/extend.texi (weak pragma): Drop claim that it must
8235         appear before definition.
8236         * varasm.c (merge_weak, declare_weak): Only sanity check
8237         that DECL is not output at a time it is declared weak.
8238
8239 2011-01-24  Kenneth Zadeck  <zadeck@naturalbridge.com>
8240
8241         * machmode.def: Fixed comments.
8242
8243 2011-01-24  Kai Tietz  <kai.tietz@onevision.com>
8244
8245         * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
8246
8247 2011-01-24  Paul Koning  <ni1d@arrl.net>
8248
8249         * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
8250         WORDS_BIG_ENDIAN.
8251
8252 2011-01-24  H.J. Lu  <hongjiu.lu@intel.com>
8253
8254         PR target/46519
8255         * config/i386/i386.c: Include sbitmap.h and fibheap.h.
8256         (block_info): Add scanned and prev.
8257         (move_or_delete_vzeroupper_2): Return if the basic block
8258         has been scanned and the upper 128bit state is unchanged
8259         from the last scan.
8260         (move_or_delete_vzeroupper_1): Return true if the exit
8261         state is changed.
8262         (move_or_delete_vzeroupper): Visit basic blocks using the
8263         work-list based algorithm based on vt_find_locations in
8264         var-tracking.c.
8265
8266         * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
8267
8268 2011-01-24  Nick Clifton  <nickc@redhat.com>
8269
8270         * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
8271         * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
8272         -mv850e1 to the assembler.  If -mv850e1 or -mv850es is specified
8273         then define __v850e1__.
8274         * doc/invoke.texi: Document -mv850es.
8275
8276 2011-01-24  Richard Henderson  <rth@redhat.com>
8277
8278         * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
8279         compound unordered comparisons.
8280         * config/rx/rx.c (rx_split_fp_compare): Remove.
8281         * config/rx/rx-protos.h: Update.
8282         * config/rx/rx.md (gcc_conds, rx_conds): Remove.
8283         (cbranchsf4): Don't call rx_split_fp_compare.
8284         (*cbranchsf4): Use rx_split_cbranch.
8285         (*cmpsf): Don't accept "i" constraint.
8286         (*conditional_branch): Only valid after reload.
8287         (cstoresf4): Merge expander with insn.  Don't call rx_split_fp_compare.
8288
8289 2011-01-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
8290
8291         PR target/47385
8292         * config/rs6000/altivec.md (vector constant splitters): Add
8293         support for creating vector single precision constants if -mvsx is
8294         used and we would create the constant using Altivec primitives.
8295
8296 2011-01-23  Bernd Schmidt  <bernds@codesourcery.com>
8297             Richard Sandiford  <rdsandiford@googlemail.com>
8298
8299         PR rtl-optimization/47166
8300         * reload1.c (emit_reload_insns): Disable the spill_reg_store
8301         mechanism for PRE_MODIFY and POST_MODIFY.
8302         (inc_for_reload): For PRE_MODIFY, return the insn that sets the
8303         reloadreg.
8304
8305 2011-01-23  Andreas Schwab  <schwab@linux-m68k.org>
8306
8307         * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
8308
8309 2011-01-22  Jan Hubicka  <jh@suse.cz>
8310
8311         PR lto/47333
8312         * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
8313
8314 2011-01-22  Jan Hubicka  <jh@suse.cz>
8315
8316         PR tree-optimization/43884
8317         PR lto/44334
8318         * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
8319         * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
8320
8321 2011-01-22  Anatoly Sokolov  <aesok@post.ru>
8322
8323         * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8324         * config/s390/s390.c (s390_register_move_cost,
8325         s390_memory_move_cost): New.
8326         (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8327
8328 2011-01-22  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8329
8330         PR middle-end/47401
8331         * except.c (sjlj_assign_call_site_values): Move setting the
8332         crtl->uses_eh_lsda flag to ...
8333         (sjlj_mark_call_sites): ... here.
8334         (sjlj_emit_function_enter): Support NULL dispatch label.
8335         (sjlj_build_landing_pads): In a function with no landing pads
8336         that still has must-not-throw regions, generate code to register
8337         a personality function with empty LSDA.
8338
8339 2011-01-21  Richard Henderson  <rth@redhat.com>
8340
8341         * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
8342
8343         * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
8344
8345         * compare-elim.c: New file.
8346         * Makefile.in (OBJS-common): Add it.
8347         (compare-elim.o): New.
8348         * common.opt (fcompare-elim): New.
8349         * opts.c (default_options_table): Add OPT_fcompare_elim.
8350         * tree-pass.h (pass_compare_elim_after_reload): New.
8351         * passes.c (init_optimization_passes): Add it.
8352         * recog.h: Protect against re-inclusion.
8353         * target.def (TARGET_FLAGS_REGNUM): New POD hook.
8354         * doc/invoke.texi (-fcompare-elim): Document it.
8355         * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
8356         * doc/tm.texi: Rebuild.
8357
8358 2011-01-22  Nick Clifton  <nickc@redhat.com>
8359
8360         * config/rx/rx.md (cstoresf4): Pass comparison operator to
8361         rx_split_fp_compare.
8362
8363 2011-01-22  Nick Clifton  <nickc@redhat.com>
8364
8365         * config/rx/rx.md (UNSPEC_CONST): New.
8366         (deallocate_and_return): Wrap the amount popped off the stack in
8367         an UNSPEC_CONST in order to stop it being rejected by
8368         -mmax-constant-size.
8369         (pop_and_return): Add a "(return)" rtx.
8370         (call): Drop the immediate operand.
8371         (call_internal): Likewise.
8372         (call_value): Likewise.
8373         (call_value_internal): Likewise.
8374         (sibcall_internal): Likewise.
8375         (sibcall_value_internal): Likewise.
8376         (sibcall): Likewise.  Generate an explicit call using
8377         sibcall_internal.
8378         (sibcall_value): Likewise.
8379         (mov<>): FAIL if a constant operand is not legitimate.
8380         (addsi3_unpsec): New pattern.
8381
8382         * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
8383         (ok_for_max_constant): New function.
8384         (gen_safe_add): New function.
8385         (rx_expand_prologue): Use gen_safe_add.
8386         (rx_expand_epilogue): Likewise.
8387         (rx_is_legitimate_constant): Use ok_for_max_constant.  Handle
8388         UNSPEC CONSTs.
8389
8390 2011-01-21  Jeff Law  <law@redhat.com>
8391
8392         PR tree-optimization/47053
8393         * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
8394         (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
8395         statements are deleted.
8396         (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP.  If NEED_EH_CLEANUP
8397         is nonempty, then purge dead edges and cleanup the CFG.
8398
8399 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
8400
8401         PR debug/47402
8402         Temporarily revert:
8403         2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
8404         PR debug/47106
8405         * tree-dfa.c (create_var_ann): Mark variable as used.
8406
8407 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
8408
8409         PR middle-end/45566
8410         * except.c (convert_to_eh_region_ranges): Emit queued no-region
8411         notes from other section in hot/cold partitioning even if
8412         last_action is -3.  Increment call_site_base.
8413
8414         PR rtl-optimization/47366
8415         * fwprop.c (forward_propagate_into): Return bool.  If
8416         any changes are made, -fnon-call-exceptions is used and
8417         REG_EH_REGION note is present, call purge_dead_edges
8418         and return true if it purged anything.
8419         (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
8420         any EH edges were purged.
8421
8422 2011-01-21  Jeff Law  <law@redhat.com>
8423
8424         PR rtl-optimization/41619
8425         * caller-save.c (setup_save_areas): Break out code to determine
8426         which hard regs are live across calls by examining the reload chains
8427         so that it is always used.
8428         Eliminate code which checked REG_N_CALLS_CROSSED.
8429
8430 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
8431
8432         PR tree-optimization/47355
8433         * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
8434         NOP has non-debug uses beyond PHIs in new_bb.
8435
8436 2011-01-21  Alexandre Oliva  <aoliva@redhat.com>
8437
8438         PR debug/47106
8439         * cfgexpand.c (account_used_vars_for_block): Only account vars
8440         that are annotated as used.
8441         (estimated_stack_frame_size): Don't set TREE_USED.
8442         * tree-dfa.c (create_var_ann): Mark variable as used.
8443
8444 2011-01-21  Richard Guenther  <rguenther@suse.de>
8445
8446         PR middle-end/47395
8447         * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
8448
8449 2011-01-21  Richard Guenther  <rguenther@suse.de>
8450
8451         PR tree-optimization/47365
8452         * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
8453         (vn_reference_lookup_pieces): Adjust.
8454         (vn_reference_lookup): Likewise.
8455         * tree-ssa-sccvn.c (vn_walk_kind): New static global.
8456         (vn_reference_lookup_3): Only look through kills if in
8457         VN_WALKREWRITE mode.
8458         (vn_reference_lookup_pieces): Adjust.
8459         (vn_reference_lookup): Likewise.
8460         (visit_reference_op_load): Likewise.
8461         (visit_reference_op_store): Likewise.
8462         * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
8463         (compute_avail): Likewise.
8464         (eliminate): Likewise.
8465
8466 2011-01-21  Jakub Jelinek  <jakub@redhat.com>
8467
8468         * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
8469         DECL_IGNORED_P non-reg vars if they are used.
8470
8471         PR tree-optimization/47391
8472         * varpool.c (const_value_known_p): Return false if
8473         decl is volatile.
8474
8475 2011-01-21  Kai Tietz  <kai.tietz@onevision.com>
8476
8477         PR bootstrap/47215
8478         * config/i386/i386.c (ix86_local_alignment): Handle
8479         case for va_list_type_node is nil.
8480         (ix86_canonical_va_list_type): Likewise.
8481
8482 2011-01-21  Alan Modra  <amodra@gmail.com>
8483
8484         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
8485         builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
8486
8487 2011-01-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8488
8489         * config/arm/arm.md (define_attr type): Rename f_load
8490         and f_store to f_fpa_load and f_fpa_store. Update.
8491         (write_conflict): Deal with rename fallout.
8492         (*push_fp_multi): Likewise.
8493         * config/arm/fpa.md (f_load): Use f_fpa_load.
8494         (f_store): Use f_fpa_store.
8495         (*movsf_fpa): Likewise.
8496         (*movdf_fpa): Likewise.
8497         (*movxf_fpa): Likewise.
8498         (*thumb2_movsf_fpa): Likewise.
8499         (*thumb2_movdf_fpa): Likewise.
8500         (*thumb2_movxf_fpa): Likewise.
8501         * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
8502         f_loadd and f_stored.
8503         (*thumb2_movdi_vfp): Likewise.
8504         (*thumb2_movsf_vfp): Fix attribute to f_loads.
8505         (*thumb2_movsi_vfp): Likewise.
8506         * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
8507         Use f_loads instead of f_load.
8508         * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
8509
8510 2011-01-20  Anatoly Sokolov  <aesok@post.ru>
8511
8512         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
8513         * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
8514         * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
8515         (xtensa_mode_dependent_address_p): New function.
8516         (constantpool_address_p): Make static. Change return type to bool.
8517         Change argument type to const_rtx. Use CONST_INT_P predicate.
8518
8519 2011-01-20  Alexandre Oliva  <aoliva@redhat.com>
8520
8521         PR debug/46583
8522         * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
8523
8524 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
8525
8526         PR debug/47283
8527         * cfgexpand.c (expand_debug_expr): Instead of generating
8528         (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
8529         etc. handling.
8530
8531 2011-01-20  Richard Guenther  <rguenther@suse.de>
8532
8533         PR middle-end/47370
8534         * tree-inline.c (remap_gimple_op_r): Recurse manually for
8535         the pointer operand of MEM_REFs.
8536
8537 2011-01-20  Jakub Jelinek  <jakub@redhat.com>
8538
8539         PR tree-optimization/46130
8540         * ipa-split.c (consider_split): If return_bb contains non-virtual
8541         PHIs other than for retval or if split_function would not adjust it,
8542         refuse to split.
8543
8544 2011-01-20  Richard Guenther  <rguenther@suse.de>
8545
8546         PR tree-optimization/47167
8547         * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
8548         Revert previous change, only avoid enumeral type changes.
8549
8550 2011-01-19  Mike Stump  <mikestump@comcast.net>
8551
8552         * doc/tm.texi.in (BRANCH_COST): Englishify.
8553         * doc/tm.texi (BRANCH_COST): Likewise.
8554
8555 2011-01-19  Dodji Seketeli  <dodji@redhat.com>
8556
8557         PR c++/47291
8558         * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
8559         (gen_scheduled_generic_parms_dies): New functions.
8560         (gen_struct_or_union_type_die): Schedule template parameters DIEs
8561         generation for the end of CU compilation.
8562         (dwarf2out_finish): Generate template parameters DIEs here.
8563
8564 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
8565
8566         PR debug/46240
8567         * tree-into-ssa.c (maybe_register_def): Do not attempt to add
8568         debug bind stmt on merge edges.
8569
8570 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
8571
8572         PR debug/47079
8573         PR debug/46724
8574         * function.c (instantiate_expr): Instantiate incoming rtl of
8575         implicit arguments, and recurse on VALUE_EXPRs.
8576         (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
8577         * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
8578
8579 2011-01-19  Alexandre Oliva  <aoliva@redhat.com>
8580
8581         * c-parser.c (c_parser_for_statement): Initialize
8582         collection_expression.
8583
8584 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
8585
8586         * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
8587
8588 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
8589
8590         * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
8591         (LINK_SHLIB_SPEC): Don't use %(link_path).
8592         (SUBTARGET_EXTRA_SPECS): Remove link_path.
8593
8594 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
8595
8596         * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
8597         (NO_SHARED_LIB_SUPPORT): Remove.
8598         (LINK_SHLIB_SPEC): Remove one conditional definition.
8599
8600 2011-01-19  Joseph Myers  <joseph@codesourcery.com>
8601
8602         * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
8603         %{call_shared}.
8604         * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
8605         * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
8606         * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
8607         %{call_shared} and conditionals on these options not being passed.
8608         * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
8609         %{call_shared}.
8610
8611 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
8612
8613         * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
8614         simplify.
8615
8616         * ipa-split.c: Spelling fixes.
8617
8618 2011-01-19  Richard Henderson  <rth@redhat.com>
8619
8620         * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
8621         (*mulsi3): Likewise.
8622
8623         * longlong.h [__mn10300__] (count_leading_zeros): New.
8624         [__mn10300__] (umul_ppmm, smul_ppmm): New.
8625         [__mn10300__] (add_ssaaaa, subddmmss): New.
8626         [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
8627         [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
8628
8629 2011-01-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8630
8631         * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
8632
8633 2011-01-19  Richard Henderson  <rth@redhat.com>
8634
8635         * config/mn10300/mn10300.md (addsi3_flags): New.
8636         (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
8637         (subsi3_flags, subc_internal, subdi3): New.
8638         (subdi3_internal, *subdi3_degenerate): New.
8639         * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
8640
8641         * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
8642         (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
8643         (mn10300_expand_epilogue): Use it.  Compute REG_SAVE_BYTES once.
8644         * config/mn10300/mn10300-protos.h: Update.
8645         * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
8646         (return_ret): Likewise.  Rename from return_internal_regs.
8647         (return_internal): Remove.
8648
8649         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
8650         (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
8651         (mn10300_legitimate_constant_p): Likewise.
8652         (mn10300_can_use_return_insn): Use mn10300_initial_offset.
8653         (mn10300_frame_size): New.
8654         (mn10300_expand_prologue): Use it.
8655         (mn10300_expand_epilogue): Likewise.
8656         (mn10300_initial_offset): Likewise.
8657         * config/mn10300/mn10300-protos.h: Update.
8658         * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
8659         * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
8660         (prologue, epilogue, return_internal): Tidy output code.
8661         (mn10300_store_multiple_operation, return): Likewise.
8662         (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
8663         (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
8664         (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
8665         (load_pic, am33_load_pic): New.
8666         (mn10300_load_pic0, mn10300_load_pic1): New.
8667
8668         * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
8669         * config/mn10300/mn10300.c (CC_FLAG_Z): New.
8670         (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
8671         (cc_flags_for_mode, cc_flags_for_code): New.
8672         (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
8673         overflow flag is not valid.  Validate that the flags we need
8674         for the comparison are valid.
8675         (mn10300_output_cmp): Remove.
8676         (mn10300_output_add): New.
8677         (mn10300_select_cc_mode): Use cc_flags_for_code.
8678         (mn10300_split_cbranch): New.
8679         (mn10300_match_ccmode): New.
8680         (mn10300_split_and_operand_count): New.
8681         * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
8682         to the function.
8683         * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
8684         (addsi3): ... here.  Use mn10300_output_add.
8685         (*addsi3_flags): New.
8686         (*am33_subsi3, *mn10300_subsi3): Merge...
8687         (subsi3): ... here.  Use attribute isa.
8688         (*subsi3_flags): New.
8689         (negsi2): Rewrite from expander to insn_and_split.  Use NOT+INC
8690         when possible.
8691         (*am33_andsi3, *mn10300_andsi3): Merge...
8692         (andsi3): ... here.
8693         (*andsi3_flags): New.
8694         (andsi3 splitters): New.
8695         (*am33_iorsi3, *mn10300_iorsi3): Merge...
8696         (iorsi3): ... here.
8697         (*iorsi3_flags): New.
8698         (*am33_xorsi3, *mn10300_xorsi3): Merge...
8699         (xorsi3): ... here.
8700         (*xorsi3_flags): New.
8701         (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
8702         (one_cmplsi2): ... here.
8703         (*one_cmplsi2_flags): New.
8704         (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload.  Use "r"
8705         instead of "dax" in constraints.  Use mn10300_split_cbranch.
8706         (*cmpsi): Rename from cmpsi.  Do not use mn10300_output_cmp.  Do not
8707         use matching constraints to eliminate a self-comparison.
8708         (*integer_conditional_branch): Rename from integer_conditional_branch.
8709         Use int_mode_flags to match CC_REG.
8710         (*cbranchsi4_btst, *btstsi): New.
8711         (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload.  Use
8712         mn10300_split_cbranch.
8713         (*am33_cmpsf): Rename from am33_cmpsf.
8714         (*float_conditional_branch): Rename from float_conditional_branch.
8715         (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
8716         (zero_extendqisi2): ... here.
8717         (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
8718         (zero_extendhisi2): ... here.
8719         (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
8720         (extendqisi2): ... here.
8721         (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
8722         (extendhisi2): ... here.
8723         (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
8724         (ashlsi3): ... here.
8725         (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
8726         (lshrsi3): ... here.
8727         (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
8728         (ashrsi3): ... here.
8729         (consecutive add peephole): Remove.
8730         * config/mn10300/predicates.md (label_ref_operand): New.
8731         (int_mode_flags): New.
8732         (CCZN_comparison_operator): New.
8733
8734         * config/mn10300/mn10300.md (UNSPEC_EXT): New.
8735         (throughput_42_latency_43): New reservation.
8736         (mulsidi3, umulsidi3): New expanders.
8737         (mulsidi3_internal): Rewrite from old mulsidi3 pattern.  Expose
8738         the MDR register to allocation; separately allocate the low and
8739         high parts of the DImode result.
8740         (umulsidi3_internal): Similarly.
8741         (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
8742         (*mulsi3): ... here.  Clobber MDR as a scratch as necessary.
8743         (udivsi3, umodsi3): Remove.
8744         (udivmodsi4, divmodsi4): New expanders.
8745         (*udivmodsi4): Rename from udivmodsi4.  Expose MDR properly.
8746         (*divmodsi4): Simiarly.
8747         (ext_internal): New.
8748
8749         * config/mn10300/constraints.md ("z"): New constraint.
8750         * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
8751         (FIXED_REGISTERS): Don't fix MDR.
8752         (CALL_USED_REGSITERS): Reformat nicely.
8753         (REG_ALLOC_ORDER): Add MDR.
8754         (enum regclass): Add MDR_REGS.
8755         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
8756         (IRA_COVER_CLASSES): Add MDR_REGS.
8757         (REGNO_REG_CLASS): Handle MDR_REG.
8758         * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
8759         (mn10300_register_move_cost): Likewise.
8760         * config/mn10300/mn10300.md (MDR_REG): New.
8761         (*movsi_internal): Handle moves to/from MDR_REGS.
8762
8763         * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
8764         POST_MODIFY.
8765         (mn10300_secondary_reload): Tidy combination reload classes.
8766         (mn10300_legitimate_address_p): Allow post-modify and reg+reg
8767         addresses for AM33.  Allow symbolic offsets for reg+imm.
8768         (mn10300_regno_in_class_p): New.
8769         (mn10300_legitimize_reload_address): New.
8770         * config/mn10300/mn10300.h (enum reg_class): Remove
8771         DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
8772         SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS.  Add
8773         SP_OR_GENERAL_REGS.
8774         (REG_CLASS_NAMES): Update to match.
8775         (REG_CLASS_CONTENTS): Likewise.
8776         (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
8777         (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
8778         (REGNO_IN_RANGE_P): Remove.
8779         (REGNO_DATA_P): Use mn10300_regno_in_class_p.
8780         (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
8781         (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
8782         (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
8783         (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
8784         (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
8785         (REGNO_GENERAL_P): New.
8786         (HAVE_POST_MODIFY_DISP): New.
8787         (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
8788         (LEGITIMIZE_RELOAD_ADDRESS): New.
8789         * config/mn10300/mn10300-protos.h: Update.
8790
8791         * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
8792         DATA_REGS for AM33 stack-pointer destination.
8793         (mn10300_preferred_output_reload_class): Likewise.
8794         (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
8795         into a form appropriate for ...
8796         (TARGET_SECONDARY_RELOAD): New.
8797         * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
8798         * config/mn10300/mn10300-protos.h: Update.
8799         * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
8800         reload_insi; use the "A" constraint for the scratch; handle AM33
8801         moves of sp to non-address registers.
8802
8803         * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
8804         (*movqi_internal): ... here.
8805         (*am33_movhi, *mn10300_movhi): Merge into...
8806         (*movhi_internal): ... here.
8807         (*movsi_internal): Use "r" instead of "dax" in constraints.  Use "A"
8808         as the source/destination of moves from/to SP.
8809         (movsf): Only allow for AM33-2.
8810         (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
8811         any integer constant constraint.  Only allow for AM33-2.  Tidy
8812         all of the alternative outputs.
8813         (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
8814         (udivmodsi4): Delete expander and promote *udivmodsi4.  Disallow
8815         for MN103.
8816         (udivsi3, umodsi3): New patterns for MN103 only.
8817
8818 2011-01-19  Joern Rennecke  <amylaar@spamcop.net>
8819
8820         * doc/tm.texi.in: Spell out that a lack of register class unions
8821         can lead to ICEs.
8822         * doc/tm.texi: Regenerate.
8823
8824 2011-01-19  Jakub Jelinek  <jakub@redhat.com>
8825
8826         PR rtl-optimization/47337
8827         * dce.c (check_argument_store): New function.
8828         (find_call_stack_args): Ignore debug insns.  Use check_argument_store.
8829
8830         PR tree-optimization/47290
8831         * tree-eh.c (infinite_empty_loop_p): New function.
8832         (cleanup_empty_eh): Use it.
8833
8834 2011-01-18  Steve Ellcey  <sje@cup.hp.com>
8835
8836         PR target/46997
8837         * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
8838         (a64_expand_widen_sum): Ditto.
8839         * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
8840         (vec_extract_evenodd_help): Ditto.
8841         (vec_extract_evenv4hi): Ditto.
8842         (vec_extract_oddv4hi): Ditto.
8843         (vec_extract_evenv2si): Ditto.
8844         (vec_extract_oddv2si): Ditto.
8845         (vec_extract_evenv2sf): Ditto.
8846         (vec_extract_oddv2sf): Ditto.
8847         (vec_pack_trunc_v4hi: Ditto.
8848         (vec_pack_trunc_v2si): Ditto.
8849         (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
8850         (vec_interleave_highv8qi): Ditto.
8851         (mix1_r): Ditto.
8852         (vec_extract_oddv8qi): Ditto.
8853         (vec_interleave_lowv4hi): Ditto.
8854         (vec_interleave_highv4hi): Ditto.
8855         (vec_interleave_lowv2si): Ditto.
8856         (vec_interleave_highv2si): Ditto.
8857
8858 2011-01-18  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8859
8860         * doc/extend.texi: Mention __float128 support on hppa HP-UX.
8861         * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
8862         * config/pa/pa.c (pa_expand_builtin): New.  Include "langhooks.h".
8863         (pa_c_mode_for_suffix): New.
8864         (TARGET_EXPAND_BUILTIN): Define.
8865         (TARGET_C_MODE_FOR_SUFFIX): Define.
8866         (pa_builtins): Define.
8867         (pa_init_builtins): Register __float128 type and init new support
8868         builtins.
8869         * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
8870         * config/pa/quadlib.c (_U_Qfcopysign): New.
8871
8872 2011-01-18  Eric Botcazou  <ebotcazou@adacore.com>
8873
8874         PR middle-end/46894
8875         * explow.c (allocate_dynamic_stack_space): Do not assume more than
8876         BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
8877         are defined.
8878
8879 2011-01-18  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
8880
8881         PR tree-optimization/47179
8882         * config/spu/spu.c (spu_ref_may_alias_errno): New function.
8883         (TARGET_REF_MAY_ALIAS_ERRNO): Define.
8884
8885 2011-01-18  Richard Guenther  <rguenther@suse.de>
8886
8887         PR rtl-optimization/47216
8888         * emit-rtl.c: Include tree-flow.h.
8889         (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
8890         of replicating it with different semantics.
8891         * Makefile.in (emit-rtl.o): Adjust.
8892
8893 2011-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8894
8895         * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
8896         (cortex_a9_dp): Handle neon types correctly.
8897
8898 2011-01-18  Jakub Jelinek  <jakub@redhat.com>
8899
8900         PR rtl-optimization/47299
8901         * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
8902         subtarget.  Use normal multiplication if both operands are constants.
8903         * expmed.c (expand_widening_mult): Don't try to optimize constant
8904         multiplication if op0 has VOIDmode.  Convert op1 constant to mode
8905         before using it.
8906
8907 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8908
8909         * doc/lto.texi (LTO): Ensure two spaces after period.  Fix
8910         spacing after 'e.g.', typos, comma, hyphenation.
8911
8912 2011-01-17  Richard Henderson  <rth@redhat.com>
8913
8914         * config/rx/predicates.md (rx_constshift_operand): Use match_test.
8915         (rx_restricted_mem_operand): New.
8916         (rx_shift_operand): Use register_operand.
8917         (rx_source_operand, rx_compare_operand): Likewise.
8918         * config/rx/rx.md (addsi3_flags): New expander.
8919         (adddi3): Rewrite as expander.
8920         (adc_internal, *adc_flags, adddi3_internal): New patterns.
8921         (subsi3_flags): New expander.
8922         (subdi3): Rewrite as expander.
8923         (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
8924
8925         * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
8926         (rx_init_builtins): Remove sat builtin.
8927         (rx_expand_builtin): Likewise.
8928         * config/rx/rx.md (ssaddsi3): New.
8929         (*sat): Rename from sat.  Represent the CC_REG input.
8930
8931         * config/rx/predicates.md (rshift_operator): New.
8932         * config/rx/rx.c (rx_expand_insv): Remove.
8933         * config/rx/rx-protos.h: Update.
8934         * config/rx/rx.md (*bitset): Rename from bitset.  Swap the ashift
8935         operand to the canonical position.
8936         (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
8937         (*bitclr, *bitclr_in_memory): Similarly.
8938         (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
8939         (insv): Retain the zero_extract in the expansion.
8940
8941         * config/rx/rx.md (bswapsi2): Use = not + for output reload.
8942         (bswaphi2, bitinvert, revw): Likewise.
8943
8944         * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
8945         (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
8946         * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
8947         (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
8948         (bitset, bitset_in_memory): Likewise.
8949         (bitinvert, bitinvert_in_memory): Likewise.
8950         (bitclr, bitclr_in_memory): Likewise.
8951         (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
8952         (rx_strend, rx_cmpstrn): Likewise.
8953         (rx_setmem): Likewise.  Make the source BLKmode to match the dest.
8954         (bitop peep2 patterns): Remove.
8955
8956         * config/rx/rx.c (rx_match_ccmode): New.
8957         * config/rx/rx-protos.h: Update.
8958         * config/rx/rx.md (abssi2): Clobber, don't set flags.
8959         (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
8960         (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
8961         (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
8962         (fix_truncsfsi2, floatsisf2): Likewise.
8963         (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
8964         (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
8965         (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
8966         (*subsi3_flags, *xorsi3_flags): New.
8967
8968         * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
8969
8970         * config/rx/rx.c (rx_print_operand): Remove workaround for
8971         unsplit comparison operations.
8972
8973         * config/rx/rx.md (movsicc): Split after reload.
8974         (*movsicc): Merge *movsieq and *movsine via match_operator.
8975         (*stcc): New pattern.
8976
8977         * config/rx/rx.c (rx_float_compare_mode): Remove.
8978         * config/rx/rx.h (rx_float_compare_mode): Remove.
8979         * config/rx/rx.md (cstoresi4): Split after reload.
8980         (*sccc): New pattern.
8981
8982         * config/rx/predicates.md (label_ref_operand): New.
8983         (rx_z_comparison_operator): New.
8984         (rx_zs_comparison_operator): New.
8985         (rx_fp_comparison_operator): New.
8986         * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
8987         Validate that the flags are set properly for the comparison.
8988         (rx_gen_cond_branch_template): Remove.
8989         (rx_cc_modes_compatible): Remove.
8990         (mode_from_flags): New.
8991         (flags_from_code): Rename from flags_needed_for_conditional.
8992         (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
8993         (rx_select_cc_mode): Likewise.
8994         (rx_split_fp_compare): New.
8995         (rx_split_cbranch): New.
8996         * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
8997         (*cbranchsi4): Use match_operator and rx_split_cbranch.
8998         (*cbranchsf4): Similarly.
8999         (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>.  Use
9000         match_operator and rx_split_cbranch.
9001         (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
9002         tstbranchsi4m_ne.  Use match_operator and rx_split_cbranch.
9003         (*cmpsi): Rename from cmpsi.
9004         (*tstsi): Rename from tstsi.
9005         (*cmpsf): Rename from cmpsf; use CC_Fmode.
9006         (*conditional_branch): Rename from conditional_branch.
9007         (*reveresed_conditional_branch): Remove.
9008         (b<code>): Remove expander.
9009         * config/rx/rx-protos.h: Update.
9010
9011         * config/rx/rx.c (rx_compare_redundant): Remove.
9012         * config/rx/rx.md (cmpsi): Don't use it.
9013         * config/rx/rx-protos.h: Update.
9014
9015         * config/rx/rx-modes.def (CC_F): New mode.
9016         * config/rx/rx.c (rx_select_cc_mode): New.
9017         * config/rx/rx.h (SELECT_CC_MODE): Use it.
9018         * config/rx/rx-protos.h: Update.
9019
9020 2011-01-17  Richard Henderson  <rth@redhat.com>
9021
9022         * except.c (dump_eh_tree): Fix stray ; after for statement.
9023
9024 2011-01-17  Richard Guenther  <rguenther@suse.de>
9025
9026         PR tree-optimization/47313
9027         * tree-inline.c (tree_function_versioning): Move DECL_RESULT
9028         handling before copying the body.  Properly deal with
9029         by-reference result in SSA form.
9030
9031 2011-01-17  Ian Lance Taylor  <iant@google.com>
9032
9033         PR target/47219
9034         * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
9035         (struct_value_alias_set): Don't define.
9036         (sparc_option_override): Don't set sparc_sr_alias_set and
9037         struct_value_alias_set.
9038         (save_or_restore_regs): Use gen_frame_mem rather than calling
9039         set_mem_alias_set.
9040         (sparc_struct_value_rtx): Likewise.
9041
9042 2011-01-17  H.J. Lu  <hongjiu.lu@intel.com>
9043
9044         PR target/47318
9045         * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
9046         (_mm_maskstore_pd): Likewise.
9047         (_mm_maskload_ps): Likewise.
9048         (_mm_maskstore_ps): Likewise.
9049         (_mm256_maskload_pd): Change mask to __m256i.
9050         (_mm256_maskstore_pd): Likewise.
9051         (_mm256_maskload_ps): Likewise.
9052         (_mm256_maskstore_ps): Likewise.
9053
9054         * config/i386/i386-builtin-types.def: Updated.
9055         (ix86_expand_special_args_builtin): Likewise.
9056
9057         * config/i386/i386.c (bdesc_special_args): Update
9058         __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
9059         __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
9060         __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
9061         __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
9062
9063         * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
9064         Use <avxpermvecmode> on mask register.
9065         (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
9066
9067 2011-01-17  Olivier Hainque  <hainque@adacore.com>
9068             Michael Haubenwallner  <michael.haubenwallner@salomon.at>
9069             Eric Botcazou  <ebotcazou@adacore.com>
9070
9071         PR target/46655
9072         * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
9073         if <= USHRT_MAX in 32-bit mode.
9074
9075 2011-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9076
9077         * doc/install.texi (Configuration, Specific): Wrap long
9078         lines in examples.  Allow line wrapping in long options
9079         and URLs where beneficial for PDF output.
9080
9081 2011-01-16  Richard Sandiford  <rdsandiford@googlemail.com>
9082
9083         * config/mips/mips.c (mips_classify_symbol): Don't return
9084         SYMBOL_PC_RELATIVE for nonlocal labels.
9085
9086 2011-01-15  Eric Botcazou  <ebotcazou@adacore.com>
9087
9088         * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
9089
9090 2011-01-15  Jan Hubicka  <jh@suse.cz>
9091
9092         PR tree-optimization/47276
9093         * ipa.c (function_and_variable_visibility): Do not try to mark alias
9094         declarations as needed.
9095
9096 2011-01-15  Martin Jambor  <mjambor@suse.cz>
9097
9098         * common.opt (fdevirtualize): New flag.
9099         * doc/invoke.texi (Option Summary): Document it.
9100         * opts.c (default_options_table): Add devirtualize flag.
9101         * ipa-prop.c (detect_type_change): Return immediately if
9102         devirtualize flag is not set.
9103         (detect_type_change_ssa): Likewise.
9104         (compute_known_type_jump_func): Likewise.
9105         (ipa_analyze_virtual_call_uses): Likewise.
9106
9107 2011-01-14  Martin Jambor  <mjambor@suse.cz>
9108
9109         PR tree-optimization/45934
9110         PR tree-optimization/46302
9111         * ipa-prop.c (type_change_info): New type.
9112         (stmt_may_be_vtbl_ptr_store): New function.
9113         (check_stmt_for_type_change): Likewise.
9114         (detect_type_change): Likewise.
9115         (detect_type_change_ssa): Likewise.
9116         (compute_complex_assign_jump_func): Check for dynamic type change.
9117         (compute_complex_ancestor_jump_func): Likewise.
9118         (compute_known_type_jump_func): Likewise.
9119         (compute_scalar_jump_functions): Likewise.
9120         (ipa_analyze_virtual_call_uses): Likewise.
9121         (ipa_analyze_node): Push and pop cfun, set current_function_decl.
9122
9123 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9124
9125         * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
9126         * config/i386/i386.opt (msse5): New Alias.
9127
9128 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9129
9130         * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
9131         * config/sparc/linux64.h (CC1_SPEC): Likewise.
9132         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9133         * config/sparc/sparc.h (CC1_SPEC): Likewise.
9134
9135 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9136
9137         * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
9138         -mcpu options.
9139         * config/sparc/linux64.h (CC1_SPEC): Likewise.
9140         * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
9141         * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
9142         * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
9143         Likewise.
9144         * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
9145
9146 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9147
9148         * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
9149
9150 2011-01-14  Mike Stump  <mikestump@comcast.net>
9151
9152         * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
9153         * config/fr30/fr30.md: Likweise
9154         (movsi_push): Likewise.
9155         (movsi_pop): Likewise.
9156         (enter_func): Likewise.
9157         * config/moxie/moxie.md (movsi_push): Likewise.
9158         (movsi_pop): Likewise.
9159
9160 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9161
9162         * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
9163         %{no_archive} %{exact_version}.
9164         * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
9165         * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
9166         %{no_archive} %{exact_version}.
9167         * config/mips/openbsd.h (LINK_SPEC): Likewise.
9168         * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
9169         * config/mips/vxworks.h: Likewise.
9170
9171 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9172
9173         * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
9174
9175 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9176
9177         * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
9178         ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
9179
9180 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9181
9182         * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
9183         -nodefaultlib.
9184
9185 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9186
9187         * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
9188         for mcpu not cpu.
9189         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
9190         CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
9191         not cpu.
9192         (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
9193         Don't handle -shlib.
9194
9195 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9196
9197         * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
9198         (CC1_SPEC): Don't handle -profile.
9199
9200 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9201
9202         * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
9203         * config/mips/mips.h (CC1_SPEC): Likewise.
9204
9205 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9206
9207         * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
9208         * config/mips/mips.h (CC1_SPEC): Likewise.
9209
9210 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9211
9212         * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
9213         * config/m32r/linux.h (LINK_SPEC): Likewise.
9214         * config/mips/linux.h (LINK_SPEC): Likewise.
9215         * config/mips/linux64.h (LINK_SPEC): Likewise.
9216         * config/sparc/linux.h (LINK_SPEC): Likewise.
9217         * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
9218         LINK_SPEC): Likewise.
9219         * config/xtensa/linux.h (LINK_SPEC): Likewise.
9220
9221 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9222
9223         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
9224         %{version:-v}.
9225         * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
9226
9227 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9228
9229         * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
9230         * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
9231
9232 2011-01-14  Joseph Myers  <joseph@codesourcery.com>
9233
9234         * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
9235
9236 2011-01-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9237
9238         * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
9239         supports -Bstatic/-Bdynamic.
9240         * configure: Regenerate.
9241
9242 2011-01-14  Jan Hubicka  <jh@suse.cz>
9243             Jack Howarth  <howarth@bromo.med.uc.edu>
9244
9245         PR target/46037
9246         * config/darwin.c (darwin_override_options): Honor flag_gtoggle
9247         when checking debug_info_level. Test write_symbols instead of
9248         debug_hooks->var_location when setting flag_var_tracking_uninit.
9249
9250 2011-01-14  Richard Guenther  <rguenther@suse.de>
9251
9252         PR tree-optimization/47179
9253         * target.def (ref_may_alias_errno): New target hook.
9254         * targhooks.h (default_ref_may_alias_errno): Declare.
9255         * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
9256         (default_ref_may_alias_errno): New function.
9257         * target.h (struct ao_ref_s): Declare.
9258         * tree-ssa-alias.c: Include target.h.
9259         (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
9260         * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
9261         (targhooks.o): Likewise.
9262         * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
9263         * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
9264
9265 2011-01-14  Richard Guenther  <rguenther@suse.de>
9266
9267         * tree-ssa-structalias.c  (new_var_info): Use DECL_HARD_REGISTER.
9268
9269 2011-01-14  Richard Guenther  <rguenther@suse.de>
9270
9271         PR tree-optimization/47280
9272         * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
9273         return CFG changes.
9274         (tree_ssa_forward_propagate_single_use_vars): Deal with
9275         CFG changes from associate_plusminus.
9276
9277 2011-01-14  Richard Guenther  <rguenther@suse.de>
9278
9279         PR middle-end/47281
9280         Revert
9281         2011-01-11  Richard Guenther  <rguenther@suse.de>
9282
9283         PR tree-optimization/46076
9284         * tree-ssa.c (useless_type_conversion_p): Conversions from
9285         unprototyped to empty argument list function types are useless.
9286
9287 2011-01-14  Richard Guenther  <rguenther@suse.de>
9288
9289         PR tree-optimization/47286
9290         * tree-ssa-structalias.c (new_var_info): Register variables are global.
9291
9292 2011-01-14  Martin Jambor  <mjambor@suse.cz>
9293
9294         PR middle-end/46823
9295         * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
9296
9297 2011-01-13  Anatoly Sokolov  <aesok@post.ru>
9298
9299         * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
9300         LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
9301         * config/xtensa/xtensa.c (xtensa_libcall_value,
9302         xtensa_function_value_regno_p): New functions.
9303         (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9304
9305 2011-01-13  Kai Tietz  <kai.tietz@onevision.com>
9306
9307         PR c++/47213
9308         * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
9309         PE specific hook.
9310         * config/i386/i386-protos.h (i386_pe_assemble_visibility):
9311         New function prototype.
9312         * config/i386/winnt.c (i386_pe_assemble_visibility):
9313         Warn only if attribute was specified by user.
9314
9315 2011-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
9316
9317         PR target/47251
9318         * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
9319         floating point.
9320         (floatunsdidf2_fcfidu): Ditto.
9321
9322 2011-01-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9323
9324         * config/s390/s390.c (print_operand_address): Replace 'error' with
9325         'output_operand_lossage'.
9326         (print_operand): Likewise.
9327
9328 2011-01-13  Jeff Law  <law@redhat.com>
9329
9330         PR rtl-optimization/39077
9331         * doc/invoke.texi (max-gcse-insertion-ratio): Document.
9332         * params.h (MAX_GCSE_INSERTION_RATIO): Define.
9333         * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
9334         * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
9335         * gcse.c (prune_insertions_deletions): New function.
9336         (compute_pre_data): Use it.
9337
9338 2011-01-13  Dodji Seketeli  <dodji@redhat.com>
9339
9340         PR debug/PR46973
9341         * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
9342         static function.
9343         (prune_unused_types_mark): Use it.
9344
9345 2011-01-13  Andrey Belevantsev  <abel@ispras.ru>
9346
9347         PR rtl-optimization/45352
9348         * sel-sched.c: Update copyright years.
9349         (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
9350         in the advancing loop when we have issued issue_rate insns.
9351
9352 2011-01-12  Richard Henderson  <rth@redhat.com>
9353
9354         * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
9355         (TARGET_MD_ASM_CLOBBERS): New.
9356
9357         * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
9358         (TARGET_DELEGITIMIZE_ADDRESS): New.
9359
9360         * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
9361         (clzsi2, *bsch): New patterns.
9362
9363         * config/mn10300/mn10300.md (INT): New mode iterator.
9364         (*mov<INT>_clr): New pattern, and peep2 to generate it.
9365
9366         * config/mn10300/mn10300.c (mn10300_option_override): Force enable
9367         flag_split_wide_types.
9368
9369         * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
9370         (mn10300_trampoline_init): Rewrite without a template, an immediate
9371         load and a direct branch.
9372         * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
9373
9374 2011-01-12  Anatoly Sokolov  <aesok@post.ru>
9375
9376         * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9377         * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
9378         * config/s390/s390.c (s390_output_addr_const_extra): Make static.
9379         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9380
9381 2011-01-12  Kai Tietz  <kai.tietz@onevision.com>
9382
9383         PR debug/47209
9384         * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
9385         of type.
9386
9387 2011-01-12  Jan Hubicka  <jh@suse.cz>
9388
9389         PR driver/47244
9390         * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
9391         (PLUGIN_COND_CLOSE): New macro.
9392         (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
9393
9394 2011-01-12  Richard Guenther  <rguenther@suse.de>
9395
9396         PR lto/47259
9397         * lto-streamer-out.c (output_gimple_stmt): Do not wrap
9398         register variables in a MEM_REF.
9399
9400 2011-01-12  Joseph Myers  <joseph@codesourcery.com>
9401
9402         * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
9403         crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
9404         hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
9405         i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
9406         i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
9407         x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
9408         ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
9409         m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
9410         mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
9411         s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
9412         sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
9413         am33_2.0-*-linux*): Use gnu-user.h before linux.h.
9414         * config/gnu-user.h: New.  Copied from linux.h.
9415         (LINUX_TARGET_STARTFILE_SPEC): Rename to
9416         GNU_USER_TARGET_STARTFILE_SPEC.
9417         (LINUX_TARGET_ENDFILE_SPEC): Rename to
9418         GNU_USER_TARGET_ENDFILE_SPEC.
9419         (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
9420         (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
9421         (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
9422         LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
9423         CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
9424         UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
9425         BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
9426         BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
9427         LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
9428         TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
9429         * config/arm/linux-eabi.h (CC1_SPEC): Use
9430         GNU_USER_TARGET_CC1_SPEC.
9431         (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
9432         (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
9433         (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
9434         * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
9435         LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
9436         LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
9437         CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
9438         LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
9439
9440 2011-01-12  Richard Guenther  <rguenther@suse.de>
9441
9442         PR other/46946
9443         * doc/invoke.texi (ffast-math): Document it is turned on
9444         with -Ofast.
9445
9446 2011-01-12  Jan Hubicka  <jh@suse.cz>
9447
9448         PR tree-optimization/47233
9449         * opts.c (common_handle_option): Disable ipa-reference with profile
9450         feedback.
9451
9452 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
9453
9454         * c-parser.c (c_parser_objc_at_property_declaration): Improved
9455         error message.
9456
9457 2011-01-12  Nicola Pero  <nicola.pero@meta-innovation.com>
9458
9459         * c-parser.c (c_lex_one_token): Updated and reindented some
9460         comments.  No changes in code.
9461
9462 2011-01-11  Ian Lance Taylor  <iant@google.com>
9463
9464         * godump.c (go_output_var): Don't output the variable if there is
9465         already a type with the same name.
9466
9467 2011-01-11  Ian Lance Taylor  <iant@google.com>
9468
9469         * godump.c (go_format_type): Don't generate float80.
9470
9471 2011-01-11  Richard Henderson  <rth@redhat.com>
9472
9473         * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
9474         declaration.  Rewrite for both speed and size.
9475         (mn10300_address_cost_1): Remove.
9476         (mn10300_register_move_cost): New.
9477         (mn10300_memory_move_cost): New.
9478         (mn10300_rtx_costs): Rewrite for both speed and size.  Don't handle
9479         ZERO_EXTRACT.  Do handle UNSPEC, arithmetic, logicals, compare,
9480         extensions, shifts, BSWAP, CLZ.
9481         (mn10300_wide_const_load_uses_clr): Remove.
9482         (TARGET_REGISTER_MOVE_COST): New.
9483         (TARGET_MEMORY_MOVE_COST): New.
9484         * config/mn10300/mn10300-protos.h: Update.
9485         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
9486
9487         * config/mn10300/constraints.md ("R", "T"): Remove constraints.
9488         * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
9489         * config/mn10300/mn10300-protos.h: Update.
9490         * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
9491         (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
9492         (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
9493         (*test_int_bitfield, *test_byte_bitfield): Remove.
9494         (*bit_test, *subreg_bit_test): Remove.
9495         * config/mn10300/predicates.md (const_8bit_operand): Remove.
9496
9497         * config/mn10300/constraints.md ("c"): Rename from "A".
9498         ("A", "D"): New constraint letters.
9499         * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
9500         (fmssf4, fnmasf4, fnmssf4): Likewise.
9501
9502         * config/mn10300/mn10300.md (isa): New attribute.
9503         (enabled): New attribute.
9504
9505         * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
9506         (abssf2, negsf2): Define only for hardware fp.
9507         (sqrtsf2): Reformat.
9508         (addsf3, subsf3, mulsf3): Merge expander and insn.
9509
9510         * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
9511         (DEBUGGER_AUTO_OFFSET): Remove.
9512         (DEBUGGER_ARG_OFFSET): Remove.
9513
9514         * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
9515         Emit register stores with the same offsets as the hardware.
9516         (mn10300_store_multiple_operation): Don't check that the register
9517         save offsets are monotonic.
9518         * config/mn10300/mn10300-protos.h: Update.
9519
9520         * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
9521
9522         * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
9523         in terms of the value on the stack, not the MDR register.
9524
9525 2011-01-11  Jan Hubicka  <jh@suse.cz>
9526
9527         PR lto/45721
9528         PR lto/45375
9529         * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
9530         (symbol_alias_set_destroy, symbol_alias_set_contains,
9531         propagate_aliases_backward): Declare.
9532         * lto-streamer-out.c (struct sets): New sturcture.
9533         (trivally_defined_alias): New function.
9534         (output_alias_pair_p): Rewrite.
9535         (output_unreferenced_globals): Fix output of alias pairs.
9536         (produce_symtab): Likewise.
9537         * ipa.c (function_and_variable_visibility): Set weak alias destination
9538         as needed in lto.
9539         * varasm.c (symbol_alias_set_t): Remove.
9540         (symbol_alias_set_destroy): Export.
9541         (propagate_aliases_forward, propagate_aliases_backward): New functions
9542         based on ...
9543         (compute_visible_aliases): ... this one; remove.
9544         (trivially_visible_alias): New
9545         (trivially_defined_alias): New.
9546         (remove_unreachable_alias_pairs): Rewrite.
9547         (finish_aliases_1): Reorganize code checking if alias is defined.
9548         * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
9549         in LTO mode.
9550
9551 2011-01-11  Richard Guenther  <rguenther@suse.de>
9552
9553         PR tree-optimization/46076
9554         * tree-ssa.c (useless_type_conversion_p): Conversions from
9555         unprototyped to empty argument list function types are useless.
9556
9557 2011-01-11  Richard Guenther  <rguenther@suse.de>
9558
9559         PR middle-end/45235
9560         * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
9561         volatile MEMs as MEM_READONLY_P.
9562
9563 2011-01-11  Richard Guenther  <rguenther@suse.de>
9564
9565         PR tree-optimization/47239
9566         * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
9567
9568 2011-01-11  Jeff Law  <law@redhat.com>
9569
9570         PR tree-optimization/47086
9571         * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
9572         IVs from statements that might throw.
9573
9574 2011-01-10  Jan Hubicka  <jh@suse.cz>
9575
9576         PR lto/45375
9577         * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
9578
9579 2011-01-10  Jan Hubicka  <jh@suse.cz>
9580
9581         PR lto/45375
9582         * profile.c (read_profile_edge_counts): Ignore profile inconistency
9583         when correcting profile.
9584
9585 2011-01-10  Jan Hubicka  <jh@suse.cz>
9586
9587         PR lto/46083
9588         * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
9589         DECL_FINI_PRIORITY.
9590         * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
9591         Restore DECL_FINI_PRIORITY.
9592
9593 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9594
9595         * doc/gimple.texi: Fix quoting of multi-word return values in
9596         @deftypefn statements.  Ensure presence of return value.  Wrap
9597         overlong @deftypefn lines.
9598         (is_gimple_operand, is_gimple_min_invariant_address): Remove
9599         descriptions of removed functions.
9600         * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
9601         of multi-word return value in @deftypefn statement.
9602
9603 2011-01-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9604
9605         * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
9606         (Conditional Expressions, Logical Operators)
9607         (Statement and operand traversals): Do not indent smallexample
9608         code.  Fix duplicate function argument in example.
9609
9610 2011-01-10  Jeff Law  <law@redhat.com>
9611
9612         PR tree-optimization/47141
9613         * ipa-split.c (split_function): Handle case where we are
9614         returning a value and the return block has a virtual operand phi.
9615
9616 2011-01-10  Jan Hubicka  <jh@suse.cz>
9617
9618         PR tree-optimization/47234
9619         * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
9620         (pass_feedback_split_functions): Declare.
9621         * passes.c (init_optimization_passes): Add ipa-split as subpass of
9622         tree-profile.
9623         * ipa-split.c (gate_split_functions): Update comments; disable
9624         split-functions for profile_arc_flag and branch_probabilities.
9625         (gate_feedback_split_functions): New function.
9626         (execute_feedback_split_functions): New function.
9627         (pass_feedback_split_functions): New global var.
9628
9629 2011-01-10  H.J. Lu  <hongjiu.lu@intel.com>
9630
9631         PR lto/46760
9632         * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
9633         calling gimple_call_set_cannot_inline.
9634
9635 2011-01-10  Iain Sandoe  <iains@gcc.gnu.org>
9636
9637         * config/darwin-sections.def: Remove unused section.
9638
9639 2011-01-10  Dave Korn  <dave.korn.cygwin@gmail.com>
9640
9641         PR c++/47218
9642         * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
9643
9644 2011-01-09  Nicola Pero  <nicola.pero@meta-innovation.com>
9645
9646         PR objc/47232
9647         * c-parser.c (c_parser_declaration_or_fndef): Improved
9648         error message.
9649
9650 2011-01-09  Kai Tietz  <kai.tietz@onevision.com>
9651
9652         * config/i386/winnt.c (i386_pe_start_function): Make sure
9653         to switch back to function's section.
9654
9655 2011-01-09  Iain Sandoe  <iains@gcc.gnu.org>
9656
9657         PR gcc/46902
9658         PR testsuite/46912
9659         * plugin.c: Move include of dlfcn.h from here...
9660         * system.h: ... to here.
9661
9662 2011-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9663
9664         * doc/cpp.texi (C++ Named Operators): Fix markup for header
9665         file name.
9666         * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
9667         two extra empty pages in PDF output.
9668
9669 2011-01-08  Nicola Pero  <nicola.pero@meta-innovation.com>
9670
9671         PR objc/47078
9672         * c-parser.c (c_parser_objc_type_name): If the type is unknown,
9673         for error recovery purposes behave as if it was not specified so
9674         that the default type is usd.
9675
9676 2011-01-07  Jan Hubicka  <jh@suse.cz>
9677
9678         PR tree-optmization/46469
9679         * ipa.c (function_and_variable_visibility): Clear needed flags on
9680         nodes with external decls; handle weakrefs merging correctly.
9681
9682 2011-01-07  Joseph Myers  <joseph@codesourcery.com>
9683
9684         * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
9685         not false.
9686
9687 2011-01-07  Jan Hubicka  <jh@suse.cz>
9688
9689         * doc/invoke.texi: (-flto, -fuse-linker-plugin): Update defaults
9690         and no longer claim that gold is required for linker plugin.
9691         * configure: Regenerate.
9692         * gcc.c (PLUGIN_COND): New macro.
9693         (LINK_COMMAND_SPEC): Use it.
9694         (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
9695         * config.in (HAVE_LTO_PLUGIN): New.
9696         * configure.ac (--with-lto-plugin): New parameter; autodetect
9697         HAVE_LTO_PLUGIN.
9698
9699 2011-01-07  Jan Hubicka  <jh@suse.cz>
9700
9701         PR tree-optimization/46367
9702         * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
9703         when we can update original.
9704         (cgraph_mark_inline_edge): Sanity check.
9705         * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
9706
9707 2011-01-07  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9708
9709         * config/spu/spu.h (ASM_COMMENT_START): Define.
9710
9711 2011-01-07  H.J. Lu  <hongjiu.lu@intel.com>
9712
9713         PR driver/42445
9714         * gcc.c (%>S): New.
9715         (SWITCH_KEEP_FOR_GCC): Likewise.
9716         (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
9717         (do_spec_1): Handle "%>".
9718
9719         * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
9720
9721 2011-01-07  Jakub Jelinek  <jakub@redhat.com>
9722
9723         PR target/47201
9724         * config/i386/i386.c (ix86_delegitimize_address): If
9725         simplify_gen_subreg fails, return orig_x.
9726
9727         PR bootstrap/47187
9728         * value-prof.c (gimple_stringop_fixed_value): Handle
9729         lhs of the call properly.
9730
9731 2011-01-07  Jan Hubicka  <jh@suse.cz>
9732
9733         PR lto/45375
9734         * lto-opt.c (lto_reissue_options): Set flag_shlib.
9735
9736 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
9737
9738         * target.def (function_switched_text_sections): New hook.
9739         * doc/tm.texi: Regenerated.
9740         * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
9741         * final.c (default_function_switched_text_sections): New.
9742         (final_scan_insn): Call function_switched_text_sections when a
9743         mid-function section change occurs.
9744         * output.h (default_function_switched_text_sections): Declare.
9745         * config/darwin-protos.h (darwin_function_switched_text_sections):
9746         Likewise.
9747         * config/darwin.c (darwin_function_switched_text_sections): New.
9748         * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
9749
9750 2011-01-07  Iain Sandoe  <iains@gcc.gnu.org>
9751
9752         * dwarf2out.c (gen_subprogram_die):  Add pubnames with code ranges for
9753         DWARF >= 3.  Add pubnames for the primary section and a reduced DIE for
9754         the secondary code fragment when outputting for DWARF == 2.
9755
9756 2011-01-07  Anatoly Sokolov  <aesok@post.ru>
9757
9758         * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9759         * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
9760         Remove.
9761         * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
9762         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9763
9764 2011-01-06  Eric Botcazou  <ebotcazou@adacore.com>
9765
9766         PR debug/46704
9767         * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
9768         when it is not empty.
9769
9770 2011-01-06  Changpeng Fang  <changpeng.fang@amd.com>
9771
9772         Bobcat Enablement
9773         * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
9774         (case ${target}): Add btver1.
9775         * config/i386/driver-i386.c (host_detect_local_cpu): Let
9776         -march=native recognize btver1 processors.
9777         * config/i386/i386-c.c (ix86_target_macros_internal): Add
9778         btver1 def_and_undef
9779         * config/i386/i386.c (struct processor_costs btver1_cost): New
9780         btver1 cost table.
9781         (m_BTVER1): New definition.
9782         (m_AMD_MULTIPLE): Includes m_BTVER1.
9783         (initial_ix86_tune_features): Add btver1 tune.
9784         (processor_target_table): Add btver1 entry.
9785         (static const char *const cpu_names): Add btver1 entry.
9786         (software_prefetching_beneficial_p): Add btver1.
9787         (ix86_option_override_internal): Add btver1 instruction sets.
9788         (ix86_issue_rate): Add btver1.
9789         (ix86_adjust_cost): Add btver1.
9790         * config/i386/i386.h (TARGET_BTVER1): New definition.
9791         (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
9792         (enum processor_type): Add PROCESSOR_BTVER1.
9793         * config/i386/i386.md (define_attr "cpu"): Add btver1.
9794
9795 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9796
9797         PR target/43309
9798         * config/i386/i386.c (legitimize_tls_address)
9799         <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
9800         * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
9801         (tls_initial_exec_64_sun): New pattern.
9802
9803 2011-01-06  Gerald Pfeifer  <gerald@pfeifer.com>
9804
9805         * doc/invoke.texi (Overall Options): Improve wording and markup
9806         of the description of -wrapper.
9807
9808 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
9809
9810         * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
9811         rdynamic, threads): New Driver options.
9812
9813 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9814
9815         PR target/38118
9816         * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
9817         if coming from .tdata.
9818         * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
9819
9820 2011-01-06  Jan Hubicka  <jh@suse.cz>
9821
9822         PR lto/47188
9823         * collect2.c (main): Do not enable LTOmode when plugin is active.
9824
9825 2011-01-06  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9826
9827         PR other/45915
9828         * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
9829         --version output if supported.
9830         * configure: Regenerate.
9831
9832 2011-01-06  Joseph Myers  <joseph@codesourcery.com>
9833
9834         * config/linux-android.opt (tno-android-cc, tno-android-ld): New
9835         Driver options.
9836
9837 2011-01-06  Jakub Jelinek  <jakub@redhat.com>
9838
9839         PR c/47150
9840         * c-convert.c (convert): When converting a complex expression
9841         other than COMPLEX_EXPR to a different complex type, ensure
9842         c_save_expr is called instead of save_expr, unless in_late_binary_op.
9843         * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
9844         when converting COMPLEX_TYPE.
9845
9846 2011-01-06  Ira Rosen  <irar@il.ibm.com>
9847
9848         PR tree-optimization/47139
9849         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
9850         only the last reduction value is used outside the loop.  Update
9851         documentation.
9852
9853 2011-01-05  Joseph Myers  <joseph@codesourcery.com>
9854
9855         * config/rtems.opt: New.
9856         * config.gcc (*-*-rtems*): Use rtems.opt.
9857
9858 2011-01-05  Changpeng Fang  <changpeng.fang@amd.com>
9859
9860         * config/i386/i386.c (ix86_option_override_internal): Bulldozer
9861         processors do not support 3DNow instructions.
9862
9863 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9864
9865         * config/spu/spu.c (spu_option_override): Set parameter
9866         PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
9867
9868 2011-01-05  Jan Hubicka  <jh@suse.cz>
9869
9870         * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
9871         at the command line.
9872
9873 2011-01-05  Martin Jambor  <mjambor@suse.cz>
9874
9875         PR lto/47162
9876         * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
9877         deltas on streamed outgoing edges.
9878         (output_node_opt_summary): Output info for outgoing edges only when
9879         the node is in new parameter set.
9880         (output_cgraph_opt_summary): New parameter set, passed to the two
9881         aforementioned functions.  Update its forward declaration and its
9882         callee too.
9883
9884 2011-01-05  Tom Tromey  <tromey@redhat.com>
9885
9886         * c-parser.c (c_parser_omp_atomic): Pass location of assignment
9887         operator to c_finish_omp_atomic.
9888         * c-typeck.c (lvalue_or_else): Add 'loc' argument.
9889         (build_unary_op): Update.
9890         (build_modify_expr): Update.
9891         (build_asm_expr): Update.
9892
9893 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9894
9895         * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
9896         newly inserted insns.
9897         (pad_bb): Likewise.
9898         (spu_emit_branch_hint): Likewise.
9899         (insert_hbrp_for_ilb_runout): Likewise.
9900         (spu_machine_dependent_reorg): Call df_finish_pass after
9901         schedule_insns returns.
9902
9903 2011-01-05  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9904
9905         * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
9906
9907 2011-01-05  Eric Botcazou  <ebotcazou@adacore.com>
9908
9909         PR tree-optimization/47005
9910         * tree-sra.c (struct access): Add 'non_addressable' bit.
9911         (create_access): Set it for a DECL_NONADDRESSABLE_P field.
9912         (decide_one_param_reduction): Return 0 if the parameter is passed by
9913         reference and one of the accesses in the group is non_addressable.
9914
9915 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9916
9917         PR tree-optimization/47056
9918         * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
9919         (mark_load): Likewise.  Handle FUNCTION_DECL specially.
9920         (mark_store): Likewise.  Pass STMT to ipa_record_reference.
9921
9922 2011-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9923
9924         * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
9925         initializer.  Skip view conversions from aggregate types.
9926
9927 2011-01-04  Kai Tietz  <kai.tietz@onevision.com>
9928
9929         PR bootstrap/47055
9930         * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
9931
9932 2011-01-04  Philipp Thomas  <pth@suse.de>
9933
9934         * config/microblaze/microbalse.opt (mxl-float-convert): Fix
9935         obvious typo.
9936
9937 2011-01-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9938
9939         * function.c (thread_prologue_and_epilogue_insns): Do not crash
9940         on empty epilogue sequences.
9941
9942 2011-01-04  Joseph Myers  <joseph@codesourcery.com>
9943
9944         * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
9945         non-static): New Driver options.
9946
9947 2011-01-04  Jie Zhang  <jie@codesourcery.com>
9948
9949         PR driver/47137
9950         * gcc.c (default_compilers[]): Set combinable field to 0
9951         for all assembly languages.
9952
9953 2011-01-04  Mingjie Xing  <mingjie.xing@gmail.com>
9954
9955         * config/mips/loongson3a.md: New file.
9956         * config/mips/mips.md: Include loongson3a.md.
9957         * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
9958         TUNE_LOONGSON_3A.
9959
9960 2011-01-03  Eric Botcazou  <ebotcazou@adacore.com>
9961
9962         PR middle-end/47017
9963         * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
9964         instead of convert_memory_address_addr_space on the base expression.
9965
9966 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9967
9968         * config/spu/spu.c (spu_option_override): Update error text
9969         for bad -march= / -mtune= values.
9970
9971 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
9972
9973         * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
9974         if branch-hint optimization will be performed.
9975
9976 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
9977
9978         PR tree-optimization/47148
9979         * ipa-split.c (split_function): Convert arguments to
9980         DECL_ARG_TYPE if possible.
9981
9982         PR tree-optimization/47155
9983         * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
9984         when computing uns.
9985
9986         PR rtl-optimization/47157
9987         * combine.c (try_combine): If undobuf.other_insn becomes
9988         (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
9989         and set *new_direct_jump_p too.
9990
9991 2011-01-03  Sebastian Pop  <sebastian.pop@amd.com>
9992
9993         PR tree-optimization/47021
9994         * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
9995
9996 2011-01-03  Jakub Jelinek  <jakub@redhat.com>
9997
9998         * gcc.c (process_command): Update copyright notice dates.
9999         * gcov.c (print_version): Likewise.
10000         * gcov-dump.c (print_version): Likewise.
10001         * mips-tfile.c (main): Likewise.
10002         * mips-tdump.c (main): Likewise.
10003
10004 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10005
10006         PR tree-optimization/46801
10007         * tree-sra.c (type_internals_preclude_sra_p): Check whether
10008         aggregate fields start at byte boundary instead of the bit-field flag.
10009
10010 2011-01-03  H.J. Lu  <hongjiu.lu@intel.com>
10011
10012         PR driver/47137
10013         * gcc.c (main): Revert revision 168407.
10014
10015 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10016
10017         * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
10018
10019 2011-01-03  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
10020
10021         * tree-vect-generic.c (expand_vector_operations_1): When using vector/
10022         vector optab to expand vector/scalar shift, update gimple to vector.
10023
10024 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10025
10026         * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
10027         a thunk.
10028
10029 2011-01-03  Martin Jambor  <mjambor@suse.cz>
10030
10031         PR tree-optimization/46984
10032         * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
10033         HOST_WIDE_INT.
10034         (cgraph_create_indirect_edge): Fixed line length.
10035         (cgraph_indirect_call_info): Declare.
10036         (cgraph_make_edge_direct) Update declaration.
10037         * cgraph.c (cgraph_allocate_init_indirect_info): New function.
10038         (cgraph_create_indirect_edge): Use it.
10039         (cgraph_make_edge_direct): Made delta HOST_WIDE_INT.  Updated all
10040         callees.
10041         * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
10042         the new thunk_delta representation.
10043         * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
10044         HOST_WIDE_INT.
10045         (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
10046         (ipa_read_indirect_edge_info): Likewise.
10047         * lto-cgraph.c (output_edge_opt_summary): New function.
10048         (output_node_opt_summary): Call it on all outgoing edges.
10049         (input_edge_opt_summary): New function.
10050         (input_node_opt_summary): Call it on all outgoing edges.
10051
10052 2011-01-02  H.J. Lu  <hongjiu.lu@intel.com>
10053
10054         PR driver/47137
10055         * gcc.c (main): Don't check have_o when settting combine_inputs.
10056
10057 2011-01-02  Eric Botcazou  <ebotcazou@adacore.com>
10058
10059         * regrename.c: Add general comment describing the pass.
10060         (struct du_head): Remove 'length' field.
10061         (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
10062         (regrename_optimize): Do not sort chains.  Rework comments, add others.
10063         Force renaming to the preferred class (if any) in the first pass and do
10064         not consider registers that belong to it in the second pass.
10065         (create_new_chain): Do not set 'length' field.
10066         (scan_rtx_reg): Likewise.
10067
10068 2011-01-02  Jakub Jelinek  <jakub@redhat.com>
10069
10070         PR tree-optimization/47140
10071         * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
10072         TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
10073         to bit_value_binop.
10074
10075         PR rtl-optimization/47028
10076         * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
10077         parm_birth_insn instead of at the beginning of first bb.
10078
10079 2011-01-02  Mingjie Xing  <mingjie.xing@gmail.com>
10080
10081         * doc/generic.texi: Remove duplicated "@subsubsection Statements".
10082         Remove the word "see" before "@pxref".
10083         * doc/rtl.texi: Remove the word "see" before "@pxref".
10084
10085 2011-01-01  Jan Hubicka  <jh@suse.cz>
10086
10087         * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
10088         memory.
10089
10090 2011-01-01  Kai Tietz  <kai.tietz@onevision.com>
10091
10092         PR target/38662
10093         * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
10094
10095 \f
10096 Copyright (C) 2011 Free Software Foundation, Inc.
10097
10098 Copying and distribution of this file, with or without modification,
10099 are permitted in any medium without royalty provided the copyright
10100 notice and this notice are preserved.