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