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