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