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