Skip DEBUG_INSN in loop-doloop.c
[gcc.git] / gcc / ChangeLog
1 2011-05-11 Revital Eres <revital.eres@linaro.org>
2
3 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
4 instead of PREV_INSN.
5
6 2011-05-11 Revital Eres <revital.eres@linaro.org>
7
8 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
9 * loop-doloop.c (doloop_condition_get): Likewise.
10 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
11 (doloop_end): New.
12 * config/arm/arm.md (*addsi3_compare0): Remove "*".
13
14 2011-05-10 Nathan Froyd <froydnj@codesourcery.com>
15
16 * tree.def (CASE_LABEL_EXPR): Add an operand.
17 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
18
19 2011-05-10 Joseph Myers <joseph@codesourcery.com>
20
21 * c-decl.c (c_override_global_bindings_to_false): Remove.
22 (global_bindings_p): Don't check
23 c_override_global_bindings_to_false.
24 * c-tree.h (c_override_global_bindings_to_false): Remove.
25 * c-typeck.c (composite_type): Don't set
26 c_override_global_bindings_to_false.
27
28 2011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
29
30 PR target/48857, 48495
31 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
32 (VSX_MODE): Ditto.
33 (VSX_MOVE_MODE): Ditto.
34 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
35 VSX vector types. Add V2DImode.
36 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
37 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
38 (MODES_TIEABLE_P): Ditto.
39
40 * config/rs6000/rs6000.c (rs6000_emit_move): Use
41 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
42 VSX_VECTOR_MODE.
43 (init_cumulative_args): Ditto.
44 (rs6000_function_arg_boundary): Ditto.
45 (rs6000_function_arg_advance_1): Ditto.
46 (rs6000_function_arg): Ditto.
47 (rs6000_function_ok_for_sibcall): Ditto.
48 (emit_frame_save): Ditto.
49 (rs6000_function_value): Ditto.
50 (rs6000_libcall_value): Ditto.
51
52 2011-05-10 Joseph Myers <joseph@codesourcery.com>
53
54 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
55 i386/darwin-lib.h to $libgcc_tm_file.
56 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
57
58 2011-05-10 Joseph Myers <joseph@codesourcery.com>
59
60 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
61
62 2011-05-10 Joseph Myers <joseph@codesourcery.com>
63
64 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New
65 files.
66 * config/rs6000/rs6000-tables.opt: New file (generated).
67 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
68 rs6000/rs6000-tables.opt to extra_options.
69 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
70 * config/rs6000/rs6000.c (rs6000_select): Remove.
71 (processor_target_table): Move contents to rs6000-cpus.def.
72 (darwin_rs6000_override_options): Check
73 global_options_set.x_rs6000_cpu_index instead of
74 rs6000_select[1].string.
75 (rs6000_option_override_internal): Likewise.
76 (rs6000_handle_option): Don't assert that global structures are in
77 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
78 (rs6000_default_cpu): New variable.
79 (rs6000_file_start): Set it instead of local default_cpu. Check
80 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
81 global_options_set.x_rs6000_tune_index instead of rs6000_select.
82 (rs6000_darwin_file_start): Check rs6000_default_cpu and
83 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
84 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
85 rs6000_select): Remove.
86 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
87 Remove.
88 (mcpu=, mtune=): Use Var, Init, Enum and Save.
89 * config/rs6000/t-rs6000
90 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
91 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
92 global_options_set.x_rs6000_cpu_index instead of
93 rs6000_select[1].string.
94 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
95 global_options_set.x_rs6000_cpu_index instead of
96 rs6000_select[1].string.
97
98 2011-05-10 Joseph Myers <joseph@codesourcery.com>
99
100 * config.gcc (libgcc_tm_file): Define instead of including files
101 from ../../libgcc/config/ in tm_file.
102 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list):
103 Define.
104 * configure: Regenerate.
105 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
106 libgcc_tm.h, cs-libgcc_tm.h): New.
107 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
108 (clean): Remove libgcc_tm.h.
109 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
110 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
111 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
112
113 2011-05-10 Georg-Johann Lay <avr@gjlay.de>
114
115 PR target/48896
116 * config/avr/avr.c (avr_ret_register): Return unsigned int
117 instead of int.
118 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
119 it to avr_libcall_value.
120 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
121 expand_expr.
122 (avr_expand_binop_builtin): Ditto.
123 (avr_expand_unop_builtin): Ditto.
124
125 2011-05-10 DJ Delorie <dj@redhat.com>
126
127 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
128 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
129 * config/rx/rx.c (rx_align_for_label): Add label and
130 uses_threshold parameters. Do not align when the label is not
131 used enough.
132 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
133
134 2011-05-10 Richard Guenther <rguenther@suse.de>
135
136 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
137 a series of conversions and apply foldings similar to what
138 fold-const does.
139 (tree_ssa_forward_propagate_single_use_vars): Call it.
140
141 2011-05-10 Jakub Jelinek <jakub@redhat.com>
142
143 PR tree-optimization/48611
144 PR tree-optimization/48794
145 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
146 referenced from RESX or EH_DISPATCH arguments.
147
148 PR debug/48928
149 * dfp.c (decimal_to_decnumber): Handle conversion from
150 dconst{1,2,m1,half}.
151
152 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
153
154 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
155 for !flag_prefer_avx128.
156 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
157
158 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
159
160 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
161 (fold_ternary_loc): Use expr_location_or.
162
163 2011-05-09 H.J. Lu <hongjiu.lu@intel.com>
164
165 PR debug/48853
166 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
167 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
168 Pmode and mem_mode is not VOIDmode.
169
170 2011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
171
172 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
173 TYPE_QUAL_RESTRICT): Convert to enum.
174
175 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
176
177 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
178 (const_pow2_1_to_8_operand): Ditto.
179 (const_pow2_1_to_128_operand): Ditto.
180 (const_pow2_1_to_32768_operand): Ditto.
181 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
182 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
183 in insn constraint to check integer value of operand 3.
184 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
185
186 (PINSR_MODE): New mode iterator.
187 (sse2p4_1): New mode attribute.
188 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
189 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
190 iterator. Use const_int_operand instead of
191 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
192 exact_log2 in insn constraint to check integer value of operand 3.
193
194 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
195
196 * config/i386/sse.md (blendbits): Remove mode attribute.
197 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
198 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
199 Check integer value of operand 3 in insn constraint.
200
201 2011-05-09 Richard Guenther <rguenther@suse.de>
202
203 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
204 for diagnostics.
205 (lto_symtab_merge): Likewise. Do not register types here.
206 (lto_symtab_merge_decls_2): Likewise.
207 (lto_symtab_merge_decls_1): Likewise.
208 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
209 * gimple.c (enum gtc_mode): Declare.
210 (gimple_types_compatible_p): Make static.
211
212 2011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
213
214 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
215 temporary register to match Pmode.
216
217 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
218
219 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
220 and *vec_concatv4si_1_avx.
221
222 2011-05-09 Uros Bizjak <ubizjak@gmail.com>
223
224 PR rtl-optimization/48927
225 * ira-conflicts.c (commutative_constraint_p): Use
226 recog_data.alternative_enabled_p to disable alternatives where
227 "enabled" attribute is false.
228 (get_dup_num): Ditto.
229 * ira-lives.c (single_reg_class): Ditto.
230 (ira_implicitly_set_insn_hard_regs): Ditto.
231
232 2011-05-09 Eric Botcazou <ebotcazou@adacore.com>
233
234 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
235 (dataflow_set_preserve_mem_locs): Likewise.
236
237 2011-05-09 Philipp Thomas <pth@suse.de>
238
239 * config/mep/mep.c (mep_validate_vliw): Syntax description
240 should not be translated.
241
242 2011-05-09 Joseph Myers <joseph@codesourcery.com>
243
244 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
245 * config/mips/mips-tables.opt: New file (generated).
246 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
247 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
248 MIPS_ARCH_OPTION_NATIVE): Define.
249 * config/mips/mips.c (mips_cpu_info_table): Move contents to
250 mips-cpus.def.
251 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
252 mips_parse_cpu): Remove.
253 (mips_cpu_info_from_opt, mips_default_arch): New.
254 (mips_handle_option): Don't assert that global structures are in
255 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
256 (mips_option_override): Use new variables and functions to set
257 state of these options. Use strcmp to check for individual CPU names.
258 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
259 definition.
260 * config/mips/mips.opt (march=): Use ToLower and Enum.
261 (mips): Use ToLower, Enum and Var.
262 (mtune=): Use ToLower and Enum.
263 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
264
265 2011-05-08 Jan Hubicka <jh@suse.cz>
266
267 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
268 Arrange type pairs to be UID ordered.
269 (gimple_lookup_type_leader): Make inline.
270
271 2011-05-09 Nick Clifton <nickc@redhat.com>
272
273 PR target/48899
274 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
275 PROCESSOR_DEFAULT.
276
277 PR target/48897
278 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
279 variable 's'.
280
281 2011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
282
283 * combine.c (simplify_comparison): Abstract out parts into...
284 (simplify_compare_const): ... new function.
285 (try_combine): Generalize parallel arithmetic/compare combining
286 to call simplify_compare_const() and CANONICALIZE_COMPARE().
287
288 2011-05-08 Jan Hubicka <jh@suse.cz>
289
290 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
291 (cgraph_create_virtual_clone): Call hooks once virtual clone
292 is finished.
293 * cgraph.h (cgraph_clone_node): Update prototype.
294 * ipa-cp.c (ipcp_estimate_growth): Use
295 estimate_ipcp_clone_size_and_time.
296 * ipa-inline-transform.c (clone_inlined_nodes): Update.
297 * lto-cgraph.c (input_node): Update.
298 * ipa-inline.c (recursive_inlining): Update.
299 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
300 (evaluate_conditions_for_known_args): Break out from ...
301 (evaluate_conditions_for_edge): ... here.
302 (evaluate_conditions_for_ipcp_clone): New function.
303 (inline_node_duplication_hook): Update clone summary based
304 on parameter map.
305 (estimate_callee_size_and_time): Rename to ...
306 (estimate_node_size_and_time): take NODE instead of EDGE;
307 take POSSIBLE_TRUTHS as argument.
308 (estimate_callee_size_and_time): Update.
309 (estimate_ipcp_clone_size_and_time): New function.
310 (do_estimate_edge_time): Update.
311
312 2011-05-08 Richard Guenther <rguenther@suse.de>
313
314 PR middle-end/48908
315 PR middle-end/48905
316 * expmed.c (expand_shift_1): Compute adjusted constant shift
317 amount manually.
318
319 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
320
321 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
322
323 2011-05-08 Eric Botcazou <ebotcazou@adacore.com>
324
325 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
326
327 2011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
328
329 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
330
331 2011-05-07 Jan Hubicka <jh@suse.cz>
332
333 * ipa-inline-transform.c (inline_call): Account when program size
334 decreases.
335 * ipa-inline.c (relative_time_benefit): New function.
336 (edge_badness): Reorganize to be power 2 based; fix thinko when
337 computing badness for negative growth; update comments to match
338 reality; better dumps.
339
340 2011-05-07 Eric Botcazou <ebotcazou@adacore.com>
341
342 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
343 type to bool and adjust comment.
344 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
345 (fold_mathfn_compare): Remove calls to global_bindings_p.
346 (fold_inf_compare): Likewise.
347 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
348 * c-tree.h (global_bindings_p): Adjust prototype.
349 * c-decl.c (global_bindings_p): Return bool and simplify.
350
351 2011-05-07 Zdenek Dvorak <ook@ucw.cz>
352
353 PR tree-optimization/48837
354 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
355 when accumulator transformation is performed.
356
357 2011-05-06 Jan Hubicka <jh@suse.cz>
358
359 * i386.h (ix86_tune_indices): Add
360 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
361 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
362 * i386.c (initial_ix86_tune_features): Add
363 X86_SOFTARE_PREFETCHING_BENEFICIAL.
364 (software_prefetching_beneficial_p): Remove predicate.
365 (ix86_option_override_internal): Use new macro.
366
367 2011-05-06 Jan Hubicka <jh@suse.cz>
368
369 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
370
371 2011-05-06 Jan Hubicka <jh@suse.cz>
372
373 * cgraph.c (cgraph_add_thunk): Create real function node instead
374 of alias node; finalize it and mark needed/reachale; arrange visibility
375 to be right and add it into the corresponding same comdat group list.
376 (dump_cgraph_node): Dump thunks.
377 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
378 cgraph_function_with_gimple_body_p,
379 cgraph_first_function_with_gimple_body,
380 cgraph_next_function_with_gimple_body): New functions.
381 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
382 New macros.
383 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
384 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
385 * cgraphunit.c (cgraph_finalize_function): Only look into possible
386 devirtualization when optimizing.
387 (verify_cgraph_node): Verify thunks.
388 (cgraph_analyze_function): Analyze thunks.
389 (cgraph_mark_functions_to_output): Output thunks only in combination
390 with function they are assigned to.
391 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
392 alias into normal node.
393 (assemble_thunks): New functoin.
394 (cgraph_expand_function): Use it.
395 * lto-cgraph.c (lto_output_node): Stream thunks.
396 (input_overwrite_node): Stream in thunks.
397 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
398 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
399 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
400 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
401 (inline_analyze_function): Do not care about thunk jump functions.
402 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
403 * ipa-prop.c (ipa_prop_write_jump_functions): Use
404 cgraph_function_with_gimple_body_p.
405 * passes.c (do_per_function_toporder): Use
406 cgraph_function_with_gimple_body_p.
407 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
408 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
409 (function_called_by_processed_nodes_p): Likewise.
410
411 2011-05-06 Joseph Myers <joseph@codesourcery.com>
412
413 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
414 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
415 entries.
416 (mabi=): Replace with separate entries for mabi=altivec,
417 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
418 mabi=ieeelongdouble and mabi=ibmlongdouble.
419 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
420 check for -mabi=spe without SPE ABI support here.
421 (rs6000_handle_option): Replace OPT_mabi_ handling with
422 OPT_mabi_altivec and OPT_mabi_spe handling.
423
424 2011-05-06 Cary Coutant <ccoutant@google.com>
425
426 * dwarf2out.c (contains_subprogram_definition): New function.
427 (should_move_die_to_comdat): Call it.
428
429 2011-05-06 Jeff Law <law@redhat.com>
430
431 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
432 remove_ctrl_stmt_and_useless_edges.
433 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
434 (fixup_template_block, thread_single_edge): Likewise.
435 (mark_threaded_blocks): Use THREAD_TARGET.
436
437 2011-05-06 Alan Modra <amodra@gmail.com>
438
439 PR target/48900
440 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
441 const0_rtx as the arg to the dummy __tls_get_addr libcall.
442
443 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
444
445 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
446 constraint modifier to "r".
447
448 2011-05-06 Joseph Myers <joseph@codesourcery.com>
449
450 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
451 fall through for OPT_mcmodel_.
452
453 2011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
454
455 * config/s390/s390.c (s390_asm_trampoline_template): Comment
456 instruction sizes.
457 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
458
459 2011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
460
461 PR target/47930
462 * config/arm/arm.opt (marm): Document it.
463 (mthumb): Reject negative variant.
464
465 2011-05-06 Uros Bizjak <ubizjak@gmail.com>
466
467 PR target/48898
468 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
469 Fix typo in "ccvt" variable name.
470
471 2011-05-06 Tristan Gingold <gingold@adacore.com>
472
473 PR target/48895
474 * config/vms/vms-ar.c (main): Remove cwd variable.
475
476 2011-05-06 Jakub Jelinek <jakub@redhat.com>
477
478 PR debug/48902
479 * var-tracking.c (prepare_call_arguments): Move else before #endif.
480
481 2011-05-05 Nathan Froyd <froydnj@codesourcery.com>
482
483 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
484 * gimplify.c (gimplify_switch_expr): Likewise.
485 * omp-low.c (expand_omp_sections): Likewise.
486 * tree-eh.c (lower_try_finally_switch): Likewise.
487 (lower_eh_dispatch): Likewise.
488 * tree.h (build_case_label): Declare.
489 * tree.c (build_case_label): Define.
490
491 2011-05-05 Jason Merrill <jason@redhat.com>
492
493 PR c++/40975
494 * tree-inline.c (copy_tree_r): Use copy_statement_list.
495 (copy_statement_list): Don't recurse.
496 * stor-layout.c (copy_self_referential_tree_r): Don't allow
497 STATEMENT_LIST.
498
499 2011-05-05 Joseph Myers <joseph@codesourcery.com>
500
501 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
502 through from -mfpu= handling.
503 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
504
505 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
506
507 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
508 POST_MODIFY.
509
510 2011-05-05 Steve Ellcey <sje@cup.hp.com>
511
512 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
513 for 11.31.
514 (hppa[12]*-*-hpux11*): Ditto.
515 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
516 * config/ia64/hpux-unix2003.h: New.
517 * config/pa/pa-hpux1131.opt: New.
518 * config/pa/pa-hpux1131.h: New.
519 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
520 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
521 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
522
523 2011-05-05 Jakub Jelinek <jakub@redhat.com>
524
525 PR debug/48853
526 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
527 instead of mode as 3rd argument to recursive call.
528 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
529 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
530 VOIDmode.
531 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
532 don't give up if mode is Pmode and mem_mode is not VOIDmode.
533 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
534 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
535
536 2011-05-05 Julian Brown <julian@codesourcery.com>
537
538 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
539 parenthesis in D-register case.
540
541 2011-05-05 Joseph Myers <joseph@codesourcery.com>
542
543 * opt-functions.awk (var_type_struct): Handle Enum options.
544 * optc-gen.awk: Don't check range of variables of character type.
545 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
546 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
547 rs6000_sdata_name, rs6000_explicit_options): Remove.
548 (rs6000_option_override_internal): Check for -malign-power here.
549 Use global_options_set instead of rs6000_explicit_options.
550 (rs6000_parse_fpu_option): Remove.
551 (rs6000_handle_option): Access variables via opts and opts_set
552 pointers. Use error_at and warning_at. Add fall-through
553 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
554 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
555 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
556 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
557 here. Don't use rs6000_parse_fpu_option.
558 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
559 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
560 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
561 (mrecip=): Use Var.
562 (mspe): Use Var and Save.
563 (mtraceback=): Use Enum and Var.
564 (rs6000_traceback_type): New Enum and EnumValue entries.
565 (mfloat-gprs=): Use Enum, Var and Save.
566 (rs6000_float_gprs): New Enum and EnumValue entries.
567 (mlong-double-): use Var and Save.
568 (msched-costly-dep=, minsert-sched-nops=): Use Var.
569 (malign-): Use Enum and Var.
570 (rs6000_alignment_flags): New Enum and EnumValue entries.
571 (mfpu=): Use Enum.
572 (fpu_type_t): New Enum and EnumValue entries.
573 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
574 global_options_set instead of rs6000_explicit_options.
575 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
576 global_options_set instead of rs6000_explicit_options.
577 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
578 global_options_set instead of rs6000_explicit_options.
579 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
580 global_options_set instead of rs6000_explicit_options.
581 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
582 global_options_set instead of rs6000_explicit_options.
583 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
584 global_options_set instead of rs6000_explicit_options.
585 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
586 definition.
587 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
588 global_options_set instead of rs6000_explicit_options.
589 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
590 (rs6000_cmodel): New Enum and EnumValue entries.
591 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
592 global_options_set instead of rs6000_explicit_options.
593 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
594 (mtls-size=): Use Enum and Var.
595 (rs6000_tls_size): New Enum and EnumValue entries.
596
597 2011-05-05 Michael Matz <matz@suse.de>
598
599 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
600 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
601 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
602 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
603 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
604 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
605 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
606 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
607 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
608 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
609 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
610 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
611 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
612 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
613 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
614 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
615
616 2011-05-05 Richard Guenther <rguenther@suse.de>
617
618 * expmed.c (expand_variable_shift): Rename to ...
619 (expand_shift_1): ... this. Take an expanded shift amount.
620 For rotates recurse directly not building trees for the shift amount.
621 (expand_variable_shift): Wrap around expand_shift_1.
622 (expand_shift): Adjust.
623
624 2011-05-05 Jakub Jelinek <jakub@redhat.com>
625
626 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
627
628 2011-05-05 Eric Botcazou <ebotcazou@adacore.com>
629
630 * tree.h (get_pending_sizes): Remove prototype.
631 (put_pending_size): Likewise.
632 (put_pending_sizes): Likewise.
633 * stor-layout.c (pending_sizes): Delete.
634 (get_pending_sizes): Likewise.
635 (put_pending_size): Likewise.
636 (put_pending_sizes): Likewise.
637 (variable_size): Do not call put_pending_size and tidy up.
638 * function.h (struct function): Remove dont_save_pending_sizes_p.
639 * lto-streamer-in.c (input_function): Do not stream it.
640 * lto-streamer-out.c (output_function): Likewise.
641 * tree-inline.c (initialize_cfun): Do not copy it.
642 * c-decl.c (store_parm_decls): Do not set it.
643 * omp-low.c (create_task_copyfn): Likewise.
644 * tree-optimize.c (tree_rest_of_compilation): Likewise.
645
646 2011-05-05 Uros Bizjak <ubizjak@gmail.com>
647
648 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
649 conditions.
650 (*movdf_internal): Ditto.
651 (*movdf_internal_nointeger): Ditto.
652 (*movsf_internal): Ditto.
653
654 2011-05-05 Joseph Myers <joseph@codesourcery.com>
655
656 * c-decl.c (finish_decl): Don't call get_pending_sizes.
657 (grokparm): Add parameter expr. Pass it to grokdeclarator.
658 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
659 (c_variable_size): Remove.
660 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
661 call put_pending_sizes.
662 (get_parm_info): Add parameter expr. Use it to set
663 arg_info->pending_sizes.
664 (store_parm_decls): Use arg_info->pending_sizes instead or calling
665 get_pending_sizes.
666 * c-parser.c (c_parser_parms_declarator): Update call to
667 c_parser_parms_list_declarator.
668 (c_parser_parms_list_declarator): Take parameter expr. Update
669 call to push_parm_decl. Update recursive call. Don't call
670 get_pending_sizes. Update calls to get_parm_info.
671 (c_parser_objc_method_definition): Update calls to
672 c_parser_objc_method_decl and objc_start_method_definition.
673 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
674 (c_parser_objc_method_decl): Add parameter expr. Update call to
675 grokparm.
676 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
677 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
678 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
679
680 2011-05-05 Michael Hope <michael.hope@linaro.org>
681
682 PR pch/45979
683 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
684 __ARM_EABI__ hosts.
685
686 2011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
687
688 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
689 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
690 (spu_output_mi_thunk): New function.
691
692 2011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
693
694 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
695 targetm.asm_out.print_operand.
696 * config/sol2.c: Include target.h.
697
698 2011-05-04 Jan Hubicka <jh@suse.cz>
699
700 * ipa-inline.c (reset_edge_caches): New function.
701 (update_caller_keys): Add check_inlinablity_for; do not
702 reset edge caches; remove now unnecesary loop.
703 (update_callee_keys): Add comments; reset node_growth_cache of callee.
704 (update_all_callee_keys): Likewise.
705 (inline_small_functions): Sanity check cache; update code
706 recomputing it.
707
708 2011-05-04 Bernd Schmidt <bernds@codesourcery.com>
709
710 PR rtl-optimization/47612
711 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
712 as the last insn of the sequence to be moved.
713
714 2011-05-04 Tobias Burnus <burnus@net-b.de>
715
716 PR fortran/48864
717 * doc/invoke.texi (Ofast): Document that it
718 enables Fortran's -fno-protect-parens.
719
720 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
721
722 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
723
724 2011-05-04 Eric Botcazou <ebotcazou@adacore.com>
725
726 * stor-layout.c (variable_size): Do not issue errors.
727
728 2011-05-04 Richard Guenther <rguenther@suse.de>
729
730 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
731 for array-ref indices.
732 (tree_coverage_counter_addr): Likewise.
733 (build_fn_info_type): Use size_int for index types.
734 (build_gcov_info): Likewise.
735
736 2011-05-04 Richard Guenther <rguenther@suse.de>
737
738 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
739 to build_int_cst.
740 * c-typeck.c (really_start_incremental_init): Use bitsize_int
741 for constructor indices.
742 (push_init_level): Likewise.
743
744 2011-05-04 Richard Guenther <rguenther@suse.de>
745
746 * explow.c (promote_mode): Move variable declarations before code.
747
748 2011-05-04 Nathan Froyd <froydnj@codesourcery.com>
749
750 * tree.h (build_function_type_array): Declare.
751 (build_varargs_function_type_array): Declare.
752 (build_function_type_vec, build_varargs_function_type_vec): Define.
753 * tree.c (build_function_type_array_1): New function.
754 (build_function_type_array): New function.
755 (build_varargs_function_type_array): New function.
756
757 2011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
758
759 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
760 before setting STMT_VINFO_TYPE.
761
762 2011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
763
764 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
765 instead of spu_pass_by_reference.
766
767 2011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
768
769 * calls.c (emit_library_call_value_1): Invoke
770 promote_function_mode hook on libcall arguments.
771 * explow.c (promote_function_mode, promote_mode): Handle TYPE
772 argument being NULL.
773 * targhooks.c (default_promote_function_mode): Lisewise.
774 * config/s390/s390.c (s390_promote_function_mode): Likewise.
775 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
776
777 * doc/tm.texi: Document that TYPE argument might be NULL.
778
779 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
780
781 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
782
783 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
784
785 From Bernd Schmidt
786 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
787
788 2011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
789
790 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
791 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
792 Move ...
793 * mips-tfile.c: ... here.
794 Don't include coretypes.h, tm.h, filenames.h.
795 (saber_stop): Remove definition and all calls.
796 [__SABER__]: Remove.
797 (__LINE__): Remove default.
798 (Size_t, Ptrdiff_t): Remove definitions.
799 Replace by size_t, ptrdiff_t.
800 [!MIPS_DEBUGGING_INFO]: Remove.
801 (SHASH_SIZE, THASH_SIZE): Remove defaults.
802 (progname): Add const.
803 (STATIC): Remove.
804 Replace all uses by static.
805 (ALIGN_SYMTABLE_OFFSET): Remove default.
806 * mips-tdump.c: Don't include coretypes.h, tm.h.
807 Remove !MIPS_IS_STAB guard.
808 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
809 $(TM_H), filenames.h dependencies.
810 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
811
812 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
813
814 From Jie Zhang
815 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
816 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
817
818 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
819
820 From Bernd Schmidt
821 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
822 account and save/restore RETS.
823 (PROFILE_BEFORE_PROLOGUE): Define.
824 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
825 the push insn to use predecrement.
826
827 2011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
828
829 From Jie Zhang
830 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
831
832 2011-05-04 Nick Clifton <nickc@redhat.com>
833
834 * config/mn10300/mn10300.c: Include cfgloop.h.
835 (DUMP): New macro.
836 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
837 Lcc or a FLcc insn into the instruction stream.
838 (mn10300_block_contains_call): New function. Returns true if the
839 given basic block contains a CALL insn.
840 (mn10300_loop_contains_call_insn): New function. Returns true if
841 the given loop contains a CALL insn.
842 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
843 to use the SETLB and Lcc or FLcc insns.
844 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
845 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
846 * config/mn10300/mn10300.opt (msetlb): New option. Used to
847 disable the SETLB optimization.
848 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
849 __SETLB__ or __NO_SETLB__.
850 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
851 (movsf_internal): Handle MDR register.
852 (cmpsi): Make visible.
853 (setlb): New pattern.
854 (Lcc): New pattern.
855 (FLcc): New pattern.
856
857 2011-05-04 Uros Bizjak <ubizjak@gmail.com>
858
859 PR target/48860
860 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
861 for reg<->xmm moves.
862 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
863 (vec_concatv2di_rex64_sse): Ditto.
864 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
865 (*vec_extractv2di_1_rex64): Ditto.
866
867 Revert:
868 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
869
870 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
871 reg<->xmm moves.
872 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
873
874 2011-05-04 Richard Guenther <rguenther@suse.de>
875
876 * tree.h (int_const_binop): Remove notrunc argument.
877 * fold-const.c (int_const_binop): Remove notrunc argument. Always
878 create integer constants that are properly truncated.
879 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
880 (const_binop): Remove zero notrunc argument to int_const_binop.
881 (size_binop_loc): Likewise.
882 (fold_div_compare): Likewise.
883 (maybe_canonicalize_comparison_1): Likewise.
884 (fold_comparison): Likewise.
885 (fold_binary_loc): Likewise.
886 (multiple_of_p): Likewise.
887 * expr.c (store_constructor): Likewise.
888 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
889 (maybe_fold_stmt_addition): Likewise.
890 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
891 * stor-layout.c (layout_type): Likewise.
892 * tree-data-ref.c (tree_fold_divides_p): Likewise.
893 * tree-sra.c (build_ref_for_offset): Likewise.
894 (build_user_friendly_ref_for_offset): Likewise.
895 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
896 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
897 * tree-ssa-loop-niter.c (inverse): Likewise.
898 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
899 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
900 * tree-switch-conversion.c (check_range): Likewise.
901 (build_constructors): Likewise.
902 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
903 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
904 (extract_range_from_assert): Likewise.
905 (vrp_int_const_binop): Likewise.
906 (extract_range_from_binary_expr): Likewise.
907 (extract_range_from_unary_expr): Likewise.
908 (check_array_ref): Likewise.
909 (find_case_label_range): Likewise.
910 (simplify_div_or_mod_using_ranges): Likewise.
911 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
912 comparing case labels for merging.
913
914 2011-05-03 Mark Wielaard <mjw@redhat.com>
915
916 * dwarf2out.c (debug_str_hash_forced): Removed.
917 (gen_label_for_indirect_string): Removed.
918 (get_debug_string_label): Removed.
919 (AT_string_form): Generate label directly.
920 (output_indirect_string): Test indirect_string_node for
921 DW_FORM_strp instead of checking label and refcount.
922 (prune_indirect_string): Removed.
923 (prune_unused_types): Don't check debug_str_hash_forced or
924 call prune_indirect_string.
925
926 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
927
928 PR other/48093
929 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
930
931 2011-05-04 Alexandre Oliva <aoliva@redhat.com>
932
933 PR debug/47994
934 PR debug/47919
935 * combine.c (try_combine): Skip debug insns at m_split tests.
936
937 2011-04-26 Mark Wielaard <mjw@redhat.com>
938
939 PR42288
940 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
941 when info_section_emitted.
942
943 2011-05-03 Joseph Myers <joseph@codesourcery.com>
944
945 * config/mips/mips-opts.h: New.
946 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
947 to mips-opts.h.
948 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
949 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
950 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
951 via opts pointer.
952 * config/mips/mips.h (enum mips_code_readable_setting): Move to
953 mips-opts.h.
954 (mips_abi, mips_code_readable): Don't declare.
955 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
956 (mabi=): Use Enum and Var.
957 (mips_abi): New Enum and EnumValue entries.
958 (mcode-readable=): Use Enum and Var.
959 (mips_code_readable_setting): New Enum and EnumValue entries.
960 (mr10k-cache-barrier=): Use Enum and Var.
961 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
962
963 2011-05-03 Jan Hubicka <jh@suse.cz>
964
965 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
966 replace hash by pointer map.
967 (cgraph_node_set_element_def, cgraph_node_set_element,
968 const_cgraph_node_set_element, varpool_node_set_element_def,
969 varpool_node_set_element, const_varpool_node_set_element): Remove.
970 (free_cgraph_node_set, free_varpool_node_set): New function.
971 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
972 * tree-emutls.c: Free varpool node set.
973 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
974 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
975 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
976 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
977 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
978 Move here from ipa.c; implement using pointer_map
979 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
980 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
981 debug_cgraph_node_set, varpool_node_set_new,
982 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
983 dump_varpool_node_set, debug_varpool_node_set):
984 Move to ipa-uitls.c.
985 * passes.c (ipa_write_summaries): Update.
986
987 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
988
989 From Mike Frysinger:
990 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
991 bf542/bf544/bf547/bf548/bf549.
992
993 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
994
995 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
996
997 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
998
999 From Bernd Schmidt:
1000 * config/bfin/bfin.md (MOVCC): New mode_macro.
1001 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
1002 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
1003 comments from generated assembly.
1004
1005 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1006
1007 From Bernd Schmidt
1008 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
1009 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
1010 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
1011 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
1012 * config/bfin/lib1funcs.asm (___muldi3): New function.
1013
1014 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1015
1016 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
1017 build_function_type_list instead of build_function_type.
1018 Rearrange initialization of `args' to do so.
1019
1020 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1021
1022 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
1023 instead of build_function_type.
1024
1025 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1026
1027 * config/rs6000/rs6000.c (spe_init_builtins): Call
1028 build_function_type_list instead of build_function_type.
1029 (paired_init_builtins, altivec_init_builtins): Likewise.
1030 (builtin_function_type): Likewise.
1031
1032 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1033
1034 * config/sh/sh.c (sh_media_init_builtins): Call
1035 build_function_type_list instead of build_function_type.
1036
1037 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1038
1039 * config/sparc/sparc.c (sparc_file_end): Call
1040 build_function_type_list instead of build_function_type.
1041
1042 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1043
1044 * config/alpha/alpha.c (alpha_init_builtins): Call
1045 build_function_type_list instead of build_function_type.
1046
1047 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1048
1049 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
1050 build_function_type_list instead of build_function_type.
1051
1052 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1053
1054 * config/iq2000/i2000.c (iq2000_init_builtins): Call
1055 build_function_type_list instead of build_function_type.
1056 Delete `endlink' variable.
1057
1058 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1059
1060 * config/avr/avr.c (avr_init_builtins): Call
1061 build_function_type_list instead of build_function_type.
1062
1063 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1064
1065 * config/picochip/picochip.c (picochip_init_builtins): Call
1066 build_function_type_list instead of build_function_type.
1067 Delete `endlink' variable.
1068
1069 2011-05-03 Nathan Froyd <froydnj@codesourcery.com>
1070
1071 * config/bfin/bfin.c (bfin_init_builtins): Call
1072 build_function_type_list instead of build_function_type.
1073
1074 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1075
1076 From Bernd Schmidt
1077 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
1078 that's not CONST_INT. Seemingly redundant check is due to PR39768.
1079
1080 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1081
1082 From Jie Zhang:
1083 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
1084 libbffastfp overrides libgcc when -mfast-fp.
1085
1086 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1087
1088 Originally from Bernd Schmidt
1089 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
1090 * config/bfin/bfin.c (override_options): Test it and error if
1091 TARGET_FDPIC.
1092
1093 2011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
1094
1095 Originally From Bernd Schmidt
1096 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
1097 FD-PIC.
1098
1099 2011-05-03 Jeff Law <law@redhat.com>
1100
1101 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
1102 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
1103 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
1104 than accessing AUX field directly. Free the AUX field before
1105 clearing it.
1106 (thread_block, thread_through_loop_header): Likewise.
1107 (thread_single_edge, mark_threaded_blocks): Likewise.
1108 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
1109 (register_jump_thread): Do not attempt to thread to a NULL edge.
1110
1111 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1112
1113 * function.c (init_function_start): Call decide_function_section.
1114 * varasm.c (decide_function_section): New function.
1115 (assemble_start_function): When not using
1116 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
1117 or first_function_block_is_cold.
1118 * rtl.h (decide_function_section): Declare.
1119
1120 2011-05-03 Uros Bizjak <ubizjak@gmail.com>
1121 Jakub Jelinek <jakub@redhat.com>
1122
1123 PR target/48774
1124 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
1125 only succeed if req_mode is the same as set_mode.
1126
1127 2011-05-03 Bernd Schmidt <bernds@codesourcery.com>
1128
1129 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
1130 * genemit.c (gen_exp): Handle RETURN.
1131 * emit-rtl.c (verify_rtx_sharing): Likewise.
1132 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
1133 * rtl.c (copy_rtx): RETURN is shared.
1134 * rtl.h (enum global_rtl_index): Add GR_RETURN.
1135 (ret_rtx): New.
1136 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
1137 * config/s390/s390.c (s390_emit_epilogue): Likewise.
1138 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
1139 * config/cris/cris.c (cris_expand_return): Likewise.
1140 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
1141 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
1142 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
1143 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
1144 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
1145 Likewise.
1146 * config/v850/v850.c (expand_epilogue): Likewise.
1147 * config/bfin/bfin.c (bfin_expand_call): Likewise.
1148 * config/arm/arm.md (epilogue): Likewise.
1149 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
1150 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
1151 variable to ret_reg.
1152
1153 2011-05-03 Richard Guenther <rguenther@suse.de>
1154
1155 PR lto/48846
1156 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
1157 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
1158 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1159
1160 2011-05-03 Richard Guenther <rguenther@suse.de>
1161
1162 * c-decl.c (grokdeclarator): Instead of looking at
1163 TREE_OVERFLOW check if the constant fits in the index type.
1164
1165 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1166
1167 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
1168 (vec_store_lanes<mode><mode>): Likewise.
1169
1170 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1171
1172 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
1173 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
1174 convert_optab_index values.
1175 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
1176 * genopinit.c (optabs): Initialize the new optabs.
1177 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
1178 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
1179 (expand_STORE_LANES): New functions.
1180 * tree.h (build_array_type_nelts): Declare.
1181 * tree.c (build_array_type_nelts): New function.
1182 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
1183 (vect_model_load_cost): Likewise.
1184 (vect_store_lanes_supported, vect_load_lanes_supported)
1185 (vect_record_strided_load_vectors): Declare.
1186 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
1187 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
1188 (vect_transform_strided_load): Split out statement recording into...
1189 (vect_record_strided_load_vectors): ...this new function.
1190 * tree-vect-stmts.c (create_vector_array, read_vector_array)
1191 (write_vector_array, create_array_ref): New functions.
1192 (vect_model_store_cost): Add store_lanes_p argument.
1193 (vect_model_load_cost): Add load_lanes_p argument.
1194 (vectorizable_store): Try to use store-lanes functions for
1195 interleaved stores.
1196 (vectorizable_load): Likewise load-lanes and loads.
1197 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
1198 to vect_model_store_cost.
1199 (vect_build_slp_tree): Likewise vect_model_load_cost.
1200
1201 2011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
1202
1203 * hooks.h (hook_bool_mode_uhwi_false): Declare.
1204 * hooks.c (hook_bool_mode_uhwi_false): New function.
1205 * target.def (array_mode_supported_p): New hook.
1206 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
1207 * doc/tm.texi: Regenerate.
1208 * stor-layout.c (mode_for_array): New function.
1209 (layout_type): Use it.
1210 * config/arm/arm.c (arm_array_mode_supported_p): New function.
1211 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
1212
1213 2011-05-03 Eric Botcazou <ebotcazou@adacore.com>
1214
1215 PR target/48723
1216 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
1217 for -fstack-check if the size to allocate is negative.
1218
1219 2011-05-02 Lawrence Crowl <crowl@google.com>
1220
1221 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
1222 (timevar_cond_start): New for starting a timer only when it is not
1223 already running.
1224 (timevar_cond_stop): New for stopping a timer when it was not already
1225 running.
1226
1227 * timevar.c (timevar_stop): Enable start/stop timers to start again.
1228 (timevar_cond_start): New as above.
1229 (timevar_cond_stop): New as above.
1230
1231 * timevar.def: Add start/stop timers for compiler phases,
1232 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
1233 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
1234 and TV_PHASE_FINALIZE.
1235 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
1236 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
1237 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
1238 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
1239 Make unused TV_OVERLOAD into a start/stop timer.
1240
1241 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
1242 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
1243 to indicate that they are start/stop timers.
1244
1245 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
1246 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
1247 Move initialization to do_compile.
1248 (do_compile): Add initialization from above.
1249 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
1250
1251 * c-decl.c (c_write_global_declarations): Add start/stop of
1252 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
1253
1254 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
1255 or TV_PARSE_INLINE, as appropriate.
1256 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
1257 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
1258
1259 2011-05-02 Jason Merrill <jason@redhat.com>
1260
1261 PR c++/40975
1262 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
1263
1264 2011-05-02 Simon Martin <simartin@users.sourceforge.net>
1265
1266 PR c/35445
1267 * c-decl.c (finish_decl): Only create a composite if the types are
1268 compatible.
1269
1270 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1271
1272 * config/fr30/fr30-protos.h (Mmode): Don't define.
1273 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
1274 definition where used.
1275 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
1276 define. Expand definitions where used.
1277 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
1278 Expand definitions where used.
1279 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
1280 rx_function_arg, rx_function_arg_advance,
1281 rx_function_arg_boundary): Expand definitions of those macros.
1282 * config/v850/v850-protos.h (Mmode): Don't define. Expand
1283 definition where used.
1284
1285 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1286
1287 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1288 reg<->xmm moves.
1289 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
1290 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
1291 with *movv2sf_internal_rex64_avx.
1292 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
1293 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
1294 Use %v prefix in insn mnemonic to handle TARGET_AVX.
1295 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
1296 "vex" in "prefix" attribute calculation.
1297 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
1298
1299 2011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
1300
1301 PR target/47951
1302 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
1303 inputs match the output.
1304
1305 2011-05-02 Andreas Schwab <schwab@linux-m68k.org>
1306
1307 PR target/47955
1308 * config/m68k/m68k.c (m68k_expand_prologue): Set
1309 current_function_static_stack_size.
1310
1311 2011-05-02 Jan Hubicka <jh@suse.cz>
1312
1313 * lto-streamer.c (lto_streamer_cache_insert_1,
1314 lto_streamer_cache_lookup, lto_streamer_cache_create,
1315 lto_streamer_cache_delete): Use pointer map instead of hashtable.
1316 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
1317
1318 2011-05-02 Joseph Myers <joseph@codesourcery.com>
1319
1320 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
1321 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
1322 config/m68k/t-opts: New files.
1323 * config/m68k/m68k-tables.opt: New file (generated).
1324 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
1325 extra_options and m68k/t-opts to tmake_file.
1326 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
1327 (all_isas): Initialize using m68k-isas.def.
1328 (all_microarchs): Initialize using m68k-microarchs.def.
1329 (m68k_find_selection): Remove.
1330 (m68k_handle_option): Don't assert that global structures are in
1331 use. Use error_at. Access variables via opts pointer. Don't
1332 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
1333 directly for -m68020-40 and -m68020-60.
1334 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
1335 m68k_tune_entry here.
1336 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
1337 to m68k-opts.h.
1338 (m68k_library_id_string): Remove declaration.
1339 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
1340 (m68k_library_id_string): New Variable.
1341 (march=, mcpu=, mtune=): Use Enum and Var.
1342
1343 2011-05-02 Richard Guenther <rguenther@suse.de>
1344
1345 * varasm.c (output_constructor_regular_field): Compute zero-based
1346 index with double-ints. Make sure to ICE instead of producing
1347 wrong code.
1348 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
1349 in asserts. Properly use a signed type.
1350
1351 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1352
1353 * config/i386/sse.md (V): New mode iterator.
1354 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
1355 TARGET_SSE2.
1356 (V_256): Rename from AVX256MODE.
1357 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
1358 condition to all users.
1359 (VF1): Ditto.
1360 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
1361 condition to all users.
1362 (VF_128): Make V4SF mode unconditional.
1363 (VF_256): Rename from AVX256MODEF2P.
1364 (VI4F_128): Rename from SSEMODE4S.
1365 (VI8F_128): Rename from SSEMODE2D.
1366 (VI4F_256): Rename from AVX256MODE8P.
1367 (VI8F_256): Rename from AVX256MODE4P.
1368 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
1369 (ssescalarmodesuffix): Remove SF and DF modes.
1370 (SSEMODE124): Remove.
1371 (SSEMODE1248): Ditto.
1372 (SSEMODEF2P): Ditto.
1373 (AVXMODEF2P): Ditto.
1374 (AVXMODEFDP): Ditto.
1375 (AVXMODEFSP): Ditto.
1376 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
1377 unconditional.
1378 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
1379 unconditional.
1380 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
1381 xop_pcmov_<mode>256. Use V mode iterator.
1382
1383 Adjust RTX patterns globally for renamed mode attributes.
1384
1385 2011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1386
1387 * haifa-sched.c (sched_emit_insn): Emit insn before first
1388 non-scheduled insn. Inform back-end about new insn. Add
1389 new insn to scheduled_insns list.
1390
1391 2011-05-02 Richard Guenther <rguenther@suse.de>
1392
1393 PR tree-optimization/48822
1394 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
1395 (process_scc): Indicate which iteration we start.
1396
1397 2011-05-02 Jan Hubicka <jh@suse.cz>
1398
1399 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
1400 (lto_section_overrun): New.
1401 * lto-section-out.c (append_block): Rename to ...
1402 (lto_append_block): ... this one; export.
1403 (lto_output_1_stream): Move lto lto-streamer.h
1404 (lto_output_data_stream): Update.
1405 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
1406 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
1407 functions.
1408
1409 2011-05-02 Richard Guenther <rguenther@suse.de>
1410
1411 * tree.c (tree_code_counts): New global array.
1412 (record_node_allocation_statistics): Count individual tree codes.
1413 (dump_tree_statistics): Dump individual code stats.
1414
1415 2011-05-01 Jan Hubicka <jh@suse.cz>
1416
1417 * ipa-inline.c (caller_growth_limits): Fix thinko when
1418 looking for largest stack frame.
1419 * ipa-inline.h (dump_inline_summary): Declare.
1420 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
1421 on stack usage.
1422 (dump_inline_summary): Export.
1423 (debug_inline_summary): Declare as DEBUG_FUNCTION.
1424
1425 2011-05-01 Anatoly Sokolov <aesok@post.ru>
1426
1427 * reginfo.c (memory_move_cost): Change rclass argument type form
1428 'enum reg_class' to reg_class_t.
1429 * reload.h (memory_move_cost): Update prototype.
1430 * postreload.c reload_cse_simplify_set): Change type dclass var to
1431 reg_class_t.
1432 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
1433 Update prototype.
1434 (ira_allocate_and_set_costs): Change aclass argument type form
1435 'enum reg_class' to reg_class_t.
1436 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
1437 Change aclass argument type to reg_class_t.
1438 (update_conflict_hard_reg_costs): Change type aclass and pref vars
1439 to reg_class_t.
1440 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
1441 memory_move_cost call.
1442
1443 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
1444 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
1445 Change type tmp var to reg_class_t.
1446
1447 2011-04-30 Jan Hubicka <jh@suse.cz>
1448
1449 * ipa-inline.c (can_inline_edge_p): Disregard limits when
1450 inlining into function with flatten attribute.
1451 (want_inline_small_function_p): Be more realistic about inlining
1452 cold calls where callee size grows.
1453
1454 2011-04-30 Jan Hubicka <jh@suse.cz>
1455
1456 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
1457 flags.
1458
1459 2011-04-30 Anatoly Sokolov <aesok@post.ru>
1460
1461 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
1462 PRINT_OPERAND_PUNCT_VALID_P): Remove.
1463 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
1464 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
1465 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1466 (print_operand): Rename to...
1467 (sparc_print_operand): ...this. Make static. Adjust
1468 sparc_print_operand function call.
1469 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
1470 functions.
1471
1472 2011-04-30 Jan Hubicka <jh@suse.cz>
1473
1474 PR middle-end/48752
1475 * ipa-inline.c (early_inliner): Disable when doing late
1476 addition of function.
1477
1478 2011-04-30 Jakub Jelinek <jakub@redhat.com>
1479
1480 * dwarf2out.c (get_address_mode): New inline.
1481 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
1482 if not dwarf_strict emit
1483 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
1484 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
1485 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
1486 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
1487 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
1488 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
1489 mem_loc_descriptor callers.
1490 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
1491 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
1492 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
1493 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
1494 (base_types): New variable.
1495 (get_base_type_offset, calc_base_type_die_sizes,
1496 base_type_for_mode, mark_base_types, base_type_cmp,
1497 move_marked_base_types): New functions.
1498 (calc_die_sizes): Assert that die_offset is 0 or equal to
1499 next_die_offset.
1500 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
1501 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
1502 callers. If not dwarf_strict, call mem_loc_descriptor even for
1503 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
1504 (gen_subprogram_die): Don't give up on call site parameters
1505 with non-integral or large integral modes. Adjust
1506 mem_loc_descriptor callers.
1507 (prune_unused_types): Call prune_unused_types_mark on base_types
1508 vector entries.
1509 (resolve_addr): Call mark_base_types.
1510 (dwarf2out_finish): Call move_marked_base_types.
1511
1512 PR tree-optimization/48809
1513 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
1514 type.
1515 (gen_inbound_check): Don't compute index_expr - range_min in utype
1516 again, instead reuse SSA_NAME initialized in build_arrays.
1517 Remove two useless gsi_for_stmt calls.
1518
1519 2011-04-29 Jeff Law <law@redhat.com>
1520
1521 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
1522
1523 2011-04-29 Martin Jambor <mjambor@suse.cz>
1524
1525 * cgraph.h (cgraph_postorder): Remove declaration.
1526 * ipa-utils.h (ipa_free_postorder_info): Declare.
1527 (ipa_reverse_postorder): Likewise.
1528 * cgraphunit.c: Include ipa-utils.h.
1529 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
1530 * ipa-inline.c: Include ipa-utils.h.
1531 (ipa_inline): Update call to ipa_reverse_postorder.
1532 * ipa-pure-const.c (propagate_pure_const): Update call to
1533 ipa_reduced_postorder and ipa_print_order. Call
1534 ipa_free_postorder_info to clean up.
1535 (propagate_nothrow): Likewise.
1536 * ipa-reference.c (propagate): Removed a useless call to
1537 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
1538 and ipa_print_order. Call ipa_free_postorder_info to clean up.
1539 * ipa.c: Include ipa-utils.h.
1540 (ipa_profile): Update call to ipa_reverse_postorder.
1541 (cgraph_postorder): Moved to...
1542 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
1543 (ipa_utils_print_order): Renamed to ipa_print_order.
1544 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
1545 comments.
1546 (ipa_free_postorder_info): New function.
1547 * passes.c: Include ipa-utils.h.
1548 (do_per_function_toporder): Update call to ipa_reverse_postorder.
1549 (ipa_write_summaries): Likewise.
1550 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
1551 (cgraphunit.o): Likewise.
1552 (ipa.o): Likewise.
1553 (ipa-inline.o): Likewise.
1554
1555 2011-04-29 Jan Hubicka <jh@suse.cz>
1556
1557 * gcc.dg/tree-ssa/inline-10.c: New testcase.
1558 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
1559 * ipa-inline.h (clause_t): Turn into unsigned int.
1560 * ipa-inline-analysis.c (add_clause): Do more simplification.
1561 (and_predicates): Shortcut more cases.
1562 (predicates_equal_p): Move forward; check that clauses are properly
1563 ordered.
1564 (or_predicates): Shortcut more cases.
1565 (edge_execution_predicate): Rewrite as...
1566 (set_cond_stmt_execution_predicate): ... this function; handle
1567 __builtin_constant_p.
1568 (set_switch_stmt_execution_predicate): New .
1569 (compute_bb_predicates): New.
1570 (will_be_nonconstant_predicate): Update TODO.
1571 (estimate_function_body_sizes): Use compute_bb_predicates
1572 and free them later, always try to estimate if stmt is constant.
1573 (estimate_time_after_inlining, estimate_size_after_inlining):
1574 Gracefully handle optimized out edges.
1575 (read_predicate): Fix off by one error.
1576
1577 2011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
1578
1579 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
1580
1581 2011-04-27 Xinliang David Li <davidxl@google.com>
1582
1583 * tree-profile.c (init_ic_make_global_vars): Set
1584 tls attribute on ic vars.
1585 * coverage.c (coverage_end_function): Initialize
1586 function_list with zero.
1587
1588 2011-04-29 Richard Guenther <rguenther@suse.de>
1589
1590 * builtins.c (fold_builtin_classify_type): Use integer_type_node
1591 for the type of the result.
1592 (fold_builtin_isascii): Likewise.
1593 (fold_builtin_toascii): Use integer_type_node where appropriate.
1594 (fold_builtin_logb): Likewise.
1595 (fold_builtin_frexp): Likewise.
1596 (fold_builtin_strstr): Likewise.
1597 (fold_builtin_strpbrk): Likewise.
1598 (fold_builtin_fputs): Likewise.
1599 (fold_builtin_sprintf): Likewise.
1600 (fold_builtin_snprintf): Likewise.
1601 (fold_builtin_printf): Likewise.
1602 (do_mpfr_remquo): Use a proper type for the assigned constant.
1603 (do_mpfr_lgamma_r): Likewise.
1604 * dwarf2out.c (resolve_one_addr): Use size_int.
1605 * except.c (init_eh): Likewise.
1606 (assign_filter_values): Use integer_type_node for filter values.
1607 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
1608 indices.
1609 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
1610 for EH region numbers.
1611 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
1612 for the shift amount.
1613
1614 2011-04-29 Richard Guenther <rguenther@suse.de>
1615
1616 * expr.h (expand_shift): Rename to ...
1617 (expand_variable_shift): ... this.
1618 (expand_shift): Take a constant shift amount.
1619 * expmed.c (expand_shift): Rename to ...
1620 (expand_variable_shift): ... this.
1621 (expand_shift): New wrapper around expand_variable_shift.
1622 * expr.c (convert_move, emit_group_load_1, emit_group_store,
1623 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
1624 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
1625 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
1626 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
1627 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
1628 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
1629 emit_store_flag_1, emit_store_flag): Likewise.
1630 * builtins.c (expand_builtin_signbit): Likewise.
1631 * calls.c (load_register_parameters): Likewise.
1632 * function.c (assign_parm_setup_block): Likewise.
1633 * lower-subreg.c (resolve_shift_zext): Likewise.
1634 * optabs.c (widen_bswap, expand_abs_nojump,
1635 expand_one_cmpl_abs_nojump, expand_float): Likewise.
1636 * spu/spu.c (spu_expand_extv): Likewise.
1637 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
1638
1639 2011-04-29 Richard Guenther <rguenther@suse.de>
1640
1641 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
1642 for the remapped region number.
1643 * predict.c (build_predict_expr): Use integer_type_node for the
1644 predict kind.
1645 * fold-const.c (fold_binary_loc): Use integer_type_node for
1646 the shift amount. Use a proper type for the PLUS_EXPR operand.
1647
1648 2011-04-29 Michael Matz <matz@suse.de>
1649
1650 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
1651 other trees that just builtins.
1652 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
1653
1654 2011-04-29 Richard Guenther <rguenther@suse.de>
1655
1656 * tree-nested.c (get_trampoline_type): Use size_int.
1657 (get_nl_goto_field): Likewise.
1658 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
1659 for all indexes.
1660 (lower_eh_constructs_2): Likewise.
1661 (lower_resx): Likewise.
1662 (lower_eh_dispatch): Likewise.
1663 * tree-mudflap.c (mf_build_string): Use size_int.
1664 (mudflap_register_call): Use integer_type_node for the flag.
1665 (mudflap_enqueue_constant): Use size_int.
1666 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
1667 instead of rebuilding it.
1668
1669 2011-04-29 Richard Guenther <rguenther@suse.de>
1670
1671 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
1672 Handle OBJ_TYPE_REF.
1673 (find_func_aliases_for_call): Use it more consistently.
1674
1675 2011-04-29 Alexandre Oliva <aoliva@redhat.com>
1676
1677 * haifa-sched.c (last_nondebug_scheduled_insn): New.
1678 (rank_for_schedule): Use it.
1679 (schedule_block): Set it.
1680
1681 2011-04-28 David Li <davidxl@google.com>
1682
1683 * tree.c (crc32_string): Use crc32_byte.
1684 (crc32_byte): New function.
1685 * tree.h (crc32_byte): New function.
1686 * gcov.c (read_graph_file): Handle new cfg_cksum.
1687 (read_count_file): Ditto.
1688 * profile.c (instrument_values): Ditto.
1689 (get_exec_counts): Ditto.
1690 (read_profile_edge_counts): Ditto.
1691 (compute_branch_probabilities): Ditto.
1692 (compute_value_histograms): Ditto.
1693 (branch_prob): Ditto.
1694 (end_branch_prob): Ditto.
1695 * coverage.c (read_counts_file): Ditto.
1696 (get_coverage_counts): Ditto.
1697 (tree_coverage_counter_addr): Ditto.
1698 (coverage_checksum_string): Ditto.
1699 (coverage_begin_output): Ditto.
1700 (coverage_end_function): Ditto.
1701 (build_fn_info_type): Ditto.
1702 (build_fn_info_value): Ditto.
1703 * libgcov.c (gcov_exit): Ditto.
1704 * gcov-dump.c (tag_function): Ditto.
1705 (compute_checksum): Remove.
1706
1707 2011-04-29 Alan Modra <amodra@gmail.com>
1708
1709 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
1710 unspec plus offset. Tidy macho code.
1711
1712 2011-04-29 Martin Jambor <mjambor@suse.cz>
1713
1714 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
1715 node instead of a decl. Update all callers.
1716 * cgraph.h: Update declaration.
1717
1718 2011-04-28 Ira Rosen <ira.rosen@linaro.org>
1719
1720 PR tree-optimization/48765
1721 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
1722 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
1723 to indicate if loop aware SLP is being used. Scan the statements
1724 and update the vectorization factor according to the type of
1725 vectorization before statement analysis.
1726 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
1727 pass it to vect_analyze_loop_operations.
1728 (vectorizable_reduction): Set number of copies to 1 in case of pure
1729 SLP statement.
1730 * tree-vect-stmts.c (vectorizable_conversion,
1731 vectorizable_assignment, vectorizable_shift,
1732 vectorizable_operation, vectorizable_type_demotion,
1733 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
1734 Likewise.
1735 (vectorizable_condition): Move the check that it is not SLP
1736 vectorization before the number of copies check.
1737 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
1738 to vectorize the loop using SLP.
1739
1740 2011-04-28 Jakub Jelinek <jakub@redhat.com>
1741
1742 PR middle-end/48597
1743 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
1744 inline asm.
1745
1746 2011-04-28 Joseph Myers <joseph@codesourcery.com>
1747
1748 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
1749 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
1750 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
1751 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
1752 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
1753 linux*.h headers.
1754 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
1755 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1756 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1757 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1758 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
1759 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
1760 REG_NAME.
1761 * config/i386/linux.h (REG_NAME): Don't define.
1762 * config/i386/linux64.h (REG_NAME): Don't define.
1763 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
1764 Undefine before defining.
1765
1766 2011-04-28 Jan Hubicka <jh@suse.cz>
1767
1768 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
1769 nonconstant_names array.
1770 (estimate_function_body_sizes): Build nonconstant_names array; handle
1771 BUILT_IN_CONSTANT_P.
1772
1773 2011-04-28 Richard Guenther <rguenther@suse.de>
1774
1775 PR bootstrap/48804
1776 Revert
1777 2011-04-28 Richard Guenther <rguenther@suse.de>
1778
1779 * tree-ssa-structalias.c (solve_constraints): Build succ graph
1780 as late as possible.
1781
1782 2011-04-28 Richard Guenther <rguenther@suse.de>
1783
1784 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
1785 (debug_constraint): Do it here.
1786 (dump_constraints): And here.
1787 (rewrite_constraints): And here.
1788 (dump_constraint_edge): Remove.
1789 (dump_constraint_graph): Rewrite to produce DOT output.
1790 (solve_constraints): Build succ graph as late as possible.
1791 Dump constraint graphs before and after solving.
1792
1793 2011-04-28 Richard Guenther <rguenther@suse.de>
1794
1795 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
1796 New function split out from ...
1797 (find_func_aliases): ... here. Call it.
1798 (find_func_aliases_for_call): Likewise.
1799
1800 2011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
1801
1802 * internal-fn.h (internal_fn_name_array): Declare.
1803 (internal_fn_flags_array): Likewise.
1804
1805 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1806
1807 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
1808 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
1809 Move from sse.md.
1810 (ssemodefsuffix): Remove.
1811 (ssevecmodesuffix): New mode attribute.
1812 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
1813 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
1814 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
1815 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
1816 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
1817 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
1818 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
1819 ssemodesuffix mode attribute.
1820 (float splitters): Use ssevecmodesuffix mode attribute.
1821 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
1822 (sseinsmode): Rename from avxvecmode.
1823 (avxsizesuffix): Rename from avxmodesuffix.
1824 (sseintvecmode): Rename from avxpermvecmode.
1825 (ssedoublevecmode): Rename from ssedoublesizemode.
1826 (ssehalfvecmode): Rename from avxhalfvecmode.
1827 (ssescalarmode): Rename from avxscalarmode.
1828 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
1829 templates for ssemodesuffix mode attribute.
1830 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
1831 mode attribute.
1832
1833 Adjust RTX patterns globally for renamed mode attributes.
1834
1835 2011-04-27 Jan Hubcika <jh@suse.cz>
1836
1837 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
1838 * ipa-inline-analysis.c: Include alloc-pool.h.
1839 (edge_predicate_pool): New.
1840 (trye_predicate_p): New function
1841 (false_predicate_p): New function.
1842 (add_clause): Sanity check that false clauses are "optimized";
1843 never add clauses to predicate that is already known to be false.
1844 (and_predicate): Use flase_predicate_p.
1845 (evaulate_predicate): Rename to ...
1846 (evaluate_predicate): ... this one; update all callers; assert
1847 that false is not listed among possible truths.
1848 (dump_predicate): Use true_predicate_p.
1849 (account_size_time): Use false_predicate_p.
1850 (evaulate_conditions_for_edge): Rename to ...
1851 (evaluate_conditions_for_edge) ... this one.
1852 (edge_set_predicate): New function.
1853 (inline_edge_duplication_hook): Duplicate edge predicates.
1854 (inline_edge_removal_hook): Free edge predicates.
1855 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
1856 (dump_inline_summary): Update.
1857 (estimate_function_body_sizes): Set edge predicates.
1858 (estimate_calls_size_and_time): Handle predicates.
1859 (estimate_callee_size_and_time): Update.
1860 (remap_predicate): Add toplev_predicate; update comment.
1861 (remap_edge_predicates): New function.
1862 (inline_merge_summary): Compute toplev predicate; update.
1863 (read_predicate): New function.
1864 (read_inline_edge_summary): Use it.
1865 (inline_read_section): Likewise.
1866 (write_predicate): New function.
1867 (write_inline_edge_summary): Use it.
1868 (inline_write_summary): Likewise.
1869 (inline_free_summary): Free alloc pool and edge summary vec.
1870
1871 2011-04-27 Richard Guenther <rguenther@suse.de>
1872
1873 * tree-ssa-structalias.c (changed_count): Remove.
1874 (changed): Use a bitmap.
1875 (unify_nodes): Adjust.
1876 (do_sd_constraint): Likewise.
1877 (do_ds_constraint): Likewise.
1878 (do_complex_constraint): Likewise.
1879 (solve_graph): Likewise.
1880
1881 2011-04-27 Jan Hubicka <jh@suse.cz>
1882
1883 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
1884
1885 2011-04-27 Uros Bizjak <ubizjak@gmail.com>
1886
1887 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
1888 (avx_vperm2f128_*_operand): Ditto.
1889 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
1890 Use avx_vpermilp_parallel in insn condition.
1891 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
1892 Use avx_vperm2f128_parallel in insn condition.
1893
1894 2011-04-27 Richard Guenther <rguenther@suse.de>
1895
1896 * Makefile.in (tree-ssa-structalias.o): Remove
1897 gt-tree-ssa-structalias.h dependency.
1898 (GTFILES): Remove tree-ssa-structalias.c.
1899 * tree.c (allocate_decl_uid): New function.
1900 (make_node_stat): Use it.
1901 (copy_node_stat): Likewise.
1902 * tree.h (allocate_decl_uid): Declare.
1903 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
1904 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
1905 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
1906 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
1907 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
1908 (struct heapvar_map): Likewise.
1909 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
1910 heapvar_insert): Likewise.
1911 (make_heapvar_for): Rename to ...
1912 (make_heapvar): ... this. Simplify.
1913 (fake_var_decl_obstack): New global var.
1914 (build_fake_var_decl): New function.
1915 (make_constraint_from_heapvar): Adjust.
1916 (handle_lhs_call): Likewise.
1917 (create_function_info_for): Likewise.
1918 (intra_create_variable_infos): Likewise.
1919 (init_alias_vars): Allocate fake_var_decl_obstack.
1920 (init_alias_heapvars, delete_alias_heapvars): Remove.
1921 (compute_points_to_sets): Do not call init_alias_heapvars.
1922 (ipa_pta_execute): Likewise.
1923 (delete_points_to_sets): Free fake_var_decl_obstack.
1924
1925 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1926
1927 * config/spu/divmovti4.c (union qword_UTItype): New data type.
1928 (si_from_UTItype, si_to_UTItype): New functions.
1929 (__udivmodti4): Use them to implement type-punning.
1930 * config/spu/multi3.c (union qword_TItype): New data type.
1931 (si_from_TItype, si_to_TItype): New functions.
1932 (__multi3): Use them to implement type-punning.
1933
1934 2011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1935
1936 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
1937
1938 2011-04-27 Jan Hubicka <jh@suse.cz>
1939
1940 * ipa-prop.c (function_insertion_hook_holder): New holder.
1941 (ipa_add_new_function): New function.
1942 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
1943 Register/deregister holder.
1944
1945 2011-04-27 Richard Guenther <rguenther@suse.de>
1946
1947 PR tree-optimization/48772
1948 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
1949
1950 2011-04-27 Richard Guenther <rguenther@suse.de>
1951
1952 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
1953 TARGET_MEM_REF handling.
1954
1955 2011-04-27 Nick Clifton <nickc@redhat.com>
1956
1957 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
1958 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
1959 (REG_CLASS_NAMES): Likewise.
1960 (REG_CLASS_CONTENTS): Likewise.
1961 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1962 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
1963 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
1964 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
1965 (EVEN_REGS): New macro. Alias for QUAD_REGS.
1966 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
1967 duplicate register classes.
1968 (frv_class_likely_spilled_p): Likewise.
1969 (frv_register_move_cost): Likewise.
1970
1971 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
1972 end of the regno_reg_class array.
1973
1974 2011-04-27 Jakub Jelinek <jakub@redhat.com>
1975
1976 PR c/48742
1977 * c-typeck.c (build_binary_op): Don't wrap arguments if
1978 int_operands is true.
1979
1980 2011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
1981
1982 PR target/48767
1983 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
1984 targetm.calls.must_pass_in_stack for void type.
1985
1986 2011-04-26 Jan Hubicka <jh@suse.cz>
1987
1988 * cgraphbuild.c (build_cgraph_edges): Update call
1989 of cgraph_create_edge and cgraph_create_indirect_edge.
1990 * cgraph.c (cgraph_create_edge_including_clones,
1991 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
1992 cgraph_update_edges_for_call_stmt_node): Do not take nest
1993 argument; do not initialize call_stmt_size/time.
1994 (dump_cgraph_node): Do not dump nest.
1995 (cgraph_clone_edge): Do not take loop_nest argument;
1996 do not propagate it; do not clone call_stmt_size/time.
1997 (cgraph_clone_node): Likewise.
1998 (cgraph_create_virtual_clone): Update.
1999 * cgraph.h (struct cgraph_edge): Remove
2000 call_stmt_size/call_stmt_time/loop_nest.
2001 (cgraph_create_edge, cgraph_create_indirect_edge,
2002 cgraph_create_edge_including_clones, cgraph_clone_node): Update
2003 prototype.
2004 * tree-emutls.c (gen_emutls_addr): Update.
2005 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
2006 loop_nest; handle indirect calls, too.
2007 (clone_inlined_nodes): Do not care about updating inline summaries.
2008 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
2009 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
2010 stream call_stmt_size/call_stmt_time/loop_nest.
2011 * ipa-inline.c (edge_badness): Update.
2012 (ipa_inline): dump summaries after inlining.
2013 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
2014 New.
2015 (inline_edge_summary): New function.
2016 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
2017 (inline_edge_removal_hook): Handle edge summaries.
2018 (inline_edge_duplication_hook): New hook.
2019 (inline_summary_alloc): Alloc hooks.
2020 (initialize_growth_caches): Do not register removal hooks.
2021 (free_growth_caches); Do not free removal hook.
2022 (dump_inline_edge_summary): New function.
2023 (dump_inline_summary): Use it.
2024 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
2025 (inline_update_callee_summaries): New function.
2026 (inline_merge_summary): Use it.
2027 (do_estimate_edge_time, do_estimate_edge_growth): Update.
2028 (read_inline_edge_summary): New function.
2029 (inline_read_section): Use it.
2030 (write_inline_edge_summary): New function.
2031 (inline_write_summary): Use it.
2032 (inline_free_summary): Free edge new holders.
2033 * tree-inline.c (copy_bb): Update.
2034
2035 2011-04-26 Jason Merrill <jason@redhat.com>
2036
2037 * tree-eh.c (lower_try_finally_switch): Create the label along with
2038 the CASE_LABEL_EXPR.
2039
2040 2011-04-26 David S. Miller <davem@davemloft.net>
2041 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2042
2043 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
2044 * configure: Regenerate.
2045
2046 2011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
2047
2048 PR target/48258
2049 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
2050 reduction.
2051 (VEC_reduc): New code iterator and splitters for vector reduction.
2052 (VEC_reduc_name): Ditto.
2053 (VEC_reduc_rtx): Ditto.
2054 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
2055 (reduc_<VEC_reduc_name>_v4sf): Ditto.
2056
2057 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
2058 support for extracting SF on VSX.
2059
2060 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
2061 generating xscvspdp.
2062 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
2063 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
2064 double add, minimum, maximum vector reduction.
2065 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
2066 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
2067 optimize double vector reduction.
2068 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
2069
2070 2011-04-26 Joseph Myers <joseph@codesourcery.com>
2071
2072 * config/fr30/fr30.h (inhibit_libc): Don't define.
2073 * config/m32r/m32r-protos.h: Correct comment.
2074 * config/v850/v850.h (GHS_default_section_names,
2075 GHS_current_section_names): Use tree, not union tree_node *.
2076
2077 2011-04-26 Xinliang David Li <davidxl@google.com>
2078
2079 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2080 * c-family/c-opts.c (c_common_handle_option): Set
2081 warn_maybe_uninitialized.
2082 * opts.c (common_handle_option): Ditto.
2083 * common.opt: New option.
2084 * tree-ssa.c (warn_uninit): Add one more parameter.
2085 (warn_uninitialized_var): Pass warning code.
2086 * tree-flow.h: Interface change.
2087
2088
2089 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2090
2091 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
2092 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
2093 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
2094
2095 2011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2096
2097 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
2098 * config/mips/mips.opt (mmips-tfile): Remove.
2099
2100 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
2101 mips-tdump reference to ...
2102 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
2103 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
2104 reference by Tru64 UNIX.
2105
2106 2011-04-26 Jakub Jelinek <jakub@redhat.com>
2107
2108 PR debug/48768
2109 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
2110 is error_mark_node, set value to NULL.
2111
2112 PR tree-optimization/48734
2113 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
2114 if return value from maybe_fold_*_comparsions isn't something
2115 the code is prepared to handle.
2116
2117 2011-04-26 Uros Bizjak <ubizjak@gmail.com>
2118
2119 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
2120 mode check.
2121 (ext_QIreg_nomode_operands): Remove.
2122 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
2123 (*andsi_1): Ditto.
2124 (*andhi_1): Ditto.
2125
2126 2011-04-26 Andrew Stubbs <ams@codesourcery.com>
2127
2128 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
2129
2130 2011-04-26 Richard Guenther <rguenther@suse.de>
2131
2132 * c-typeck.c (build_unary_op): Do not expand array-refs via
2133 pointer arithmetic. Only adjust qualifiers for function types.
2134
2135 2011-04-26 Richard Guenther <rguenther@suse.de>
2136
2137 PR middle-end/48694
2138 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
2139 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
2140 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
2141 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
2142
2143 2011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
2144
2145 * c-family/c-common.c (struct c_common_resword): Add __underlying_type.
2146 * c-family/c-common.h (enum rid): Add RID_UNDERLYING_TYPE.
2147 * doc/extend.texi: Document __underlying_type.
2148
2149 2011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
2150
2151 * config/rs6000/titan.md (automata_option "progress"): Remove.
2152
2153 2011-04-25 Jeff Law <law@redhat.com>
2154
2155 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
2156
2157 2011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2158
2159 * system.h (ENUM_BITFIELD): Remove.
2160
2161 2011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
2162 Eric Botcazou <ebotcazou@adacore.com>
2163
2164 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
2165 for STORE_FLAG_VALUE==-1 case.
2166
2167 2011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
2168
2169 PR target/43804
2170 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
2171 LEGITIMATE_PIC_OPERAND_P.
2172
2173 2011-04-24 Jan Hubicka <jh@suse.cz>
2174
2175 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
2176 WPA hack.
2177 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
2178 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
2179 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
2180 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
2181 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
2182 Sanity check predicate length.
2183 (remap_predicate): Likewise; sanity check jump functions.
2184 (inline_read_section, inline_write_summary): Sanity check
2185 predicate length.
2186
2187 2011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
2188
2189 PR other/48748
2190 * doc/extend.texi (Type Traits): Document __is_standard_layout,
2191 __is_literal_type, and __is_trivial; update throughout about
2192 possibly cv-qualified void types.
2193
2194 2011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
2195
2196 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
2197 testsuite and make it version agnostic.
2198
2199 2011-04-22 Jan Hubicka <jh@suse.cz>
2200
2201 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
2202
2203 2011-04-23 Jakub Jelinek <jakub@redhat.com>
2204
2205 PR c/48685
2206 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
2207 to VOID_TYPE even around MODIFY_EXPR.
2208
2209 2011-04-22 Mike Stump <mikestump@comcast.net>
2210
2211 * gensupport.c (read_md_rtx): Fix typo in comment.
2212 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
2213 comment.
2214
2215 2011-04-22 Jan Hubicka <jh@suse.cz>
2216
2217 * gengtype.c (open_base_files): Add ipa-inline.h include.
2218 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
2219 ipa-prop.c; update all uses.
2220 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
2221 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
2222 merge summary of inlined function into former caller.
2223 * ipa-inline.c (max_benefit): Remove.
2224 (edge_badness): Compensate for removal of benefits.
2225 (update_caller_keys): Use
2226 reset_node_growth_cache/reset_edge_growth_cache.
2227 (update_callee_keys): Likewise.
2228 (update_all_callee_keys): Likewise.
2229 (inline_small_functions): Do not collect max_benefit; do not reset
2230 estimated_growth; call free_growth_caches and initialize_growth_caches.
2231 * ipa-inline.h (struct condition, type clause_t, struct predicate,
2232 struct size_time_entry): New structures.
2233 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
2234 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
2235 and estimated_growth.
2236 (edge_growth_cache_entry): New structure.
2237 (node_growth_cache, edge_growth_cache): New global vars.
2238 (estimate_growth): Turn into inline.
2239 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
2240 initialize_growth_caches, free_growth_caches): Declare.
2241 (estimate_edge_growth): Rewrite.
2242 (estimate_edge_time): Implement as inline cache lookup.
2243 (reset_node_growth_cache, reset_edge_growth_cache): New inline
2244 functions.
2245 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
2246 (NUM_CONDITIONS): New constant.
2247 (predicate_conditions): New enum.
2248 (IS_NOT_CONSTANT): New constant.
2249 (edge_removal_hook_holder): New var.
2250 (node_growth_cache, edge_growth_cache): New global vars.
2251 (true_predicate, single_cond_predicate, false_predicate,
2252 not_inlined_predicate, add_condition, add_clause, and_predicates,
2253 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
2254 dump_clause, dump_predicate, account_size_time,
2255 evaulate_conditions_for_edge): New functions.
2256 (inline_summary_alloc): Move to heap.
2257 (inline_node_removal_hook): Clear condition and entry vectors.
2258 (inline_edge_removal_hook): New function.
2259 (initialize_growth_caches, free_growth_caches): New function.
2260 (dump_inline_summary): Update.
2261 (edge_execution_predicate): New function.
2262 (will_be_nonconstant_predicate): New function.
2263 (estimate_function_body_sizes): Compute BB and constantness predicates.
2264 (compute_inline_parameters): Do not clear estimated_growth.
2265 (estimate_edge_size_and_time): New function.
2266 (estimate_calls_size_and_time): New function.
2267 (estimate_callee_size_and_time): New function.
2268 (remap_predicate): New function.
2269 (inline_merge_summary): New function.
2270 (do_estimate_edge_time): New function based on...
2271 (estimate_edge_time): ... this one.
2272 (do_estimate_edge_growth): New function.
2273 (do_estimate_growth): New function based on....
2274 (estimate_growth): ... this one.
2275 (inline_analyze_function): Analyze after deciding on jump functions.
2276 (inline_read_section): New function.
2277 (inline_read_summary): Use it.
2278 (inline_write_summary): Write all the new data.
2279 * ipa-prop.c (ipa_get_param_decl_index): Export.
2280 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
2281 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
2282 Declare.
2283 (ipa_get_lattice): Move here from ipa-cp.c
2284 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
2285 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
2286 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
2287 cgraph_edge_inlinable_p): Remove.
2288 * cgraphunit.c: Include ipainline.h
2289 (cgraph_process_new_functions): Update call of
2290 compute_inline_parameters.
2291
2292 2011-04-22 Richard Guenther <rguenther@suse.de>
2293
2294 * tree.c (build_int_cst): Properly create canonicalized integer
2295 constants.
2296 (build_int_cst_type): Remove scary comments.
2297
2298 2011-04-22 Xinliang David Li <davidxl@google.com>
2299
2300 * toplev.c (process_options): Enable -Werror=coverage-mismatch
2301 by default when -Wno-error is not specified.
2302 * opts-global.c (decode_options): Remove call to
2303 control_warning_options.
2304
2305 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2306
2307 PR tree-optimization/48717
2308 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
2309 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
2310
2311 2011-04-22 Joseph Myers <joseph@codesourcery.com>
2312
2313 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
2314 definition where used.
2315
2316 2011-04-22 Jakub Jelinek <jakub@redhat.com>
2317
2318 PR c/48716
2319 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
2320 TREE_STATIC variables declared inside of some OpenMP construct.
2321
2322 2011-04-22 Martin Jambor <mjambor@suse.cz>
2323
2324 PR middle-end/48585
2325 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
2326
2327 2011-04-22 Alexander Monakov <amonakov@ispras.ru>
2328
2329 PR c/36750
2330 * c-typeck.c (pop_init_level): Do not warn about initializing
2331 with ` = {0}'.
2332
2333 2011-04-22 Alan Modra <amodra@gmail.com>
2334
2335 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
2336 when returning call_cookie.
2337 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
2338 pointers, to functions with no more vector args than the current
2339 function, and some non-local calls for ABI_V4.
2340 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
2341 sibcall_nonlocal_aix64): Combine to ..
2342 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
2343 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
2344 (sibcall_value_nonlocal_aix<mode>): ..likewise.
2345 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
2346 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
2347 operand.
2348 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
2349 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
2350 sibcall_value_symbolic_64): Delete.
2351
2352 2011-04-21 Xinliang David Li <davidxl@google.com>
2353
2354 * cgraph.h: Remove pid.
2355 * cgraph.c: Remove pid.
2356 * value-prof.c (init_node_map): New function.
2357 (del_node_map): New function.
2358 (find_func_by_funcdef_no): New function.
2359 (gimple_ic_transform): Call new function.
2360 * cgraphunit.c (cgraph_finalize_function): Remove pid.
2361 * function.c (get_last_funcdef_no): New function.
2362 * function.h (get_last_funcdef_no): New function.
2363 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
2364 to libgcov function.
2365 (tree-profiling): Call node map init and delete function.
2366
2367 2011-04-21 Ian Lance Taylor <iant@google.com>
2368
2369 * godump.c (go_format_type): Use exported Go name for anonymous
2370 field name.
2371
2372 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2373
2374 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
2375 Call builtin_function_type_list instead of builtin_function_type.
2376 (UNARY, BINARY, TRINARY, QUAD): Likewise.
2377
2378 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2379
2380 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
2381 build_function_type_list instead of build_function_type.
2382 Delete variable `endlink'.
2383
2384 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2385
2386 * config/s390/s390.c (s390_init_builtins): Call
2387 build_function_type_list instead of build_function_type.
2388
2389 2011-04-21 Nathan Froyd <froydnj@codesourcery.com>
2390
2391 * config/ia64/ia64.c (ia64_init_builtins): Call
2392 build_function_type_list instead of builtin_function_type.
2393
2394 2011-04-21 Easwaran Raman <eraman@google.com>
2395
2396 * cfgexpand.c (stack_var): Remove OFFSET...
2397 (add_stack_var): ...and its reference here...
2398 (expand_stack_vars): ...and here.
2399 (stack_var_cmp): Sort by descending order of size.
2400 (partition_stack_vars): Change heuristic.
2401 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
2402 (dump_stack_var_partition): Add newline after each partition.
2403
2404 2011-04-21 Dimitrios Apostolou <jimis@gmx.net>
2405 Jeff Law <law@redhat.com>
2406
2407 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
2408 * gengtype.c (matching_file_name_substitute): Likewise.
2409
2410 2011-04-21 Richard Guenther <rguenther@suse.de>
2411
2412 PR lto/48703
2413 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
2414
2415 2011-04-21 Eric Botcazou <ebotcazou@adacore.com>
2416
2417 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
2418
2419 2011-04-21 Richard Guenther <rguenther@suse.de>
2420
2421 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
2422 file name.
2423
2424 2011-04-21 Richard Guenther <rguenther@suse.de>
2425
2426 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2427 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
2428 Use DECL_P, not SSA_VAR_P.
2429 (ptr_derefs_may_alias_p): Likewise.
2430 (ptr_deref_may_alias_ref_p_1): Likewise.
2431 (decl_refs_may_alias_p): Likewise.
2432 (refs_may_alias_p_1): Likewise.
2433 (ref_maybe_used_by_call_p_1): Likewise.
2434 (call_may_clobber_ref_p_1): Likewise.
2435 (indirect_ref_may_alias_decl_p): Assume indirect refrences
2436 are either MEM_REF or TARGET_MEM_REF.
2437 (indirect_refs_may_alias_p): Likewise.
2438 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
2439 for MEM_EXPR of indirect calls.
2440
2441 2011-04-21 Tristan Gingold <gingold@adacore.com>
2442
2443 * vmsdbgout.c (write_srccorr): Compute file length from the string.
2444 (dst_file_info_struct): Remove flen field.
2445 (lookup_filename): Remove code that set flen field.
2446
2447 2011-04-21 Tristan Gingold <gingold@adacore.com>
2448
2449 * config/ia64/ia64.c (ia64_start_function): Add a guard.
2450
2451 2011-04-21 Uros Bizjak <ubizjak@gmail.com>
2452
2453 PR target/48708
2454 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
2455 vec_extract and vec_concat for non-SSE4_1 targets.
2456
2457 2011-04-21 Richard Guenther <rguenther@suse.de>
2458
2459 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
2460 return statements.
2461
2462 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2463
2464 * config/i386/cygming.h (union tree_node, TREE): Don't define or
2465 undefine.
2466 (FILE): Don't undefine.
2467
2468 2011-04-21 Joseph Myers <joseph@codesourcery.com>
2469
2470 * config/alpha/alpha.c (struct machine_function): Use rtx, not
2471 struct rtx_def *.
2472 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
2473 struct rtx_def *.
2474 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2475 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
2476 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
2477 rtx_def *.
2478 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
2479 definitions where used.
2480 * config/microblaze/microblaze.h (struct microblaze_args): Use
2481 rtx, not struct rtx_def *.
2482 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
2483 rtx_def *.
2484 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
2485 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
2486 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
2487 not struct rtx_def *.
2488 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
2489 struct rtx_def *.
2490 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
2491 rtx_def *.
2492 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
2493
2494 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2495
2496 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
2497 operand_equal_p to compare DR_BASE_ADDRESSes.
2498 (vect_check_interleaving): Likewise.
2499
2500 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2501
2502 PR target/46329
2503 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
2504 for all Neon struct constants.
2505
2506 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2507
2508 * target.def (legitimate_constant_p): New hook.
2509 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
2510 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
2511 * doc/tm.texi: Regenerate.
2512 * hooks.h (hook_bool_mode_rtx_true): Declare.
2513 * hooks.c (hook_bool_mode_rtx_true): Define.
2514 * system.h (LEGITIMATE_CONSTANT_P): Poison.
2515 * calls.c (precompute_register_parameters): Replace uses of
2516 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
2517 (emit_library_call_value_1): Likewise.
2518 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
2519 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
2520 * ira-costs.c (scan_one_insn): Likewise.
2521 * recog.c (general_operand, immediate_operand): Likewise.
2522 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
2523 * reload1.c (init_eliminable_invariants): Likewise.
2524
2525 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
2526 mode argument.
2527 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
2528 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
2529 argument.
2530 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2531 * config/alpha/predicates.md (input_operand): Update call to
2532 alpha_legitimate_constant_p.
2533
2534 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
2535 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
2536 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
2537 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2538 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
2539 (arm_legitimate_constant_p): New functions.
2540 (arm_cannot_force_const_mem): Make static.
2541
2542 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
2543
2544 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
2545 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
2546 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
2547 instead of bfin_legitimate_constant_p.
2548 (bfin_legitimate_constant_p): Make static. Add a mode argument.
2549 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2550
2551 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
2552
2553 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
2554
2555 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
2556 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
2557 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2558 (frv_legitimate_constant_p): Make static. Add a mode argument.
2559
2560 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
2561 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
2562 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
2563
2564 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
2565 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
2566 * config/i386/i386.c (legitimate_constant_p): Rename to...
2567 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
2568 argument.
2569 (ix86_cannot_force_const_mem): Update accordingly.
2570 (ix86_legitimate_address_p): Likewise.
2571 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2572 * config/i386/i386.md: Update commentary.
2573
2574 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
2575 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
2576 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2577 (ia64_legitimate_constant_p): Make static. Add a mode argument.
2578
2579 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
2580
2581 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
2582 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
2583 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2584 (lm32_legitimate_constant_p): Make static. Add a mode argument.
2585
2586 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
2587 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
2588 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
2589
2590 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
2591 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2592 (m32r_legitimate_constant_p): New function.
2593
2594 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
2595 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
2596 LEGITIMATE_CONSTANT_P.
2597 (LEGITIMATE_CONSTANT_P): Delete.
2598 * config/m68k/m68k.c (m68k_expand_prologue): Call
2599 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
2600 (m68k_legitimate_constant_p): New function.
2601 * config/m68k/m68k.md: Update comments.
2602
2603 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
2604 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2605 (mcore_legitimate_constant_p): New function.
2606
2607 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
2608 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
2609 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
2610 Add a mode argument.
2611 (mep_legitimate_address): Update accordingly.
2612 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2613
2614 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
2615 Delete.
2616 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
2617 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
2618 static. Check OP's mode for VOIDmode.
2619 (microblaze_legitimate_constant_p): New function.
2620 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2621
2622 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
2623 * config/mips/mips.c (mips_legitimate_constant_p): New function.
2624 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
2625 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2626 * config/mips/predicates.md: Update comments.
2627
2628 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
2629 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
2630 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2631 (mmix_legitimate_constant_p): Make static, return a bool, and take
2632 a mode argument.
2633 (mmix_print_operand_address): Update accordingly.
2634
2635 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
2636 Delete.
2637 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2638 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
2639 static. Add a mode argument.
2640 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2641
2642 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
2643
2644 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
2645 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2646 (pa_legitimate_constant_p): New function.
2647
2648 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
2649
2650 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
2651 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2652 (pdp11_legitimate_constant_p): New function.
2653
2654 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
2655 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2656 (rs6000_legitimate_constant_p): New function.
2657
2658 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
2659 (rx_legitimate_constant_p): ...this.
2660 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
2661 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
2662 (rx_legitimate_constant_p): ...this.
2663 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2664 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
2665
2666 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
2667 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
2668 * config/s390/s390.c (legitimate_constant_p): Rename to...
2669 (s390_legitimate_constant_p): ...this. Make static, return a bool,
2670 and add a mode argument.
2671 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2672
2673 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
2674
2675 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
2676 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2677 (sh_legitimate_constant_p): New function.
2678
2679 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
2680 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
2681 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2682 (legitimate_constant_p): Rename to...
2683 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
2684 argument.
2685 (constant_address_p): Update accordingly.
2686
2687 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
2688 argument and return a bool.
2689 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
2690 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2691 (spu_legitimate_constant_p): Add a mode argument and return a bool.
2692 (spu_rtx_costs): Update accordingly.
2693 * config/spu/predicates.md (vec_imm_operand): Likewise.
2694
2695 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
2696
2697 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
2698 * config/v850/v850.c (v850_legitimate_constant_p): New function.
2699 (TARGET_LEGITIMATE_CONSTANT_P): Define.
2700
2701 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
2702 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
2703 * config/vax/vax.c (legitimate_constant_p): Likewise.
2704
2705 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
2706 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
2707 (xtensa_legitimate_constant_p): New function.
2708
2709 2011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
2710
2711 * target.def (cannot_force_const_mem): Add a mode argument.
2712 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
2713 * doc/tm.texi: Regenerate.
2714 * hooks.h (hook_bool_mode_rtx_false): Declare.
2715 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
2716 (hook_bool_mode_const_rtx_true): Likewise.
2717 (hook_bool_mode_rtx_false): New function.
2718 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
2719 to be non-VOID. Update call to cannot_force_const_mem.
2720 (find_reloads): Update accordingly.
2721 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
2722 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
2723 argument.
2724 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
2725 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
2726 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
2727 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
2728 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
2729 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
2730 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
2731 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2732 (m68k_cannot_force_const_mem): ...this new function.
2733 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
2734 argument.
2735 (mips_const_insns, mips_legitimize_const_move): Update calls.
2736 (mips_secondary_reload_class): Likewise.
2737 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
2738 (pa_cannot_force_const_mem): ...this new function.
2739 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
2740 (rs6000_cannot_force_const_mem): ...this new function.
2741 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
2742 argument.
2743 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
2744 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
2745 to...
2746 (xtensa_cannot_force_const_mem): ...this new function.
2747
2748 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2749
2750 * config/mips/mips.c (mips16_build_function_stub): Call
2751 build_function_type_list instead of build_function_type.
2752 (mips16_build_call_stub): Likewise.
2753
2754 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2755
2756 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
2757 instead of build_function_type.
2758
2759 2011-04-20 Nathan Froyd <froydnj@codesourcery.com>
2760
2761 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
2762 instead of build_function_type.
2763
2764 2011-04-20 Uros Bizjak <ubizjak@gmail.com>
2765
2766 PR target/48678
2767 * config/i386/i386.md (insv): Change operand 0 constraint to
2768 "register_operand". Change operand 1 and 2 constraint to
2769 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
2770 * config/i386/sse.md (sse4_1_pinsrb): Export.
2771 (sse2_pinsrw): Ditto.
2772 (sse4_1_pinsrd): Ditto.
2773 (sse4_1_pinsrq): Ditto.
2774 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
2775 * config/i386/i386.c (ix86_expand_pinsr): New.
2776
2777 2011-04-20 Easwaran Raman <eraman@google.com>
2778
2779 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
2780 containing union type only with -fstrict-aliasing.
2781
2782 2011-04-20 Jim Meyering <meyering@redhat.com>
2783
2784 Remove useless if-before-free tests.
2785 * calls.c (expand_call, save_area): Likewise.
2786 * cfgcleanup.c (try_forward_edges): Likewise.
2787 * collect2.c (collect_execute): Likewise.
2788 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
2789 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
2790 * coverage.c (coverage_checksum_string): Likewise.
2791 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
2792 * cselib.c (cselib_init): Likewise.
2793 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
2794 (df_set_clean_cfg): Likewise.
2795 * function.c (free_after_compilation): Likewise.
2796 * gcc.c (do_spec_1, main): Likewise.
2797 * gcov.c (create_file_names): Likewise.
2798 * gensupport.c (identify_predicable_attribute): Likewise.
2799 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
2800 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
2801 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
2802 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
2803 * ipa-pure-const.c (local_pure_const): Likewise.
2804 * ipa-reference.c (propagate): Likewise.
2805 * ira-costs.c (free_ira_costs): Likewise.
2806 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
2807 * matrix-reorg.c (mat_free): Likewise.
2808 * prefix.c (get_key_value): Likewise.
2809 * profile.c (compute_value_histograms): Likewise.
2810 * reload1.c (free_reg_equiv): Likewise.
2811 * sched-deps.c (free_deps): Likewise.
2812 * sel-sched-ir.c (fence_clear): Likewise.
2813 * sese.c (set_rename, if_region_set_false_region): Likewise.
2814 * tree-data-ref.c (free_rdg): Likewise.
2815 * tree-eh.c (lower_try_finally): Likewise.
2816 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
2817 * tree-ssa-live.c (delete_var_map): Likewise.
2818 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
2819 * tree-ssa-pre.c (phi_trans_add): Likewise.
2820
2821 2011-04-20 Jakub Jelinek <jakub@redhat.com>
2822
2823 PR tree-optimization/48611
2824 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
2825 beyond ERT_MUST_NOT_THROW region.
2826
2827 2011-04-20 Catherine Moore <clm@codesourcery.com>
2828
2829 * config/mips/mips.opt (mfix-24k): New.
2830 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
2831 * config/mips/mips.md (length): Increase by 4 for stores if
2832 fixing 24K errata.
2833 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
2834 all noreorder if fixing 24K errata.
2835 * doc/invoke.texi: Document mfix-24k.
2836
2837 2011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
2838
2839 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2840 quad-word modes, reduce to 9-bit index range when above 1016 limit.
2841
2842 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2843
2844 * config/arm/arm.c (arm_gen_constant): Move movw support ....
2845 (const_ok_for_op): ... to here.
2846
2847 2011-04-20 Kai Tietz <ktietz@redhat.com>
2848
2849 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
2850 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
2851
2852 2011-04-20 Andrew Stubbs <ams@codesourcery.com>
2853
2854 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
2855
2856 2011-04-20 Richard Guenther <rguenther@suse.de>
2857
2858 PR tree-optimization/47892
2859 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
2860 are if-convertible.
2861
2862 2011-04-20 Eric Botcazou <ebotcazou@adacore.com>
2863
2864 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
2865
2866 2011-04-20 Tristan Gingold <gingold@adacore.com>
2867
2868 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
2869
2870 2011-04-20 Georg-Johann Lay <avr@gjlay.de>
2871
2872 PR target/18145
2873
2874 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
2875 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
2876 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
2877 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
2878 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
2879
2880 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
2881 New prototype.
2882
2883 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
2884 (avr_asm_named_section, avr_asm_output_aligned_common,
2885 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
2886 New functions to update...
2887 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
2888 (avr_asm_init_sections): Overwrite section callbacks for
2889 data_section, bss_section.
2890 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
2891 from here to...
2892 (avr_file_end): ...here.
2893
2894 2011-04-20 Richard Guenther <rguenther@suse.de>
2895
2896 PR middle-end/48695
2897 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2898 objects and types here. Adjust for their offset before comparing.
2899
2900 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2901
2902 * tree-vect-stmts.c (vectorizable_store): Only chain one related
2903 statement per copy.
2904
2905 2011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
2906
2907 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
2908 (GIMPLE_H): Include $(INTERNAL_FN_H).
2909 (OBJS-common): Add internal-fn.o.
2910 (internal-fn.o): New rule.
2911 * internal-fn.def: New file.
2912 * internal-fn.h: Likewise.
2913 * internal-fn.c: Likewise.
2914 * gimple.h: Include internal-fn.h.
2915 (GF_CALL_INTERNAL): New gf_mask.
2916 (gimple_statement_call): Put fntype into a union with a new
2917 internal_fn field.
2918 (gimple_build_call_internal): Declare.
2919 (gimple_build_call_internal_vec): Likewise.
2920 (gimple_call_same_target_p): Likewise.
2921 (gimple_call_internal_p): New function.
2922 (gimple_call_internal_fn): Likewise.
2923 (gimple_call_fntype): Return null for internal calls.
2924 (gimple_call_set_fntype): Assert that the function is not internal.
2925 (gimple_call_set_fn): Likewise.
2926 (gimple_call_set_fndecl): Likewise.
2927 (gimple_call_set_internal_fn): New function.
2928 (gimple_call_addr_fndecl): Handle null functions.
2929 (gimple_call_return_type): Likewise null types.
2930 * gimple.c (gimple_build_call_internal_1): New function.
2931 (gimple_build_call_internal): Likewise.
2932 (gimple_build_call_internal_vec): Likewise.
2933 (gimple_call_same_target_p): Likewise.
2934 (gimple_call_flags): Handle calls to internal functions.
2935 (gimple_call_fnspec): New function.
2936 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
2937 (gimple_has_side_effects): Handle null functions.
2938 (gimple_rhs_has_side_effects): Likewise.
2939 (gimple_call_copy_skip_args): Handle calls to internal functions.
2940 * cfgexpand.c (expand_call_stmt): Likewise.
2941 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
2942 * gimple-fold.c (gimple_fold_call): Handle null functions.
2943 (gimple_fold_stmt_to_constant_1): Don't fold
2944 calls to internal functions.
2945 * gimple-low.c (gimple_check_call_args): Handle calls to internal
2946 functions.
2947 * gimple-pretty-print.c (dump_gimple_call): Likewise.
2948 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
2949 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
2950 (do_warn_unused_result): Likewise.
2951 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
2952 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
2953 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
2954 the target of a call.
2955 (initialize_hash_element): Update accordingly.
2956 (hashable_expr_equal_p): Use gimple_call_same_target_p.
2957 (iterative_hash_hashable_expr): Handle calls to internal functions.
2958 (print_expr_hash_elt): Likewise.
2959 * tree-ssa-pre.c (can_value_number_call): Likewise.
2960 (eliminate): Handle null functions.
2961 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
2962 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
2963 (find_func_aliases): Likewise.
2964 * value-prof.c (gimple_ic_transform): Likewise.
2965 (gimple_indirect_call_to_profile): Likewise.
2966 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2967 * lto-streamer-out.c (output_gimple_stmt): Likewise.
2968
2969 2011-04-19 Jan Hubicka <jh@suse.cz>
2970
2971 * ipa-inline-transform.c (save_inline_function_body): Add comments.
2972 * ipa-inline.c (inline_small_functions): Compute summaries first,
2973 populate heap later.
2974
2975 2011-04-19 Jan Hubicka <jh@suse.cz>
2976
2977 * cgraph.h (save_inline_function_body): Remove.
2978 * ipa-inline-transform.c: New file, broke out of...
2979 * ipa-inline.c: ... this one; Update toplevel comment.
2980 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
2981 make global.
2982 (update_noncloned_frequencies): Move to ipa-inline-transform.c
2983 (cgraph_mark_inline_edge): Rename to inline_call; move to
2984 ipa-inline-transform.c.
2985 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
2986 move to ipa-inline-transform.c
2987 (recursive_inlining, inline_small_functions, flatten_function,
2988 ipa_inline, inline_always_inline_functions,
2989 early_inline_small_functions): Update.
2990 (inline_transform): Move to ipa-inline-transform.c.
2991 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
2992 Declare.
2993 * Makefile.in (ipa-inline-transform.o): New file.
2994 * cgraphunit.c (save_inline_function_body): Move to
2995 ipa-inline-transform.c
2996
2997 2011-04-19 DJ Delorie <dj@redhat.com>
2998
2999 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
3000 registers if we already know there aren't any.
3001 (m32c_emit_epilogue): Don't emit a barrier here.
3002 (m32c_emit_eh_epilogue): Likewise.
3003 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
3004 operands at expand time.
3005 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
3006 int" wchar type.
3007 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
3008 duplicates. Provide aliases instead.
3009 * config/m32c/prologue.md (eh_return): Emit a barrier here.
3010 (eh_epilogue): Add a "(return)" here as a hint to other parts of
3011 the compiler.
3012
3013 2011-04-19 Anatoly Sokolov <aesok@post.ru>
3014
3015 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
3016 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
3017 (general_or_i64_p, sparc_register_move_cost): New function.
3018
3019 2011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3020
3021 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3022 Add lynx, mipssde. Sort table.
3023
3024 2011-04-19 Xinliang David Li <davidxl@google.com>
3025
3026 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
3027 not negative.
3028
3029 2011-04-19 Jakub Jelinek <jakub@redhat.com>
3030
3031 PR target/48678
3032 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
3033 is a SUBREG with non-MODE_INT mode inside of it.
3034
3035 2011-04-19 Martin Jambor <mjambor@suse.cz>
3036
3037 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
3038 also according to actual contants.
3039 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
3040 (gimple_fold_call): Use it.
3041 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
3042
3043 2011-04-19 Martin Jambor <mjambor@suse.cz>
3044
3045 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
3046 non-pointer assignments.
3047
3048 2011-04-19 Martin Jambor <mjambor@suse.cz>
3049
3050 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
3051 account anc_offset and otr_type from the indirect edge info.
3052 * ipa-prop.c (get_ancestor_addr_info): New function.
3053 (compute_complex_ancestor_jump_func): Assignment analysis moved to
3054 get_ancestor_addr_info, call it.
3055 (ipa_note_param_call): Do not initialize information about polymorphic
3056 calls, return the indirect call graph edge. Remove the last
3057 parameter, adjust all callers.
3058 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
3059 parameters. Initialize polymorphic information in the indirect edge.
3060
3061 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3062
3063 PR lto/48148
3064 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
3065 the types if they have different enumeration identifiers.
3066
3067 2011-04-19 Jan Hubicka <jh@suse.cz>
3068
3069 * cgraph.h (cgraph_optimize_for_size_p): Declare.
3070 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
3071 * predict.c (cgraph_optimize_for_size_p): Break out from ...
3072 (optimize_function_for_size_p) ... here.
3073
3074 2011-04-19 Richard Guenther <rguenther@suse.de>
3075
3076 PR lto/48207
3077 * tree.c (free_lang_data): Do not reset the decl-assembler-name
3078 langhook.
3079
3080 2011-04-19 Eric Botcazou <ebotcazou@adacore.com>
3081
3082 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
3083 if DECL_NO_INLINE_WARNING_P is set on the function.
3084
3085 2011-04-19 Bernd Schmidt <bernds@codesourcery.com>
3086
3087 PR fortran/47976
3088 * reload1.c (inc_for_reload): Return void. All callers changed.
3089 (emit_input_reload_insns): Don't try to delete previous output
3090 reloads to a register, or record spill_reg_store for autoincs.
3091
3092 2011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
3093
3094 * gengtype.h: Updated copyright year.
3095 (struct input_file_st): Add inpisplugin field.
3096 (type_fileloc): New function.
3097 * gengtype.c
3098 (write_typed_struct_alloc_def): Add gcc_assert.
3099 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
3100 (write_typed_alloc_defns): Don't output for plugin files.
3101 (input_file_by_name): Clear inpisplugin field.
3102 (main): Set inpisplugin field for plugin files.
3103
3104 2011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
3105
3106 * gengtype-state.c (string_eq): New.
3107 (read_state): Use string_eq instead of strcmp when creating the
3108 state_ident_tab.
3109
3110 2011-04-19 Wei Guozhi <carrot@google.com>
3111
3112 PR target/47855
3113 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
3114 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
3115 linkage.
3116 * config/arm/constraints.md (Uu): New constraint.
3117 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
3118
3119 2011-04-19 Tristan Gingold <gingold@adacore.com>
3120
3121 * config.gcc (-*-*-*vms): Added.
3122 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
3123 definitions moved.
3124 * config/vms/vms-ld.c: New file.
3125 * config/vms/vms-ar.c: New file.
3126 * config/vms/t-vmsnative: New file.
3127
3128 2011-04-18 Xinliang David Li <davidxl@google.com>
3129
3130 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
3131
3132 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3133
3134 PR middle-end/48661
3135 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
3136 if TREE_TYPE (v) is non-NULL.
3137
3138 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
3139 gimple_get_virt_mehtod_for_binfo.
3140 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
3141 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
3142 callers.
3143 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
3144
3145 2011-04-18 Michael Matz <matz@suse.de>
3146 Steve Ellcey <sje@cup.hp.com>
3147
3148 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
3149 use its mode as source mode if it isn't VOIDmode.
3150
3151 2011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
3152
3153 * doc/passes.texi: Fill crossref nodes.
3154
3155 2011-04-18 Jim Meyering <meyering@redhat.com>
3156
3157 Fix doubled-word typos in comments and strings
3158 * config/alpha/vms-unwind.h: s/for for/for/
3159 * config/arm/unwind-arm.h: Likewise.
3160 * config/microblaze/microblaze.c: Likewise.
3161 * config/sh/constraints.md: s/in in/in/
3162 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
3163
3164 2011-04-18 Uros Bizjak <ubizjak@gmail.com>
3165
3166 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
3167 (AVX_FLOAT_MODE_P): Ditto.
3168 (AVX128_VEC_FLOAT_MODE_P): Ditto.
3169 (AVX256_VEC_FLOAT_MODE_P): Ditto.
3170 (AVX_VEC_FLOAT_MODE_P): Ditto.
3171 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
3172 (UNSPEC_MASKSTORE): Ditto.
3173 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
3174 Merge from <sse>_movmsk<ssemodesuffix> and
3175 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
3176 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
3177 iterator.
3178 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
3179 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
3180 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
3181
3182 2011-04-18 Jan Hubicka <jh@suse.cz>
3183
3184 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
3185
3186 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
3187 (want_inline_function_called_once_p): Break out the logic from
3188 ipa_inline.
3189 (edge_badness): Ensure that profile is not misupdated.
3190 (lookup_recursive_calls): Prioritize by call frequencies.
3191 (inline_small_functions): Move program size estimates here;
3192 actually process whole queue even when unit growth has been
3193 met. (to properly compute inline_failed reasons and for the
3194 case unit size decrease.) Revisit comments on recursive inlining.
3195 (ipa_inline): Remove unit summary code; first inline hot calls
3196 of functions called once, cold calls next.
3197 (order, nnodes): Remove unused variables.
3198 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
3199 (GTFILES): Remove ipa-inline.c
3200 * sel-sched.c (fill_insns): Silence uninitialized var warning.
3201
3202 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3203
3204 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
3205
3206 2011-04-18 Jie Zhang <jie@codesourcery.com>
3207 Richard Earnshaw <rearnsha@arm.com>
3208
3209 * arm.c (neon_builtin_type_bits): Remove.
3210 (typedef enum neon_builtin_mode): New.
3211 (T_MAX): Don't define.
3212 (typedef enum neon_builtin_datum): Remove bits, codes[],
3213 num_vars and base_fcode. Add mode, code and fcode.
3214 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
3215 VAR10): Change accordingly.
3216 (neon_builtin_data[]): Change accordingly
3217 (arm_init_neon_builtins): Change accordingly.
3218 (neon_builtin_compare): Remove.
3219 (locate_neon_builtin_icode): Remove.
3220 (arm_expand_neon_builtin): Change accordingly.
3221
3222 * arm.h (enum arm_builtins): Move to ...
3223 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
3224
3225 * arm.c (arm_builtin_decl): Declare.
3226 (TARGET_BUILTIN_DECL): Define.
3227 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
3228 (arm_builtin_decls[]): New.
3229 (arm_init_neon_builtins): Store builtin declarations in
3230 arm_builtin_decls[].
3231 (arm_init_tls_builtins): Likewise.
3232 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
3233 (arm_builtin_decl): New.
3234
3235 2011-04-18 Richard Guenther <rguenther@suse.de>
3236
3237 * tree.c (upper_bound_in_type): Build properly canonicalized
3238 INTEGER_CSTs.
3239 (lower_bound_in_type): Likewise.
3240
3241 2011-04-18 Richard Guenther <rguenther@suse.de>
3242
3243 * gimple.h (gimple_call_addr_fndecl): New function.
3244 (gimple_call_fndecl): Use it.
3245 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
3246 for direct calls.
3247 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
3248 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
3249
3250 2011-04-18 Richard Guenther <rguenther@suse.de>
3251
3252 PR middle-end/48650
3253 * tree.c (build_string): STRING_CST is now derived from tree_typed.
3254
3255 2011-04-18 Eric Botcazou <ebotcazou@adacore.com>
3256
3257 PR lto/48492
3258 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
3259 DECL_IN_CONSTANT_POOL without RTL.
3260
3261 2011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
3262 Ira Rosen <ira.rosen@linaro.org>
3263
3264 PR target/48252
3265 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
3266 to match neon_vzip/vuzp/vtrn_internal.
3267 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
3268 outputs explicitly dependent on both inputs.
3269 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
3270
3271 2011-04-18 Jakub Jelinek <jakub@redhat.com>
3272
3273 PR tree-optimization/48616
3274 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
3275 whether the shift is by scalar or vector based on whether all SLP
3276 scalar stmts have the same rhs.
3277
3278 2011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
3279
3280 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
3281 memory operands.
3282
3283 2011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
3284
3285 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
3286 registers.
3287
3288 2011-04-17 Jan Hubicka <jh@suse.cz>
3289
3290 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
3291 * cgrpahunit.c (cgraph_finalize_function): Do not set
3292 finalized_by_frontend.
3293 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3294 finalized_by_frontend.
3295
3296 2011-04-17 Jan Hubicka <jh@suse.cz>
3297
3298 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
3299 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
3300 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
3301 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
3302 method.
3303 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
3304 gimple-fold.c
3305 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
3306
3307 2011-04-17 Eric Botcazou <ebotcazou@adacore.com>
3308
3309 PR lto/48538
3310 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
3311 is non-null before accessing it.
3312 (input_cgraph): Remove trailing spaces.
3313
3314 2011-04-17 Revital Eres <revital.eres@linaro.org>
3315
3316 * params.def (sms-min-sc): New param flag.
3317 * modulo-sched.c (sms_schedule): Use it.
3318 * doc/invoke.texi (sms-min-sc): Document it.
3319
3320 2011-04-17 Jan Hubicka <jh@suse.cz>
3321
3322 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
3323 present, also set gimple_call_set_cannot_inline.
3324 * ipa-inline.c: Update toplevel comment.
3325 (MAX_TIME): Remove.
3326 (cgraph_clone_inlined_nodes): Fix linebreaks.
3327 (cgraph_check_inline_limits): Restructure to ...
3328 (caller_growth_limits): ... this one; be more tolerant
3329 on growth in nested inline chains; add explanatory comment;
3330 fix stack accounting thinko introduced by previous patch.
3331 (cgraph_default_inline_p): Remove.
3332 (report_inline_failed_reason): New function.
3333 (can_inline_edge_p): New function.
3334 (can_early_inline_edge_p): New function.
3335 (leaf_node_p): Move upwards in file.
3336 (want_early_inline_function_p): New function.
3337 (want_inline_small_function_p): New function.
3338 (want_inline_self_recursive_call_p): New function.
3339 (cgraph_edge_badness): Rename to ...
3340 (edge_badness) ... this one; fix linebreaks.
3341 (update_edge_key): Update call of edge_baddness; add
3342 detailed dump about queue updates.
3343 (update_caller_keys): Use can_inline_edge_p and
3344 want_inline_small_function_p.
3345 (cgraph_decide_recursive_inlining): Rename to...
3346 (recursive_inlining): Use can_inline_edge_p and
3347 want_inline_self_recursive_call_p; simplify and remove no longer
3348 valid FIXME.
3349 (cgraph_set_inline_failed): Remove.
3350 (add_new_edges_to_heap): Use can_inline_edge_p and
3351 want_inline_small_function_p.
3352 (cgraph_decide_inlining_of_small_functions): Rename to ...
3353 (inline_small_functions): ... this one; cleanup; use
3354 can/want predicates; cleanup debug ouput; work edges till fibheap
3355 is exhausted and do not stop once unit growth is reached; remove
3356 later loop processing remaining edges.
3357 (cgraph_flatten): Rename to ...
3358 (flatten_function): ... this one; use can_inline_edge_p
3359 and can_early_inline_edge_p predicates.
3360 (cgraph_decide_inlining): Rename to ...
3361 (ipa_inline): ... this one; remove unreachable nodes before
3362 inlining functions called once; simplify the pass.
3363 (cgraph_perform_always_inlining): Rename to ...
3364 (inline_always_inline_functions): ... this one; use
3365 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
3366 (cgraph_decide_inlining_incrementally): Rename to ...
3367 (early_inline_small_functions): ... this one; simplify
3368 using new predicates; cleanup; make dumps prettier.
3369 (cgraph_early_inlining): Rename to ...
3370 (early_inliner): newer inline regular functions into always-inlines;
3371 fix updating of call stmt summaries.
3372 (pass_early_inline): Update for new names.
3373 (inline_transform): Fix formating.
3374 (gate_cgraph_decide_inlining): Rename to ...
3375 (pass_ipa_inline): ... this one.
3376 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
3377 * ipa-inline-analysis.c (dump_inline_summary): Update.
3378 (compute_inline_parameters): Do not compute disregard_inline_limits;
3379 look for mismatching arguments.
3380 (estimate_growth): Fix handlig of non-trivial self recursion.
3381 (inline_read_summary): Do not read info->disregard_inline_limits.
3382 (inline_write_summary): Do not write info->disregard_inline_limits.
3383 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
3384 and move all checks into can_inline_edge_p predicate; re-enable code
3385 comparing optimization levels.
3386 (expand_call_inline): Do not test inline_forbidden_into_p.
3387 * Makefile.in (ipa-inline.o): Update arguments.
3388
3389 2011-04-17 Revital Eres <revital.eres@linaro.org>
3390
3391 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
3392
3393 2011-04-17 Revital Eres <revital.eres@linaro.org>
3394
3395 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
3396
3397 2011-04-17 Michael Matz <matz@suse.de>
3398
3399 PR tree-optimization/48622
3400 PR lto/48645
3401 * ipa-inline-analysis.c (inline_read_summary): Read size/time
3402 in same order as they're written.
3403
3404 2011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3405
3406 * config/pa/predicates.md: Reorganize and simplify predicates.
3407 Eliminate duplicate code checks.
3408 (arith_operand): Rename to arith14_operand
3409 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
3410 * config/pa/pa.md: Use renamed operands.
3411 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
3412 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
3413 arith11_operand, adddi3_operand, indexed_memory_operand,
3414 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
3415 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
3416 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
3417 move_dest_operand, move_src_operand, prefetch_cc_operand,
3418 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
3419 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
3420 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
3421 div_operand, int5_operand, movb_comparison_operator,
3422 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
3423 arith_double_operand, ireg_operand, lhs_lshift_operand,
3424 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
3425 integer_store_memory_operand): Likewise.
3426 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
3427 (integer_store_memory_operand, read_only_operand,
3428 function_label_operand, borx_reg_operand,
3429 non_hard_reg_operand): Likewise.
3430 (eq_neq_comparison_operator): Delete unused operator.
3431 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
3432 function_label_operand.
3433 (emit_move_sequence): Likewise.
3434
3435 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3436
3437 * config/i386/sse.md (sseunpackmode): New mode attribute.
3438 (ssepackmode): Ditto.
3439 (vec_pack_trunc_<mode>): Macroize expander from
3440 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
3441 (vec_unpacks_lo_<mode>): Macroize expander from
3442 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3443 (vec_unpacks_hi_<mode>): Macroize expander from
3444 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3445 (vec_unpacku_lo_<mode>): Macroize expander from
3446 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3447 (vec_unpacku_hi_<mode>): Macroize expander from
3448 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
3449 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
3450 ix86_expand_sse4_unpack.
3451 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
3452
3453 2011-04-16 Jan Hubicka <jh@suse.cz>
3454
3455 * cgraphbuild.c: Include ipa-inline.h.
3456 (reset_inline_failed): Use initialize_inline_failed.
3457 * cgraph.c: Include ipa-inline.h.
3458 (cgraph_create_node_1): Do not initialize estimated_growth.
3459 (initialize_inline_failed): More to ipa-inline-analysis.c
3460 (dump_cgraph_node): Do not dump inline flags.
3461 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
3462 and disregard_inline_limits flags.
3463 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
3464 time, size, estimated_growth.
3465 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
3466 Update.
3467 * cgraphunit.c (cgraph_decide_is_function_needed): Use
3468 DECL_DISREGARD_INLINE_LIMITS.
3469 (cgraph_analyze_function): Do not initialize
3470 node->local.disregard_inline_limits.
3471 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
3472 inlinable, versionable and disregard_inline_limits.
3473 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
3474 cgraph_check_inline_limits, cgraph_default_inline_p,
3475 cgraph_edge_badness, update_caller_keys, update_callee_keys,
3476 add_new_edges_to_heap): Update.
3477 (cgraph_decide_inlining_of_small_function): Update; set
3478 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
3479 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
3480 cgraph_decide_inlining_incrementally): Update.
3481 * ipa-inline.h (inline_summary): Add inlinable, versionable,
3482 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
3483 time, size and estimated_growth parameters.
3484 (estimate_edge_growth): Update.
3485 (initialize_inline_failed): Declare.
3486 * ipa-split.c: Include ipa-inline.h
3487 (execute_split_functions): Update.
3488 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
3489 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
3490 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
3491 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
3492 estimated_growth to INT_MIN.
3493 (inline_node_duplication_hook): Likewise.
3494 (dump_inline_summary): Dump new fields.
3495 (compute_inline_parameters): Update.
3496 (estimate_edge_time, estimate_time_after_inlining,
3497 estimate_size_after_inlining, estimate_growth, inline_read_summary,
3498 inline_write_summary):
3499 (initialize_inline_failed): Move here from cgraph.c.
3500 * tree-sra.c: Include ipa-inline.h.
3501 (ipa_sra_preliminary_function_checks): Update.
3502 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
3503 ipa-inline.h.
3504
3505 2011-04-16 Uros Bizjak <ubizjak@gmail.com>
3506
3507 * config/i386/sse.md (V16): New mode iterator.
3508 (VI1, VI8): Ditto.
3509 (AVXMODEQI, AVXMODEDI): Remove.
3510 (sse2, sse3): New mode attribute.
3511 (mov<mode>): Use V16 mode iterator.
3512 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
3513 (push<mode>1): Use V16 mode iterator.
3514 (movmisalign<mode>): Ditto.
3515 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3516 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
3517 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
3518 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
3519 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
3520 avx_movdqu<avxmodesuffix>.
3521 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
3522 *avx_movdqu<avxmodesuffix>.
3523 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
3524 avx_lddqu<avxmodesuffix>.
3525 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
3526 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
3527 avx_movnt<AVXMODEDI:mode>.
3528 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
3529 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
3530
3531 2011-04-16 Bernd Schmidt <bernds@codesourcery.com>
3532
3533 PR target/48629
3534 * haifa-sched.c (prune_ready_list, schedule_block): Use
3535 sched_pressure_p rather than flag_sched_pressure.
3536
3537 2011-04-15 Pat Haugen <pthaugen@us.ibm.com>
3538
3539 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
3540 cgraph_get_node instead of cgraph_get_create_node.
3541
3542 2011-04-15 Jakub Jelinek <jakub@redhat.com>
3543
3544 * cfgexpand.c (expand_debug_expr): Use
3545 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
3546
3547 2011-04-15 Michael Matz <matz@suse.de>
3548
3549 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
3550 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
3551 * function.c (gimplify_parameters): Ditto.
3552 * gimplify.c (gimplify_vla_decl): Ditto.
3553
3554 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
3555 (gimple_call_set_alloca_for_var): New inline function.
3556 (gimple_call_alloca_for_var_p): Ditto.
3557 * gimple.c (gimple_build_call_from_tree): Remember
3558 CALL_ALLOCA_FOR_VAR_P state.
3559 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
3560
3561 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
3562 calls if they were for VLA objects.
3563
3564 2011-04-15 Martin Jambor <mjambor@suse.cz>
3565
3566 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
3567 of ADR_EXPRs.
3568
3569 2011-04-15 Martin Jambor <mjambor@suse.cz>
3570
3571 PR middle-end/48601
3572 * tree-emutls.c (lower_emutls_function_body): Call
3573 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
3574 result is non-NULL.
3575
3576 2011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
3577
3578 * c-decl.c (detect_field_duplicates): Call
3579 objc_detect_field_duplicates instead of objc_get_interface_ivars.
3580
3581 2011-04-15 Nathan Froyd <froydnj@codesourcery.com>
3582
3583 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
3584 * gimple.c (gimple_asm_clobbers_memory_p): Define.
3585 * ipa-pure-const.c (check_stmt): Call it.
3586 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
3587
3588 2011-04-15 Richard Guenther <rguenther@suse.de>
3589
3590 PR tree-optimization/48290
3591 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
3592 Properly decide inhibiting propagation based on the valueized
3593 operand. Do loop-closed SSA form preserving here ...
3594 (init_copy_prop): ... not here.
3595
3596 2011-04-15 H.J. Lu <hongjiu.lu@intel.com>
3597
3598 PR target/48612
3599 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
3600 (*ieee_smax<mode>3): Likewise.
3601
3602 2011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3603
3604 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
3605 Replace match_operand with match_dup for the third operand in
3606 these expanders.
3607
3608 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3609
3610 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
3611 to track processing of conditionals. Update all callers.
3612 (try_combine, simplify_if_then_else): Update.
3613
3614 2011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
3615
3616 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
3617 -fsched-pressure.
3618
3619 2011-04-15 Georg-Johann Lay <avr@gjlay.de>
3620
3621 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
3622 instead of match_operand for operand 3.
3623
3624 2011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
3625
3626 * recog.h (insn_operand_data): Add an "allows_mem" field.
3627 * genoutput.c (output_operand_data): Initialize it.
3628 * optabs.c (maybe_legitimize_operand_same_code): New function.
3629 (maybe_legitimize_operand): Use it when matching the original
3630 op->value.
3631
3632 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3633
3634 * gimplify.c: Fix issues in comments throughout.
3635 (voidify_wrapper_expr): Fix long line.
3636 (build_stack_save_restore): Likewise.
3637 (gimplify_loop_expr): Likewise.
3638 (gimplify_compound_lval): Likewise.
3639 (gimplify_init_ctor_eval): Likewise.
3640 (gimplify_modify_expr_rhs): Likewise.
3641 (omp_notice_threadprivate_variable): Likewise.
3642
3643 2011-04-15 Eric Botcazou <ebotcazou@adacore.com>
3644
3645 * cfgexpand.c (expand_call_stmt): Convert the function type to the
3646 original one if this is not a builtin function.
3647
3648 2011-04-14 Jakub Jelinek <jakub@redhat.com>
3649
3650 PR target/48605
3651 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
3652 offset it as needed based on top 2 bits in operands[3], change
3653 MEM mode to SFmode and mask those 2 bits away from operands[3].
3654
3655 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3656
3657 * c-parser.c (c_parser_objc_protocol_definition): Updated for
3658 change from objc_declare_protocols() to objc_declare_protocol().
3659
3660 2011-04-14 Uros Bizjak <ubizjak@gmail.com>
3661
3662 * config/i386/sse.md (sse4_1): New mode attribute.
3663 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
3664 avx_blend<ssemodesuffix><avxmodesuffix> and
3665 sse4_1_blend<ssemodesuffix> using VF mode iterator.
3666 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
3667 avx_blendv<ssemodesuffix><avxmodesuffix> and
3668 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
3669 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
3670 avx_dp<ssemodesuffix><avxmodesuffix> and
3671 sse4_1_dp<ssemodesuffix> using VF mode iterator.
3672 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
3673 (sse4_1_packusdw): Merge with *avx_packusdw.
3674 (sse4_1_pblendvb): Merge with *avx_pblendvb.
3675 (sse4_1_pblendw): Merge with *avx_pblendw.
3676 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
3677 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
3678 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
3679 VF mode iterator.
3680 (sse4_1_round<ssescalarmodesuffix>): Merge with
3681 *avx_round<ssescalarmodesuffix>.
3682 (aesenc): Merge with *avx_aesenc.
3683 (aesenclast): Merge with *avx_aesenclast.
3684 (aesdec): Merge with *avx_aesdec.
3685 (aesdeclast): Merge with *avx_aesdeclast.
3686 (pclmulqdq): Merge with *pclmulqdq.
3687 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
3688 New predicate.
3689 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
3690
3691 2011-04-14 H.J. Lu <hongjiu.lu@intel.com>
3692
3693 PR middle-end/48608
3694 * cfgexpand.c (get_decl_align_unit): Renamed to ...
3695 (align_local_variable): This. Update DECL_ALIGN.
3696 (add_stack_var): Updated.
3697 (expand_one_stack_var): Likewise.
3698
3699 2011-04-14 Richard Guenther <rguenther@suse.de>
3700
3701 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
3702 Remove.
3703 (dse_initialize_block_local_data, dse_leave_block,
3704 record_voperand_set, get_stmt_uid): Likewise.
3705 (dse_possible_dead_store_p): Allow any kind of killing stmt.
3706 (dse_optimize_stmt): Remove voperand set handling code.
3707 Simplify and improve to handle any kind of killing stmt.
3708 (dse_record_phi): Remove.
3709 (dse_enter_block): Simplify.
3710 (tree_ssa_dse): Likewise.
3711 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
3712
3713 2011-04-14 Jan Hubicka <jh@suse.cz>
3714
3715 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
3716 * cgraph.h (struct inline_summary): Move to ipa-inline.h
3717 (cgraph_local_info): Remove inline_summary.
3718 * ipa-cp.c: Include ipa-inline.h.
3719 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
3720 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
3721 accesor.
3722 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
3723 (input_overwrite_node): Do not set inline summary.
3724 (input_node): Do not stream inline summary.
3725 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
3726 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
3727 growth; we do not have inline parameters computed for that anyway.
3728 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
3729 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
3730 (inline_summary_t): New type and VECtor.
3731 (debug_inline_summary, dump_inline_summaries): Declare.
3732 (inline_summary): Use VOCtor.
3733 (estimate_edge_growth): Kill hack computing call stmt size directly.
3734 * lto-section-in.c (lto_section_name): Add inline section.
3735 * ipa-inline-analysis.c: Include lto-streamer.h
3736 (node_removal_hook_holder, node_duplication_hook_holder): New holders
3737 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
3738 (inline_summary_vec): Define.
3739 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
3740 dump_inline_summaries): New functions.
3741 (estimate_function_body_sizes): Properly compute size/time of outgoing
3742 calls.
3743 (compute_inline_parameters): Alloc inline_summary; do not compute
3744 size/time of incomming calls.
3745 (estimate_edge_time): Avoid missing time summary hack.
3746 (inline_read_summary): Read inline summary info.
3747 (inline_write_summary): Write inline summary info.
3748 (inline_free_summary): Free all hooks and inline summary vector.
3749 * lto-streamer.h: Add LTO_section_inline_summary section.
3750 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
3751 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
3752
3753 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3754
3755 * tree-vectorizer.h (vect_strided_store_supported): Add a
3756 HOST_WIDE_INT argument.
3757 (vect_strided_load_supported): Likewise.
3758 (vect_permute_store_chain): Return void.
3759 (vect_transform_strided_load): Likewise.
3760 (vect_permute_load_chain): Delete.
3761 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
3762 count argument. Check that the count is a power of two.
3763 (vect_strided_load_supported): Likewise.
3764 (vect_permute_store_chain): Return void. Update after above changes.
3765 Assert that the access is supported.
3766 (vect_permute_load_chain): Likewise.
3767 (vect_transform_strided_load): Return void.
3768 * tree-vect-stmts.c (vectorizable_store): Update calls after
3769 above interface changes.
3770 (vectorizable_load): Likewise.
3771 (vect_analyze_stmt): Don't check for strided powers of two here.
3772
3773 2011-04-14 Richard Guenther <rguenther@suse.de>
3774
3775 PR tree-optimization/48590
3776 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
3777 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3778 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
3779 BUILT_IN_STACK_SAVE.
3780 * tree-ssa-dce.c (propagate_necessity): Handle
3781 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
3782
3783 2011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
3784
3785 * c-parser.c (c_parser_objc_class_declaration): Updated call to
3786 objc_declare_class.
3787
3788 2011-04-14 Richard Guenther <rguenther@suse.de>
3789
3790 * tree.h (get_object_alignment_1): Declare.
3791 * builtins.c (get_object_alignment_1): Split out worker from ...
3792 (get_object_alignment): ... here.
3793 * fold-const.c (get_pointer_modulus_and_residue): Use
3794 get_object_alignment_1.
3795
3796 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3797
3798 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
3799 type parameter.
3800 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
3801 parameter. Generalise code to handle arrays as well as vectors.
3802 (vect_setup_realignment): Update accordingly.
3803 * tree-vect-stmts.c (vectorizable_store): Likewise.
3804 (vectorizable_load): Likewise.
3805
3806 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3807
3808 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
3809 within the per-copy loop.
3810
3811 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3812
3813 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
3814 in the dump file.
3815
3816 2011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
3817
3818 * doc/options.texi (Negative): Explicitly mention that the
3819 Negative chain must be circular.
3820
3821 2011-04-14 Nathan Froyd <froydnj@codesourcery.com>
3822
3823 * function.h (block_chainon): Declare.
3824 * function.c (block_chainon): Define.
3825
3826 2011-04-14 Anatoly Sokolov <aesok@post.ru>
3827 Eric Weddington <eric.weddington@atmel.com>
3828 Georg-Johann Lay <avr@gjlay.de>
3829
3830 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
3831 New Includes
3832 (avr_init_builtins, avr_expand_builtin,
3833 avr_expand_delay_cycles, avr_expand_unop_builtin,
3834 avr_expand_binop_builtin ): New functions.
3835 (avr_builtin_id): New enum
3836 (struct avr_builtin_description): New struct
3837 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
3838 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
3839
3840 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
3841 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
3842 UNSPECV_DELAY_CYCLES): new enumeration values
3843 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
3844 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
3845 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
3846 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
3847 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
3848 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
3849 "fmulsu"): New insns
3850
3851 * config/avr/avr-c.c: fix line endings
3852 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
3853 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
3854 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
3855 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
3856 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
3857
3858 * doc/extend.texi (AVR Built-in Functions): New node
3859 (Target Builtins): Add documentation of AVR
3860 built-in functions.
3861
3862 2011-04-14 Georg-Johann Lay <avr@gjlay.de>
3863
3864 PR target/44643
3865 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
3866 alone. Error if non-const data has attribute progmem.
3867
3868 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3869
3870 * tree.h (struct tree_constructor): Include tree_typed instead of
3871 tree_common.
3872 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
3873 TS_TYPED instead of TS_COMMON.
3874
3875 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
3876
3877 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
3878 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
3879 (sse2_psadbw): Merge with *avx_psadbw.
3880 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
3881 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
3882 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
3883 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
3884 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
3885 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
3886 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
3887 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
3888 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
3889 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
3890 (ssse3_palignrti): Merge with *avx_palignrti.
3891
3892 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3893
3894 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
3895 * tree-ssanames.c (fini_ssanames): VEC_free it.
3896 (make_ssa_name_fn): Update for VECness of free_ssanames.
3897 (release_ssa_name, release_dead_ssa_names): Likewise.
3898 * tree.h (struct tree_ssa_name): Include tree_typed instead of
3899 tree_common.
3900 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
3901 TS_TYPED instead of TS_COMMON.
3902
3903 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3904
3905 * postreload-gcse.c (gcse_after_reload_main): Add calls to
3906 statistics_counter_event.
3907 * tree-ssa-copyrename.c (stats): Define.
3908 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
3909 statistics_counter_event.
3910 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
3911 (bswap_stats, widen_mul_stats): Define.
3912 (insert_reciprocals): Increment rdivs_inserted.
3913 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
3914 rfuncs_inserted. Add calls to statistics_counter_event.
3915 (execute_cse_sincos_1): Increment inserted.
3916 (execute_cse_sincos): Zeroize sincos_stats. Add call to
3917 statistics_counter_event.
3918 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
3919 of bswap_stats. Add calls to statistics_counter_event.
3920 (convert_mult_to_widen): Increment widen_mults_inserted.
3921 (convert_plusminus_to_widen): Increment maccs_inserted.
3922 (convert_mult_to_fma): Increment fmas_inserted.
3923 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
3924 calls to statistics_counter_event.
3925
3926 2011-04-13 Vladimir Makarov <vmakarov@redhat.com>
3927
3928 PR rtl-optimization/48455
3929 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
3930 `temp_costs->mem_cost'.
3931
3932 2011-04-13 Jan Hubicka <jh@suse.cz>
3933
3934 * ipa-inline.h: New file.
3935 * ipa-inline-analysis.c: New file. Broken out of ...
3936 * ipa-inline.c: ... this file; update toplevel comment;
3937 include ipa-inline.h
3938 (inline_summary): Move to ipa-inline.h
3939 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
3940 ipa-inline-analysis.c.
3941 (cgraph_estimate_time_after_inlining): Rename to
3942 estiamte_time_after_inlining; move to ipa-inline-analysis.c
3943 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
3944 to estimate_edge_growth.
3945 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
3946 rename to estimate_size_after_inlining.
3947 (cgraph_mark_inline_edge): Update for new naming convention.
3948 (cgraph_check_inline_limits): Likewise.
3949 (cgraph_edge_badness): Likewise.
3950 (cgraph_decide_recursive_inlining): Likewise.
3951 (cgraph_decide_inlining_of_small_functions): Likewise.
3952 (cgraph_decide_inlining_incrementally): Likewise.
3953 (cgraph_estimate_growth): Rename to estimate_growth; move to
3954 ipa-inline-analysis.c.
3955 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
3956 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
3957 (compute_inline_parameters): Likewise.
3958 (compute_inline_parameters_for_current): Likewise.
3959 (pass_inline_parameters): Likewise.
3960 (inline_indirect_intraprocedural_analysis): Likewise.
3961 (analyze_function): Rename to inline_analyze_function; likewise.
3962 (add_new_function): Move to ipa-inline-analysis.c.
3963 (inline_generate_summary): Likewise.
3964 (inline_read_summary): Likewise.
3965 (inline_write_summary): Likewise.
3966 * Makefile.in (ipa-inline-analysis.c): New file.
3967
3968 2011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3969
3970 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
3971 * configure: Regenerate.
3972
3973 2011-04-13 Nathan Froyd <froydnj@codesourcery.com>
3974
3975 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
3976 instead of tree_common.
3977 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
3978 Likewise.
3979 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
3980 TS_TYPED rather than TS_COMMON.
3981 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
3982
3983 2011-04-01 Georg-Johann Lay <avr@gjlay.de>
3984
3985 PR target/45263
3986 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
3987 r20 around calls of __tablejump_elpm__
3988
3989 2011-04-13 Jakub Jelinek <jakub@redhat.com>
3990
3991 PR middle-end/48591
3992 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
3993 NULL.
3994 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
3995
3996 2011-04-13 Bernd Schmidt <bernds@codesourcery.com>
3997
3998 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
3999 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
4000 (cfi_vec): New typedef.
4001 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
4002 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
4003 (cie_cfi_vec): New static variable.
4004 (cie_cfi_head): Delete.
4005 (add_cfi): Accept a cfi_vec * as first argument. All callers and
4006 declaration changed. Use vector rather than list operations.
4007 (new_cfi): Don't initialize the dw_cfi_next field.
4008 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
4009 rather than list operations.
4010 (lookup_cfa): Use vector rather than list operations.
4011 (output_cfis): New argument upto. Accept a cfi_vec rather than
4012 a dw_cfi_ref list head as argument. All callers changed.
4013 Iterate over the vector using upto as a maximum index.
4014 (output_all_cfis): New static function.
4015 (output_fde): Use vector rather than list operations. Use the
4016 new upto argument for output_cfis rather than manipulating a
4017 list.
4018 (dwarf2out_begin_prologue): Change initializations to match
4019 new struct members.
4020 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
4021 from the vector length rather than searching for the end of a list.
4022 Use output_all_cfis.
4023 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
4024
4025 2011-04-13 Nick Clifton <nickc@redhat.com>
4026
4027 * config/rx/rx.md (movmemsi): Do not use this pattern when
4028 volatile pointers are involved.
4029
4030 2011-04-13 Uros Bizjak <ubizjak@gmail.com>
4031
4032 * config/i386/sse.md (pinsrbits): Remove.
4033 (sse2_packsswb): Merge with *avx_packsswb.
4034 (sse2_packssdw): Merge with *avx_packssdw.
4035 (sse2_packuswb): Merge with *avx_packuswb.
4036 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
4037 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
4038 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
4039 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
4040 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
4041 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
4042 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
4043 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
4044 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
4045 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
4046 (sse2_loadld): Merge with *avx_loadld.
4047 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
4048 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
4049 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
4050 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
4051 (vec_concatv2di): Merge with *vec_concatv2di_avx.
4052
4053 2011-04-12 Nathan Froyd <froydnj@codesourcery.com>
4054
4055 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
4056 calling TREE_CHAIN.
4057 * print-tree.c (print_node): Likewise.
4058 * tree-inline.c (copy_tree_r): Likewise.
4059 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
4060 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
4061 instead of TS_COMMON.
4062 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
4063 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
4064 (copy_node_stat): Zero TREE_CHAIN only if necessary.
4065 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
4066 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
4067 ...and these...
4068 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
4069 * tree.h: ...here.
4070 (TREE_CHAIN): Check for a TS_COMMON structure.
4071 (TREE_TYPE): Check for a TS_TYPED structure.
4072
4073 2011-04-12 Pat Haugen <pthaugen@us.ibm.com>
4074
4075 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4076 cgraph_get_create_node instead of cgraph_node.
4077
4078 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4079
4080 * c-parser.c (c_parser_initelt): Updated call to
4081 objc_build_message_expr.
4082 (c_parser_postfix_expression): Likewise.
4083
4084 2011-04-12 Kai Tietz <ktietz@redhat.com>
4085
4086 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
4087 MASK_MS_BITFIELD_LAYOUT bit.
4088
4089 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4090
4091 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
4092 assert it is always true.
4093 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
4094 moves.
4095
4096 2011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
4097
4098 * c-parser.c (c_lex_one_token): Rewritten conditional used when
4099 compiling Objective-C to be more efficient.
4100
4101 2011-04-12 Axel Freyn <axel-freyn@gmx.de>
4102
4103 * opts-common.c (decode_cmdline_options_to_array): Remove variable
4104 argv_copied.
4105
4106 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4107
4108 * recog.h, genoutput.c, optabs.c: Revert last patch.
4109
4110 2011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
4111
4112 PR target/48090
4113 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
4114
4115 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4116
4117 * recog.h (insn_operand_data): Add an "allows_mem" field.
4118 * genoutput.c (output_operand_data): Initialize it.
4119 * optabs.c (maybe_legitimize_operand_same_code): New function.
4120 (maybe_legitimize_operand): Use it when matching the original
4121 op->value.
4122
4123 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4124
4125 * genpreds.c (process_define_predicate): Move most processing
4126 to gensupport.c. Continue to validate the expression.
4127 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
4128 (process_define_predicate): Move processing to gensupport.c.
4129 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
4130 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
4131 (compute_predicate_codes): Moved from genrecog.c. Add lineno
4132 argument.
4133 (valid_predicate_name_p): New function, split out from old
4134 genpreds.c:process_define_predicate.
4135 (process_define_predicate): New function, combining code from
4136 old genpreds.c and genrecog.c functions.
4137 (process_rtx): Call it for DEFINE_PREDICATE and
4138 DEFINE_SPECIAL_PREDICATE.
4139
4140 2011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
4141
4142 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
4143 size of a '%A' memory reference.
4144 (T_DREG, T_QREG): New neon_builtin_type_bits.
4145 (arm_init_neon_builtins): Assert that the load and store operands
4146 are neon_struct_operands.
4147 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
4148 (NEON_ARG_MEMORY): New builtin_arg.
4149 (neon_dereference_pointer): New function.
4150 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
4151 Handle NEON_ARG_MEMORY.
4152 (arm_expand_neon_builtin): Update after above interface changes.
4153 Use NEON_ARG_MEMORY for loads and stores.
4154 * config/arm/predicates.md (neon_struct_operand): New predicate.
4155 * config/arm/iterators.md (V_two_elem): Tweak formatting.
4156 (V_three_elem): Use BLKmode for accesses that have no associated mode.
4157 (V_four_elem): Tweak formatting.
4158 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
4159 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
4160 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
4161 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
4162 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
4163 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
4164 (neon_vst4<mode>): Replace pointer operand with a memory operand.
4165 Use %A in the output template.
4166 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
4167 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
4168 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
4169 the width of the memory access. Remove post-increment.
4170 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
4171
4172 2011-04-12 Nick Clifton <nickc@redhat.com>
4173
4174 * config/v850/v850.c (expand_prologue): Do not use the CALLT
4175 instruction for interrupt handlers if the target is the basic V850
4176 architecture.
4177 (expand_epilogue): Likewise.
4178
4179 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4180
4181 PR rtl-optimization/48549
4182 * combine.c (propagate_for_debug): Also stop after BB_END of
4183 this_basic_block. Process LAST and just stop processing after it.
4184 (combine_instructions): If last_combined_insn has been deleted,
4185 set last_combined_insn to its PREV_INSN.
4186
4187 2011-04-12 Richard Guenther <rguenther@suse.de>
4188
4189 PR tree-optimization/46076
4190 * gimple.h (struct gimple_statement_call): Add fntype field.
4191 (gimple_call_fntype): Adjust.
4192 (gimple_call_set_fntype): New function.
4193 * gimple.c (gimple_build_call_1): Set the call function type.
4194 * gimplify.c (gimplify_call_expr): Preserve the function
4195 type the frontend used for the call.
4196 (gimplify_modify_expr): Likewise.
4197 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
4198 function type.
4199 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
4200 function type.
4201 * tree-ssa.c (useless_type_conversion_p): Function pointer
4202 conversions are useless.
4203
4204 2011-04-12 Martin Jambor <mjambor@suse.cz>
4205
4206 * cgraph.h (cgraph_node): Remove function declaration.
4207 (cgraph_create_node): Declare.
4208 (cgraph_get_create_node): Likewise.
4209 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
4210 Updated all callers.
4211 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
4212 the decl does not already exist. Call cgraph_get_create_node instead
4213 of cgraph_node.
4214 (cgraph_get_create_node): New function.
4215 (cgraph_same_body_alias): Update comment.
4216 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
4217 assert it does not return NULL.
4218 (cgraph_update_edges_for_call_stmt): Likewise.
4219 (cgraph_clone_edge): Likewise.
4220 (cgraph_create_virtual_clone): Likewise.
4221 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
4222 instead of cgraph_node.
4223 (cgraph_add_new_function): Call cgraph_create_node or
4224 cgraph_get_create_node instead of cgraph_node.
4225 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
4226 instead of cgraph_node.
4227 (record_eh_tables): Likewise.
4228 (mark_address): Likewise.
4229 (mark_load): Likewise.
4230 (build_cgraph_edges): Call cgraph_get_create_node instead
4231 of cgraph_node.
4232 (rebuild_cgraph_edges): Likewise.
4233 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
4234 instead of cgraph_node.
4235 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
4236 cgraph_node.
4237 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
4238 cgraph_create_node instead of cgraph_node.
4239 * c-decl.c (finish_function): Call cgraph_get_create_node instead
4240 of cgraph_node.
4241 * lto-cgraph.c (input_node): Likewise.
4242 * lto-streamer-in.c (input_function): Likewise.
4243 * varasm.c (mark_decl_referenced): Likewise.
4244 (assemble_alias): Likewise.
4245
4246 2011-04-12 Martin Jambor <mjambor@suse.cz>
4247
4248 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
4249 instead of cgraph_node and assert it does not return NULL.
4250 * lto-streamer-in.c (lto_read_body): Likewise.
4251 * omp-low.c (new_omp_context): Likewise.
4252 (create_task_copyfn): Likewise.
4253 * tree-emutls.c (lower_emutls_function_body): Likewise.
4254 * matrix-reorg.c (transform_allocation_sites): Likewise.
4255
4256 2011-04-12 Jakub Jelinek <jakub@redhat.com>
4257
4258 PR c/48552
4259 * c-typeck.c (build_asm_expr): Error out on attempts to use
4260 void type outputs or inputs for constraints that allow reg or
4261 don't allow memory.
4262
4263 2011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
4264 Richard Earnshaw <rearnsha@arm.com>
4265
4266 PR target/48250
4267 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
4268 to use sign-magnitude offsets. Reject unsupported unaligned
4269 cases. Add detailed description in comments.
4270 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
4271 condition from TARGET_32BIT to TARGET_ARM.
4272
4273 2011-04-11 Nathan Froyd <froydnj@codesourcery.com>
4274
4275 * tree.h (struct typed_tree): New.
4276 (struct tree_common): Include it instead of tree_base.
4277 (TREE_TYPE): Update for new location of type field.
4278 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
4279 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
4280 (union tree_node): Add typed field.
4281 * treestruct.def (TS_TYPED): New.
4282 * lto-streamer.c (check_handled_ts_structures): Handle it.
4283 * tree.c (MARK_TS_TYPED): New macro.
4284 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
4285
4286 2011-04-11 Eric Botcazou <ebotcazou@adacore.com>
4287
4288 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
4289 (force_nonfallthru): Do not alter the loop nest if no basic block
4290 was created.
4291
4292 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4293
4294 * config/i386/sse.md (VI): New mode iterator.
4295 (SSEMODEI): Remove.
4296 (AVX256MODEI): Ditto.
4297 (AVXMODEF4P): Ditto.
4298 (avxvecpsmode): Ditto.
4299 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
4300 (sse2_andnot<mode>3): New expander.
4301 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
4302 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
4303 (<any_logic:code><mode>3): Use VI mode iterator.
4304 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
4305 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
4306 (*andnottf3): Handle AVX three-operand constraints.
4307 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
4308
4309 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4310 Robert Millan <rmh@gnu.org>
4311
4312 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
4313 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
4314 GNU_USER_DYNAMIC_LINKER64): Define.
4315 (REG_NAME): Don't undefine.
4316 (MD_UNWIND_SUPPORT): Undefine.
4317 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
4318 (REG_NAME): Don't undefine.
4319 (MD_UNWIND_SUPPORT): Undefine.
4320 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
4321
4322 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4323
4324 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
4325 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
4326
4327 2011-04-11 Xinliang David Li <davidxl@google.com>
4328
4329 * value-profile.c (check_ic_target): New function.
4330 (gimple_ic_transform): Sanity check indirect call target.
4331 * gimple-low.c (gimple_check_call_args): Interface change.
4332 (gimple_check_call_matching_types): New function.
4333 * tree-inline.c (tree_can_inline_p): Call new function.
4334
4335 2011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
4336
4337 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
4338 tree-pretty-print.h & realmpfr.h.
4339
4340 2011-04-11 Vladimir Makarov <vmakarov@redhat.com>
4341
4342 PR middle-end/48464
4343 * ira.c (setup_pressure_classes): Fix typo in loop condition.
4344 (setup_allocno_and_important_classes): Ditto.
4345
4346 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4347
4348 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
4349 GNU_USER_DYNAMIC_LINKER.
4350 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
4351 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4352 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
4353 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4354 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4355 GNU_USER_TARGET_OS_CPP_BUILTINS.
4356 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
4357 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4358 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4359 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4360 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
4361 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4362 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4363 GNU_USER_TARGET_OS_CPP_BUILTINS.
4364 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4365 GNU_USER_DYNAMIC_LINKER.
4366 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4367 GNU_USER_TARGET_OS_CPP_BUILTINS.
4368 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
4369 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4370 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
4371 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4372 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
4373 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
4374 GNU_USER_DYNAMIC_LINKER64): Remove.
4375 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
4376 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4377 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4378 GNU_USER_DYNAMIC_LINKER.
4379 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4380 GNU_USER_TARGET_OS_CPP_BUILTINS.
4381 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4382 GNU_USER_TARGET_OS_CPP_BUILTINS.
4383 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
4384 to GNU_USER_TARGET_OS_CPP_BUILTINS.
4385 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
4386 GNU_USER_TARGET_OS_CPP_BUILTINS.
4387 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
4388 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
4389 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4390 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
4391 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4392 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4393 GNU_USER_DYNAMIC_LINKER.
4394 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
4395 GNU_USER_TARGET_OS_CPP_BUILTINS.
4396 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
4397 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4398 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4399 GNU_USER_DYNAMIC_LINKER.
4400 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4401 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4402 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
4403 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4404 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4405 GNU_USER_DYNAMIC_LINKER.
4406 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
4407 GNU_USER_DYNAMIC_LINKERN32.
4408 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
4409 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
4410 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
4411 GNU_USER_DYNAMIC_LINKER32.
4412 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
4413 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4414 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4415 GNU_USER_DYNAMIC_LINKER.
4416 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
4417 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4418 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
4419 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4420 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4421 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
4422 GNU_USER_DYNAMIC_LINKER32.
4423 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
4424 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
4425 GNU_USER_DYNAMIC_LINKER.
4426 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
4427 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4428 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4429 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
4430 GNU_USER_DYNAMIC_LINKER64.
4431 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
4432 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4433 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4434 GNU_USER_DYNAMIC_LINKER.
4435 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
4436 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4437 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
4438 GNU_USER_DYNAMIC_LINKER.
4439 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
4440 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4441 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
4442 GNU_USER_DYNAMIC_LINKER32.
4443 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4444 GNU_USER_DYNAMIC_LINKER64.
4445 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
4446 GNU_USER_DYNAMIC_LINKER64.
4447 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
4448 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4449 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
4450 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
4451 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
4452
4453 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4454
4455 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
4456 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
4457 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
4458 GNU_USER_DYNAMIC_LINKER.
4459 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4460 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
4461 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
4462 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
4463 GNU_USER_DYNAMIC_LINKER64.
4464 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
4465 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
4466 GNU_USER_LINK_EMULATION.
4467 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
4468 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
4469 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
4470 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
4471 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
4472 CPP_SPEC, CC1_SPEC): Remove.
4473 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
4474 (GNU_USER_DYNAMIC_LINKER): Define.
4475 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
4476 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
4477 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
4478 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
4479 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
4480 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
4481 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4482 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
4483 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
4484 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
4485 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
4486 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
4487 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
4488 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
4489 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
4490 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
4491 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4492 GNU_USER_DYNAMIC_LINKER.
4493 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4494 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4495 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4496 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4497 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
4498 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
4499 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
4500 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
4501 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
4502 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
4503
4504 2011-04-11 Kai Tietz <ktietz@redhat.com>
4505
4506 PR target/9601
4507 PR target/11772
4508 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
4509 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
4510 comment.
4511 (ix86_is_msabi_thiscall): Removed.
4512 (ix86_is_type_thiscall): Likewise.
4513 (ix86_get_callcvt): New function.
4514 (ix86_comp_type_attributes): Simplify check.
4515 (ix86_function_regparm): Use ix86_get_callcvt for calling
4516 convention attribute checks.
4517 (ix86_return_pops_args): Likewise.
4518 (ix86_static_chain): Likewise.
4519 (x86_this_parameter): Likewise.
4520 (x86_output_mi_thunk): Likewise.
4521 (ix86_function_type_abi): Optimize check for types without attributes.
4522 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
4523 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
4524 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
4525 by flag-values.
4526 (IX86_BASE_CALLCVT): Helper macro.
4527 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
4528 Use ix86_get_callcvt for calling convention attribute checks and avoid
4529 symbol-decoration for stdcall in TARGET_RTD case.
4530 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
4531 Likewise.
4532 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
4533 for declaration.
4534
4535 2011-04-11 Uros Bizjak <ubizjak@gmail.com>
4536
4537 * config/i386/sse.md (VI_128): New mode iterator.
4538 (VI12_128): Rename from SSEMODE12.
4539 (VI14_128): Rename from SSEMODE14.
4540 (VI124_128): New mode iterator.
4541 (VI24_128): Rename from SSEMODE248.
4542 (VI248_128): Rename from SSEMODE248.
4543 (SSEMODE124C8): Remove.
4544 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
4545 (*sse2_<plusminus_insn><mode>3): Merge with
4546 *avx_<plusminus_insn><mode>3.
4547 (*mulv8hi3): Merge with *avx_mulv8hi3.
4548 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
4549 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
4550 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
4551 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
4552 (ashr<mode>3): Merge with *avx_ashr<mode>3.
4553 (lshr<mode>3): Merge with *avx_lshr<mode>3.
4554 (ashl<mode>3): Merge with *avx_ashl<mode>3.
4555 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
4556 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
4557 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
4558 (*<smaxmin:code>v8hi3): Ditto.
4559 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
4560 (*<smaxmin:code>v16qi3): Ditto.
4561 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
4562 (*sse2_eq<mode>3): Ditto.
4563 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
4564 (*sse2_gt<mode>3): Ditto.
4565 (vcondv2di): Split out of vcond<mode>.
4566 (vconduv2di): Split out of vcondu<mode>.
4567
4568 2011-04-11 Richard Guenther <rguenther@suse.de>
4569
4570 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
4571 before calling tree_low_cst.
4572
4573 2011-04-11 Richard Guenther <rguenther@suse.de>
4574
4575 * stor-layout.c (layout_type): Compute all array index size operations
4576 in the original type.
4577 (initialize_sizetypes): Add comment.
4578 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
4579
4580 2011-04-11 Joseph Myers <joseph@codesourcery.com>
4581
4582 * common.opt (Tbss=, Tdata=, Ttext=): New options.
4583
4584 2011-04-11 Martin Jambor <mjambor@suse.cz>
4585
4586 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
4587 of cgraph_node, handle NULL return value.
4588 (cgraph_global_info): Likewise.
4589 (cgraph_rtl_info): Likewise.
4590 * tree-inline.c (estimate_num_insns): Likewise.
4591 * gimplify.c (unshare_body): Likewise.
4592 (unvisit_body): Likewise.
4593 (gimplify_body): Likewise.
4594 * predict.c (optimize_function_for_size_p): Likewise.
4595 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
4596 (call_may_clobber_ref_p_1): Likewise.
4597 * varasm.c (function_section_1): Likewise.
4598 (assemble_start_function): Likewise.
4599
4600 2011-04-11 Martin Jambor <mjambor@suse.cz>
4601
4602 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
4603 of cgraph_node.
4604 * final.c (rest_of_clean_state): Likewise.
4605 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
4606 * passes.c (pass_init_dump_file): Likewise.
4607 (execute_all_ipa_transforms): Likewise.
4608 (function_called_by_processed_nodes_p): Likewise.
4609 * predict.c (maybe_hot_frequency_p): Likewise.
4610 (probably_never_executed_bb_p): Likewise.
4611 (compute_function_frequency): Likewise.
4612 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
4613 (unnest_nesting_tree_1): Likewise.
4614 (lower_nested_functions): Likewise.
4615 * tree-optimize.c (execute_fixup_cfg): Likewise.
4616 (tree_rest_of_compilation): Likewise.
4617 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
4618 * tree-sra.c (ipa_early_sra): Likewise.
4619 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
4620 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
4621 * ipa.c (record_cdtor_fn): Likewise.
4622 * ipa-inline.c (cgraph_early_inlining): Likewise.
4623 (compute_inline_parameters_for_current): Likewise.
4624 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
4625 * ipa-pure-const.c (local_pure_const): Likewise.
4626 * ipa-split.c (split_function): Likewise.
4627 (execute_split_functions): Likewise.
4628 * cgraphbuild.c (build_cgraph_edges): Likewise.
4629 (rebuild_cgraph_edges): Likewise.
4630 (cgraph_rebuild_references): Likewise.
4631 (remove_cgraph_callee_edges): Likewise.
4632 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
4633 (verify_cgraph_node): Likewise.
4634 (cgraph_analyze_functions): Likewise.
4635 (cgraph_preserve_function_body_p): Likewise.
4636 (save_inline_function_body): Likewise.
4637 (save_inline_function_body): Likewise.
4638 * tree-inline.c (copy_bb): Likewise.
4639 (optimize_inline_calls): Likewise.
4640
4641 2011-04-11 Martin Jambor <mjambor@suse.cz>
4642
4643 PR tree-optimization/48195
4644 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
4645 ipa_check_create_edge_args.
4646 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
4647 ipa_check_create_edge_args.
4648 * ipa-inline.c (inline_generate_summary): Do not call
4649 ipa_check_create_node_params and ipa_check_create_edge_args.
4650 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
4651 ipa_check_create_edge_args.
4652
4653 2011-04-09 Anatoly Sokolov <aesok@post.ru>
4654
4655 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
4656 instead of loop.
4657 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4658 * function.c (record_hard_reg_sets): Likewise.
4659 * ira.c (compute_regs_asm_clobbered): Likewise.
4660 * sched-deps.c (sched_analyze_1): Likewise.
4661 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
4662
4663 2011-04-09 Xinliang David Li <davidxl@google.com>
4664
4665 PR tree-optimization/PR48484
4666 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
4667 has_valid_pred lazily
4668
4669 2011-04-09 Duncan Sands <baldrick@free.fr>
4670
4671 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
4672
4673 2011-04-08 Eric Botcazou <ebotcazou@adacore.com>
4674
4675 * combine.c (combine_validate_cost): Adjust comments. Set registered
4676 cost of I0 to zero at the end, if any.
4677
4678 2011-04-08 Xinliang David Li <davidxl@google.com>
4679
4680 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
4681 to insane profile data.
4682
4683 2011-04-08 Xinliang David Li <davidxl@google.com>
4684
4685 * ipa-cp.c (ipcp_update_profiling): Correct
4686 negative scale factor due to insane profile data.
4687
4688 2011-04-08 Xinliang David Li <davidxl@google.com>
4689
4690 * final.c (dump_basic_block_info): New function.
4691 (final): Dump basic block.
4692 (final_scan_insn): Remove old dump.
4693
4694 2011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
4695
4696 PR target/47829
4697 * config.gcc (i386-*-freebsd): Disable unwind table generation for
4698 crtbegin/crtend.
4699
4700 2011-04-08 Michael Matz <matz@suse.de>
4701
4702 PR middle-end/48389
4703 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
4704 functions.
4705 (rebuild_jump_labels): Call rebuild_jump_labels_1.
4706 * rtl.h (rebuild_jump_labels_chain): Declare.
4707 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
4708 insns inserted on edges.
4709
4710 2011-04-08 Joseph Myers <joseph@codesourcery.com>
4711
4712 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
4713 * config/arm/arm-arches.def: New.
4714 * config/arm/arm-opts.h: New.
4715 * config/arm/genopt.sh: New.
4716 * config/arm/arm-tables.opt: New (generated).
4717 * config/arm/arm.c (arm_handle_option, arm_target_help,
4718 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
4719 (all_architectures): Get most table contents from arm-arches.def.
4720 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
4721 arm_selected_tune here.
4722 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
4723 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
4724 (march=, mcpu=, mtune=): Use Enum and Var.
4725 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
4726 (arm.o): Update dependencies.
4727
4728 2011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
4729
4730 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
4731 of header_file.
4732 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
4733 (write_typed_alloc_defns): Likewise.
4734 (main): Calls write_typed_alloc_defns with output_header.
4735
4736 2011-04-08 Vladimir Makarov <vmakarov@redhat.com>
4737
4738 PR inline-asm/48435
4739 * ira-color.c (setup_profitable_hard_regs): Add comments.
4740 Don't take prohibited hard regs into account.
4741 (setup_conflict_profitable_regs): Rename to
4742 get_conflict_profitable_regs.
4743 (check_hard_reg_p): Check prohibited hard regs.
4744
4745 2011-04-08 Nathan Froyd <froydnj@codesourcery.com>
4746
4747 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
4748 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
4749 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
4750
4751 2011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4752
4753 PR target/48366
4754 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
4755 move from floating point to shift amount register.
4756 (emit_move_sequence): Remove secondary reload support for floating
4757 point to shift amount amount register copies.
4758 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
4759 amount register copies.
4760 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
4761 register, return false if mode isn't a scalar integer mode.
4762 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
4763
4764 2011-04-08 Richard Guenther <rguenther@suse.de>
4765
4766 * gimple.c (gimple_call_flags): Remove kludge.
4767
4768 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4769
4770 * sel-sched.c (sel_region_init): Move call to
4771 sel_setup_region_sched_flags after setup_current_loop_nest.
4772
4773 2011-04-08 Andrey Belevantsev <abel@ispras.ru>
4774
4775 PR rtl-optimization/48272
4776 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
4777 init_insn_reg_pressure_info. Adjust a caller.
4778 * sched-int.h (init_insn_reg_pressure_info): Declare.
4779 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
4780 when sched-pressure is enabled.
4781
4782 2011-04-08 Richard Guenther <rguenther@suse.de>
4783
4784 * gimple.c (gimple_set_modified): Do not queue calls to
4785 MODIFIED_NORETURN_CALLS here ...
4786 * tree-ssa-operands.c (update_stmt_operands): ... but here.
4787
4788 2011-04-08 Richard Guenther <rguenther@suse.de>
4789
4790 PR lto/48467
4791 * toplev.c (lang_dependent_init): Do not open asm_out_file
4792 in WPA mode, nor perform debug machinery initialization.
4793 (finalize): Do not unlink asm_out_file in WPA mode.
4794
4795 2011-04-08 Richard Guenther <rguenther@suse.de>
4796
4797 * gimple.h (gimple_call_fntype): New function.
4798 (gimple_call_return_type): Use it.
4799 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
4800 * gimple-low.c (gimple_check_call_args): Likewise.
4801 * gimple.c (gimple_call_flags): Likewise.
4802 (gimple_call_arg_flags): Likewise.
4803 (gimple_call_return_flags): Likewise.
4804 * tree-cfg.c (verify_gimple_call): Likewise.
4805 (do_warn_unused_result): Likewise.
4806 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
4807 * value-prof.c (gimple_ic_transform): Fix fndecl check.
4808
4809 2011-04-08 Dmitry Melnik <dm@ispras.ru>
4810
4811 PR rtl-optimization/48235
4812 * sel-sched.c (code_motion_process_successors): Recompute the last
4813 insn in basic block if control flow changed.
4814 (code_motion_path_driver): Ditto. Recompute the first insn as well.
4815 Update condition for ilist_remove.
4816
4817 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4818
4819 PR rtl-optimization/48302
4820 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
4821 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
4822 it to record added preheader blocks.
4823 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
4824 on to sel_add_loop_preheaders.
4825 (sel_region_init): Move call to setup_current_loop_nest after
4826 sel_init_bbs.
4827
4828 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4829
4830 PR target/48273
4831 * cfgloop.h (loop_has_exit_edges): New helper.
4832 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
4833 non-clonable.
4834 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
4835 that have no exit edges.
4836
4837 2011-04-08 Alexander Monakov <amonakov@ispras.ru>
4838
4839 PR rtl-optimization/48442
4840 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
4841 all callers. Adjust assert.
4842
4843 2011-04-08 Jakub Jelinek <jakub@redhat.com>
4844
4845 PR tree-optimization/48377
4846 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
4847 is_packed to true even for types with smaller TYPE_ALIGN than
4848 TYPE_SIZE.
4849
4850 2011-04-08 Richard Guenther <rguenther@suse.de>
4851
4852 PR bootstrap/48513
4853 * doc/tm.texi: Re-generate.
4854
4855 2011-04-08 Wei Guozhi <carrot@google.com>
4856
4857 PR target/47855
4858 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
4859 * config/arm/arm.c (arm_attr_length_push_multi): New function.
4860 * config/arm/arm.md (*push_multi): Change the length computation to
4861 call a C function.
4862
4863 2011-04-08 Anatoly Sokolov <aesok@post.ru>
4864
4865 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
4866 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
4867 * doc/tm.texi: Regenerate.
4868 * system.h (ASM_OUTPUT_BSS): Poison.
4869 * varasm.c (asm_output_bss): Remove function.
4870 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
4871
4872 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
4873 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
4874 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
4875 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4876 Likewise.
4877 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4878 Likewise.
4879 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
4880 Likewise.
4881 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
4882
4883 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4884
4885 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
4886 EnumValue lines.
4887
4888 2011-04-07 Joseph Myers <joseph@codesourcery.com>
4889
4890 * config/m68k/m68k.c (m68k_handle_option): Don't handle
4891 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
4892 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
4893 OPT_mcpu32.
4894 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
4895 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
4896 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
4897 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
4898 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
4899 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
4900 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4901 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
4902 options. Don't map other m68k options manually. Don't handle
4903 old-style options as canonical.
4904 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
4905 * doc/install.texi (m68k-*-*): Document binutils version requirement.
4906
4907 2011-04-07 Eric Botcazou <ebotcazou@adacore.com>
4908
4909 * basic-block.h (force_nonfallthru): Move to...
4910 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
4911 (force_nonfallthru): ...here.
4912 * cfghooks.c (force_nonfallthru): New function.
4913 * cfgrtl.c (force_nonfallthru): Rename into...
4914 (rtl_force_nonfallthru): ...this.
4915 (commit_one_edge_insertion): Do not set AUX field.
4916 (commit_edge_insertions): Do not discover new basic blocks.
4917 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
4918 (cfg_layout_rtl_cfg_hooks): Likewise.
4919 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
4920 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
4921 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
4922
4923 2011-04-07 Anatoly Sokolov <aesok@post.ru>
4924
4925 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
4926 Remove macros.
4927
4928 2011-04-07 Uros Bizjak <ubizjak@gmail.com>
4929
4930 * config/i386/sse.md: Update copyright year.
4931 (avxcvtvecmode): Remove.
4932 (sse_movhlps): Merge with *avx_movhlps.
4933 (sse_movlhps): Merge with *avx_movlhps.
4934 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
4935 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
4936 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
4937 (sse_loadhps): Merge with *avx_loadhps.
4938 (sse_storelps): Merge with *avx_storelps.
4939 (sse_loadlps): Merge with *avx_loadlps.
4940 (sse_movss): Merge with *avx_movss.
4941 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
4942 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
4943 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
4944 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
4945 (vec_set<mode>_0): Ditto.
4946 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
4947 (sse4_1_insertps): Merge with *avx_insertps.
4948 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
4949 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
4950 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
4951 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
4952 (sse2_storehpd): Merge with *avx_storehpd.
4953 (sse2_loadhpd): Merge with *avx_loadhpd.
4954 (sse2_loadlpd): Merge with *avx_loadlpd.
4955 (sse2_movsd): Merge with *avx_movsd.
4956 (*vec_concatv2df): Merge with *vec_concatv2df.
4957
4958 2011-04-07 Jakub Jelinek <jakub@redhat.com>
4959
4960 PR debug/48343
4961 * combine.c (combine_instructions): Add last_combined_insn,
4962 update it if insn is after it, pass it to all try_combine calls.
4963 (try_combine): Add last_combined_insn parameter, pass it instead of
4964 i3 to propagate_for_debug.
4965
4966 2011-04-07 Nick Clifton <nickc@redhat.com>
4967
4968 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
4969 to handle MDR <-> data register transfers.
4970 (movhi_internal): Likewise.
4971
4972 2011-04-07 Alan Modra <amodra@gmail.com>
4973
4974 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
4975 previous stack info.
4976
4977 2011-04-07 Tom de Vries <tom@codesourcery.com>
4978
4979 PR target/43920
4980 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
4981 flow_find_cross_jump. Swap variables to implement backward replacement.
4982 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
4983
4984 2011-04-07 Tom de Vries <tom@codesourcery.com>
4985
4986 PR target/43920
4987 * cfgcleanup.c (walk_to_nondebug_insn): New function.
4988 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
4989 and bb2.
4990 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
4991 src1 or src2. Redirect edges to the last basic block. Update
4992 frequency and count on multiple basic blocks in case of fallthru.
4993
4994 2011-04-07 Tom de Vries <tom@codesourcery.com>
4995
4996 PR target/43920
4997 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
4998 function.
4999 (old_insns_match_p): Change return type. Replace return false/true
5000 with return dir_none/dir_both. Use can_replace_by.
5001 (flow_find_cross_jump): Add dir_p parameter. Init replacement
5002 direction from dir_p. Register replacement direction in dir, last_dir
5003 and afterlast_dir. Handle new return type of old_insns_match_p using
5004 merge_dir. Return replacement direction in dir_p.
5005 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
5006 return type of old_insns_match_p.
5007 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
5008 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
5009 flow_find_cross_jump.
5010 * basic-block.h (enum replace_direction): New type.
5011 (flow_find_cross_jump): Add parameter to declaration.
5012
5013 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5014
5015 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
5016 (AVXMODEDCVTPS2DQ): Ditto.
5017 (VEC_FLOAT_MODE): Ditto.
5018 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
5019 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5020 (<any_logic:code><mode>3): Use VF mode iterator.
5021 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
5022 Use VF mode iterator.
5023 (copysign<mode>3): Use VF mode iterator.
5024 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
5025 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
5026 (*<any_logic:code><MODEF:mode>3): Merge with
5027 *avx_<any_logic:code><MODEF:mode>3.
5028 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
5029 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
5030 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
5031 (avx_cvtdq2ps<avxmodesuffix>): Remove.
5032 (sse2_cvtdq2ps): Use %v modifier.
5033 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
5034 (avx_cvtps2dq<avxmodesuffix>): Remove.
5035 (sse2_cvtps2dq): Use %v modifier.
5036 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
5037 (avx_cvttps2dq<avxmodesuffix>): Remove.
5038 (sse2_cvttps2dq): Use %v modifier.
5039 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
5040 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
5041 (sse2_cvtsd2siq): Fix insn template.
5042 (sse2_cvtsd2siq_2): Ditto.
5043 (sse2_cvttsd2siq): Ditto.
5044 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
5045 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
5046
5047 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5048
5049 * gcov-io.c: Use GCC Runtime Library Exception.
5050
5051 2011-04-06 Jakub Jelinek <jakub@redhat.com>
5052
5053 PR debug/48466
5054 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
5055 as base_reg whatever register reg has been eliminated to, instead
5056 of hardcoding STACK_POINTER_REGNUM.
5057
5058 2011-04-06 Joseph Myers <joseph@codesourcery.com>
5059
5060 * doc/tm.texi.in: Document C target hooks as separate from general
5061 target hooks.
5062 * doc/tm.texi: Regenerate.
5063 * genhooks.c (struct hook_desc): Add docname field.
5064 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
5065 docname field.
5066 (hook_array): Include c-target.def.
5067 (emit_documentation): Use docname field in output.
5068 (emit_init_macros): Take docname argument. Only emit definitions
5069 for hooks matching docname.
5070 (main): Expect additional arguments in all cases. Pass argument
5071 to emit_init_macros.
5072 * target.def: Move initial macro definitions and comments to
5073 target-hooks-macros.h.
5074 (gcc_targetcm): Move to c-family/c-target.def.
5075 * target.h (targetcm): Move declaration to c-family/c-target.h.
5076 * targhooks.c (default_handle_c_option): Move to
5077 c-family/c-opts.c.
5078 * targhooks.h (default_handle_c_option): Move declaration to
5079 c-family/c-common.h.
5080 * target-hooks-macros.h: New file.
5081 * config.gcc (target_has_targetcm): Define and use to add to
5082 c_target_objs and cxx_target_objs.
5083 * config/default-c.c: New file.
5084 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
5085 of target.h and target-def.h.
5086 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
5087 (darwin_objc_construct_string, darwin_cfstring_ref_p,
5088 darwin_check_cfstring_format_arg): Make static.
5089 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5090 TARGET_STRING_OBJECT_REF_TYPE_P,
5091 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
5092 * config/darwin-protos.h (darwin_objc_construct_string,
5093 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
5094 declare.
5095 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
5096 TARGET_STRING_OBJECT_REF_TYPE_P,
5097 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
5098 * config/t-darwin (darwin-c.o): Update dependencies.
5099 * system.h (TARGET_HAS_TARGETCM): Poison.
5100 * Makefile.in (TARGET_H): Update.
5101 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
5102 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
5103 (default-c.o): New target.
5104 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
5105 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
5106 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
5107 c-target.def.
5108 (build/genhooks.o): Update dependencies.
5109
5110 2011-04-06 Richard Guenther <rguenther@suse.de>
5111
5112 * ipa-inline.c (enum inlining_mode): Remove.
5113 (cgraph_flatten): Use some other token.
5114 (cgraph_edge_early_inlinable_p): New function, split out from ...
5115 (cgraph_perform_always_inlining): New function, split out from ...
5116 (cgraph_decide_inlining_incrementally): ... here.
5117 (cgraph_mark_inline_edge): Adjust.
5118 (cgraph_early_inlining): Re-structure.
5119 (pass_early_inline): Require SSA form.
5120
5121 2011-04-06 Andrew Stubbs <ams@codesourcery.com>
5122 Julian Brown <julian@codesourcery.com>
5123 Mark Shinwell <shinwell@codesourcery.com>
5124
5125 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
5126 LO_REGS only for Thumb-1.
5127 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
5128 be used in short instructions when optimising for size on Thumb-2.
5129
5130 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5131
5132 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
5133 associated with user returns to be preserved.
5134
5135 2011-04-06 Tristan Gingold <gingold@adacore.com>
5136
5137 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
5138 symbol_queue_size, DBXOUT_DECR_NESTING,
5139 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
5140 if XCOFF_DEBUGGING_INFO.
5141
5142 2011-04-06 Uros Bizjak <ubizjak@gmail.com>
5143
5144 * config/i386/i386.md (attribute isa): New.
5145 (attribute enabled): New.
5146 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
5147 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
5148 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
5149 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
5150 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
5151 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5152 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
5153 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
5154
5155 * config/i386/sse.md (VF): New mode iterator.
5156 (VF1): Ditto.
5157 (VF2): Ditto.
5158 (VF_128): Ditto.
5159 (SSEMODEF4): Remove.
5160 (attribute sse): Handle V8SF and V4DF modes.
5161 (<absneg:code><mode>2): Use VF mode iterator.
5162 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
5163 mode iterator.
5164 (<plusminus_insn><mode>3): Use VF mode iterator.
5165 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5166 Use VF mode iterator.
5167 (<sse>_vm<plusminus_insn><mode>3): Merge with
5168 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
5169 (mul<mode>3): Use VF mode iterator.
5170 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
5171 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
5172 mode iterator.
5173 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
5174 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
5175 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
5176 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
5177 mode iterator.
5178 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
5179 Use VF1 mode iterator.
5180 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
5181 (sqrt<VF2:mode>2): New expander.
5182 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
5183 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
5184 and sqrtv2df2. Use VF mode iterator.
5185 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
5186 mode iterator.
5187 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
5188 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
5189 Use VF1 mode iterator.
5190 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
5191 (<smaxmin:code><mode>3): Use VF mode iterator.
5192 (*<smaxmin:code><mode>3_finite): Merge with
5193 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
5194 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5195 (<sse>_vm<smaxmin:code><mode>2): Merge with
5196 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
5197 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
5198 mode iterator.
5199 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
5200 mode iterator.
5201 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
5202 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
5203 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
5204 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
5205 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
5206 VF mode iterator.
5207 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
5208 Use VF_128 mode iterator.
5209 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
5210 mode iterator.
5211 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
5212 VF_128 mode iterator.
5213 (vcond<mode>): Use VF mode iterator.
5214 * config/i386/predicates.md (sse_comparison_operator): Merge with
5215 avx_comparison_float_operator. Do not declare as special_predicate.
5216 * config/i386/i386.c (struct builtin_description): Update for renamed
5217 compare patterns.
5218 (ix86_expand_args_builtin): Ditto.
5219 (ix86_expand_sse_compare_mask): Ditto.
5220
5221 2011-04-06 Richard Guenther <rguenther@suse.de>
5222
5223 * tree-inline.c (estimate_num_insns): For calls simply account
5224 for all passed arguments and a used return value.
5225
5226 2011-04-06 Richard Guenther <rguenther@suse.de>
5227
5228 PR tree-optimization/47663
5229 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
5230 call_stmt_time fields.
5231 (cgraph_edge_inlinable_p): Declare.
5232 (cgraph_edge_recursive_p): New inline function.
5233 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
5234 (cgraph_clone_edge): Copy it.
5235 * ipa-inline.c (cgraph_estimate_edge_time): New function.
5236 Account for call stmt time.
5237 (cgraph_estimate_time_after_inlining): Take edge argument.
5238 (cgraph_estimate_edge_growth): Account call stmt size.
5239 (cgraph_estimate_size_after_inlining): Take edge argument.
5240 (cgraph_mark_inline_edge): Adjust.
5241 (cgraph_check_inline_limits): Likewise.
5242 (cgraph_recursive_inlining_p): Remove.
5243 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
5244 (cgraph_decide_recursive_inlining): Take edge argument and
5245 adjust.
5246 (cgraph_decide_inlining_of_small_functions): Do not avoid
5247 diags for recursive inlining here.
5248 (cgraph_flatten): Adjust.
5249 (cgraph_decide_inlining_incrementally): Likewise.
5250 (estimate_function_body_sizes): Remove call cost handling.
5251 (compute_inline_parameters): Initialize caller edge call costs.
5252 (cgraph_estimate_edge_growth): New function.
5253 (cgraph_estimate_growth): Use it.
5254 (cgraph_edge_badness): Likewise.
5255 (cgraph_check_inline_limits): Take an edge argument.
5256 (cgraph_decide_inlining_of_small_functions): Adjust.
5257 (cgraph_decide_inlining): Likewise.
5258 * tree-inline.c (estimate_num_insns): Only account for call
5259 return value if it is used.
5260 (expand_call_inline): Avoid diagnostics on recursive inline
5261 functions here.
5262 * lto-cgraph.c (lto_output_edge): Output edge call costs.
5263 (input_edge): Input edge call costs.
5264
5265 2011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5266
5267 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
5268
5269 2011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
5270
5271 * doc/invoke.texi (Spec Files): Fix typo.
5272
5273 2011-04-06 Eric Botcazou <ebotcazou@adacore.com>
5274
5275 * profile.c (branch_prob): Move declaration of local variable. Remove
5276 obsolete ??? comment. Expand the location explicitly instead of using
5277 the LOCATION_FILE and LOCATION_LINE macros.
5278
5279 2011-04-06 Wei Guozhi <carrot@google.com>
5280
5281 PR target/47855
5282 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
5283 (arm_cond_branch): Likewise.
5284 (arm_cond_branch_reversed): Likewise.
5285 (arm_jump): Likewise.
5286 (push_multi): Likewise.
5287 * config/arm/constraints.md (Py): New constraint.
5288
5289 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5290
5291 PR bootstrap/48471
5292 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
5293 Move these...
5294 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
5295 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
5296 #ifdef DBX_DEBUGGING_INFO.
5297
5298 2011-04-05 Bernd Schmidt <bernds@codesourcery.com>
5299
5300 PR bootstrap/48403
5301 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
5302 if old and new states differ.
5303
5304 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5305
5306 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
5307 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
5308 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
5309 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
5310 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
5311 mcfv4e): Use Alias.
5312 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
5313 ColdFire options to -mcpu= options.
5314
5315 2011-04-05 Jeff Law <law@redhat.com>
5316
5317 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
5318 check if BB is a successor of LOOP->header and return
5319 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
5320
5321 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5322
5323 * cprop.c (struct reg_use): Remove.
5324 (reg_use_table): Make an array of RTX.
5325 (find_used_regs, constprop_register, local_cprop_pass,
5326 bypass_block): Simplify users of reg_use_table.
5327 (cprop_insn): Likewise. Iterate if copy propagation succeeded
5328 on one of the uses found by find_used_regs.
5329
5330 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5331
5332 PR bootstrap/48469
5333 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
5334 declaration.
5335
5336 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5337
5338 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
5339 as an rtx.
5340 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
5341
5342 2011-04-05 Steven Bosscher <steven@gcc.gnu.org>
5343
5344 PR middle-end/48441
5345 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
5346
5347 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5348
5349 * combine.c: Include obstack.h.
5350 (struct insn_link): Define.
5351 (uid_log_links): Adjust type.
5352 (FOR_EACH_LOG_LINK): New macro.
5353 (insn_link_obstack): Declare.
5354 (alloc_insn_link): Define.
5355 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
5356 type of link variables.
5357 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
5358 (try_combine, record_promoted_values, distribute_notes): Likewise.
5359 (distribute_links): Likewise. Tweak prototype.
5360 (clear_log_links): Delete.
5361 (adjust_for_new_dest): Call alloc_insn_link.
5362 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
5363
5364 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5365
5366 * gcse.c (modify_mem_list): Convert to an array of VECs.
5367 (canon_modify_mem_list, compute_transp): Tweak formatting.
5368 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
5369 (load_killed_in_block_p): Likewise.
5370 (record_last_mem_set_info): Likewise.
5371 (clear_modify_mem_tables): Likewise.
5372
5373 2011-04-05 Tom de Vries <tom@codesourcery.com>
5374
5375 PR middle-end/48461
5376 * function.c (emit_use_return_register_into_block): Only define if
5377 HAVE_return.
5378
5379 2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
5380
5381 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
5382
5383 2011-04-05 Joseph Myers <joseph@codesourcery.com>
5384
5385 * config/rx/rx-opts.h: New.
5386 * config/rx/rx.c (rx_cpu_type): Remove.
5387 (rx_handle_option): Don't assert that global structures are in
5388 use. Access variables via opts pointer. Defer most handling of
5389 OPT_mint_register_. Use error_at.
5390 (rx_option_override): Handle deferred OPT_mint_register_ here.
5391 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
5392 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
5393 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
5394 (rx_cpu_types): New Enum and EnumValue entries.
5395 (mint-register=): Use Defer and use Var accordingly.
5396
5397 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5398
5399 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
5400 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
5401 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
5402 Move these...
5403 (debug_free_queue, debug_nesting, symbol_queue_index):
5404 ...and these...
5405 * dbxout.c: ...to here. Make static.
5406
5407 2011-04-05 Nathan Froyd <froydnj@codesourcery.com>
5408
5409 * gcse.c (modify_pair): Define. Define a VEC of it.
5410 (canon_modify_mem_list): Convert to an array of VECs.
5411 (free_insn_expr_list_list): Delete.
5412 (clear_modify_mem_tables): Call VEC_free instead.
5413 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
5414 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
5415 (canon_list_insert, compute_transp): Likewise.
5416
5417 2011-04-05 Tom de Vries <tom@codesourcery.com>
5418
5419 PR target/43920
5420 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
5421 for size.
5422
5423 2011-04-05 Tom de Vries <tom@codesourcery.com>
5424
5425 PR target/43920
5426 * function.c (emit_use_return_register_into_block): New function.
5427 (thread_prologue_and_epilogue_insns): Use
5428 emit_use_return_register_into_block.
5429
5430 2011-04-05 Tom de Vries <tom@codesourcery.com>
5431
5432 PR target/43920
5433 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
5434 insn.
5435
5436 2011-04-05 Tom de Vries <tom@codesourcery.com>
5437
5438 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
5439
5440 2011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
5441
5442 * config/arm/arm.md (define_constants for unspec): Replace with
5443 define_c_enum.
5444 (define_constants for unspecv): Replace with define_c_enum.
5445 * config/arm/neon.md (define_constants for unspec): Replace with
5446 define_c_enum.
5447
5448 2011-04-04 Richard Henderson <rth@redhat.com>
5449
5450 PR bootstrap/48400
5451 * dwarf2out.c (output_line_info): Always emit line info from
5452 at least one section.
5453 (dwarf2out_init): Create text_section_line_info here ...
5454 (set_cur_line_info_table): ... not here.
5455
5456 2011-04-04 Vladimir Makarov <vmakarov@redhat.com>
5457
5458 PR target/48380
5459 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
5460 not called.
5461
5462 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
5463
5464 2011-04-04 Steven Bosscher <steven@gcc.gnu.org>
5465
5466 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
5467 (expr_equiv_p): Remove.
5468 (insert_set_in_table): Look at <dest, src> pair instead of expr.
5469 (hash_scan_set): Update call to insert_set_in_table.
5470 (dump_hash_table): Dump <dest, src> pair.
5471 (lookup_set): Simplify. Lookup <dest, src> pair.
5472 (compute_transp): Remove, fold heavily simplified code into...
5473 (compute_local_properties): ...here. Expect COMP and TRANSP
5474 unconditionally.
5475 (find_avail_set): Take set directly from struct expr.
5476 (find_bypass-set): Likewise.
5477 (bypass_block): Likewise.
5478 (cprop_insn): Likewise. Remove redundant INSN_P test.
5479
5480 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
5481 checks on form of COND from find_implicit_sets to here.
5482 (find_implicit_sets): Cleanup control flow. Split critical edges
5483 if it exposes implicit sets. Allocate/resize implicit_sets as
5484 necessary.
5485 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
5486 changed something. Run df_analyze after find_implicit_sets if any
5487 edges were split. Do not allocate implicit_sets here.
5488
5489 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
5490 (gcse_obstack): Renamed to cprop_obstack.
5491 (GNEW, GNEWVEC, GNEWVAR): Remove.
5492 (gmalloc): Remove.
5493 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
5494 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
5495 (gcse_alloc): Likewise, and rename to cprop_alloc.
5496 (alloc_gcse_men, free_gcse_mem): Remove.
5497 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
5498 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
5499 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
5500
5501 * cprop.c (oprs_not_set_p): Remove.
5502 (mark_set, mark_clobber): Remove.
5503 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
5504 (reg_not_set_p): New function.
5505 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
5506 (cprop_insn): Likewise.
5507 (cprop_jump): Use FOR_EACH_EDGE.
5508
5509 2011-04-04 Bernd Schmidt <bernds@codesourcery.com>
5510
5511 PR bootstrap/48403
5512 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
5513 (rank_for_schedule): Use scheduled_insns vector instead of
5514 last_scheduled_insn.
5515 (ok_for_early_queue_removal): Likewise.
5516 (queue_to_ready): Search forward in nonscheduled_insns_begin if
5517 we have a dbg_cnt.
5518 (choose_ready): Likewise.
5519 (commit_schedule): Use VEC_iterate.
5520 (schedule_block): Initialize nonscheduled_insns_begin. If we have
5521 a dbg_cnt, use it and ensure the first insn is in the ready list.
5522 (haifa_sched_init): Allocate scheduled_insns.
5523 (sched_extend_ready_list): Don't allocate it; reserve space.
5524 (haifa_sched_finish): Free it.
5525
5526 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5527
5528 * optc-gen.awk: Always remove type from Variable entry before
5529 recording in var_seen.
5530
5531 2011-04-04 Eric Botcazou <ebotcazou@adacore.com>
5532
5533 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
5534 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
5535 call to tidy_fallthru_edges.
5536
5537 2011-04-04 Joseph Myers <joseph@codesourcery.com>
5538
5539 * doc/options.texi (ToLower): Document.
5540 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
5541 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
5542 * opts.h (cl_option): Add cl_tolower field.
5543 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
5544 arguments with lowercase strings.
5545 * config/rx/rx.opt (mcpu=): Add ToLower.
5546 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
5547 argument.
5548
5549 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5550
5551 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
5552
5553 2011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
5554
5555 * config/vax/vax.c: Include reload.h.
5556
5557 2011-04-04 Anatoly Sokolov <aesok@post.ru>
5558
5559 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
5560 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5561 (sparc_preferred_reload_class): New function.
5562
5563 2011-04-04 Jakub Jelinek <jakub@redhat.com>
5564
5565 PR debug/48401
5566 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
5567 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
5568
5569 2011-04-03 Nathan Froyd <froydnj@codesourcery.com>
5570
5571 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
5572 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
5573
5574 2011-04-03 Anatoly Sokolov <aesok@post.ru>
5575
5576 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
5577 (ASM_OUTPUT_ALIGNED_BSS): Define.
5578
5579 2011-04-03 Michael Matz <matz@suse.de>
5580
5581 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
5582 and next_slot members.
5583 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
5584 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
5585 (lto_streamer_cache_append): Declare.
5586 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
5587 unsigned index, remove offset parameter, ensure that we append
5588 or update existing entries.
5589 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
5590 parameter, update next_slot for append.
5591 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
5592 parameter.
5593 (lto_streamer_cache_insert_at): Likewise.
5594 (lto_streamer_cache_append): New function.
5595 (lto_streamer_cache_lookup): Use unsigned index.
5596 (lto_streamer_cache_get): Likewise.
5597 (lto_record_common_node): Don't test tree_node_can_be_shared.
5598 (preload_common_node): Adjust call to lto_streamer_cache_insert.
5599 (lto_streamer_cache_delete): Don't free offsets member.
5600 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
5601 (lto_output_string_with_length): Use lto_output_data_stream.
5602 (lto_output_tree_header): Remove ix parameter, don't write it.
5603 (lto_output_builtin_tree): Likewise.
5604 (lto_write_tree): Adjust callers to above, don't track and write
5605 offset, write unsigned index.
5606 (output_unreferenced_globals): Don't emit all global vars.
5607 (write_global_references): Use unsigned indices.
5608 (lto_output_decl_state_refs): Likewise.
5609 (write_symbol): Likewise.
5610 * lto-streamer-in.c (lto_input_chain): Move earlier.
5611 (input_function): Use unsigned index.
5612 (input_alias_pairs): Don't read and then ignore all global vars.
5613 (lto_materialize_tree): Remove ix_p parameter, don't read index,
5614 don't pass it back, use lto_streamer_cache_append.
5615 (lto_register_var_decl_in_symtab): Use unsigned index.
5616 (lto_register_function_decl_in_symtab): Likewise.
5617 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
5618 index.
5619 (lto_get_builtin_tree): Don't read index, use
5620 lto_streamer_cache_append.
5621 (lto_read_tree): Adjust call to lto_materialize_tree.
5622
5623 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
5624 don't use function calls in arguments to MIN.
5625
5626 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
5627 twice.
5628
5629 * gimple.c (gimple_type_leader_entry): Mark deletable.
5630
5631 2011-04-03 Alan Modra <amodra@gmail.com>
5632
5633 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
5634
5635 2011-04-03 Michael Matz <matz@suse.de>
5636
5637 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
5638 an integer.
5639 * tree.h (tree_decl_non_common.vindex): Adjust comment.
5640
5641 2011-04-03 Michael Matz <matz@suse.de>
5642
5643 * cgraphbuild.c (record_reference): Canonicalize constructor values.
5644 * gimple-fold.c (canonicalize_constructor_val): Accept being called
5645 without function context.
5646 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
5647 current_function_decl and cfun.
5648
5649 2011-04-03 Michael Matz <matz@suse.de>
5650
5651 * tree.c (decl_init_priority_insert): Don't create entry for
5652 default priority.
5653 (decl_fini_priority_insert): Ditto.
5654 (fields_compatible_p, find_compatible_field): Remove.
5655 * tree.h (fields_compatible_p, find_compatible_field): Remove.
5656 * gimple.c (gimple_compare_field_offset): Adjust block comment.
5657
5658 2011-04-03 Eric Botcazou <ebotcazou@adacore.com>
5659
5660 * combine.c (try_combine): Remove useless local variable.
5661
5662 2011-04-03 Richard Guenther <rguenther@suse.de>
5663 Ira Rosen <ira.rosen@linaro.org>
5664
5665 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
5666 non-variable offsets and compare the remaining bases of the two
5667 accesses instead of looking for exact same data-ref.
5668
5669 2011-04-02 Kai Tietz <ktietz@redhat.com>
5670
5671 PR target/48416
5672 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
5673
5674 * i386.c (ix86_is_msabi_thiscall): New helper function.
5675 (ix86_is_type_thiscall): New helper function.
5676 (ix86_comp_type_attributes): Handle thiscall for method-functions
5677 special.
5678 (init_cumulative_args): Likewise.
5679 (find_drap_reg): Likewise.
5680 (ix86_static_chain): Likewise.
5681 (x86_this_parameter): Likewise.
5682 (x86_output_mi_thunk): Likewise.
5683
5684 2011-04-01 Olivier Hainque <hainque@adacore.com>
5685 Nicolas Setton <setton@adacore.com>
5686 Eric Botcazou <ebotcazou@adacore.com>
5687
5688 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
5689 (add_gnat_descriptive_type_attribute): New function.
5690 (gen_array_type_die): Call it.
5691 (gen_enumeration_type_die): Likewise.
5692 (gen_struct_or_union_type_die): Likewise.
5693 (modified_type_die): Likewise.
5694 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
5695 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
5696 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
5697
5698 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5699
5700 PR bootstrap/48148
5701 * dwarf2out.c (resolve_addr): Don't call force_decl_die
5702 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
5703
5704 Revert:
5705 2011-03-17 Richard Guenther <rguenther@suse.de>
5706
5707 PR bootstrap/48148
5708 * lto-cgraph.c (input_overwrite_node): Clear the abstract
5709 origin for decls in other ltrans units.
5710 (input_varpool_node): Likewise.
5711
5712 2011-04-01 Jakub Jelinek <jakub@redhat.com>
5713
5714 PR middle-end/48335
5715 * expr.c (expand_assignment): Handle all possibilities
5716 if TO_RTX is CONCAT.
5717 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
5718 (store_split_bit_field): If SUBREG_REG (op0) or
5719 op0 itself has smaller mode than word, return it
5720 for offset 0 and const0_rtx for out-of-bounds stores.
5721 If word is const0_rtx, skip it.
5722
5723 2011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
5724
5725 * config/h8300/h8300.c (print_operand_address): Rename to...
5726 (h8300_print_operand_address): ...this. Make static. Adjust comments.
5727 Call h8300_print_operand and h8300_print_operand_address instead of
5728 print_operand and print_operand_address. Declare.
5729 (print_operand): Renake to...
5730 (h8300_print_operand): ...this. Make static. Adjust comments.
5731 Call h8300_print_operand instead of print_operand. Declare.
5732 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
5733 (h8300_register_move_cost): Likewise.
5734 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
5735 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
5736 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
5737 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
5738 * config/h8300/h8300-protos.h (print_operand): Delete.
5739 (print_operand_address): Delete.
5740
5741 2011-04-01 Richard Henderson <rth@redhat.com>
5742
5743 PR 48400
5744 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
5745 in strict mode before dwarf4. Re-order tests to early out
5746 before switching sections.
5747
5748 2011-04-01 Nathan Froyd <froydnj@codesourcery.com>
5749
5750 * config/h8300/constraints.md: New file.
5751 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
5752 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
5753 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
5754 * config/h8300/predicates.md (bit_operand): Likewise.
5755 (incdec_operand): Use satisfies_constraint_M and
5756 satisfies_constraint_O. Don't use C code block.
5757 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
5758 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
5759 (compute_mov_length): Use satisfies_constraint_G.
5760 (fix_bit_operand): Use satisfies_constraint_U.
5761 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
5762 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
5763 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
5764 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
5765 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
5766 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
5767 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
5768 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
5769 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
5770 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
5771 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
5772 (EXTRA_MEMORY_CONSTRAINT): Delete.
5773
5774 2011-04-01 Andrew Pinski <pinskia@gmail.com>
5775 Michael Meissner <meissner@linux.vnet.ibm.com>
5776
5777 PR target/48262
5778 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
5779 operands, as per the specifications.
5780
5781 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
5782 (vec_extract_evenv4sf): Ditto.
5783 (vec_extract_evenv8hi): Ditto.
5784 (vec_extract_evenv16qi): Ditto.
5785 (vec_extract_oddv4si): Ditto.
5786
5787 2011-03-31 Mark Wielaard <mjw@redhat.com>
5788
5789 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
5790 high_pc attribute if the CU has no associated code. Only output
5791 DW_AT_entry_pc for CU if not generating strict dwarf and
5792 dwarf_version < 4.
5793
5794 2011-04-01 Bernd Schmidt <bernds@codesourcery.com>
5795
5796 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
5797 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
5798 out of ...
5799 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
5800 * final.c (final_start_function): Call the new function rather
5801 than using a NULL argument for dwarf2out_frame_debug.
5802
5803 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
5804 that contains the prologue.
5805
5806 * haifa-sched.c (queue_insn): New arg REASON. All callers
5807 changed. Print it in debugging output.
5808
5809 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
5810
5811 * sched-ebb.c (begin_schedule_ready): Remove second argument.
5812 Split most of the code into...
5813 (begin_move_insn): ... here. New function.
5814 (ebb_sched_info): Add a pointer to it.
5815 * haifa-sched.c (scheduled_insns): New static variable.
5816 (sched_extend_ready_list): Allocate it.
5817 (schedule_block): Use it to record the order of scheduled insns.
5818 Perform RTL changes to move insns only after all scheduling
5819 decisions have been made.
5820 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
5821 begin_move_insn field.
5822 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
5823 * sched-int.h (struct haifa_sched_info): Remove second argument
5824 from begin_schedule_ready hook. Add new member begin_move_insn.
5825 * sched-rgn.c (begin_schedule_ready): Remove second argument.
5826 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
5827
5828 * haifa-sched.c (prune_ready_list): New function, broken out of
5829 schedule_block.
5830 (schedule_block): Use it.
5831
5832 2011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5833
5834 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
5835
5836 2011-04-01 Kai Tietz <ktietz@redhat.com>
5837
5838 * config.gcc (*-*-mingw*): Allow as option the
5839 posix threading model.
5840 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
5841 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
5842 definition.
5843 (CPP_SPEC): Add pthread/no-pthread handling.
5844 (LIB_SPEC): Likewise.
5845 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
5846 (LIB_SPEC): Likewise.
5847 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
5848 flag to pass -pthread option for shared libgcc build.
5849 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
5850 for shared libgcc build.
5851 * config/i386/t-mingw-pthread: New file.
5852 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
5853 New define to enable use of library pthread by default.
5854 * config/i386/mingw.opt (pthread): New driver option.
5855 (no-pthread): New driver option.
5856 * config/i386/cygming.opt: Make sure trailing empty line is retained.
5857 * config/i386/mingw-w64.opt: Likewise.
5858
5859 2011-04-01 Gary Funck <gary@intrepid.com>
5860
5861 * c-decl.c (grokdeclarator): Fix formatting.
5862
5863 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5864
5865 * expr.c (emit_block_move_via_movmem): Use n_generator_args
5866 instead of n_operands.
5867 (set_storage_via_setmem): Likewise.
5868 * optabs.c (maybe_gen_insn): Likewise.
5869 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
5870 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
5871 (mips_expand_builtin_direct): Likewise.
5872 * config/spu/spu.c (expand_builtin_args): Likewise.
5873
5874 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5875
5876 * recog.h (insn_data_d): Add n_generator_args.
5877 * genoutput.c (data): Likewise.
5878 (output_insn_data): Print it.
5879 (max_opno, num_dups): Delete.
5880 (scan_operands): Just fill in "d->operand[...]".
5881 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
5882
5883 2011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
5884
5885 * gensupport.h (pattern_stats): New structure.
5886 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
5887 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
5888 (max_operand_1, max_operand_vec): Delete.
5889 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
5890
5891 2011-03-31 Nathan Froyd <froydnj@codesourcery.com>
5892
5893 * emit-rtl.c (emit_pattern_after_setloc): New function.
5894 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
5895 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
5896 (emit_pattern_after): New function.
5897 (emit_insn_after, emit_jump_insn_after): Call it.
5898 (emit_call_insn_after, emit_debug_insn_after): Likewise.
5899 (emit_pattern_before_setloc): New function.
5900 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
5901 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
5902 Likewise.
5903 (emit_pattern_before): New function.
5904 (emit_insn_before, emit_jump_insn_before): Call it.
5905 (emit_call_insn_before, emit_debug_insn_before): Likewise.
5906
5907 2011-03-31 Richard Henderson <rth@redhat.com>
5908
5909 * dwarf2out.c (dw_separate_line_info_ref): Remove.
5910 (dw_separate_line_info_entry): Remove.
5911 (enum dw_line_info_opcode): New.
5912 (dw_line_info_entry): Use it.
5913 (dw_line_info_table, dw_line_info_table_p): New.
5914 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
5915 (line_info_table, line_info_label_num): Remove.
5916 (line_info_table_in_use): Remove.
5917 (separate_line_info_table): Remove.
5918 (separate_line_info_table_allocated): Remove.
5919 (separate_line_info_table_in_use): Remove.
5920 (LINE_INFO_TABLE_INCREMENT): Remove.
5921 (line_info_label_num): New.
5922 (cur_line_info_table): New.
5923 (text_section_line_info, cold_text_section_line_info): New.
5924 (separate_line_info): New.
5925 (SEPARATE_LINE_CODE_LABEL): Remove.
5926 (print_dwarf_line_table): Remove.
5927 (debug_dwarf): Don't dump it.
5928 (output_one_line_info_table): New.
5929 (output_line_info): Use it.
5930 (new_line_info_table): New.
5931 (set_cur_line_info_table): New.
5932 (dwarf2out_switch_text_section): Use it.
5933 (dwarf2out_begin_function): Likewise.
5934 (push_dw_line_info_entry): New.
5935 (dwarf2out_source_line): Rewrite for new line info tables.
5936 (dwarf2out_init): Remove dead initailizations.
5937
5938 2011-03-31 Joseph Myers <joseph@codesourcery.com>
5939
5940 * opts.h (cl_option): Add comments to fields. Add bit-fields for
5941 various flags.
5942 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
5943 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
5944 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
5945 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
5946 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
5947 * opt-functions.awk (flag_init, switch_bit_fields): New.
5948 (switch_flags): Don't handle flags moved to bit-fields. Don't
5949 generate CL_MISSING_OK or CL_SAVE.
5950 * optc-gen.awk: Update to generate bit-field output as well as
5951 flags field.
5952 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
5953 bit-field instead of CL_REJECT_DRIVER flag.
5954 * opts-common.c (generate_canonical_option,
5955 decode_cmdline_option): Use bit-fields instead of CL_* flags.
5956 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
5957 instead of CL_REJECT_NEGATIVE flag.
5958 * toplev.c (print_switch_values): Use cl_report bit-field instead
5959 of CL_REPORT flag.
5960
5961 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
5962
5963 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
5964 a zero minimum index only if it is redundant.
5965
5966 2011-03-31 Vladimir Makarov <vmakarov@redhat.com>
5967
5968 PR rtl-optimization/48381
5969 * ira-color.c (assign_hard_reg): Use hard reg set intersection
5970 instead of ira_class_hard_reg_index for calculating conflicting
5971 hard registers.
5972
5973 2011-03-31 Steven Bosscher <steven@gcc.gnu.org>
5974
5975 * cprop.c: Clean up hash table building.
5976 (reg_avail_info): Remove.
5977 (oprs_available_p): Remove.
5978 (record_last_reg_set_info): Remove.
5979 (record_last_set_info): Remove.
5980 (reg_available_p): New function.
5981 (gcse_constant_p): Do not treat unfolded conditions as constants.
5982 (make_set_regs_unavailable): New function.
5983 (hash_scan_set): Simplify with new reg_available_p.
5984 (compute_hash_table_work): Traverse insns stream only once.
5985 Do not compute reg_avail_info. Traverse insns in reverse order.
5986 Record implicit sets after recording explicit sets from the block.
5987
5988 2011-03-31 Michael Matz <matz@suse.de>
5989
5990 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
5991
5992 2011-03-31 Anatoly Sokolov <aesok@post.ru>
5993
5994 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
5995 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
5996 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
5997 (h8300_mode_dependent_address_p): New function.
5998 (h8300_get_index): Make static.
5999
6000 2011-03-31 Jeff Law <law@redhat.com>
6001
6002 * reload1.c (elimination_effects): Fix typo in recent change.
6003
6004 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
6005 typo potentially leading to null pointer dereference.
6006
6007 * caller-save.c (new_saved_hard_reg): Eliminate return value.
6008 (setup_save_areas): Corresponding changes to avoid useless
6009 assignments.
6010
6011 * jump.c (reversed_comparison_code_parts): Avoid successive return
6012 statements when REVERSE_CONDITION is defined.
6013
6014 * expr.c (expand_assignment): Avoid useless assignments.
6015 (expand_expr_real_1): Likewise.
6016 (expand_expr_real_2): Avoid useless statements.
6017
6018 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
6019
6020 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6021
6022 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
6023 statements.
6024
6025 * stmt.c (expand_expr_stmt): Avoid useless assignment.
6026
6027 2011-03-31 Joseph Myers <joseph@codesourcery.com>
6028
6029 PR target/47109
6030 * doc/tm.texi.in (TARGET_VERSION): Remove.
6031 * doc/tm.texi: Regenerate.
6032 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
6033 * collect2.c (main): Don't use TARGET_VERSION.
6034 * mips-tdump.c (main): Don't use TARGET_VERSION.
6035 * mips-tfile.c (main): Don't use TARGET_VERSION.
6036 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
6037 * config/rs6000/vxworksae.h: Remove.
6038 * config/alpha/alpha.h (TARGET_VERSION): Remove.
6039 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
6040 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
6041 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
6042 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6043 * config/arm/arm.h (TARGET_VERSION): Remove.
6044 * config/arm/coff.h (TARGET_VERSION): Remove.
6045 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
6046 * config/arm/elf.h (TARGET_VERSION): Remove.
6047 * config/arm/freebsd.h (TARGET_VERSION): Remove.
6048 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
6049 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
6050 * config/arm/pe.h (TARGET_VERSION): Remove.
6051 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
6052 * config/arm/semi.h (TARGET_VERSION): Remove.
6053 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
6054 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
6055 * config/arm/vxworks.h (TARGET_VERSION): Remove.
6056 * config/avr/avr.h (TARGET_VERSION): Remove.
6057 * config/bfin/bfin.h (TARGET_VERSION): Remove.
6058 * config/fr30/fr30.h (TARGET_VERSION): Remove.
6059 * config/frv/frv.h (TARGET_VERSION): Remove.
6060 * config/h8300/h8300.h (TARGET_VERSION): Remove.
6061 * config/i386/cygwin.h (TARGET_VERSION): Remove.
6062 * config/i386/darwin.h (TARGET_VERSION): Remove.
6063 * config/i386/darwin64.h (TARGET_VERSION): Remove.
6064 * config/i386/djgpp.h (TARGET_VERSION): Remove.
6065 * config/i386/freebsd.h (TARGET_VERSION): Remove.
6066 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
6067 * config/i386/gnu.h (TARGET_VERSION): Remove.
6068 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
6069 * config/i386/i386elf.h (TARGET_VERSION): Remove.
6070 * config/i386/linux.h (TARGET_VERSION): Remove.
6071 * config/i386/linux64.h (TARGET_VERSION): Remove.
6072 * config/i386/lynx.h (TARGET_VERSION): Remove.
6073 * config/i386/mingw32.h (TARGET_VERSION): Remove.
6074 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
6075 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
6076 * config/i386/netware.h (TARGET_VERSION): Remove.
6077 * config/i386/nto.h (TARGET_VERSION): Remove.
6078 * config/i386/openbsd.h (TARGET_VERSION): Remove.
6079 * config/i386/vxworks.h (TARGET_VERSION): Remove.
6080 * config/ia64/elf.h (TARGET_VERSION): Remove.
6081 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
6082 * config/ia64/hpux.h (TARGET_VERSION): Remove.
6083 * config/ia64/linux.h (TARGET_VERSION): Remove.
6084 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
6085 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
6086 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6087 * config/lm32/lm32.h (TARGET_VERSION): Remove.
6088 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
6089 * config/m32c/m32c.h (TARGET_VERSION): Remove.
6090 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
6091 * config/m32r/m32r.h (TARGET_VERSION): Remove.
6092 * config/m68k/linux.h (TARGET_VERSION): Remove.
6093 * config/m68k/m68k.h (TARGET_VERSION): Remove.
6094 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
6095 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
6096 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
6097 * config/mep/mep.h (TARGET_VERSION): Remove.
6098 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
6099 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6100 * config/mips/iris6.h (MACHINE_TYPE): Remove.
6101 * config/mips/linux.h (TARGET_VERSION): Remove.
6102 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
6103 * config/mips/vxworks.h (TARGET_VERSION): Remove.
6104 * config/mmix/mmix.h (TARGET_VERSION): Remove.
6105 * config/mn10300/linux.h (TARGET_VERSION): Remove.
6106 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
6107 * config/pa/pa.h (TARGET_VERSION): Remove.
6108 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
6109 * config/picochip/picochip.h (TARGET_VERSION): Remove.
6110 * config/rs6000/aix.h (TARGET_VERSION): Remove.
6111 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
6112 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
6113 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
6114 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
6115 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
6116 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
6117 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
6118 * config/rs6000/linux.h (TARGET_VERSION): Remove.
6119 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
6120 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
6121 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
6122 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
6123 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
6124 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
6125 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
6126 * config/s390/linux.h (TARGET_VERSION): Remove.
6127 * config/s390/s390.h (TARGET_VERSION): Remove.
6128 * config/s390/tpf.h (TARGET_VERSION): Remove.
6129 * config/score/score.h (TARGET_VERSION): Remove.
6130 * config/sh/linux.h (TARGET_VERSION): Remove.
6131 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
6132 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
6133 * config/sh/sh.h (TARGET_VERSION): Remove.
6134 * config/sh/sh64.h (TARGET_VERSION): Remove.
6135 * config/sh/superh.h (TARGET_VERSION): Remove.
6136 * config/sh/vxworks.h (TARGET_VERSION): Remove.
6137 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
6138 * config/sparc/linux.h (TARGET_VERSION): Remove.
6139 * config/sparc/linux64.h (TARGET_VERSION): Remove.
6140 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
6141 TARGET_NAME32, TARGET_NAME): Remove.
6142 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
6143 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
6144 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
6145 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
6146 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
6147 * config/spu/spu.h (TARGET_VERSION): Remove.
6148 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
6149 * config/v850/v850.h (TARGET_VERSION): Remove.
6150 * config/vax/linux.h (TARGET_VERSION): Remove.
6151 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
6152 * config/xtensa/elf.h (TARGET_VERSION): Remove.
6153 * config/xtensa/linux.h (TARGET_VERSION): Remove.
6154
6155 2011-03-31 Eric Botcazou <ebotcazou@adacore.com>
6156
6157 PR target/48142
6158 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
6159 frame-related from frame-unrelated adjustments to the stack pointer.
6160
6161 2011-03-31 Jakub Jelinek <jakub@redhat.com>
6162
6163 * common.opt (fdebug-types-section): Move earlier.
6164 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
6165
6166 2011-03-31 Andreas Tobler <andreast@fgznet.ch>
6167
6168 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
6169 var.
6170
6171 2011-03-30 Nathan Froyd <froydnj@codesourcery.com>
6172
6173 * tree.h (CASE_CHAIN): Define.
6174 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
6175 (gimple_redirect_edge_and_branch): Likewise.
6176
6177 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6178
6179 PR middle-end/48367
6180 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
6181 calculation.
6182
6183 2011-03-30 Jeff Law <law@redhat.com>
6184
6185 * PR bootstrap/48371
6186 * reload1.c (reload): Fix botch in last change.
6187
6188 * reload.h (struct reload): Fix typo introduced in last change.
6189
6190 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6191
6192 * config/arm/arm.opt (mhard-float, msoft-float): Mark
6193 Undocumented. Remove help text.
6194 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
6195 -mhard-float.
6196
6197 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6198
6199 * doc/options.texi (NegativeAlias): Document.
6200 (Alias): Mention NegativeAlias.
6201 * opt-functions.awk: Handle NegativeAlias.
6202 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
6203 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
6204 * opts.h (CL_NEGATIVE_ALIAS): Define.
6205 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
6206 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
6207 OPT_mspe_.
6208 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
6209 Alias entries.
6210 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
6211 mno-spe and mno-isel instead of mspe=no and -misel=no.
6212
6213 2011-03-29 Mark Wielaard <mjw@redhat.com>
6214
6215 * common.opt (fdebug-types-section): New flag.
6216 * doc/invoke.texi: Document new -fno-debug-types-section flag.
6217 * dwarf2out.c (use_debug_types): New define.
6218 (struct die_struct): Mark die_id with GTY desc use_debug_types.
6219 (print_die): Guard output of type unit signatures using
6220 use_debug_types.
6221 (build_abbrev_table): Replace assert of dwarf_version >= 4
6222 with assert on use_debug_types.
6223 (size_of_die): Likewise.
6224 (unmark_dies): Likewise.
6225 (value_format): Decide AT_ref_external form on use_debug_types.
6226 (output_die): Replace dwarf_version version check guard with
6227 use_debug_types where appropriate.
6228 (modified_type_die): Likewise.
6229 (gen_reference_type_die): Likewise.
6230 (dwarf2out_start_source_file): Likewise.
6231 (dwarf2out_end_source_file): Likewise.
6232 (prune_unused_types_walk_attribs): Likewise.
6233 (dwarf2out_finish): Likewise.
6234
6235 2011-03-30 Vladimir Makarov <vmakarov@redhat.com>
6236
6237 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
6238
6239 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6240
6241 PR rtl-optimization/48332
6242 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
6243 mode of input operand N and modeN to its actual mode.
6244
6245 2011-03-30 Jeff Law <law@redhat.com>
6246
6247 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
6248 define accessor macro.
6249 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
6250 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
6251 (reg_equiv_init): Likewise.
6252 (reg_equivs_size): New variable.
6253 (reg_equiv_init_size): Remove.
6254 (allocate_initial_values): Move prototype to here from....
6255 * integrate.h (allocate_initial_values): Remove prototype.
6256 * integrate.c: Include reload.h.
6257 (allocate_initial_values): Corresponding changes.
6258 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
6259 (fix_reg_equiv_init, no_equiv): Corresponding changes.
6260 (update_equiv_regs): Corresponding changes.
6261 (ira): Corresponding changes.
6262 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
6263 (push_secondary_reload): Corresponding changes.
6264 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
6265 (make_memloc, find_reloads_address): Corresponding changes.
6266 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
6267 (find_reloads_address_1): Corresponding changes.
6268 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
6269 (refers_to_regno_for_reload_p): Corresponding changes.
6270 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
6271 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
6272 * reload1.c: Include ggc.h.
6273 (grow_reg_equivs): New function.
6274 (replace_pseudos_in, reload): Corresponding changes.
6275 (calculate_needs_all_insns, alter_regs): Corresponding changes.
6276 (eliminate_regs_1, elimination_effects): Corresponding changes.
6277 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
6278 (delete_output_reload): Likewise.
6279 * caller-save.c (mark_referenced_regs): Corresponding changes.
6280 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
6281 * frv/predicates.md (frv_load_operand): Corresponding changes.
6282 * microblaze/microblaze.c (double_memory_operand): Corresponding
6283 changes.
6284 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
6285 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
6286 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
6287 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
6288 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
6289 changes.
6290 * pa/pa.c (emit_move_sequence): Corresponding changes.
6291 * vax/vax.c (nonindexed_address_p): Corresponding changes.
6292
6293 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6294
6295 PR target/47551
6296 * config/arm/arm.c (coproc_secondary_reload_class): Handle
6297 structure modes. Don't check neon_vector_mem_operand for
6298 vector or structure modes.
6299
6300 2011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
6301 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
6302
6303 PR target/43590
6304 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
6305 operand 1 and reshuffle the operands to match.
6306 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
6307
6308 2011-03-30 Christian Schüler <cschueler@gmx.de>
6309
6310 PR driver/48208
6311 * config/c.opt (F): Added 'Driver' to -F option.
6312
6313 PR driver/48260
6314 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
6315 handler function.
6316 * config/darwin.opt: Added '-arch' option.
6317
6318 2011-03-30 Nick Clifton <nickc@redhat.com>
6319
6320 * config/rx/rx.md: Add peepholes and patterns to combine
6321 extending loads and simple arithmetic instructions.
6322 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
6323 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
6324 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
6325 modes to use pre-decrement and post-increment addressing.
6326 (rx_is_restricted_memory_address): Add range checking of REG+INT
6327 addresses.
6328 (rx_print_operand): Add support for %Q. Fix handling of %Q.
6329 (rx_memory_move_cost): Adjust cost of stores.
6330 (rx_adjust_insn_length): New function.
6331
6332 2011-03-30 Jakub Jelinek <jakub@redhat.com>
6333
6334 PR c/48305
6335 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
6336 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
6337 matching arg00/arg01 types.
6338
6339 2011-03-30 Eric Botcazou <ebotcazou@adacore.com>
6340
6341 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
6342 last_location to UNKNOWN_LOCATION.
6343
6344 2011-03-30 H.J. Lu <hongjiu.lu@intel.com>
6345
6346 PR target/48349
6347 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
6348 FLOAT_SSE_REGS.
6349
6350 2011-03-30 Joseph Myers <joseph@codesourcery.com>
6351 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6352
6353 PR bootstrap/48337
6354 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
6355 Init(PROCESSOR_V7).
6356 (sparc_cpu): Likewise.
6357 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
6358 PROCESSOR_V7.
6359
6360 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6361
6362 PR target/48336
6363 PR middle-end/48342
6364 PR rtl-optimization/48345
6365 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
6366 hard regs for given mode from profitable regs when doing secondary
6367 allocation.
6368
6369 2011-03-29 Jeff Law <law@redhat.com>
6370
6371 PR bootstrap/48327
6372 * tree-ssa-threadupdate.c (struct redirection_data): Remove
6373 do_not_duplicate field.
6374 (lookup_redirection_data): Corresponding changes.
6375 (create_duplicates): Always create a template block.
6376 (redirect_edges): Remove code which reused the original block
6377 when it was going to become unreachable code.
6378 (thread_block): Don't set do_not_duplicate field.
6379
6380 2011-03-29 Joseph Myers <joseph@codesourcery.com>
6381
6382 * lto-opts.c (register_user_option_p, lto_register_user_option):
6383 Make type argument unsigned.
6384 * lto-streamer.h (lto_register_user_option): Make type argument
6385 unsigned.
6386 * opth-gen.awk: Make CL_* macros unsigned.
6387 * opts-common.c (find_opt): Make lang_mask argument unsigned.
6388 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
6389 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
6390 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
6391 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
6392 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
6393 (find_opt): Make lang_mask argument unsigned.
6394
6395 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6396
6397 PR rtl-optimization/48331
6398 PR rtl-optimization/48334
6399 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
6400 for any used algorithm.
6401
6402 2011-03-29 Vladimir Makarov <vmakarov@redhat.com>
6403
6404 * ira-conflicts.c (build_object_conflicts): Add unused attribute
6405 to parent_max.
6406
6407 2011-03-29 Uros Bizjak <ubizjak@gmail.com>
6408
6409 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
6410 (alpha_option_override): Don't set alpha_sr_alias_set.
6411 (emit_frame_store_1): Use gen_frame_mem rather than calling
6412 set_mem_alias_set.
6413 (alpha_expand_epilogue): Ditto.
6414
6415 2011-03-29 Ira Rosen <ira.rosen@linaro.org>
6416
6417 PR tree-optimization/48290
6418 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
6419 vectorization, check that relevant phis in the basic block after
6420 the inner loop are really inner loop's exit phis.
6421
6422 2011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
6423
6424 PR debug/48190
6425 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
6426 (cached_dw_loc_list_def): New structure.
6427 (cached_dw_loc_list): New typedef.
6428 (cached_dw_loc_list_table): New variable.
6429 (cached_dw_loc_list_table_hash): New function.
6430 (cached_dw_loc_list_table_eq): Likewise.
6431 (add_location_or_const_value_attribute): Take a bool cache_p.
6432 Cache the list when the parameter is true.
6433 (gen_formal_parameter_die): Update caller.
6434 (gen_variable_die): Likewise.
6435 (dwarf2out_finish): Likewise.
6436 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
6437 while generating debug info for the decl.
6438 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
6439 (dwarf2out_init): Initialize cached_dw_loc_list_table.
6440 (resolve_addr): Cache the result of resolving a chain of
6441 location lists.
6442
6443 2011-03-28 Vladimir Makarov <vmakarov@redhat.com>
6444
6445 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
6446 conflict object hard regset nodes have intersecting hard reg sets.
6447
6448 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
6449 after regstat_init_n_sets_and_refs.
6450
6451 * ira.c: Add more comments at the top.
6452 (setup_stack_reg_pressure_class, setup_pressure_classes):
6453 Add comments how we compute the register pressure classes.
6454 (setup_allocno_and_important_classes): Add more comments.
6455 (setup_class_translate_array, reorder_important_classes)
6456 (setup_reg_class_relations): Add comments.
6457
6458 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
6459 start of the file.
6460
6461 * ira-color.c: Add 2011 to the Copyright line.
6462 (assign_hard_reg): Add more comments.
6463 (improve_allocation): Ditto.
6464
6465 * ira-costs.c: Add 2011 to the Copyright line.
6466 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
6467 comments.
6468 (setup_regno_cost_classes_by_mode): Ditto.
6469
6470 Initial patches from ira-improv branch:
6471
6472 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6473
6474 * ira-build.c (ira_create_object): Remove initialization of
6475 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
6476 (ira_create_allocno): Remove initialization of
6477 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
6478 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
6479 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6480 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
6481 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
6482 Initialize ALLOCNO_ADD_DATA.
6483 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
6484 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
6485 ALLOCNO_REG.
6486 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
6487 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
6488
6489 * ira.c (ira_reallocate): Remove.
6490 (setup_pressure_classes): Call
6491 ira_init_register_move_cost_if_necessary. Use
6492 ira_register_move_cost instead of ira_get_register_move_cost.
6493 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
6494 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
6495
6496 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
6497 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
6498 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
6499 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
6500 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
6501 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
6502 Fix formatting.
6503 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
6504 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6505 (struct allocno_color_data): New.
6506 (allocno_color_data_t): New typedef.
6507 (allocno_color_data): New definition.
6508 (ALLOCNO_COLOR_DATA): New macro.
6509 (struct object_color_data): New.
6510 (object_color_data_t): New typedef.
6511 (object_color_data): New definition.
6512 (OBJECT_COLOR_DATA): New macro.
6513 (update_copy_costs, calculate_allocno_spill_cost): Call
6514 ira_init_register_move_cost_if_necessary. Use
6515 ira_register_move_cost instead of ira_get_register_move_cost.
6516 (move_spill_restore, update_curr_costs): Ditto.
6517 (allocno_spill_priority): Make it inline.
6518 (color_pass): Allocate and free allocno_color_dat and object_color_data.
6519 (struct coalesce_data, coalesce_data_t): New.
6520 (allocno_coalesce_data): New definition.
6521 (ALLOCNO_COALESCE_DATA): New macro.
6522 (merge_allocnos, coalesced_allocno_conflict_p): Use
6523 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
6524 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
6525 (coalesce_allocnos): Ditto.
6526 (setup_coalesced_allocno_costs_and_nums): Ditto.
6527 (collect_spilled_coalesced_allocnos): Ditto.
6528 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
6529 (setup_slot_coalesced_allocno_live_ranges): Ditto.
6530 (coalesce_spill_slots): Ditto.
6531 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
6532 free allocno_coalesce_data.
6533
6534 * ira-conflicts.c: Fix formatting.
6535 (process_regs_for_copy): Call
6536 ira_init_register_move_cost_if_necessary. Use
6537 ira_register_move_cost instead of ira_get_register_move_cost.
6538 (build_object_conflicts): Optimize.
6539
6540 * ira-costs.c (record_reg_classes): Optimize. Call
6541 ira_init_register_move_cost_if_necessary. Use
6542 ira_register_move_cost, ira_may_move_in_cost, and
6543 ira_may_move_out_cost instead of ira_get_register_move_cost and
6544 ira_get_may_move_cost.
6545 (record_address_regs): Ditto.
6546 (scan_one_insn): Optimize.
6547 (find_costs_and_classes): Optimize.
6548 (process_bb_node_for_hard_reg_moves): Call
6549 ira_init_register_move_cost_if_necessary. Use
6550 ira_register_move_cost instead of ira_get_register_move_cost.
6551
6552 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
6553 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
6554 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
6555 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
6556 definitions.
6557 (ira_initiate_emit_data, ira_finish_emit_data)
6558 (create_new_allocno): New functions.
6559 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
6560 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
6561 Use ira_register_move_cost instead of ira_get_register_move_cost.
6562
6563 * ira-int.h: Fix some comments.
6564 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
6565 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
6566 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
6567 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
6568 add_data.
6569 (struct ira_allocno): Make mode and aclass a bitfield. Move other
6570 bitfield after mode. Make hard_regno a short int. Make
6571 hard_regno short. Remove first_coalesced_allocno and
6572 next_coalesced_allocno. Move mem_optimized_dest_p,
6573 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
6574 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
6575 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
6576 temp, colorable_p. Add new member add_data.
6577 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
6578 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
6579 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
6580 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
6581 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
6582 (ALLOCNO_ADD_DATA): New macro.
6583 (ira_emit_data_t): New typedef.
6584 (struct ira_emit_data): New. Move mem_optimized_dest_p,
6585 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
6586 from struct ira_allocno.
6587 (ALLOCNO_EMIT_DATA): New macro.
6588 (ira_allocno_emit_data, allocno_emit_reg): New.
6589 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
6590 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
6591 (OBJECT_ADD_DATA): New macro.
6592 (ira_reallocate): Remove.
6593 (ira_initiate_emit_data, ira_finish_emit_data): New.
6594 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
6595 (ira_init_register_move_cost_if_necessary): New.
6596 (ira_object_conflict_iter_next): Merge into
6597 ira_object_conflict_iter_cond.
6598 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
6599
6600 * ira-live.c (process_single_reg_class_operands): Call
6601 ira_init_register_move_cost_if_necessary. Use
6602 ira_register_move_cost instead of ira_get_register_move_cost.
6603
6604 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
6605
6606 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
6607
6608 * ira-costs.c: Fix formatting.
6609 (cost_classes, cost_classes_num): Remove.
6610 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
6611 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
6612 (cost_classes_del, cost_classes_htab): New.
6613 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
6614 (initiate_regno_cost_classes, setup_cost_classes): New.
6615 (setup_regno_cost_classes_by_aclass): New.
6616 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
6617 (record_reg_classes): Use regno_cost_classes instead of
6618 cost_classes. Move checking opposite operand up.
6619 (record_address_regs): Use regno_cost_classes
6620 instead of cost_classes.
6621 (scan_one_insn): Ditto. Use always general register.
6622 (print_allocno_costs): Use regno_cost_classes instead of
6623 cost_classes.
6624 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
6625 (find_costs_and_classes): Set up cost classes for each registers.
6626 Use also their mode for this. Use regno_cost_classes instead of
6627 cost_classes.
6628 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
6629 cost_classes.
6630 (free_ira_costs, ira_init_costs): Don't use cost_classes.
6631 (ira_costs, ira_set_pseudo_classes): Call
6632 initiate_regno_cost_classes and finish_regno_cost_classes.
6633
6634 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
6635
6636 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
6637
6638 * target.def (ira_cover_classes): Remove.
6639
6640 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
6641
6642 * doc/tm.texi.in: Ditto.
6643
6644 * ira-conflicts.c: Remove mentioning cover classes from the file.
6645 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
6646 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
6647
6648 * targhooks.c (default_ira_cover_classes): Remove.
6649
6650 * targhooks.h (default_ira_cover_classes): Ditto.
6651
6652 * haifa-sched.c: Remove mentioning cover classes from the file.
6653 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6654 ira_pressure_classes and ira_pressure_classes_num instead of
6655 ira_reg_class_cover_size and ira_reg_class_cover. Use
6656 sched_regno_pressure_class instead of sched_regno_cover_class.
6657 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
6658 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6659
6660 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
6661 classes from the file.
6662 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
6663 (struct object_hard_regs, struct object_hard_regs_node): New.
6664 (struct ira_object): New members profitable_hard_regs,
6665 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
6666 (struct ira_allocno): Rename cover_class to aclass. Rename
6667 cover_class_cost and updated_cover_class_cost to class_cost and
6668 updated_class_cost. Remove splay_removed_p and
6669 left_conflict_size. Add new members colorable_p.
6670 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
6671 (ALLOCNO_COLORABLE_P): New macro.
6672 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
6673 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
6674 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
6675 (OBJECT_...): Rename parameter C to O.
6676 (OBJECT_PROFITABLE_HARD_REGS): New macro.
6677 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
6678 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
6679 (struct target_ira_int): New members x_ira_max_memory_move_cost,
6680 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
6681 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
6682 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
6683 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
6684 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
6685 x_ira_reg_class_subunion.
6686 (ira_max_memory_move_cost, ira_max_register_move_cost)
6687 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
6688 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
6689 (ira_important_class_nums, ira_reg_class_superunion): New macros.
6690 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
6691 (ira_reg_class_union): Rename to ira_reg_class_subunion.
6692 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6693 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6694 (ira_tune_allocno_costs_and_cover_classes): Rename to
6695 ira_tune_allocno_costs.
6696 (ira_debug_hard_regs_forest): New.
6697 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
6698 (ira_object_conflict_iter_next): Fix comments.
6699 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
6700 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
6701 cover_class to aclass.
6702 (ira_allocate_and_accumulate_costs): Ditto.
6703 (ira_allocate_and_set_or_copy_costs): Ditto.
6704
6705 * opts.c (decode_options): Remove ira_cover_class check.
6706
6707 * ira-color.c: Remove mentioning cover classes from the file. Use
6708 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
6709 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
6710 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6711 (splay-tree.h): Remove include.
6712 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
6713 before copy_freq_compare_func.
6714 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
6715 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
6716 New definitions.
6717 (hard_regs_roots, hard_regs_node_vec): Ditto.
6718 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
6719 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
6720 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
6721 (create_new_object_hard_regs_node): Ditto.
6722 (add_new_object_hard_regs_node_to_forest): Ditto.
6723 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
6724 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
6725 Ditto.
6726 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
6727 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
6728 (remove_unused_object_hard_regs_nodes): Ditto.
6729 (enumerate_object_hard_regs_nodes): Ditto.
6730 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
6731 (object_hard_regs_subnode_t): Ditto.
6732 (struct object_hard_regs_subnode): Ditto.
6733 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
6734 (setup_object_hard_regs_subnode_index): Ditto.
6735 (get_object_hard_regs_subnodes_num): Ditto.
6736 (form_object_hard_regs_nodes_forest): Ditto.
6737 (finish_object_hard_regs_nodes_tree): Ditto.
6738 (finish_object_hard_regs_nodes_forest): Ditto.
6739 (allocnos_have_intersected_live_ranges_p): Rename to
6740 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6741 (pseudos_have_intersected_live_ranges_p): Rename to
6742 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
6743 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
6744 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
6745 (update_copy_costs): Remove assert. Skip cost update if the hard
6746 reg does not belong the class.
6747 (assign_hard_reg): Process only profitable hard regs.
6748 (uncolorable_allocnos_num): Make it scalar.
6749 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
6750 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
6751 and ira_reg_class_max_nregs.
6752 (bucket_allocno_compare_func): Check frequency first.
6753 (sort_bucket): Add compare function as a parameter.
6754 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
6755 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
6756 (push_allocno_to_stack): Rewrite for checking new allocno
6757 colorability.
6758 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
6759 (push_only_colorable): Pass new parameter to sort_bucket.
6760 (push_allocno_to_spill): Remove.
6761 (allocno_spill_priority_compare): Make it inline and rewrite.
6762 (splay_tree_allocate, splay_tree_free): Remove.
6763 (allocno_spill_sort_compare): New function.
6764 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
6765 build and use splay tree. Choose first allocno in uncolorable
6766 allocno bucket to spill. Remove setting spill cost.
6767 (all_conflicting_hard_regs): Remove.
6768 (setup_allocno_available_regs_num): Check only profitable hard
6769 regs. Print info about hard regs nodes.
6770 (setup_allocno_left_conflicts_size): Remove.
6771 (put_allocno_into_bucket): Don't call
6772 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
6773 (improve_allocation): New.
6774 (color_allocnos): Call setup_profitable_hard_regs,
6775 form_object_hard_regs_nodes_forest, improve_allocation,
6776 finish_object_hard_regs_nodes_forest. Setup spill cost.
6777 (print_loop_title): Use pressure classes.
6778 (color_allocnso): Ditto.
6779 (do_coloring): Remove allocation and freeing splay_tree_node_pool
6780 and allocnos_for_spilling.
6781 (ira_sort_regnos_for_alter_reg): Don't setup members
6782 {first,next}_coalesced_allocno.
6783 (color): Remove allocating and freeing removed_splay_allocno_vec.
6784 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
6785 prohibited_class_mode_regs.
6786
6787 * ira-lives.c: Remove mentioning cover classes from the file. Fix
6788 formatting.
6789 (update_allocno_pressure_excess_length): Use pressure classes.
6790 (inc_register_pressure, dec_register_pressure): Check for pressure
6791 class.
6792 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
6793 pressure class. Use ira_reg_class_nregs instead of
6794 ira_reg_class_max_nregs.
6795 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
6796 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
6797 (single_reg_class): Use ira_reg_class_nregs instead of
6798 ira_reg_class_max_nregs.
6799 (process_bb_node_lives): Use pressure classes.
6800
6801 * ira-emit.c: Remove mentioning cover classes from the file. Use
6802 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
6803 (change_loop): Use pressure classes.
6804 (modify_move_list): Call ira_set_allocno_class instead of
6805 ira_set_allocno_cover_class.
6806
6807 * ira-build.c: Remove mentioning cover classes from the file. Use
6808 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
6809 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
6810 ALLOCNO_UPDATED_CLASS_COST instead of
6811 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
6812 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
6813 (ira_create_allocno): Remove initialization of
6814 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
6815 ALLOCNO_COLORABLE_P.
6816 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
6817 Update conflict regs for the objects.
6818 (create_cap_allocno): Remove assert. Don't propagate
6819 ALLOCNO_AVAILABLE_REGS_NUM.
6820 (ira_free_allocno_costs): New function.
6821 (finish_allocno): Change a part of code into call of
6822 ira_free_allocno_costs.
6823 (low_pressure_loop_node_p): Use pressure classes.
6824 (object_range_compare_func): Don't compare classes.
6825 (setup_min_max_conflict_allocno_ids): Ditto.
6826
6827 * loop-invariant.c: Remove mentioning cover classes from the file.
6828 Use ira_pressure_classes and ira_pressure_classes_num instead of
6829 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
6830 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
6831 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6832 Use reg_allocno_class instead of reg_cover_class.
6833 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
6834 STACK_REG_COVER_CLASS.
6835 (get_regno_cover_class): Rename to get_regno_pressure_class.
6836 (move_loop_invariants): Initialize and finalize regstat.
6837
6838 * ira.c: Remove mentioning cover classes from the file. Add
6839 comments about coloring without cover classes. Use ALLOCNO_CLASS
6840 instead of ALLOCNO_COVER_CLASS. Fix formatting.
6841 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
6842 setup_class_subset_and_memory_move_costs.
6843 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
6844 (setup_cover_and_important_classes): Rename to
6845 setup_allocno_and_important_classes.
6846 (setup_class_translate_array): New.
6847 (setup_class_translate): Call it for allocno and pressure classes.
6848 (cover_class_order): Rename to allocno_class_order.
6849 (comp_reg_classes_func): Use ira_allocno_class_translate instead
6850 of ira_class_translate.
6851 (reorder_important_classes): Set up ira_important_class_nums.
6852 (setup_reg_class_relations): Set up ira_reg_class_superunion.
6853 (print_class_cover): Rename to print_classes. Add parameter.
6854 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
6855 Print pressure classes too.
6856 (find_reg_class_closure): Rename to find_reg_classes. Don't call
6857 setup_reg_subclasses.
6858 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6859 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6860 (setup_prohibited_class_mode_regs): Use
6861 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
6862 (clarify_prohibited_class_mode_regs): New function.
6863 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
6864 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
6865 (ira_init_once): Initialize them.
6866 (free_register_move_costs): Process them.
6867 (ira_init): Move calls of find_reg_classes and
6868 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
6869 Call clarify_prohibited_class_mode_regs.
6870 (ira_no_alloc_reg): Remove.
6871 (too_high_register_pressure_p): Use pressure classes.
6872
6873 * sched-deps.c: Remove mentioning cover classes from the file.
6874 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
6875 ira_pressure_classes and ira_pressure_classes_num instead of
6876 ira_reg_class_cover_size and ira_reg_class_cover.
6877 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
6878 sched_regno_pressure_class instead of sched_regno_cover_class.
6879 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
6880 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
6881
6882 * ira.h: Add 2010 to Copyright.
6883 (ira_no_alloc_reg): Remove external.
6884 (struct target_ira): Rename x_ira_hard_regno_cover_class,
6885 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
6886 x_ira_class_translate to x_ira_hard_regno_allocno_class,
6887 x_ira_allocno_classes_num, x_ira_allocno_classes, and
6888 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
6889 x_ira_pressure_classes, x_ira_pressure_class_translate, and
6890 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
6891 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
6892 x_ira_no_alloc_regs.
6893 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
6894 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
6895 ira_allocno_classes_num and ira_allocno_classes.
6896 (ira_class_translate): Rename to ira_allocno_class_translate.
6897 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
6898 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
6899 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
6900 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
6901 (ira_no_alloc_regs): New.
6902
6903 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
6904 classes from the file. Use ALLOCNO_CLASS instead of
6905 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
6906 ALLOCNO_COVER_CLASS_COST.
6907 (regno_cover_class): Rename to regno_aclass.
6908 (record_reg_classes): Use ira_reg_class_subunion instead of
6909 ira_reg_class_union.
6910 (record_address_regs): Check overflow.
6911 (scan_one_insn): Ditto.
6912 (print_allocno_costs): Print total mem cost fore regional allocation.
6913 (print_pseudo_costs): Use REG_N_REFS.
6914 (find_costs_and_classes): Use classes intersected with them on the
6915 1st pass. Check overflow. Use ira_reg_class_subunion instead of
6916 ira_reg_class_union. Use ira_allocno_class_translate and
6917 regno_aclass instead of ira_class_translate and regno_cover_class.
6918 Modify code for finding regno_aclass. Setup preferred classes for
6919 the next pass.
6920 (setup_allocno_cover_class_and_costs): Rename to
6921 setup_allocno_class_and_costs. Use regno_aclass instead of
6922 regno_cover_class. Use ira_set_allocno_class instead of
6923 ira_set_allocno_cover_class.
6924 (init_costs, finish_costs): Use regno_aclass instead of
6925 regno_cover_class.
6926 (ira_costs): Use setup_allocno_class_and_costs instead of
6927 setup_allocno_cover_class_and_costs.
6928 (ira_tune_allocno_costs_and_cover_classes): Rename to
6929 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
6930 by processing objects. Use ira_reg_class_max_nregs instead of
6931 ira_reg_class_nregs.
6932
6933 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
6934
6935 * sched-int.h: Remove mentioning cover classes from the file.
6936 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
6937
6938 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
6939 classes from the file.
6940 (struct reg_pref): Rename coverclass into allocnoclass.
6941 (reg_cover_class): Rename to reg_allocno_class.
6942
6943 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
6944
6945 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
6946
6947 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
6948
6949 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
6950
6951 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
6952
6953 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
6954
6955 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
6956
6957 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
6958
6959 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
6960
6961 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
6962
6963 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
6964 (i386_ira_cover_classes): Ditto.
6965
6966 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
6967
6968 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
6969
6970 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
6971
6972 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
6973
6974 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
6975
6976 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
6977
6978 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
6979 (mips_ira_cover_classes): Ditto.
6980
6981 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
6982
6983 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
6984
6985 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
6986
6987 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
6988
6989 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
6990
6991 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
6992 (IRA_COVER_CLASSES_VSX): Ditto.
6993
6994 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
6995 (rs6000_ira_cover_classes): Ditto.
6996
6997 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
6998
6999 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
7000
7001 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
7002
7003 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
7004
7005 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
7006
7007 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
7008
7009 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
7010
7011 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
7012
7013 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
7014
7015 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
7016
7017 2011-03-29 Jakub Jelinek <jakub@redhat.com>
7018
7019 PR debug/48253
7020 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
7021 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
7022 dw_fde_unlikely_section_end_label, cold_in_std_section,
7023 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
7024 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
7025 fields.
7026 (output_fde): Use dw_fde_second_{begin,end} if second is
7027 true, otherwise dw_fde_{begin,end}.
7028 (output_call_frame_info): Test dw_fde_second_begin != NULL
7029 instead of dw_fde_switched_sections.
7030 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
7031 fields, initialize new fields. Initialize in_std_section
7032 unconditionally from the first partition.
7033 (dwarf2out_end_epilogue): Don't override dw_fde_end when
7034 dw_fde_second_begin is non-NULL.
7035 (dwarf2out_switch_text_section): Stop initializing removed
7036 dw_fde_struct fields, initialize new fields, initialize
7037 also dw_fde_end here. Set dw_fde_switch_cfi even when
7038 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
7039 (struct var_loc_list_def): Add last_before_switch field.
7040 (arange_table, arange_table_allocated, arange_table_in_use,
7041 ARANGE_TABLE_INCREMENT, add_arange): Removed.
7042 (size_of_aranges): Count !in_std_section and !second_in_std_section
7043 hunks in fdes, instead of looking at arange_table_in_use.
7044 (output_aranges): Add aranges_length argument, don't call
7045 size_of_aranges here. Instead of using aranges_table*
7046 emit ranges for fdes when !in_std_section resp.
7047 !second_in_std_section.
7048 (dw_loc_list): Break ranges crossing section switch.
7049 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7050 use dw_fde_second_end instead of dw_fde_end as end of last range.
7051 (gen_subprogram_die): Don't call add_arange. Use
7052 dw_fde_{begin,end} for first partition and if switched
7053 section dw_fde_second_{begin,end} for the second.
7054 (var_location_switch_text_section_1,
7055 var_location_switch_text_section): New functions.
7056 (dwarf2out_begin_function): Initialize cold_text_section even
7057 when function_section () isn't text_section.
7058 (prune_unused_types): Don't walk arange_table.
7059 (dwarf2out_finish): Don't needlessly test
7060 flag_reorder_blocks_and_partition when testing cold_text_section_used.
7061 If info_section_emitted, call size_of_aranges and if it indicates
7062 non-empty .debug_aranges, call output_aranges with the computed
7063 size. Stop using removed dw_fde_struct fields, use
7064 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
7065 for second.
7066
7067 PR debug/48203
7068 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
7069 create ENTRY_VALUE if incoming or address of incoming's MEM
7070 is a hard REG.
7071 * dwarf2out.c (mem_loc_descriptor): Don't emit
7072 DW_OP_GNU_entry_value of DW_OP_fbreg.
7073 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
7074 on ENTRY_VALUE is able to find the canonical parameter VALUE.
7075 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
7076 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
7077 ENTRY_VALUE_EXPs.
7078 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
7079 is a REG_P or MEM_P with REG_P address, compute hash directly
7080 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
7081 (preserve_only_constants): Don't clear VALUES forwaring
7082 ENTRY_VALUE to some other VALUE.
7083
7084 2011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
7085
7086 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
7087 instead of GEN_INT.
7088
7089 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7090
7091 * cfgexpand.c (expand_gimple_cond): Always set the source location and
7092 block before expanding the statement.
7093 (expand_gimple_stmt_1): Likewise. Set them here...
7094 (expand_gimple_stmt): ...and not here. Tidy.
7095 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
7096 unknown.
7097
7098 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7099
7100 * Makefile.in: New rule for cprop.o.
7101 * gcse.c: Move constant/copy propagation to cprop.c.
7102 (compute_local_properties): Only handle expression tables.
7103 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
7104 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
7105 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
7106 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7107 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
7108 compute_cprop_data, find_used_regs, try_replace_reg,
7109 find_avail_set, cprop_jump, constprop_register, cprop_insn,
7110 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
7111 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
7112 find_bypass_set, reg_killed_on_edge, bypass_block,
7113 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
7114 execute_rtl_cprop, pass_rtl_cprop): Move to...
7115 * cprop.c: ...here. New file, constant/copy propagation for RTL
7116 moved from gcse.c to here with minor cleanups in duplicated code.
7117
7118 2011-03-28 H.J. Lu <hongjiu.lu@intel.com>
7119
7120 * config/i386/i386.c (flag_opts): Fix a typo in
7121 -mavx256-split-unaligned-store.
7122
7123 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7124
7125 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
7126 LIBCALL_VALUE): Remove macros.
7127 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7128 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7129 (h8300_function_value, h8300_libcall_value,
7130 h8300_function_value_regno_p): New functions.
7131
7132 2011-03-28 Anatoly Sokolov <aesok@post.ru>
7133
7134 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
7135
7136 2011-03-28 Jeff Law <law@redhat.com>
7137
7138 * tree-ssa-threadupdate.c (redirect_edges): Call
7139 create_edge_and_update_destination_phis as needed.
7140 (create_edge_and_update_destination_phis): Accept new BB argument.
7141 All callers updated.
7142 (thread_block): Do not update the profile when threading around
7143 intermediate blocks.
7144 (thread_single_edge): Likewise.
7145 (determine_bb_domination_status): If BB is not a successor of the
7146 loop header, return NONDOMINATING.
7147 (register_jump_thread): Note when we register a jump thread around
7148 an intermediate block.
7149 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
7150 (thread_across_edge): Use it.
7151
7152 2011-03-28 Tristan Gingold <gingold@adacore.com>
7153
7154 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
7155 when for_return is 2.
7156
7157 2011-03-28 Jeff Law <law@redhat.com>
7158
7159 * var-tracking.c (canonicalize_values_mark): Delete unused
7160 lhs assignment.
7161 (canonicalize_values_star, set_variable_part): Likewise.
7162 (clobber_variable_part, delete_variable_part): Likewise.
7163
7164 2011-03-28 Steven Bosscher <steven@gcc.gnu.org>
7165
7166 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
7167
7168 2011-03-28 Martin Jambor <mjambor@suse.cz>
7169
7170 * tree-inline.c (expand_call_inline): Do not check that destination
7171 node is analyzed.
7172 (optimize_inline_calls): Assert that destination node is analyzed.
7173 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
7174 not call tree_lowering_passes.
7175 * cgraph.h (cgraph_analyze_function): Declare.
7176 * cgraphunit.c (cgraph_analyze_function): Make public.
7177
7178 2011-03-28 Joseph Myers <joseph@codesourcery.com>
7179
7180 * config/sparc/sparc-opts.h: New.
7181 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
7182 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
7183 (sparc_option_override): Store processor_type enumeration rather
7184 than string in cpu_default. Remove name and enumeration from
7185 cpu_table. Directly default -mcpu then default -mtune from -mcpu
7186 without using sparc_select. Use target_flags_explicit instead of
7187 fpu_option_set.
7188 * config/sparc/sparc.h (enum processor_type): Move to
7189 sparc-opts.h.
7190 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
7191 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
7192 HeaderInclude entry.
7193 (mcpu=, mtune=): Use Var and Enum.
7194 (sparc_processor_type): New Enum and EnumValue entries.
7195
7196 2011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7197 Iain Sandoe <iains@gcc.gnu.org>
7198
7199 PR target/48245
7200 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
7201
7202 2011-03-28 Eric Botcazou <ebotcazou@adacore.com>
7203
7204 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
7205 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
7206 Insert new statements at it in lieu of STMT.
7207 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
7208 * tree-vect-stmts.c (vectorizable_store): Likewise.
7209 (vectorizable_load): Likewise.
7210
7211 2011-03-28 Uros Bizjak <ubizjak@gmail.com>
7212
7213 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
7214 (divtf3): Ditto.
7215 (multf3): Ditto.
7216 (subtf3): Ditto.
7217
7218 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7219
7220 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
7221 unaligned 256bit load/store.
7222 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
7223 (*avx_movdqu<avxmodesuffix>): Likewise.
7224
7225 2011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7226
7227 PR target/48288
7228 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
7229 * config/pa/pa.md (iordi3): Use new predicate in expander.
7230 (iorsi3): Likewise.
7231
7232 2011-03-27 Anatoly Sokolov <aesok@post.ru>
7233
7234 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
7235 FUNCTION_VALUE_REGNO_P): Remove macros.
7236 * config/mips/mips-protos.h (mips_function_value): Remove.
7237 * config/mips/mips.c (mips_function_value): Rename to...
7238 (mips_function_value_1): ... this. Make static. Handle receiving
7239 the function type in 'fn_decl_or_type' argument.
7240 (mips_function_value, mips_libcall_value,
7241 mips_function_value_regno_p): New function.
7242 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
7243 TARGET_FUNCTION_VALUE_REGNO_P): Define.
7244
7245 2011-03-27 H.J. Lu <hongjiu.lu@intel.com>
7246
7247 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
7248 and -mavx256-split-unaligned-store.
7249 (ix86_option_override_internal): Split 32-byte AVX unaligned
7250 load/store by default.
7251 (ix86_avx256_split_vector_move_misalign): New.
7252 (ix86_expand_vector_move_misalign): Use it.
7253
7254 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
7255 -mavx256-split-unaligned-store.
7256
7257 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
7258 256bit load/store. Generate unaligned store on misaligned memory
7259 operand.
7260 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
7261 256bit load/store.
7262 (*avx_movdqu<avxmodesuffix>): Likewise.
7263
7264 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
7265 -mavx256-split-unaligned-store.
7266
7267 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7268
7269 PR target/38598
7270 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
7271 Update commentary.
7272
7273 2011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
7274
7275 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
7276 opno arguments with an expand_operand. Use create_input_operand.
7277 (mips_prepare_builtin_target): Delete.
7278 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
7279 functions.
7280 (mips_expand_builtin_direct): Use create_output_operand and
7281 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
7282 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
7283 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
7284
7285 2011-03-27 Ira Rosen <ira.rosen@linaro.org>
7286
7287 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
7288 function.
7289 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7290
7291 2011-03-26 Eric Botcazou <ebotcazou@adacore.com>
7292
7293 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
7294 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
7295 basic blocks and call commit_edge_insertions directly.
7296 (fixup_abnormal_edges): Move from here to...
7297 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
7298 on the edges and return whether some have actually been inserted.
7299 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
7300 compensation code.
7301
7302 2011-03-26 Andrey Belevantsev <abel@ispras.ru>
7303
7304 PR rtl-optimization/48144
7305 * sel-sched-ir.c (merge_history_vect): Factor out from ...
7306 (merge_expr_data): ... here.
7307 (av_set_intersect): Rename to av_set_code_motion_filter.
7308 Update all callers. Call merge_history_vect when an expression
7309 is found in both sets.
7310 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
7311
7312 2011-03-26 Alan Modra <amodra@gmail.com>
7313
7314 * config/rs6000/predicates.md (word_offset_memref_op): Handle
7315 cmodel medium addresses.
7316 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
7317 64-bit gpr loads and stores.
7318 (rs6000_secondary_reload_ppc64): New function.
7319 * config/rs6000/rs6000-protos.h: Declare it.
7320 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
7321
7322 2011-03-26 Alan Modra <amodra@gmail.com>
7323
7324 PR target/47487
7325 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
7326 GNU Go in traceback table.
7327
7328 2011-03-25 Richard Henderson <rth@redhat.com>
7329
7330 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
7331 if there are exactly 6 operands.
7332 (set_storage_via_setmem): Similarly.
7333
7334 2011-03-25 Kai Tietz <ktietz@redhat.com>
7335
7336 * collect2.c (write_c_file_stat): Handle backslash
7337 as right-hand directory separator.
7338 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
7339 checking just for slash.
7340 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
7341 instead of checking for trailing slash.
7342 * gcc.c (record_temp_file): Use filename_cmp instead
7343 of strcmp.
7344 (do_spec_1): Likewise.
7345 (replace_outfile_spec_function): Likewise.
7346 (is_directory): Use filename_ncmp instead of strncmp.
7347 (print_multilib_info): Likewise.
7348 * gcov.c (find_source): Use filename_cmp instead
7349 instead of strcmp.
7350 (make_gcov_file_name): Fix order of slash/backslash
7351 checks.
7352 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
7353 (add_standard_paths): Likewise.
7354 * mips-tfile.c (saber_stop): Handle backslash.
7355 * prefix.c (update_path): Use filename_ncmp instead of
7356 strncmp.
7357 * profile.c (output_location): Use filename_cmp instead
7358 of strcmp.
7359 * read-md.c (handle_toplevel_file): Handle backslash.
7360 * tlink.c (frob_extension): Likewise.
7361 * tree-cfg.c (same_line_p): Use filename_cmp instead of
7362 strcmp.
7363 * tree-dump.c (dequeue_and_dump): Handle backslash.
7364 * tree.c (get_file_function_name): Likewise.
7365 * gengtype.c (read_input_list): Likewise.
7366 (get_file_realbasename): Likewise.
7367 (get_output_file_with_visibility): Use filename_cmp
7368 instead of strcmp.
7369
7370 2011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
7371
7372 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
7373 case to VFPv1.
7374
7375 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7376
7377 * fold-const.c (expr_location_or): New function.
7378 (fold_truth_not_expr): Call it.
7379
7380 2011-03-25 Jeff Law <law@redhat.com>
7381
7382 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
7383 va_end.
7384 * c-family/c-common.c (def_fn_type): Likewise.
7385 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
7386 * emit-rtl.c (gen_rtvec): Likewise.
7387 * lto/lto-lang.c (def_fn_type): Likewise.
7388
7389 2011-03-25 Richard Guenther <rguenther@suse.de>
7390
7391 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
7392 also generate copies.
7393 (fini_copy_prop): Handle constant values properly.
7394
7395 2011-03-25 Jakub Jelinek <jakub@redhat.com>
7396
7397 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
7398 mode size instead of bitsize with DWARF2_ADDR_SIZE.
7399 (hash_loc_operands, compare_loc_operands): Handle
7400 DW_OP_GNU_entry_value.
7401
7402 2011-03-25 Kai Tietz <ktietz@redhat.com>
7403
7404 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
7405 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
7406 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
7407 comment and use macro TARGET_64BIT_MS_ABI instead.
7408 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
7409 and change default behavior for 32-bit MS_ABI.
7410 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
7411 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
7412 32-bit, too.
7413 (ix86_cfun_abi): Likewise.
7414 (ix86_maybe_switch_abi): Adjust comment.
7415 (init_cumulative_args): Check for bit-ness in MS_ABI case.
7416 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
7417 instead of checking for SYSV_ABI.
7418 (ix86_nsaved_sseregs): Likewise.
7419 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
7420 to 16 bytes.
7421 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
7422 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
7423 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
7424 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
7425 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
7426
7427 2011-03-25 Richard Guenther <rguenther@suse.de>
7428
7429 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
7430 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7431 (verify_gimple): Remove.
7432 * tree-cfg.c (verify_gimple_call): Merge verification
7433 from verify_stmts.
7434 (verify_gimple_phi): Merge verification from verify_stmts.
7435 (verify_gimple_label): New function.
7436 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
7437 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
7438 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
7439 (verify_stmts): Rename to verify_gimple_in_cfg.
7440 (verify_gimple_in_cfg): New function.
7441 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
7442 * tree-ssa.c (verify_ssa): Likewise.
7443 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
7444
7445 2011-03-25 Richard Guenther <rguenther@suse.de>
7446
7447 * passes.c (init_optimization_passes): Add FRE pass after
7448 early SRA.
7449
7450 2011-03-25 Bernd Schmidt <bernds@codesourcery.com>
7451 Andrew Stubbs <ams@codesourcery.com>
7452
7453 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
7454 for Cortex-A8.
7455 (arm_movdi_vfp_cortexa8): New pattern.
7456 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
7457 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
7458 instructions when tuning for Cortex-A8. Set attribute "arch".
7459 * config/arm/arm.md: Move include arm-tune.md up a bit.
7460 (define_attr "arch"): Add "onlya8" and "nota8" values.
7461 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
7462
7463 2011-03-25 Nathan Froyd <froydnj@codesourcery.com>
7464
7465 PR bootstrap/48282
7466 Revert:
7467 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7468
7469 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7470 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7471 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7472 * passes.c (init_optimization_passes): Move
7473 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7474
7475 2011-03-25 Kai Tietz <ktietz@redhat.com>
7476
7477 * c-typeck.c (comptypes_internal): Replace target
7478 hook call of comp_type_attributes by version in tree.c file.
7479 * gimple.c (gimple_types_compatible_p_1): Likewise.
7480 * tree-ssa.c (useless_type_conversion_p): Likewise.
7481 * tree.c (build_type_attribute_qual_variant): Likewise.
7482 (attribute_value_equal): New static helper function.
7483 (comp_type_attributes): New function.
7484 (merge_attributes): Use attribute_value_equal for comparison.
7485 (attribute_list_contained): Likewise.
7486 * tree.h (comp_type_attributes): New prototype.
7487
7488 2011-03-25 Richard Guenther <rguenther@suse.de>
7489
7490 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
7491 of complex types at -O0.
7492 (verify_gimple_assign_binary): Likewise.
7493 (verify_gimple_assign_ternary): Likewise.
7494
7495 2011-03-24 Mark Wielaard <mjw@redhat.com>
7496
7497 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
7498 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
7499
7500 2011-03-24 Mark Wielaard <mjw@redhat.com>
7501
7502 PR debug/48041
7503 * dwarf2out.c (output_abbrev_section): Only write table when
7504 abbrev_die_table_in_use > 1.
7505
7506 2011-02-24 Richard Henderson <rth@redhat.com>
7507
7508 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
7509 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
7510 (alpha_expand_unaligned_load_words): Use extql.
7511 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
7512 (emit_insxl): Handle all modes for consistency.
7513
7514 2011-02-24 Richard Henderson <rth@redhat.com>
7515
7516 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
7517 (alpha_expand_unaligned_load): Likewise.
7518 (alpha_expand_unaligned_store): Likewise.
7519 (alpha_expand_unaligned_load_words): Likewise.
7520 (alpha_expand_unaligned_store_words): Likewise.
7521 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
7522 (alpha_split_lock_test_and_set_12): Likewise.
7523 (print_operand, alpha_fold_builtin_extxx): Likewise.
7524 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
7525 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
7526 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
7527 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
7528 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
7529 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
7530 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
7531 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
7532 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
7533 (extwl, extll, extql): Similarly.
7534 (inswh, inslh, insqh): Similarly.
7535 (mskbl, mskwl, mskll, mskql): Similarly.
7536 (mskwh, msklh, mskqh): Similarly.
7537
7538 2011-02-24 Richard Henderson <rth@redhat.com>
7539
7540 * config/alpha/alpha.md (attribute isa): Add er, ner.
7541 (attribute enabled): Handle them.
7542 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
7543
7544 2011-02-24 Richard Henderson <rth@redhat.com>
7545
7546 * config/alpha/alpha.md (attribute isa): Add vms.
7547 (attribute enabled): Handle it.
7548 (*movsf): Merge *movsf_{nofix,fix,nofp}.
7549 (*movdf): Merge *movdf_{nofix,fix,nofp}.
7550 (*movtf): Rename from *movtf_internal for consistency.
7551 (*movsi): Merge with *movsi_nt_vms.
7552 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
7553 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
7554 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
7555 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
7556
7557 2011-02-24 Richard Henderson <rth@redhat.com>
7558
7559 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
7560 (extendqisi2, extendhisi2): Likewise.
7561 (extendqidi2): Simplify BWX/non-BWX expansions.
7562 (extendhidi2): Similarly.
7563
7564 2011-02-24 Richard Henderson <rth@redhat.com>
7565
7566 * config/alpha/alpha.md (attribute isa): New.
7567 (attribute enabled): New.
7568 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
7569 (zero_extendqisi2, zero_extendqidi2): Similarly.
7570 (zero_extendhisi2, zero_extendhidi2): Similarly.
7571 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
7572
7573 2011-02-24 Richard Henderson <rth@redhat.com>
7574
7575 * config/alpha/predicates.md (input_operand): Revert last change;
7576 update comment to mention 32-bit VMS rather than Windows.
7577
7578 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7579
7580 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
7581 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
7582 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
7583 * passes.c (init_optimization_passes): Move
7584 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
7585
7586 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7587
7588 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
7589
7590 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7591
7592 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
7593 correctly.
7594
7595 2011-03-24 Jakub Jelinek <jakub@redhat.com>
7596
7597 PR debug/48204
7598 * simplify-rtx.c (simplify_const_unary_operation): Call
7599 real_convert when changing mode class with FLOAT_EXTEND.
7600
7601 2011-03-24 Nick Clifton <nickc@redhat.com>
7602
7603 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
7604 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
7605 * config/rx/rx.c (rx_option_override): Set align_jumps,
7606 align_loops and align_labels if not set by the user.
7607 (rx_align_for_label): New function.
7608 (rx_max_skip_for_label): New function.
7609 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
7610 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
7611 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
7612 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
7613 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
7614
7615 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7616
7617 PR rtl-optimization/48263
7618 * optabs.c (expand_binop_directly): Reinstate convert_modes code
7619 and original commutative_p handling. Use maybe_gen_insn.
7620
7621 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7622
7623 * reload.c (find_reloads_subreg_address): Add address_reloaded
7624 parameter and return true there if the full address has been
7625 reloaded.
7626 (find_reloads_toplev): Pass address_reloaded flag.
7627 (find_reloads_address_1): Don't use address_reloaded parameter.
7628
7629 2011-03-24 Jeff Law <law@redhat.com>
7630
7631 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
7632 unused variable "ann".
7633 (remove_unused_locals): Likewise.
7634
7635 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
7636 statement.
7637
7638 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
7639 after it is freed.
7640
7641 2011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7642
7643 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
7644 for invalid symbolic addresses.
7645 (s390_secondary_reload): Don't use s390_check_symref_alignment for
7646 larl operands.
7647
7648 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7649
7650 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
7651 the argument in calls to fold_truth_not_expr.
7652
7653 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7654
7655 * tree.c (record_node_allocation_statistics): New function.
7656 (make_node_stat, copy_node_stat, build_string): Call it.
7657 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
7658 (build1_stat, build_omp_clause): Likewise.
7659
7660 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7661
7662 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
7663 last commit.
7664
7665 2011-03-24 Richard Guenther <rguenther@suse.de>
7666
7667 PR tree-optimization/48271
7668 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
7669 blocks that still exist.
7670
7671 2011-03-24 Richard Guenther <rguenther@suse.de>
7672
7673 PR tree-optimization/48270
7674 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
7675 not free datarefs before ddrs.
7676
7677 2011-03-24 Eric Botcazou <ebotcazou@adacore.com>
7678
7679 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
7680 from the address built for a reference with variable offset.
7681
7682 2011-03-24 Uros Bizjak <ubizjak@gmail.com>
7683
7684 PR target/48237
7685 * config/i386/i386.md (*movdf_internal_rex64): Do not split
7686 alternatives that can be handled with movq or movabsq insn.
7687 (*movdf_internal): Disable for !TARGET_64BIT.
7688 (*movdf_internal_nointeger): Ditto.
7689 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
7690
7691 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
7692
7693 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
7694 (FUNCTION_ARG_ADVANCE): Likewise.
7695 * tm.texi.in: Change references to them to hook references.
7696 * tm.texi: Regenerate.
7697 * targhooks.c (default_function_arg): Eliminate check for target macro.
7698 (default_function_incoming_arg): Likewise.
7699 (default_function_arg_advance): Likewise.
7700 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
7701 (function_arg_advance): Likewise.
7702 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
7703
7704 2011-03-24 Richard Guenther <rguenther@suse.de>
7705
7706 PR middle-end/48269
7707 * tree-object-size.c (addr_object_size): Do not double-account
7708 for MEM_REF offsets.
7709
7710 2011-03-24 Diego Novillo <dnovillo@google.com>
7711
7712 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
7713 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
7714 (lto_input_data_block): Move from lto-opts.c. Make extern.
7715 Update all users.
7716 (lto_input_string): Rename from input_string. Make extern.
7717 Update all users.
7718 * lto-streamer-out.c (lto_output_string_with_length): Rename from
7719 output_string_with_length.
7720 Output 0 to indicate a non-NULL string. Update all callers to
7721 not emit 0.
7722 (lto_output_string): Rename from output_string. Make extern.
7723 Update all users.
7724 (lto_output_decl_state_streams): Make extern.
7725 (lto_output_decl_state_refs): Make extern.
7726 * lto-streamer.h (lto_input_string): Declare.
7727 (lto_input_data_block): Declare.
7728 (lto_output_string): Declare.
7729 (lto_output_string_with_length): Declare.
7730 (lto_output_decl_state_streams): Declare.
7731 (lto_output_decl_state_refs): Declare.
7732
7733 2011-03-24 Richard Guenther <rguenther@suse.de>
7734
7735 PR tree-optimization/46562
7736 * tree.c (build_invariant_address): New function.
7737 * tree.h (build_invariant_address): Declare.
7738 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
7739 a renamed function moved ...
7740 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
7741 Take valueization callback parameter.
7742 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
7743 * gimple-fold.h: New file.
7744 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
7745 (ccp_fold, fold_const_aggregate_ref,
7746 fold_ctor_reference, fold_nonarray_ctor_reference,
7747 fold_array_ctor_reference, fold_string_cst_ctor_reference,
7748 get_base_constructor): Move ...
7749 * gimple-fold.c: ... here.
7750 (gimple_fold_stmt_to_constant_1): New function
7751 split out from ccp_fold. Take a valueization callback parameter.
7752 Valueize all operands.
7753 (gimple_fold_stmt_to_constant): New wrapper function.
7754 (fold_const_aggregate_ref_1): New function split out from
7755 fold_const_aggregate_ref. Take a valueization callback parameter.
7756 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
7757 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
7758 invariant POINTER_PLUS_EXPRs to invariant form.
7759 (vn_valueize): New function.
7760 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
7761 * tree-vrp.c (vrp_valueize): New function.
7762 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
7763 to fold statements to constants.
7764 * tree-ssa-pre.c (eliminate): Properly guard propagation of
7765 function declarations.
7766 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
7767 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
7768
7769 2011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
7770
7771 * config/h8300/predicates.md (jump_address_operand): Fix register
7772 mode check.
7773
7774 2011-03-24 Ira Rosen <ira.rosen@linaro.org>
7775
7776 * doc/invoke.texi (max-stores-to-sink): Document.
7777 * params.h (MAX_STORES_TO_SINK): Define.
7778 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
7779 if either vectorization or if-conversion is disabled.
7780 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
7781 tree-vect-data-refs.c vect_equal_offsets.
7782 (dr_equal_offsets_p): New function.
7783 (find_data_references_in_bb): Remove static.
7784 * tree-data-ref.h (find_data_references_in_bb): Declare.
7785 (dr_equal_offsets_p): Likewise.
7786 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
7787 (vect_drs_dependent_in_basic_block): Update calls to
7788 vect_equal_offsets.
7789 (vect_check_interleaving): Likewise.
7790 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
7791 (cond_if_else_store_replacement): Rename to...
7792 (cond_if_else_store_replacement_1): ... this. Change arguments and
7793 documentation.
7794 (cond_if_else_store_replacement): New function.
7795 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
7796 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
7797
7798 2011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
7799
7800 PR target/46934
7801 * config/arm/arm.md (casesi): Use the gen_int_mode() function
7802 to subtract lower bound instead of GEN_INT().
7803
7804 2011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
7805
7806 PR other/48179
7807 PR other/48221
7808 PR other/48234
7809 * doc/extend.texi (Alignment): Move section to match order in TOC.
7810 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
7811 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
7812
7813 2011-03-23 Jeff Law <law@redhat.com>
7814
7815 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
7816 before removing the edge.
7817
7818 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
7819 it may have been freed by redirect_branch_edge or
7820 redirect_edge_succ_nodup.
7821
7822 2011-03-23 Richard Guenther <rguenther@suse.de>
7823
7824 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
7825 (check_va_list_escapes): Likewise.
7826 (check_all_va_list_escapes): Likewise.
7827
7828 2011-03-23 Richard Guenther <rguenther@suse.de>
7829
7830 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
7831 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
7832 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
7833 (alias.o): Likewise.
7834 (ipa-type-escape.o): Remove.
7835 (ipa-struct-reorg.o): Likewise.
7836 (GTFILES): Remove ipa-struct-reorg.c.
7837 * alias.c: Do not include ipa-type-escape.h.
7838 * tree-ssa-alias.c: Likewise.
7839 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
7840 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
7841 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
7842 and ipa-type-escape passes.
7843 * tree-pass.h (pass_ipa_type_escape): Remove.
7844 (pass_ipa_struct_reorg): Likewise.
7845 * ipa-struct-reorg.h: Remove.
7846 * ipa-struct-reorg.c: Likewise.
7847 * ipa-type-escape.h: Likewise.
7848 * ipa-type-escape.c: Likewise.
7849 * doc/invoke.texi (-fipa-struct-reorg): Remove.
7850 (--param struct-reorg-cold-struct-ratio): Likewise.
7851 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7852 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
7853 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
7854
7855 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7856
7857 * config/s390/2084.md: Enable all insn reservations also for z9_ec
7858 cpu attribute value.
7859 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
7860 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
7861 * config/s390/s390.c (processor_flags_table): New constant array.
7862 (s390_handle_arch_option): Remove.
7863 (s390_handle_option): Remove s390_handle_arch_option invocations
7864 and OPT_mwarn_framesize_ handling.
7865 (s390_option_override): Remove s390_handle_arch_option invocation.
7866 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
7867 warnings.
7868 * config/s390/s390.md (cpu attribute): Add z9_ec value.
7869 * config/s390/s390.opt (s390_tune, s390_arch)
7870 (march=): Replace s390_arch_option enum and values with
7871 processor_type. Set variable name to s390_arch. Set
7872 initialization value.
7873 (mtune=): Replace s390_arch_option with processor_type. Set
7874 variable name to s390_tune. Set initialization value.
7875
7876 2011-03-23 Julian Brown <julian@codesourcery.com>
7877
7878 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
7879 accesses which are not naturally aligned.
7880
7881 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7882
7883 PR target/47553
7884 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
7885
7886 2011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
7887
7888 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
7889 parameter from "int" to "enum insn_code".
7890 (expand_operand_type): New enum.
7891 (expand_operand): New structure.
7892 (create_expand_operand): New function.
7893 (create_fixed_operand, create_output_operand): Likewise
7894 (create_input_operand, create_convert_operand_to): Likewise.
7895 (create_convert_operand_from, create_address_operand): Likewise.
7896 (create_integer_operand): Likewise.
7897 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
7898 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7899 (expand_insn, expand_jump_insn): Likewise.
7900 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
7901 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
7902 (expand_movstr, expand_builtin___clear_cache): Likewise.
7903 (expand_builtin_lock_release): Likewise.
7904 * explow.c (allocate_dynamic_stack_space): Likewise.
7905 (probe_stack_range): Likewise. Allow check_stack to FAIL,
7906 and use the default handling in that case.
7907 * expmed.c (check_predicate_volatile_ok): Delete.
7908 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
7909 (emit_cstore): Likewise.
7910 * expr.c (emit_block_move_via_movmem): Likewise.
7911 (set_storage_via_setmem, expand_assignment): Likewise.
7912 (emit_storent_insn, try_casesi): Likewise.
7913 (emit_single_push_insn): Likewise. Allow the expansion to fail.
7914 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
7915 (expand_vec_shift_expr, expand_binop_directly): Likewise.
7916 (expand_twoval_unop, expand_twoval_binop): Likewise.
7917 (expand_unop_direct, emit_indirect_jump): Likewise.
7918 (emit_conditional_move, vector_compare_rtx): Likewise.
7919 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
7920 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
7921 (expand_sync_lock_test_and_set): Likewise.
7922 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
7923 (emit_unop_insn): Likewise.
7924 (expand_copysign_absneg): Change icode to an insn_code.
7925 (create_convert_operand_from_type): New function.
7926 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
7927 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
7928 (expand_insn, expand_jump_insn): Likewise.
7929 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
7930 than const_int_operand for operand 2.
7931
7932 2011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7933
7934 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
7935 if possible.
7936
7937 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7938
7939 * emit-rtl.c (emit_pattern_before_noloc): New function.
7940 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
7941 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
7942 (emit_pattern_after_noloc): New function.
7943 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
7944 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
7945
7946 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
7947
7948 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
7949 (__ffsDI2): Likewise.
7950
7951 2011-03-22 Richard Henderson <rth@redhat.com>
7952
7953 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
7954 of !TARGET_ABI_OPEN_VMS.
7955 (alpha_trampoline_init, alpha_start_function): Likewise.
7956 (alpha_expand_epilogue, alpha_file_start): Likewise.
7957 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
7958 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
7959 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
7960 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
7961 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
7962
7963 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7964
7965 * config/s390/s390-opts.h: New.
7966 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
7967 s390_arch_flags, s390_warn_framesize, s390_stack_size,
7968 s390_stack_guard): Remove.
7969 (s390_handle_arch_option): Return void. Take enum
7970 s390_arch_option value instead of string and searching array.
7971 (s390_handle_option): Don't assert that global structures are in
7972 use. Access variables via opts pointer. Use error_at. Don't use
7973 sscanf for -mstack-guard= or -mstack-size=. Update call to
7974 s390_handle_arch_option.
7975 (s390_option_override): Update call to s390_handle_arch_option.
7976 (s390_emit_prologue): Use %d format for s390_stack_size in
7977 diagnostic. Use %wd for HOST_WIDE_INT.
7978 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
7979 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
7980 * config/s390/s390.opt (config/s390/s390-opts.h): New
7981 HeaderInclude entry.
7982 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
7983 s390_arch_flags, s390_warn_framesize): New Variable entries.
7984 (s390_arch_option): New Enum and EnumValue entries.
7985 (march=): Use Enum instead of Var.
7986 (mstack-guard=, mstack-size=): Use UInteger and Var.
7987 (mtune=): Use Enum.
7988
7989 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7990
7991 * config/score/score.c (score_handle_option): Don't assert that
7992 global structures are in use. Access target_flags via opts
7993 pointer. Use value of -march= option to determine target_flags
7994 settings.
7995 * config/score/score.opt (march=): Use Enum.
7996 (score_arch): New Enum and EnumValue entries.
7997
7998 2011-03-22 Joseph Myers <joseph@codesourcery.com>
7999
8000 * config/mep/mep.c (option_mtiny_specified): Remove.
8001 (mep_option_override): Move register handling for -mivc2 from
8002 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
8003 instead of option_mtiny_specified.
8004 (mep_handle_option): Access target_flags via opts pointer. Don't
8005 assert that global structures are in use. Defer part of -mivc2
8006 handling and move it to mep_option_override.
8007 * config/mep/mep.opt (IVC2): New Mask entry.
8008 (mivc2): Use Var and Defer instead of Mask.
8009
8010 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8011
8012 * config/v850/v850-opts.h: New.
8013 * config/v850/v850.c (small_memory): Replace with
8014 small_memory_physical_max array. Make that array static const.
8015 (v850_handle_memory_option): Take integer value of argument. Take
8016 gcc_options pointer, option text and location. Return void.
8017 Update for changes to small memory structures.
8018 (v850_handle_option): Access target_flags via opts pointer. Don't
8019 assert that global structures are in use. Update calls to
8020 v850_handle_memory_option.
8021 (v850_encode_data_area): Update references to small memory settings.
8022 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
8023 (enum small_memory_type): Move to v850-opts.h.
8024 * config/v850/v850.opt (config/v850/v850-opts.h): New
8025 HeaderInclude entry.
8026 (small_memory_max): New Variable entry.
8027 (msda): Replace by pair of options msda= and msda-. Use UInteger.
8028 (mtda, mzda): Likewise.
8029
8030 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8031
8032 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
8033 pointer. Don't assert that global structures are in use.
8034
8035 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8036
8037 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
8038 via opts pointer. Don't assert that global structures are in use.
8039
8040 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8041
8042 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
8043 (munix=93): Use Var.
8044 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
8045 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
8046 * config/pa/pa-opts.h: New.
8047 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
8048 (pa_handle_option): Don't assert that global structures are in
8049 use. Access target_flags via opts pointer. Don't handle
8050 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
8051 OPT_munix_98 here.
8052 (pa_option_override): Handle deferred OPT_mfixed_range_.
8053
8054 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8055
8056 * config/mn10300/mn10300-opts.h: New.
8057 * config/mn10300/mn10300.c (mn10300_processor,
8058 mn10300_tune_string): Remove.
8059 (mn10300_handle_option): Don't assert that global structures are
8060 in use. Access mn10300_processor via opts pointer. Don't handle
8061 OPT_mtune_ here.
8062 * config/mn10300/mn10300.h (enum processor_type): Move to
8063 mn10300-opts.h.
8064 (mn10300_processor): Remove.
8065 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
8066 HeaderInclude entry.
8067 (mn10300_processor): New Variable entry.
8068 (mtune=): Use Var.
8069
8070 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8071
8072 * config/microblaze/microblaze.c: Don't include opts.h.
8073 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
8074 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
8075 (mno-clearbss): Use Var and Warn.
8076
8077 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8078
8079 * config/m32r/m32r-opts.h: New.
8080 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
8081 (m32r_handle_option): Don't assert that global structures are in
8082 use. Access target_flags and m32r_cache_flush_func via opts
8083 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
8084 OPT_mno_flush_trap here.
8085 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
8086 include of m32r-opts.h.
8087 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
8088 HeaderInclude entry.
8089 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
8090 (mmodel=): Use Enum and Var.
8091 (m32r_model): New Enum and EnumValue entries.
8092 (mno-flush-trap): Use Var.
8093 (msdata=): Use Enum and Var.
8094 (m32r_sdata): New Enum and EnumValue entries.
8095
8096 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8097
8098 * config/m32c/m32c.c: Don't include opts.h.
8099 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
8100 m32c_handle_option): Remove.
8101 (m32c_option_override): Check global_options_set.x_target_memregs
8102 instead of target_memregs_set.
8103 * config/m32c/m32c.h (target_memregs): Remove.
8104 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
8105 variable.
8106
8107 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8108
8109 * config/iq2000/iq2000-opts.h: New.
8110 * config/iq2000/iq2000.c: Don't include opts.h.
8111 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
8112 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
8113 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
8114 HeaderInclude entry.
8115 (iq2000_tune): New Variable entry.
8116 (march=): Add comment. Use Enum.
8117 (iq2000_arch): New Enum and EnumValue entries.
8118 (mcpu=): Use Enum and Var.
8119 (iq2000_tune): New Enum and EnumValue entries.
8120
8121 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8122
8123 * config/ia64/ia64-opts.h: New.
8124 * config/ia64/ia64.c (ia64_tune): Remove.
8125 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
8126 here. Use error_at.
8127 (ia64_option_override): Handle deferred OPT_mfixed_range_.
8128 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
8129 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
8130 HeaderInclude entry.
8131 (ia64_tune): New Variable entry.
8132 (mfixed-range=): Use Defer and Var.
8133 (mtune=): Use Enum and Var.
8134 (ia64_tune): New Enum and EnumValue entries.
8135
8136 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8137
8138 * config/frv/frv-opts.h: New.
8139 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
8140 frv-opts.h.
8141 (frv_cpu_type): Remove.
8142 * config/frv/frv.c: Don't include opts.h.
8143 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
8144 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
8145 (frv_cpu_type): New Variable entry.
8146 (frv_cpu): New Enum and EnumValue entries.
8147
8148 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8149
8150 * config/cris/cris.c (cris_handle_option): Access target_flags via
8151 opts pointer. Don't assert that global structures are in use.
8152 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
8153 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
8154
8155 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8156
8157 * config/bfin/bfin-opts.h: New.
8158 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
8159 bfin_si_revision, bfin_workarounds): Remove.
8160 (bfin_cpus): Make static const.
8161 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
8162 not bfin_lib_id_given.
8163 (bfin_handle_option): Don't set bfin_lib_id_given. Access
8164 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
8165 pointer. Use error_at. Don't assert that global structures are in use.
8166 * config/bfin/bfin.h: Include bfin-opts.h.
8167 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
8168 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
8169 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
8170 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
8171 entries.
8172
8173 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8174
8175 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
8176 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
8177 or -msoft-float here.
8178 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
8179 -msoft-float and -mhard-float.
8180 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
8181 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8182 msoft-float.
8183 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
8184 -msoft-float.
8185 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
8186 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
8187 not mhard-float.
8188 (LIBGCC_SPEC): Don't handle -msoft-float.
8189 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
8190 -mhard-float.
8191 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
8192 msoft-float.
8193 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
8194 -mfloat-abi=*, not -msoft-float and -mhard-float.
8195 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
8196 -msoft-float.
8197 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
8198 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
8199 mhard-float and msoft-float.
8200 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
8201 mfloat-abi=soft in comments, not mhard-float and msoft-float.
8202 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
8203 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
8204 mhard-float.
8205 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
8206 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
8207 msoft-float.
8208 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
8209 not mhard-float.
8210 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
8211 not msoft-float.
8212
8213 2011-03-22 Richard Henderson <rth@redhat.com>
8214
8215 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
8216 TARGET_ABI_WINDOWS_NT.
8217 (alpha_output_function_end_prologue): Likewise.
8218 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
8219 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8220 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
8221 (trap, *movsi_nt_vms): Likewise.
8222 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
8223 (*tablejump_osf_nt_internal): Remove.
8224 * config/alpha/predicates.md (input_operand): Only test Pmode.
8225
8226 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8227
8228 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
8229 via opts pointer. Use error_at. Don't assert that global
8230 structures are in use.
8231
8232 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8233
8234 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
8235 (ix86_handle_option): Access ix86_isa_flags and
8236 ix86_isa_flags_explicit via opts pointer. Don't assert that
8237 global structures are in use.
8238 (ix86_function_specific_save, ix86_function_specific_restore):
8239 Update ix86_isa_flags_explicit field name.
8240 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
8241 (ix86_isa_flags_explicit): Rename TargetSave entry to
8242 x_ix86_isa_flags_explicit.
8243
8244 2011-03-22 Richard Henderson <rth@redhat.com>
8245
8246 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
8247 (alpha_option_override, direct_return): Likewise.
8248 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
8249 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
8250 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
8251 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
8252 (alpha_expand_epilogue, alpha_end_function): Likewise.
8253 (alpha_init_libfuncs): Likewise.
8254 (struct machine_function): Remove unicosmk members.
8255 (print_operand) ['t']: Remove.
8256 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
8257 unicosmk_output_module_name, unicosmk_output_common,
8258 current_section_align, unicosmk_output_text_section_asm_op,
8259 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
8260 unicosmk_section_type_flags, unicosmk_unique_section,
8261 unicosmk_asm_named_section, unicosmk_insert_attributes,
8262 unicosmk_output_align, unicosmk_defer_case_vector,
8263 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
8264 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
8265 unicosmk_output_ssib, unicosmk_add_call_info_word,
8266 unicosmk_extern_head, unicosmk_output_default_externs,
8267 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
8268 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
8269 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
8270 * config/alpha/alpha-protos.h: Update.
8271 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
8272 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
8273 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
8274 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
8275 (*mulsi_se, mulvsi3): Likewise.
8276 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
8277 (*divmodsi_internal, call, call_value, realign): Likewise.
8278 (moddi3, umoddi3): Likewise; remove duplicate expander.
8279 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
8280 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
8281 (*movdi_nofix): Remove r/U alternative.
8282 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
8283 * config/alpha/constraints.md ("U"): Remove.
8284 * config/alpha/predicates.md (call_operand"): Don't test
8285 TARGET_ABI_UNICOSMK.
8286
8287 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8288
8289 * target.def (handle_option): Take gcc_options and
8290 cl_decoded_option pointers and location_t.
8291 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
8292 * doc/tm.texi: Regenerate.
8293 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
8294 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
8295 * lto-opts.c (lto_reissue_options): Generate option structure for
8296 targetm.handle_option call.
8297 * opts.c (target_handle_option): Update call to
8298 targetm.handle_option. Remove assertions about values now passed
8299 down to hook.
8300 * targhooks.c (default_target_handle_option): New.
8301 * targhooks.h (default_target_handle_option): Declare.
8302 * config/alpha/alpha.c: Include opts.h.
8303 (alpha_handle_option): Update to new hook interface.
8304 * config/arm/arm.c: Include opts.h.
8305 (arm_handle_option): Update to new hook interface.
8306 * config/arm/t-arm (arm.o): Update dependencies.
8307 * config/bfin/bfin.c: Include opts.h.
8308 (bfin_handle_option): Update to new hook interface.
8309 * config/cris/cris.c: Include opts.h.
8310 (cris_handle_option): Update to new hook interface.
8311 * config/frv/frv.c: Include opts.h.
8312 (frv_handle_option): Update to new hook interface.
8313 * config/i386/i386.c: Include opts.h.
8314 (ix86_handle_option): Update to new hook interface.
8315 (ix86_valid_target_attribute_inner_p): Generate option structure
8316 for call to ix86_handle_option.
8317 * config/i386/t-i386 (i386.o): Update dependencies.
8318 * config/ia64/ia64.c: Include opts.h.
8319 (ia64_handle_option): Update to new hook interface.
8320 * config/ia64/t-ia64 (ia64.o): Update dependencies.
8321 * config/iq2000/iq2000.c: Include opts.h.
8322 (iq2000_handle_option): Update to new hook interface.
8323 * config/m32c/m32c.c: Include opts.h.
8324 (m32c_handle_option): Update to new hook interface.
8325 * config/m32r/m32r.c: Include opts.h.
8326 (m32r_handle_option): Update to new hook interface.
8327 * config/m68k/m68k.c: Include opts.h.
8328 (m68k_handle_option): Update to new hook interface.
8329 * config/mep/mep.c: Include opts.h.
8330 (mep_handle_option): Update to new hook interface.
8331 * config/microblaze/microblaze.c: Include opts.h.
8332 (microblaze_handle_option): Update to new hook interface.
8333 * config/mips/mips.c: Include opts.h.
8334 (mips_handle_option): Update to new hook interface.
8335 * config/mn10300/mn10300.c: Include opts.h.
8336 (mn10300_handle_option): Update to new hook interface.
8337 * config/pa/pa.c: Include opts.h.
8338 (pa_handle_option): Update to new hook interface.
8339 * config/pdp11/pdp11.c: Include opts.h.
8340 (pdp11_handle_option): Update to new hook interface.
8341 * config/rs6000/rs6000.c: Include opts.h.
8342 (rs6000_handle_option): Update to new hook interface.
8343 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
8344 * config/rx/rx.c: Include opts.h.
8345 (rx_handle_option): Update to new hook interface.
8346 * config/s390/s390.c: Include opts.h.
8347 (s390_handle_option): Update to new hook interface.
8348 * config/score/score.c: Include opts.h.
8349 (score_handle_option): Update to new hook interface.
8350 * config/sh/sh.c: Include opts.h.
8351 (sh_handle_option): Update to new hook interface.
8352 * config/sparc/sparc.c: Include opts.h.
8353 (sparc_handle_option): Update to new hook interface.
8354 * config/v850/v850.c: Include opts.h.
8355 (v850_handle_option): Update to new hook interface.
8356
8357 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8358
8359 * gcc.c (driver_unknown_option_callback): Only permit and save
8360 unknown -Wno- options.
8361 (driver_wrong_lang_callback): Save options directly instead of via
8362 driver_unknown_option_callback.
8363
8364 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8365
8366 * combine.c (simplify_set): Try harder to find the best CC mode when
8367 simplifying a nested COMPARE on the RHS.
8368
8369 2011-03-22 Joseph Myers <joseph@codesourcery.com>
8370
8371 * config/alpha/gnu.h: Remove.
8372 * config/arc: Remove directory.
8373 * config/arm/netbsd.h: Remove.
8374 * config/arm/t-pe: Remove.
8375 * config/crx: Remove directory.
8376 * config/i386/netbsd.h: Remove.
8377 * config/m68hc11: Remove directory.
8378 * config/m68k/uclinux-oldabi.h: Remove.
8379 * config/mcore/mcore-pe.h: Remove.
8380 * config/mcore/t-mcore-pe: Remove.
8381 * config/netbsd-aout.h: Remove.
8382 * config/rs6000/gnu.h: Remove.
8383 * config/sh/sh-symbian.h: Remove.
8384 * config/sh/symbian-base.c: Remove.
8385 * config/sh/symbian-c.c: Remove.
8386 * config/sh/symbian-cxx.c: Remove.
8387 * config/sh/symbian-post.h: Remove.
8388 * config/sh/symbian-pre.h: Remove.
8389 * config/sh/t-symbian: Remove.
8390 * config/svr3.h: Remove.
8391 * config/vax/netbsd.h: Remove.
8392 * config.build: Don't handle i[34567]86-*-pe.
8393 * config.gcc: Remove handling of deprecations for most deprecated
8394 targets.
8395 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
8396 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
8397 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
8398 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
8399 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
8400 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
8401 Remove cases.
8402 * config.host: Don't handle i[34567]86-*-pe.
8403 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
8404 (ASM_SPEC32): Don't handle -mcall-gnu.
8405 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
8406 -mcall-gnu.
8407 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
8408 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
8409 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
8410 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
8411 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
8412 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
8413 conditional on SYMBIAN.
8414 * configure.ac: Don't handle powerpc*-*-gnu*.
8415 * configure: Regenerate.
8416 * doc/extend.texi (interrupt attribute): Don't mention CRX.
8417 * doc/install-old.texi (m6811, m6812): Don't mention.
8418 * doc/install.texi (arc-*-elf*): Don't document multilib option.
8419 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
8420 (m68k-uclinuxoldabi): Don't mention.
8421 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
8422 Remove.
8423 (-mcall-gnu): Remove.
8424 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
8425 families): Remove constraint documentation.
8426
8427 2011-03-22 Marius Strobl <marius@FreeBSD.org>
8428
8429 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
8430 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
8431 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8432
8433 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8434
8435 PR target/48226
8436 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
8437 vector when peeking at the next token for vector, don't expand the
8438 keywords.
8439
8440 2011-03-21 Georg-Johann Lay <avr@gjlay.de>
8441
8442 * config/avr/avr-protos.h (expand_epilogue): Change prototype
8443 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
8444 * config/avr/avr.c (init_cumulative_args)
8445 (avr_function_arg_advance): Use it.
8446 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
8447 sibcall epilogues.
8448 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
8449 (avr_function_ok_for_sibcall): ...this new function.
8450 (avr_lookup_function_attribute1): New static Function.
8451 (avr_naked_function_p, interrupt_function_p)
8452 (signal_function_p, avr_OS_task_function_p)
8453 (avr_OS_main_function_p): Use it.
8454 * config/avr/avr.md ("sibcall", "sibcall_value")
8455 ("sibcall_epilogue"): New expander.
8456 ("*call_insn", "*call_value_insn"): New insn.
8457 ("call_insn", "call_value_insn"): Remove
8458 ("call", "call_value", "epilogue"): Change expander to handle
8459 sibling calls.
8460
8461 2011-03-21 Nick Clifton <nickc@redhat.com>
8462
8463 * doc/invoke.texi (Overall Options): Move closing brace to end of
8464 options list.
8465 (Optimization Options): Add missing @gol.
8466 (Directory Options): Likewise.
8467 (i386 and x86-64 Options): Likewise.
8468 (RS6000 and PowerPC Options): Likewise.
8469 (i386 and x86-64 Windows Options): Likewise.
8470 (V850 Options): Add text missing from descriptions.
8471
8472 2011-03-22 Richard Henderson <rth@redhat.com>
8473
8474 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
8475 (avr_incoming_return_addr_rtx): New.
8476 (emit_push_byte): New.
8477 (expand_prologue): Use it. Remove incorrect dwarf annotation for
8478 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
8479 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
8480 (emit_pop_byte): New.
8481 (expand_epilogue): Use it. Pop frame pointer by bytes.
8482 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
8483 (INCOMING_RETURN_ADDR_RTX): New.
8484 (INCOMING_FRAME_SP_OFFSET): New.
8485 (ARG_POINTER_CFA_OFFSET): New.
8486 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
8487 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
8488 (pophi): Remove.
8489
8490 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
8491
8492 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8493
8494 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8495 (FUNCTION_ARG_ADVANCE): Likewise.
8496 * tm.texi.in: Change references to them to hook references.
8497 * tm.texi: Regenerate.
8498 * targhooks.c (default_function_arg): Eliminate check for target
8499 macro.
8500 (default_function_incoming_arg): Likewise.
8501 (default_function_arg_advance): Likewise.
8502 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
8503 (function_arg_advance): Likewise.
8504 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8505
8506 2011-03-22 Nathan Froyd <froydnj@codesourcery.com>
8507
8508 * tree.c (build_call_1): New function.
8509 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
8510
8511 2011-03-22 Richard Guenther <rguenther@suse.de>
8512
8513 PR tree-optimization/48228
8514 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
8515 for single-arg PHIs.
8516
8517 2011-03-22 Andrey Belevantsev <abel@ispras.ru>
8518
8519 PR rtl-optimization/48143
8520 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
8521 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
8522 sse2_cvtps2pd): Likewise.
8523
8524 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8525
8526 * recog.c (canonicalize_change_group): Use validate_unshare_change.
8527
8528 2011-03-22 Richard Guenther <rguenther@suse.de>
8529
8530 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
8531 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
8532 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
8533 and REALIGN_LOAD_EXPR.
8534 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
8535 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
8536 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
8537 DOT_PROD_EXPR case ...
8538 (expand_expr_real_2): ... here.
8539 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
8540 and REALIGN_LOAD_EXPR.
8541 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
8542 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
8543 (vect_create_epilog_for_reduction): Likewise.
8544 (vectorizable_reduction): Likewise.
8545 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
8546 * tree-vect-stmts.c (vectorizable_load): Likewise.
8547
8548 2011-03-22 Eric Botcazou <ebotcazou@adacore.com>
8549
8550 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
8551
8552 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8553
8554 * config/s390/s390.c (s390_delegitimize_address): Fix offset
8555 handling for PLTOFF/GOTOFF.
8556
8557 2011-03-22 Nick Clifton <nickc@redhat.com>
8558
8559 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
8560 trailing backslash from the end of the macro definition.
8561
8562 2011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8563
8564 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
8565 and PLT unspecs.
8566
8567 2011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
8568
8569 * expr.h (prepare_operand): Move to...
8570 * optabs.h (prepare_operand): ...here and change the insn code
8571 parameter from "int" to "enum insn_code".
8572 (insn_operand_matches): Declare.
8573 * expr.c (init_expr_target): Use insn_operand_matches.
8574 (compress_float_constant): Likewise.
8575 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
8576 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
8577 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
8578 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
8579 Likewise.
8580 (gen_cond_trap): Likewise.
8581 (prepare_operand): Likewise. Change icode to an insn_code.
8582 (insn_operand_matches): New function.
8583 * reload.c (find_reloads_address_1): Use insn_operand_matches.
8584 * reload1.c (gen_reload): Likewise.
8585 * targhooks.c (default_secondary_reload): Likewise.
8586
8587 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8588
8589 * config/alpha/alpha.md (unspec): New define_c_enum.
8590 (unspecv): Ditto.
8591
8592 2011-03-21 Uros Bizjak <ubizjak@gmail.com>
8593
8594 PR debug/48214
8595 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
8596 between a call and its CALL_ARG_LOCATION note.
8597
8598 2011-03-21 Eric Botcazou <ebotcazou@adacore.com>
8599
8600 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
8601
8602 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8603
8604 PR c/42544
8605 PR c/48197
8606 * c-common.c (shorten_compare): If primopN is first sign-extended
8607 to opN and then zero-extended to result type, set primopN to opN.
8608
8609 2011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
8610
8611 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
8612 for barrier handlers.
8613
8614 2011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8615
8616 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
8617 UNSPEC constants to be in the unspec enumeration, and redefine
8618 all UNSPECV constants to be in the unspecv enumeration, so that
8619 dumps print which unspec/unspec_volatile this is.
8620 * config/rs6000/vector.md (UNSPEC_*): Ditto.
8621 * config/rs6000/paired.md (UNSPEC_*): Ditto.
8622 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
8623 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
8624 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
8625
8626 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
8627 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
8628 UNSPECV_LWSYNC, since these are used as unspec_volatile.
8629 * config/rs6000/sync.md (isync, lwsync): Ditto.
8630
8631 2011-03-21 Richard Guenther <rguenther@suse.de>
8632
8633 * params.def (lto-min-partition): Fix typo.
8634
8635 2011-03-21 Richard Guenther <rguenther@suse.de>
8636
8637 PR c/47939
8638 * c-decl.c (grokdeclarator): Drop to the main variant only
8639 for array types. Drop flag_gen_aux_info check.
8640
8641 2011-03-21 Richard Guenther <rguenther@suse.de>
8642
8643 PR translation/47911
8644 * params.def (lto-partitions): Fix typo.
8645 (lto-min-partition): Fix wording.
8646
8647 2011-03-21 Andreas Tobler <andreast@fgznet.ch>
8648
8649 * config/rs6000/t-freebsd: Remove duplication from file.
8650
8651 2011-03-21 Richard Guenther <rguenther@suse.de>
8652
8653 PR middle-end/47661
8654 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
8655
8656 2011-03-21 Richard Guenther <rguenther@suse.de>
8657
8658 PR lto/48210
8659 * params.def (lto-partitions): Require at least 1 partition.
8660
8661 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8662
8663 * gthr-solaris.h: Remove.
8664 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
8665 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
8666 (LIB_SPEC): Likewise.
8667 * config/sol2.opt (threads): Remove.
8668 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
8669 (sparc*-*-solaris2*): Likewise.
8670 * configure.ac (enable_threads): Enable solaris support.
8671 * configure: Regenerate.
8672 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
8673 * doc/install.texi (Configuration, --enable-threads=lib): Remove
8674 solaris.
8675
8676 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8677
8678 * config.gcc: Obsolete *-*-solaris2.8*.
8679 * doc/install.texi (Specific, *-*-solaris2*): Document it.
8680
8681 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8682
8683 PR bootstrap/48135
8684 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
8685 reference. Solaris 8 perl works.
8686
8687 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8688
8689 PR bootstrap/48135
8690 * doc/install.texi (Prerequisites): Move jar etc. up.
8691 Explain support library version requirements.
8692
8693 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8694
8695 PR bootstrap/48135
8696 * doc/install.texi (Prerequisites): Move Perl to build
8697 requirements. Always necessary on Solaris 2 with Sun ld.
8698
8699 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8700
8701 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
8702 binutils 2.21.
8703 (Specific, i?86-*-solaris2.[89]): Likewise.
8704 (Specific, i?86-*-solaris2.10): Likewise.
8705 (Specific, mips-sgi-irix6): Likewise.
8706 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
8707 Update for binutils 2.21.
8708
8709 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8710
8711 * configure.ac (gcc_cv_lto_plugin): Fix typo.
8712 Allow -fuse-linker-plugin for non-default plugin linker.
8713 * configure: Regenerate.
8714
8715 2011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
8716
8717 PR bootstrap/48167
8718 * gengtype.c (files_rules): Added rule for cp/parser.h.
8719
8720 2011-03-21 Jakub Jelinek <jakub@redhat.com>
8721
8722 PR target/48213
8723 * config/s390/s390.c (s390_delegitimize_address): Don't call
8724 lowpart_subreg if orig_x has BLKmode.
8725
8726 2011-03-21 Kai Tietz <ktietz@redhat.com>
8727
8728 PR target/12171
8729 * doc/plugins.texi: Adjust documentation for plugin register_callback.
8730 * tree.h (attribute_spec): Add new member affects_type_identity.
8731 * attribs.c (empty_attribute_table): Adjust attribute_spec
8732 initializers.
8733 * config/alpha/alpha.c: Likewise.
8734 * config/arc/arc.c: Likewise.
8735 * config/arm/arm.c: Likewise.
8736 * config/avr/avr.c: Likewise.
8737 * config/bfin/bfin.c: Likewise.
8738 * config/crx/crx.c: Likewise.
8739 * config/darwin.h: Likewise.
8740 * config/h8300/h8300.c: Likewise.
8741 * config/i386/cygming.h: Likewise.
8742 * config/i386/i386.c: Likewise.
8743 * config/ia64/ia64.c: Likewise.
8744 * config/m32c/m32c.c: Likewise.
8745 * config/m32r/m32r.c: Likewise.
8746 * config/m68hc11/m68hc11.c: Likewise.
8747 * config/m68k/m68k.c: Likewise.
8748 * config/mcore/mcore.c: Likewise.
8749 * config/mep/mep.c: Likewise.
8750 * config/microblaze/microblaze.c: Likewise.
8751 * config/mips/mips.c: Likewise.
8752 * config/rs6000/rs6000.c: Likewise.
8753 * config/rx/rx.c: Likewise.
8754 * config/sh/sh.c: Likewise.
8755 * config/sol2.h: Likewise.
8756 * config/sparc/sparc.c: Likewise.
8757 * config/spu/spu.c: Likewise.
8758 * config/stormy16/stormy16.c: Likewise.
8759 * config/v850/v850.c: Likewise.
8760
8761 2011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
8762
8763 * simplify-rtx.c (simplify_binary_operation_1): Handle
8764 (xor (and A B) C) case when B and C are both constants.
8765
8766 2011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
8767
8768 * tree-dfa.c (add_referenced_var): Fix typo in comment.
8769
8770 2011-03-20 Eric Botcazou <ebotcazou@adacore.com>
8771
8772 PR bootstrap/48168
8773 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
8774
8775 2011-03-20 Jakub Jelinek <jakub@redhat.com>
8776
8777 PR rtl-optimization/48156
8778 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
8779 assume df and df_lr are not NULL.
8780
8781 2011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8782
8783 PR debug/48023
8784 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
8785 between a call and its CALL_ARG_LOCATION note.
8786
8787 2011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
8788
8789 PR debug/48178
8790 * config/sh/sh.c (find_barrier): Don't emit a constant pool
8791 between a call and its corresponding CALL_ARG_LOCATION note.
8792
8793 2011-03-19 Anatoly Sokolov <aesok@post.ru>
8794
8795 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
8796 instead of loop. Use HARD_REGISTER_NUM_P predicate.
8797 * haifa-sched.c (setup_ref_regs): Ditto.
8798 * caller-save.c (add_used_regs_1): Ditto.
8799 * dse.c (look_for_hardregs): Ditto.
8800 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
8801 * sched-rgn.c (check_live_1): Ditto.
8802
8803 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8804
8805 * c-decl.c (diagnose_mismatched_decls): Give an error for
8806 redefining a typedef with variably modified type.
8807
8808 2011-03-18 Joseph Myers <joseph@codesourcery.com>
8809
8810 * c-decl.c (grokfield): Don't allow typedefs for structures or
8811 unions with no tag by default.
8812 * doc/extend.texi (Unnamed Fields): Update.
8813
8814 2011-03-18 Uros Bizjak <ubizjak@gmail.com>
8815
8816 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
8817 Rewrite using indirect functions.
8818 (lwp_slwpcb): Ditto.
8819 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
8820 (avx_vinsertf128<mode>): Ditto.
8821
8822 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8823
8824 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
8825 unspecs.
8826
8827 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8828
8829 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
8830 splitting between a call and its corresponding CALL_ARG_LOCATION note.
8831
8832 2011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
8833
8834 PR rtl-optimization/48170
8835 * gcse.c (hoist_code): Remove bogus asserts.
8836
8837 2011-03-18 Georg-Johann Lay <avr@gjlay.de>
8838
8839 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
8840 computation for prologue/epilogue.
8841
8842 2011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8843
8844 * Makefile.in (check-consistency): Remove.
8845
8846 2011-03-18 Jakub Jelinek <jakub@redhat.com>
8847
8848 PR debug/48176
8849 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
8850 arange_table_in_use is 0, but either text_section_used or
8851 cold_text_section_used is true. Don't call it if
8852 !info_section_emitted.
8853
8854 2011-03-18 Anatoly Sokolov <aesok@post.ru>
8855
8856 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
8857 FUNCTION_VALUE_REGNO_P): Remove.
8858 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
8859 Remove.
8860 * config/avr/avr.c (avr_ret_register): Make static inline.
8861 (avr_function_value_regno_p): New function.
8862 (avr_libcall_value): Make static. Add 'func' argument.
8863 (avr_function_value): Make static. Rename 'func' argument to
8864 'fn_decl_or_type', forward it to avr_libcall_value. Call
8865 avr_ret_register function instead of RET_REGISTER macro.
8866 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
8867
8868 2011-03-18 Jason Merrill <jason@redhat.com>
8869
8870 PR c++/23372
8871 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
8872
8873 2011-03-18 Richard Guenther <rguenther@suse.de>
8874
8875 * doc/install.texi (--enable-gold): Remove.
8876 (--with-plugin-ld): Document.
8877 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
8878
8879 2011-03-18 Andrew Pinski <pinskia@gmail.com>
8880
8881 PR middle-end/47790
8882 * expr.c (optimize_bitfield_assignment_op): Revamp to work
8883 again after expansion changes.
8884
8885 2011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
8886
8887 * combine.c (try_combine): Do simplification only call of
8888 subst() on i2 even when i1 is present. Update comments.
8889
8890 2011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
8891
8892 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
8893 and UNSPEC_PCREL_SYMOFF.
8894
8895 2011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8896
8897 * config/s390/s390.md: Use define_c_enum for the unspec constant
8898 definitions.
8899
8900 2011-03-18 Richard Henderson <rth@redhat.com>
8901 Jakub Jelinek <jakub@redhat.com>
8902
8903 PR bootstrap/48161
8904 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
8905 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
8906
8907 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8908
8909 PR middle-end/47725
8910 * combine.c (cant_combine_insn_p): Don't check zero/sign
8911 extended hard registers.
8912
8913 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8914
8915 PR middle-end/47725
8916 * combine.c (cant_combine_insn_p): Check zero/sign extended
8917 hard registers.
8918
8919 2011-03-17 Anatoly Sokolov <aesok@post.ru>
8920
8921 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
8922 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
8923 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
8924 Change return type to bool.
8925 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
8926
8927 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8928
8929 PR debug/48163
8930 * var-tracking.c (prepare_call_arguments): If CALL target
8931 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
8932 pc instead of looking it up using cselib_lookup and use
8933 Pmode for it if x has VOIDmode.
8934 * dwarf2out.c (gen_subprogram_die): If also both first and
8935 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
8936
8937 PR debug/48163
8938 * function.c (assign_parms): For data.passed_pointer parms
8939 use MEM of data.entry_parm instead of data.entry_parm itself
8940 as DECL_INCOMING_RTL.
8941 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
8942 also when passed and declared mode is the same, DECL_RTL
8943 is a MEM with pseudo as address and DECL_INCOMING_RTL is
8944 a MEM too.
8945
8946 2011-03-16 Jeff Law <law@redhat.com>
8947
8948 PR rtl-optimization/37273
8949 * ira-costs.c (scan_one_insn): Detect constants living in memory and
8950 handle them like argument loads from stack slots. Do not double
8951 count memory for memory constants and argument loads from stack slots.
8952
8953 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8954
8955 PR debug/48160
8956 * var-tracking.c (prepare_call_arguments): Check SUBREG.
8957
8958 2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
8959
8960 PR target/48171
8961 * config/i386/i386.opt: Add Save to -mavx and -mfma.
8962
8963 2011-03-17 Jakub Jelinek <jakub@redhat.com>
8964
8965 PR bootstrap/48153
8966 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
8967 if dwarf_strict.
8968 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
8969 Clear call_arg_locations and call_arg_loc_last always.
8970
8971 PR middle-end/48152
8972 * var-tracking.c (prepare_call_arguments): If argument needs to be
8973 passed by reference, adjust argtype and mode.
8974
8975 2011-03-17 Richard Guenther <rguenther@suse.de>
8976
8977 PR middle-end/48134
8978 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
8979 a value make sure to fold the statement.
8980
8981 2011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
8982
8983 PR target/43872
8984 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
8985 return condition with !cfun->calls_alloca.
8986
8987 2011-03-17 Richard Guenther <rguenther@suse.de>
8988
8989 PR bootstrap/48148
8990 * lto-cgraph.c (input_overwrite_node): Clear the abstract
8991 origin for decls in other ltrans units.
8992 (input_varpool_node): Likewise.
8993
8994 2011-03-17 Richard Guenther <rguenther@suse.de>
8995
8996 PR middle-end/48165
8997 * tree-object-size.c (compute_object_offset): Properly return
8998 the offset operand of MEM_REFs as sizetype.
8999
9000 2011-03-17 Jakub Jelinek <jakub@redhat.com>
9001
9002 PR rtl-optimization/48141
9003 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
9004 * dse.c: Include params.h.
9005 (active_local_stores_len): New variable.
9006 (add_wild_read, dse_step1): Clear it when setting active_local_stores
9007 to NULL.
9008 (record_store, check_mem_read_rtx): Decrease it when removing
9009 from the chain.
9010 (scan_insn): Likewise. Increase it when adding to chain, if it
9011 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
9012 set active_local_stores to NULL before the addition.
9013 * Makefile.in (dse.o): Depend on $(PARAMS_H).
9014
9015 PR rtl-optimization/48141
9016 * dse.c (record_store): If no positions are needed in an insn
9017 that cannot be deleted, at least unchain it from active_local_stores.
9018
9019 2011-03-16 Dodji Seketeli <dodji@redhat.com>
9020
9021 PR debug/47510
9022 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
9023 (lookup_type_die_strip_naming_typedef): ... here.
9024 (get_context_die): Use it.
9025 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
9026 the anonymous struct named by the naming typedef.
9027
9028 2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
9029
9030 PR target/48154
9031 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
9032 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9033
9034 2011-03-16 Jeff Law <law@redhat.com>
9035
9036 * tree-vrp.c (identify_jump_threads): Slightly simplify type
9037 check for operands of conditional. Allow type to be a pointer.
9038
9039 2011-03-16 Richard Guenther <rguenther@suse.de>
9040
9041 PR tree-optimization/48149
9042 * fold-const.c (fold_binary_loc): Fold
9043 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
9044
9045 2011-03-16 Richard Guenther <rguenther@suse.de>
9046
9047 PR tree-optimization/26134
9048 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
9049 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
9050 (non_rewritable_mem_ref_base): Handle complex type component
9051 accesses, constrain offsets for vector and complex extracts
9052 more properly.
9053
9054 2011-03-16 Richard Guenther <rguenther@suse.de>
9055
9056 PR tree-optimization/48146
9057 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
9058 operands avoiding the need for renaming.
9059
9060 2011-03-16 Richard Guenther <rguenther@suse.de>
9061
9062 * gimple-fold.c (maybe_fold_reference): Open-code relevant
9063 constant folding. Move MEM_REF canonicalization first.
9064 Rely on fold_const_aggregate_ref for initializer folding.
9065 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
9066
9067 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9068
9069 PR middle-end/48136
9070 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
9071 arg0/arg1 or their arguments are always fold converted to matching
9072 types.
9073
9074 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
9075 to nargs.
9076
9077 2011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9078
9079 PR lto/46944
9080 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
9081 Handle in-tree gold.
9082 (ld_vers): Extract binutils version for gold.
9083 (gcc_cv_ld_hidden): Handle gold here.
9084 (gcc_cv_lto_plugin): Determine level of linker plugin support.
9085 * configure: Regenerate.
9086 * config.in: Regenerate.
9087 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
9088 -fuse-linker-plugin otherwise.
9089 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
9090 (LINK_COMMAND_SPEC): Use it.
9091 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
9092
9093 2011-03-16 Jakub Jelinek <jakub@redhat.com>
9094
9095 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
9096 * calls.c: Remove debug.h include.
9097 (emit_call_1): Don't call virtual_call_token debug hook.
9098 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
9099 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
9100 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
9101 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
9102 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
9103 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
9104 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
9105 dwarf2out_virtual_call): Remove.
9106 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
9107 copy_call_info and virtual_call hooks.
9108 (dwarf2out_init): Don't initialize vcall_insn_table,
9109 debug_dcall_section and debug_vcall_section.
9110 (prune_unused_types): Don't mark nodes from dcall_table.
9111 (dwarf2out_finish): Don't output dcall or vcall tables.
9112 * final.c (final_scan_insn): Don't call direct_call or
9113 virtual_call debug hooks.
9114 * debug.h (struct gcc_debug_hooks): Remove direct_call,
9115 virtual_call_token, copy_call_info and virtual_call hooks.
9116 (debug_nothing_uid): Remove prototype.
9117 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
9118 copy_call_info and virtual_call hooks.
9119 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9120 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
9121 * debug.c (do_nothing_debug_hooks): Likewise.
9122 (debug_nothing_uid): Remove.
9123 * doc/invoke.texi (-fenable-icf-debug): Remove.
9124 * common.opt (-fenable-icf-debug): Likewise.
9125
9126 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
9127 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
9128 call's MEM. Handle functions returning aggregate through a hidden
9129 first pointer. For virtual calls add clobbered pc to call arguments
9130 chain.
9131 * dwarf2out.c (gen_subprogram_die): Emit
9132 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
9133 can't be emitted.
9134
9135 PR debug/45882
9136 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
9137 * rtl.h (ENTRY_VALUE_EXP): Define.
9138 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
9139 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
9140 * print-rtl.c (print_rtx): Likewise.
9141 * gengtype.c (adjust_field_rtx_def): Likewise.
9142 * var-tracking.c (vt_add_function_parameter): Adjust
9143 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
9144 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
9145 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
9146 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
9147 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
9148
9149 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
9150 Call var_location debug hook even on CALL_INSNs.
9151 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
9152 * rtl.def (ENTRY_VALUE): New.
9153 * dwarf2out.c: Include cfglayout.h.
9154 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
9155 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
9156 (struct call_arg_loc_node): New type.
9157 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
9158 tail_call_site_count): New variables.
9159 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
9160 DW_TAG_GNU_call_site_parameter.
9161 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
9162 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
9163 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
9164 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
9165 and DW_AT_GNU_all_source_call_sites.
9166 (mem_loc_descriptor): Handle ENTRY_VALUE.
9167 (add_src_coords_attributes): Don't add enything if
9168 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
9169 (dwarf2out_abstract_function): Save and clear call_arg_location,
9170 call_site_count and tail_call_site_count around dwarf2out_decl call.
9171 (gen_call_site_die): New function.
9172 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
9173 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
9174 (dwarf2out_function_decl): Clear call_arg_locations,
9175 call_arg_loc_last, set call_site_count and tail_call_site_count
9176 to -1 and free block_map.
9177 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
9178 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
9179 followed by any real instructions.
9180 (dwarf2out_begin_function): Set call_site_count and
9181 tail_call_site_count to 0.
9182 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
9183 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
9184 attempt to force a DIE for it and worst case remove the attribute.
9185 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
9186 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
9187 the decl itself.
9188 * var-tracking.c: Include tm_p.h.
9189 (vt_stack_adjustments): For calls call note_register_arguments.
9190 (argument_reg_set): New variable.
9191 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
9192 ensure the VALUE is resolved.
9193 (call_arguments): New variable.
9194 (prepare_call_arguments): New function.
9195 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
9196 (struct expand_loc_callback_data): Add ignore_cur_loc field.
9197 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
9198 always use the best expression.
9199 (vt_expand_loc): Add ignore_cur_loc argument.
9200 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
9201 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
9202 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
9203 note for all calls.
9204 (vt_add_function_parameter): Use cselib_lookup_from_insn.
9205 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
9206 argument. Don't call cselib_preserve_only_values and
9207 cselib_reset_table.
9208 (note_register_arguments): New function.
9209 (vt_initialize): Compute argument_reg_set. Call
9210 vt_add_function_parameters before processing basic blocks instead of
9211 afterwards. For calls call prepare_call_arguments before calling
9212 cselib_process_insn.
9213 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
9214 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
9215 (var-tracking.o): Depend on $(TM_P_H).
9216 * cfglayout.h (insn_scope): New prototype.
9217 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
9218 * cfglayout.c (insn_scope): No longer static.
9219 * insn-notes.def (CALL_ARG_LOCATION): New.
9220 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
9221 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
9222 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
9223 nothing for DECL_EXTERNAL BLOCK_VARS.
9224
9225 2011-03-16 Alan Modra <amodra@gmail.com>
9226
9227 PR target/45844
9228 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
9229 create invalid offset address for vsx splat insn.
9230 * config/rs6000/predicates.md (splat_input_operand): New.
9231 * config/rs6000/vsx.md (vsx_splat_*): Use it.
9232
9233 2011-03-15 Xinliang David Li <davidxl@google.com>
9234
9235 PR c/47837
9236 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
9237 (normalize_preds): New function.
9238 (is_use_properly_guarded): Normalize def predicates.
9239
9240 2011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9241
9242 PR target/46788
9243 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
9244 in the output template.
9245
9246 2011-03-15 Richard Guenther <rguenther@suse.de>
9247
9248 PR middle-end/47650
9249 * tree-pretty-print.c (dump_function_declaration): Properly
9250 dump unprototyped and varargs function types.
9251
9252 2011-03-15 Richard Guenther <rguenther@suse.de>
9253
9254 PR tree-optimization/13954
9255 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
9256 and friends.
9257
9258 2011-03-15 Richard Guenther <rguenther@suse.de>
9259
9260 PR tree-optimization/48037
9261 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
9262 selects into BIT_FIELD_REFs.
9263 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
9264 vector select.
9265
9266 2011-03-15 Jakub Jelinek <jakub@redhat.com>
9267
9268 PR tree-optimization/48129
9269 * builtins.c (fold_builtin_snprintf): Convert to type of
9270 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
9271 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
9272
9273 2011-03-15 Richard Guenther <rguenther@suse.de>
9274
9275 PR tree-optimization/41490
9276 * tree-ssa-dce.c (propagate_necessity): Handle returns without
9277 value but with VUSE.
9278 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
9279 return statements.
9280 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
9281 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
9282 * tree-tailcall.c (find_tail_calls): Ignore returns.
9283
9284 2011-03-15 Richard Guenther <rguenther@suse.de>
9285
9286 PR middle-end/48031
9287 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
9288 or variable-indexed array accesses when in gimple form.
9289
9290 2011-03-15 Richard Guenther <rguenther@suse.de>
9291
9292 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
9293
9294 2011-03-15 Alan Modra <amodra@gmail.com>
9295
9296 PR target/48032
9297 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
9298 presume symbol_refs without a symbol_ref_decl are suitably
9299 aligned, nor other trees we may see here. Handle anchor symbols.
9300 (legitimate_constant_pool_address_p): Comment. Add mode param.
9301 Check cmodel=medium addresses. Adjust all calls.
9302 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
9303 creating cmodel=medium optimized access to locals.
9304 * config/rs6000/constraints.md (R): Pass QImode to
9305 legitimate_constant_pool_address_p.
9306 * config/rs6000/predicates.md (input_operand): Pass mode to
9307 legitimate_constant_pool_address_p.
9308 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
9309 Update prototype.
9310
9311 2011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9312
9313 PR target/48053
9314 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
9315 64-bit constants being loaded into registers other than GPRs such
9316 as loading 0 into a VSX register.
9317
9318 2011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9319
9320 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
9321
9322 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9323
9324 PR middle-end/47917
9325 * builtins.c (fold_builtin_snprintf): New function.
9326 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
9327 (fold_builtin_4): Likewise.
9328
9329 PR middle-end/38878
9330 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
9331 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
9332 and C - X == X also strip nops from +/-/p+ operand.
9333 When optimizing -X == C, fold C to arg0's type.
9334
9335 PR debug/47946
9336 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
9337 emit it as add_AT_int instead of add_AT_unsigned.
9338
9339 2011-03-14 Tom Tromey <tromey@redhat.com>
9340
9341 * unwind-dw2.c: Include sys/sdt.h if it exists.
9342 (_Unwind_DebugHook): Use STAP_PROBE2.
9343 * config.in, configure: Rebuild.
9344 * configure.ac: Check for sys/sdt.h.
9345
9346 2011-03-14 Uros Bizjak <ubizjak@gmail.com>
9347
9348 * config/i386/i386.md (ROUND_FLOOR): New constant.
9349 (ROUND_CEIL): Ditto.
9350 (ROUND_TRUNC): Ditto.
9351 (ROUND_MXCSR): Ditto.
9352 (ROUND_NO_EXC): Ditto.
9353 (rint<mode>2): Use new defines instead of numerical constants.
9354 (floor<mode>2): Ditto.
9355 (ceil<mode>2): Ditto.
9356 (btrunc<mode>2): Ditto.
9357 * config/i386/i386-builtin-types.def: Define ROUND function type
9358 aliases.
9359 * config/i386/i386.c (enum ix86_builtins): Add
9360 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
9361 (struct builtin_description): Add
9362 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
9363 (ix86_expand_sse_round): New static function.
9364 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
9365 function types.
9366 (ix86_builtin_vectorized_function): Handle
9367 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
9368
9369 2011-03-14 Tom Tromey <tromey@redhat.com>
9370
9371 * c-parser.c (c_parser_asm_string_literal): Clear
9372 warn_overlength_strings.
9373
9374 2011-03-14 Tom Tromey <tromey@redhat.com>
9375
9376 * c-parser.c (disable_extension_diagnostics): Save
9377 warn_overlength_strings.
9378 (restore_extension_diagnostics): Restore warn_overlength_strings.
9379
9380 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9381
9382 * BASE-VER: Change to 4.7.0.
9383
9384 2011-03-14 Richard Guenther <rguenther@suse.de>
9385
9386 PR middle-end/48098
9387 * tree.c (build_vector_from_val): Adjust assert to requirements
9388 and reality.
9389
9390 2011-03-14 Jakub Jelinek <jakub@redhat.com>
9391
9392 PR bootstrap/48102
9393 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
9394
9395 2011-03-14 Andreas Tobler <andreast@fgznet.ch>
9396
9397 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
9398 terms of target_flags_explicit. Adjust copyright year.
9399
9400 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
9401 * config/rs6000/t-freebsd: New file. Add override for
9402 LIB2FUNCS_EXTRA.
9403
9404 2011-03-13 Chris Demetriou <cgd@google.com>
9405
9406 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
9407 (-fno-diagnostics-show-option): this, to reflect current default.
9408 (-Werror=): Update text about -fno-diagnostics-show-option.
9409
9410 2011-03-12 Peter Bergner <bergner@vnet.ibm.com>
9411
9412 PR target/48053
9413 * config/rs6000/predicates.md (easy_vector_constant_add_self,
9414 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
9415 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
9416 mode is not V2DImode or V2DFmode.
9417 (vspltis_constant): Do not handle V2DImode and V2DFmode.
9418 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
9419 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
9420 registers to 0.
9421 (movdi_internal64): Likewise.
9422
9423 2011-03-12 Sebastian Pop <sebastian.pop@amd.com>
9424
9425 PR tree-optimization/47127
9426 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
9427 parameter.
9428 (set_cloog_options): Same.
9429 (scop_to_clast): Same.
9430 (print_clast_stmt): Do not call cloog_state_malloc and
9431 cloog_state_free.
9432 (print_generated_program): Same.
9433 (gloog): Same.
9434 * graphite-clast-to-gimple.h (cloog_state): Declared.
9435 (scop_to_clast): Adjust declaration.
9436 * graphite.c (cloog_state): Defined here.
9437 (graphite_initialize): Call cloog_state_malloc.
9438 (graphite_finalize): Call cloog_state_free.
9439
9440 2011-03-11 Jason Merrill <jason@redhat.com>
9441
9442 * attribs.c (lookup_attribute_spec): Take const_tree.
9443 * tree.h: Adjust.
9444
9445 2011-03-11 Joseph Myers <joseph@codesourcery.com>
9446
9447 * config/sparc/sparc.c (sparc_option_override): Use
9448 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
9449
9450 2011-03-11 Richard Guenther <rguenther@suse.de>
9451
9452 PR tree-optimization/48067
9453 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
9454 multiplication result will be only used once on the target
9455 stmt.
9456
9457 2011-03-11 Richard Guenther <rguenther@suse.de>
9458
9459 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
9460
9461 2011-03-11 Richard Guenther <rguenther@suse.de>
9462
9463 PR lto/48073
9464 * tree.c (find_decls_types_r): Do not walk types only reachable
9465 from IDENTIFIER_NODEs.
9466
9467 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9468
9469 PR middle-end/48044
9470 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
9471 all vnode->force_output nodes as needed.
9472
9473 2011-03-11 Jason Merrill <jason@redhat.com>
9474
9475 PR c++/48069
9476 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
9477 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
9478
9479 2011-03-11 Martin Jambor <mjambor@suse.cz>
9480
9481 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
9482 cgraph_node.
9483
9484 2011-03-11 Jakub Jelinek <jakub@redhat.com>
9485
9486 PR tree-optimization/48063
9487 * ipa-inline.c (cgraph_decide_inlining): Don't try to
9488 inline functions called once if !tree_can_inline_p (node->callers).
9489
9490 2011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9491
9492 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
9493 extra_objs.
9494 * config/score/score3.c: Delete.
9495 * config/score/score3.h: Delete.
9496 * config/score/mul-div.S: Delete.
9497 * config/score/sfp-machine.h: Add new file.
9498 * config/score/constraints.md: Add new file.
9499 * config/score/t-score-softfp: Add new file.
9500 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9501 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
9502 (score7_extra_constraint): Delete.
9503 (score7_option_override): Remove unused code.
9504 * config/score/score.c: Remove score3 and score5 define and code.
9505 * config/score/score.h: Remove score3 and score5 define and code.
9506 * config/score/score.md: Remove score3 template and unusual insn.
9507 * config/score/score.opt: Remove score3 and score5 options.
9508
9509 2011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9510
9511 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
9512 when _HPUX_SOURCE is defined.
9513 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
9514
9515 2011-03-10 Jason Merrill <jason@redhat.com>
9516
9517 PR c++/48029
9518 * stor-layout.c (layout_type): Don't set structural equality
9519 on arrays of incomplete type.
9520 * tree.c (type_hash_eq): Handle comparing them properly.
9521
9522 2011-03-10 Jakub Jelinek <jakub@redhat.com>
9523
9524 PR debug/48043
9525 * config/s390/s390.c (s390_delegitimize_address): Make sure the
9526 result mode matches original rtl mode.
9527
9528 2011-03-10 Nick Clifton <nickc@redhat.com>
9529
9530 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
9531 (andsi3, andsi3_flags): Fix timings for three operand alternative.
9532
9533 2011-03-09 Jakub Jelinek <jakub@redhat.com>
9534
9535 PR rtl-optimization/47866
9536 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
9537 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
9538 if target wasn't scalar.
9539 * function.c (assign_stack_temp_for_type): Assert that neither
9540 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
9541 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
9542 macro.
9543 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
9544
9545 2011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9546
9547 * config/s390/s390-protos.h (s390_label_align): New prototype.
9548 * config/s390/s390.c (s390_label_align): New function.
9549 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
9550
9551 2011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
9552
9553 PR target/47755
9554 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
9555 V2DI/V2DF constants. Only all 0's or all 1's are easy.
9556 (output_vec_const_move): Ditto.
9557
9558 2011-03-08 Anatoly Sokolov <aesok@post.ru>
9559
9560 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
9561 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
9562 * config/mips/mips.c (mips_preferred_reload_class): Make static.
9563 Change 'rclass' argument and result type to reg_class_t.
9564 (TARGET_PREFERRED_RELOAD_CLASS): Define.
9565
9566 2011-03-08 Georg-Johann Lay <avr@gjlay.de>
9567
9568 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9569 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
9570 (TARGET_MEMORY_MOVE_COST): Define.
9571 (avr_register_move_cost, avr_memory_move_cost): New Functions.
9572
9573 2011-03-08 Jakub Jelinek <jakub@redhat.com>
9574
9575 PR debug/47881
9576 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
9577 removed anything.
9578
9579 PR tree-optimization/48022
9580 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
9581 for EQ/NE_EXPR.
9582
9583 2011-03-07 Jakub Jelinek <jakub@redhat.com>
9584
9585 PR debug/47991
9586 * var-tracking.c (find_use_val): Return NULL for
9587 cui->sets && cui->store_p BLKmode MEMs.
9588
9589 2011-03-07 Anatoly Sokolov <aesok@post.ru>
9590
9591 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
9592 Remove.
9593 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
9594 xstormy16_print_operand_address): Remove.
9595 * config/stormy16/stormy16.c (xstormy16_print_operand,
9596 xstormy16_print_operand_address): Make static.
9597 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
9598
9599 2011-03-07 Pat Haugen <pthaugen@us.ibm.com>
9600
9601 PR target/47862
9602 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9603 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
9604 before definition.
9605
9606 2011-03-07 Zdenek Dvorak <ook@ucw.cz>
9607
9608 PR bootstrap/48000
9609 * cfgloopmanip.c (fix_bb_placements): Return immediately
9610 if FROM is BASE_LOOP's header.
9611
9612 2011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
9613
9614 * gimplify.c (gimplify_function_tree): Fix building calls
9615 to __builtin_return_address.
9616
9617 2011-03-07 Alan Modra <amodra@gmail.com>
9618
9619 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
9620 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
9621 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
9622 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
9623 return_mode args.
9624 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
9625 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
9626 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
9627 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
9628 * config/rs6000/rs6000.c
9629 (rs6000_elf_end_indicate_exec_stack): Rename to..
9630 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
9631 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
9632 (rs6000_file_start): ..here.
9633 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
9634 file scope variables.
9635 (call_ABI_of_interest): New function.
9636 (init_cumulative_args): Set above vars when function return value
9637 is a float, vector, or small struct.
9638 (rs6000_function_arg_advance_1): Likewise for function args.
9639 (rs6000_va_start): Set rs6000_passes_float if variable arg function
9640 references float args.
9641
9642 2011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
9643
9644 * doc/cfg.texi: Remove "See" before @ref.
9645 * doc/invoke.texi: Likewise.
9646
9647 2011-03-05 Jason Merrill <jason@redhat.com>
9648
9649 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
9650
9651 2011-03-05 Anthony Green <green@moxielogic.com>
9652
9653 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
9654
9655 2011-03-05 Zdenek Dvorak <ook@ucw.cz>
9656
9657 PR rtl-optimization/47899
9658 * cfgloopmanip.c (fix_bb_placements): Fix first argument
9659 to flow_loop_nested_p when moving the loop upward.
9660
9661 2011-03-05 Richard Earnshaw <rearnsha@arm.com>
9662
9663 PR target/47719
9664 * arm.md (movhi_insn_arch4): Accept any immediate constant.
9665
9666 2011-03-05 Jakub Jelinek <jakub@redhat.com>
9667
9668 PR tree-optimization/47967
9669 * ipa-cp.c (build_const_val): Return NULL instead of creating
9670 VIEW_CONVERT_EXPR for mismatching sizes.
9671 (ipcp_create_replace_map): Return NULL if build_const_val failed.
9672 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
9673 give up on versioning.
9674
9675 2011-03-05 Alan Modra <amodra@gmail.com>
9676
9677 PR target/47986
9678 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
9679 full cmodel medium/large lo_sum + high addresses.
9680
9681 2011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9682
9683 * config/s390/s390.c (s390_decompose_address): Reject non-literal
9684 pool references in UNSPEC_LTREL_OFFSET.
9685
9686 2011-03-04 Jan Hubicka <jh@suse.cz>
9687
9688 PR lto/47497
9689 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
9690 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
9691 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
9692 Add node pointers.
9693 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
9694 cgraph_add_thunk): Add node pointers.
9695 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
9696 associated to right node.
9697 (input_node): Update use of cgraph_same_body_alias
9698 and cgraph_add_thunk.
9699
9700 2011-03-04 Changpeng Fang <changpeng.fang@amd.com>
9701
9702 * config/i386/i386.opt (mprefer-avx128): New flag.
9703 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
9704 modes when the flag -mprefer-avx128 is on.
9705
9706 2011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
9707
9708 * dwarf2out.c (compare_loc_operands): Fix address handling.
9709
9710 2011-03-04 Alan Modra <amodra@gmail.com>
9711
9712 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
9713
9714 2011-03-04 Richard Guenther <rguenther@suse.de>
9715
9716 PR middle-end/47968
9717 * expmed.c (extract_bit_field_1): Prefer vector modes that
9718 vec_extract patterns can handle.
9719
9720 2011-03-04 Richard Guenther <rguenther@suse.de>
9721
9722 PR middle-end/47975
9723 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
9724
9725 2011-03-04 Richard Henderson <rth@redhat.com>
9726
9727 * explow.c (emit_stack_save): Remove 'after' parameter.
9728 (emit_stack_restore): Likewise.
9729 * expr.h: Update to match.
9730 * builtins.c, calls.c, stmt.c: Likewise.
9731 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
9732 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
9733 * function.c (expand_function_end): Insert the emit_stack_save
9734 sequence before parm_birth_insn instead of after.
9735
9736 2011-03-03 Uros Bizjak <ubizjak@gmail.com>
9737
9738 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
9739 (ssse3_pmaddubsw128): Ditto.
9740 (ssse3_pmaddubsw): Ditto.
9741
9742 2011-03-03 Steve Ellcey <sje@cup.hp.com>
9743
9744 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
9745
9746 2011-03-03 Jakub Jelinek <jakub@redhat.com>
9747
9748 PR c/47963
9749 * gimplify.c (omp_add_variable): Only call omp_notice_variable
9750 on TYPE_SIZE_UNIT if it is a DECL.
9751
9752 PR debug/47283
9753 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
9754 first operand is not is_gimple_mem_ref_addr, try to fold it.
9755 If the operand still isn't is_gimple_mem_ref_addr, clear
9756 MEM_EXPR on op0.
9757
9758 2011-03-03 Richard Guenther <rguenther@suse.de>
9759
9760 PR middle-end/47283
9761 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
9762 match comment.
9763 (refs_may_alias_p_1): For release branches return true if
9764 we are confused by our input.
9765
9766 2011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9767
9768 * config/s390/s390.c (s390_function_value): Rename to ...
9769 (s390_function_and_libcall_value): ... this.
9770 (s390_function_value): New function.
9771 (s390_libcall_value): New function.
9772 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
9773 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
9774 target macro definitions.
9775 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
9776
9777 2011-03-02 Joseph Myers <joseph@codesourcery.com>
9778
9779 * config/i386/freebsd64.h (CC1_SPEC): Define.
9780 * config/i386/linux64.h (CC1_SPEC): Define.
9781 * config/i386/x86-64.h (CC1_SPEC): Don't define.
9782
9783 2011-03-02 Anatoly Sokolov <aesok@post.ru>
9784
9785 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
9786 Remove.
9787 * config/stormy16/stormy16.c: Include reload.h.
9788 (xstormy16_memory_move_cost): New function.
9789 (TARGET_MEMORY_MOVE_COST): Define.
9790
9791 2011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
9792
9793 PR rtl-optimization/47925
9794 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
9795 with side effects. Remove the more-specific check for volatile asms.
9796
9797 2011-03-02 Alan Modra <amodra@gmail.com>
9798
9799 PR target/47935
9800 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
9801 toc relative addresses for valid offsets.
9802
9803 2011-03-01 Richard Guenther <rguenther@suse.de>
9804
9805 PR tree-optimization/47890
9806 * tree-vect-loop.c (get_initial_def_for_induction): Set
9807 related stmt properly.
9808
9809 2011-03-01 Richard Guenther <rguenther@suse.de>
9810
9811 PR lto/47924
9812 * lto-streamer.c (lto_record_common_node): Also register
9813 the canonical type.
9814
9815 2011-03-01 Richard Guenther <rguenther@suse.de>
9816
9817 PR lto/46911
9818 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
9819 Do not stream DECL_ABSTRACT_ORIGIN.
9820 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9821 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9822 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
9823 Do not stream DECL_ABSTRACT_ORIGIN.
9824 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
9825 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
9826
9827 2011-02-28 Anatoly Sokolov <aesok@post.ru>
9828
9829 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
9830 FUNCTION_VALUE_REGNO_P): Remove.
9831 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
9832 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
9833 Add 'outgoing' argument.
9834 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
9835 function.
9836 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
9837 TARGET_FUNCTION_VALUE_REGNO_P): Define.
9838
9839 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
9840
9841 PR debug/28047
9842 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
9843 (lookup_filename): Likewise.
9844 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
9845
9846 2011-02-28 Bernd Schmidt <bernds@codesourcery.com>
9847 Jakub Jelinek <jakub@redhat.com>
9848
9849 PR middle-end/47893
9850 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
9851 (assign_stack_local_1): Change last argument type to int.
9852 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
9853 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
9854 don't record padding space into frame_space_list nor use those areas.
9855 (assign_stack_local): Adjust caller.
9856 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
9857 of assign_stack_local, pass 0 as last argument.
9858 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
9859 callers.
9860
9861 2011-02-28 Jakub Jelinek <jakub@redhat.com>
9862
9863 PR debug/47283
9864 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
9865 Use target address_mode and pointer_mode hooks instead of hardcoded
9866 Pmode and ptr_mode. Handle some simple cases of extending if
9867 POINTERS_EXTEND_UNSIGNED < 0.
9868 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
9869 Call convert_debug_memory_address.
9870 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
9871 convert_debug_memory_address.
9872
9873 PR middle-end/46790
9874 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
9875 * configure: Regenerated.
9876 * config.in: Regenerated.
9877 * varasm.c (default_function_section): Return NULL
9878 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
9879
9880 2011-02-28 Martin Jambor <mjambor@suse.cz>
9881
9882 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
9883 the description to match the printed values.
9884
9885 2011-02-28 Richard Guenther <rguenther@suse.de>
9886
9887 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
9888 of the copied scope tree.
9889
9890 2011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9891
9892 * doc/extend.texi (Function Attributes): Avoid deeply (and
9893 wrongly) nested tables.
9894
9895 2011-02-27 Jakub Jelinek <jakub@redhat.com>
9896
9897 PR middle-end/47903
9898 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
9899 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
9900 r isn't op0 nor op1.
9901
9902 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9903
9904 * config/avr/avr.md: Remove magic comment for emacs.
9905
9906 2011-02-23 Georg-Johann Lay <avr@gjlay.de>
9907
9908 PR target/45261
9909 * config/avr/avr.c (avr_option_override): Use error on bad options.
9910 (avr_help): New function.
9911 (TARGET_HELP): Define.
9912
9913 2011-02-22 Georg-Johann Lay <avr@gjlay.de>
9914
9915 PR target/42240
9916 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
9917 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
9918
9919 2011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
9920
9921 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
9922 (ARM Options): Ditto.
9923 (i386 and x86-64 Options): Ditto.
9924 (RX Options): Ditto.
9925 (SPARC Options): Ditto.
9926
9927 2011-02-26 Tijl Coosemans <tijl@coosemans.org>
9928
9929 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
9930 FreeBSD 6 and later. Generally use cpu generic.
9931
9932 2011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
9933
9934 * doc/cpp.texi: Update copyright years.
9935
9936 2011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
9937
9938 PR target/46898
9939 * config/lm32/lm32.md (ashrsi3): Added needed variable.
9940
9941 2011-02-25 Jon Beniston <jon@beniston.com>
9942
9943 PR target/46898
9944 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
9945 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
9946 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
9947 (lm32_block_move_inline): Add type cast to remove warning.
9948 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
9949 (gen_int_relational): Move declarations to start of function.
9950
9951 2011-02-25 Eric Botcazou <ebotcazou@adacore.com>
9952
9953 PR tree-optimization/45470
9954 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
9955 can throw internally only.
9956 * tree-vect-stmts.c (vectorizable_call): Likewise.
9957
9958 2011-02-24 Anatoly Sokolov <aesok@post.ru>
9959
9960 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
9961 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
9962 * config/stormy16/stormy16-protos.h
9963 (xstormy16_preferred_reload_class): Remove.
9964 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
9965 static. Change 'rclass' argument and return type to reg_class_t.
9966 (TARGET_PREFERRED_RELOAD_CLASS,
9967 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
9968
9969 2011-02-24 Richard Guenther <rguenther@suse.de>
9970
9971 * lto-streamer-in.c (input_bb): Do not find referenced vars
9972 in debug statements.
9973
9974 2011-02-23 Jason Merrill <jason@redhat.com>
9975
9976 * common.opt (fabi-version): Document v5 and v6.
9977
9978 2011-02-23 Richard Guenther <rguenther@suse.de>
9979
9980 PR tree-optimization/47849
9981 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
9982
9983 2011-02-23 Jie Zhang <jie@codesourcery.com>
9984
9985 * opts-common.c (decode_cmdline_option): Print empty string
9986 argument as "" in decoded->orig_option_with_args_text.
9987 * gcc.c (execute): Print empty string argument as ""
9988 in the verbose output.
9989 (do_spec_1): Keep empty string argument.
9990
9991 2011-02-23 Nathan Froyd <froydnj@codesourcery.com>
9992
9993 * config.gcc: Declare score-* and crx-* obsolete.
9994
9995 2011-02-23 Jie Zhang <jie@codesourcery.com>
9996
9997 PR rtl-optimization/47763
9998 * web.c (web_main): Ignore naked clobber when replacing register.
9999
10000 2011-02-22 Anatoly Sokolov <aesok@post.ru>
10001
10002 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
10003 Remove.
10004
10005 2011-02-22 Sebastian Pop <sebastian.pop@amd.com>
10006
10007 PR doc/47848
10008 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
10009
10010 2011-02-22 Mike Stump <mikestump@comcast.net>
10011
10012 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
10013 assembler.
10014 * configure: Regenerate.
10015
10016 2011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
10017
10018 PR rtl-optimization/46002
10019 * ira-color.c (update_copy_costs): Change class intersection
10020 test to reg_class_contents[] test of 'hard_regno'.
10021
10022 2011-02-21 Joseph Myers <joseph@codesourcery.com>
10023
10024 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
10025 than Driver option.
10026 * config/hpux11.opt (mt): Likewise.
10027 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
10028 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
10029 * config/vax/elf.opt (mno-asm-pic): Likewise.
10030 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
10031
10032 2011-02-21 Mike Stump <mikestump@comcast.net>
10033
10034 PR target/47822
10035 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
10036 tree so we can get save the type.
10037 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
10038 for CFString instead of trying to use past the end of the builtins.
10039 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
10040 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
10041 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
10042 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
10043 Rename to darwin_builtin_cfstring.
10044 (darwin_init_cfstring_builtins): Return the built type.
10045
10046 2011-02-21 Uros Bizjak <ubizjak@gmail.com>
10047
10048 PR target/47840
10049 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
10050 (_mm256_insert_epi64): Use _mm_insert_epi64.
10051
10052 2011-02-21 Anatoly Sokolov <aesok@post.ru>
10053
10054 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10055 * config/stormy16/stormy16-protos.h
10056 (xstormy16_mode_dependent_address_p): Remove.
10057 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
10058 Make static. Change return type to bool. Change argument type to
10059 const_rtx. Remove dead code.
10060 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10061
10062 2011-02-21 Richard Guenther <rguenther@suse.de>
10063
10064 PR lto/47820
10065 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10066 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10067 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
10068 TUs context.
10069 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10070 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
10071
10072 2011-02-20 Richard Guenther <rguenther@suse.de>
10073
10074 PR lto/47822
10075 * tree.c (free_lang_data_in_decl): Clean builtins from
10076 the TU decl BLOCK_VARS.
10077
10078 2011-02-19 Alexandre Oliva <aoliva@redhat.com>
10079
10080 PR debug/47620
10081 PR debug/47630
10082 * haifa-sched.c (fix_tick_ready): Skip tick computation
10083 for debug insns.
10084
10085 2011-02-19 Richard Guenther <rguenther@suse.de>
10086
10087 PR lto/47647
10088 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
10089 Remove lazy BLOCK_VARS streaming.
10090 (lto_input_ts_block_tree_pointers): Likewise.
10091 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
10092
10093 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10094
10095 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
10096
10097 2011-02-19 Joseph Myers <joseph@codesourcery.com>
10098
10099 * config/i386/biarch32.h, config/i386/mach.h,
10100 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
10101
10102 2011-02-19 Jakub Jelinek <jakub@redhat.com>
10103
10104 PR target/47800
10105 * config/i386/i386.md (peephole2 for shift and plus): Use
10106 operands[1] original mode in the first insn.
10107
10108 2011-02-18 Mike Stump <mikestump@comcast.net>
10109
10110 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
10111
10112 2011-02-18 Jan Hubicka <jh@suse.cz>
10113
10114 PR middle-end/47788
10115 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
10116 to zero when the function is not inlinable at all.
10117
10118 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10119
10120 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
10121 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10122 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
10123 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
10124 * config/pa/t-pa64: Likewise.
10125 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
10126
10127 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10128
10129 PR driver/47787
10130 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
10131
10132 2011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10133
10134 PR target/47792
10135 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
10136
10137 2011-02-18 Anatoly Sokolov <aesok@post.ru>
10138
10139 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
10140 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
10141 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
10142 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
10143 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
10144 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
10145 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
10146 m32r_load_postinc_p, m32r_store_preinc_predec_p,
10147 m32r_legitimate_address_p): New functions.
10148 * config/m32r/constraints.md (constraint "S"): Don't use
10149 STORE_PREINC_PREDEC_P.
10150 (constraint "U"): Don't use LOAD_POSTINC_P.
10151
10152 2011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
10153
10154 PR rtl-optimization/46178
10155 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
10156 compute ira_hard_regno_cover_class[].
10157
10158 2011-02-18 Richard Guenther <rguenther@suse.de>
10159
10160 PR lto/47798
10161 * lto-streamer.h (lto_global_var_decls): Declare.
10162 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
10163 statics for global var processing.
10164
10165 2011-02-18 Richard Guenther <rguenther@suse.de>
10166
10167 PR tree-optimization/47737
10168 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
10169 edge dominance check.
10170
10171 2011-02-18 Jakub Jelinek <jakub@redhat.com>
10172
10173 PR debug/47780
10174 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
10175 avoid invalid rtx sharing.
10176
10177 2011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
10178
10179 * doc/cpp.texi (Obsolete Features): Add background on the
10180 origin of assertions.
10181
10182 2011-02-17 Iain Sandoe <iains@gcc.gnu.org>
10183
10184 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
10185 objc_abi == 2.
10186 * config/darwin.c (output_objc_section_asm_op): Added support for
10187 ABI v1 and v2.
10188 (is_objc_metadata): New.
10189 (darwin_objc2_section): New.
10190 (darwin_objc1_section): New.
10191 (machopic_select_section): Added support for ABI v1 and v2.
10192 (darwin_emit_objc_zeroed): New.
10193 (darwin_output_aligned_bss): Detect objc metadata and treat it
10194 appropriately.
10195 (darwin_asm_output_aligned_decl_common): Same.
10196 (darwin_asm_output_aligned_decl_local): Same.
10197 * config/darwin-sections.def: Updated for ABI v1 and v2.
10198 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
10199 compiling Objective-C code for the NeXT runtime, default to using
10200 ABI version 0 for 32-bit, and version 2 for 64-bit.
10201
10202 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10203
10204 * common.opt (optimize_fast): New Variable.
10205 * opts.c (default_options_optimization): Use opts->x_optimize_fast
10206 instead of local variable ofast.
10207
10208 2011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
10209
10210 * doc/invoke.texi (fobjc-abi-version): Documented.
10211 (fobjc-nilcheck): Documented.
10212 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
10213 version.
10214
10215 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10216
10217 PR driver/47390
10218 * common.opt (export-dynamic): New Driver option.
10219 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
10220
10221 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10222
10223 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
10224
10225 2011-02-17 Alexandre Oliva <aoliva@redhat.com>
10226 Jan Hubicka <jh@suse.cz>
10227
10228 PR debug/47106
10229 PR debug/47402
10230 * cfgexpand.c (account_used_vars_for_block): Remove.
10231 (estimated_stack_frame_size): Use referenced vars.
10232 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
10233 that were referenced in the original function. Test src_fn
10234 rather than cfun. Drop redundant get_var_ann.
10235 (setup_one_parameter): Drop redundant get_var_ann.
10236 (declare_return_variable): Likewise.
10237 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
10238 (copy_arguments_for_versioning): Drop redundant get_var_ann.
10239 * ipa-inline.c (compute_inline_parameters): Do not compute
10240 disregard_inline_limits here.
10241 (compute_inlinable_for_current, pass_inlinable): New.
10242 (pass_inline_parameters): Require PROP_referenced_vars.
10243 * cgraphunit.c (cgraph_process_new_functions): Don't run
10244 compute_inline_parameters explicitly unless function is in SSA form.
10245 (cgraph_analyze_function): Set .disregard_inline_limits.
10246 * tree-sra.c (convert_callers): Compute inliner parameters
10247 only for functions already in SSA form.
10248
10249 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10250
10251 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
10252 -mlittle-endian-data.
10253
10254 2011-02-17 Joseph Myers <joseph@codesourcery.com>
10255
10256 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
10257 -mno-fpu, not -fpu and -no-fpu.
10258 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
10259 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
10260
10261 2011-02-17 Uros Bizjak <ubizjak@gmail.com>
10262
10263 PR target/43653
10264 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
10265 input reload with PLUS RTX.
10266
10267 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10268
10269 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
10270 of InverseVar(MDMX).
10271
10272 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10273
10274 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
10275 --m4-340.
10276
10277 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10278
10279 * config/mn10300/mn10300.opt (mno-crt0): New.
10280
10281 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10282
10283 * config/m68k/uclinux.opt (static-libc): New Driver option.
10284
10285 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10286
10287 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
10288
10289 2011-02-16 Joseph Myers <joseph@codesourcery.com>
10290
10291 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
10292 %{muser-extend-enabled}.
10293
10294 2011-02-16 Richard Guenther <rguenther@suse.de>
10295
10296 PR tree-optimization/47738
10297 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
10298 the TODO from tree_predictive_commoning.
10299
10300 2011-02-15 Jeff Law <law@redhat.com>
10301
10302 Revert
10303 2011-01-25 Jeff Law <law@redhat.com>
10304
10305 PR rtl-optimization/37273
10306 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10307 handle them like argument loads from stack slots. Do not double
10308 count memory for memory constants and argument loads from stack slots.
10309
10310 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10311
10312 PR middle-end/47725
10313 * combine.c (cant_combine_insn_p): Revert the last change.
10314
10315 2011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
10316
10317 PR target/47755
10318 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
10319 mode for vector constants. Remove code that checks for TImode.
10320
10321 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10322
10323 PR debug/47106
10324 PR debug/47402
10325 * cgraph.h (compute_inline_parameters): Return void.
10326 * ipa-inline.c (compute_inline_parameters): Adjust.
10327
10328 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10329
10330 PR debug/47106
10331 PR debug/47402
10332 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
10333 rather than decl.
10334 * cfgexpand.c (estimated_stack_frame_size): Likewise.
10335 * ipa-inline.c (compute_inline_parameters): Adjust.
10336
10337 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10338
10339 PR debug/47106
10340 PR debug/47402
10341 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
10342 Adjust all users. Pass FN to...
10343 * tree-flow-inline.h (first_referenced_var): ... this. Add
10344 fn argument.
10345 * ipa-struct-reorg.c: Adjust.
10346 * tree-dfa.c: Adjust.
10347 * tree-into-ssa.c: Adjust.
10348 * tree-sra.c: Adjust.
10349 * tree-ssa-alias.c: Adjust.
10350 * tree-ssa-live.c: Adjust.
10351 * tree-ssa.c: Adjust.
10352 * tree-ssanames.c: Adjust.
10353 * tree-tailcall.c: Adjust.
10354
10355 2011-02-15 Alexandre Oliva <aoliva@redhat.com>
10356
10357 PR debug/47106
10358 PR debug/47402
10359 * tree-flow.h (referenced_var_lookup): Add fn parameter.
10360 Adjust all callers.
10361 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
10362 * tree-flow-inline.h: Adjust.
10363 * gimple-pretty-print.c: Adjust.
10364 * tree-into-ssa.c: Adjust.
10365 * tree-ssa.c: Adjust.
10366 * cfgexpand.c: Adjust.
10367
10368 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10369
10370 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
10371 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10372 (EXTRA_CONSTRAINT): Delete.
10373 * config/iq2000/constraints.md: New file.
10374 * config/iq2000/iq2000.md: Include it.
10375 (define_insn ""): Delete.
10376 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
10377 unsupported constraint letters from patterns.
10378 (call_value, call_value_internal1): Likewise.
10379 (call_value_multiple_internal1): Likewise.
10380
10381 2011-02-15 Nick Clifton <nickc@redhat.com>
10382
10383 * config/mn10300/mn10300.c: Include tm-constrs.h.
10384 (struct liw_data): New data structure describing an LIW candidate
10385 instruction.
10386 (extract_bundle): Use struct liw_data. Allow small integer
10387 operands for some instructions.
10388 (check_liw_constraints): Use struct liw_data. Remove swapped
10389 parameter. Add comments describing the checks. Fix bug when
10390 assigning the source of liw1 to the source of liw2.
10391 (liw_candidate): Delete. Code moved into extract_bundle.
10392 (mn10300_bundle_liw): Use struct liw_data. Check constraints
10393 before swapping.
10394 * config/mn10300/predicates.md (liw_operand): New predicate.
10395 Allows registers and small integer constants.
10396 * config/mn10300/constraints.md (O): New constraint. Accetps
10397 integers in the range -8 to +7 inclusive.
10398 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
10399 for moving a small integer into a register. Give this alternative
10400 LIW attributes.
10401 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
10402 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
10403 using the J,K,L and M constraints,
10404 (liw): Remove SI mode on second operands to allow for HI and QI
10405 mode values.
10406 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
10407 instruction.
10408
10409 2011-02-15 H.J. Lu <hongjiu.lu@intel.com>
10410
10411 PR middle-end/47725
10412 * combine.c (cant_combine_insn_p): Check zero/sign extended
10413 hard registers.
10414
10415 2011-02-15 Richard Guenther <rguenther@suse.de>
10416
10417 PR tree-optimization/47743
10418 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
10419 for a non-type-compatible VN lookup bail out.
10420
10421 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10422
10423 * config/fr30/constraints.md: New file.
10424 * config/fr30/fr30.md: Include it.
10425 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
10426 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10427 (EXTRA_CONSTRAINT): Delete.
10428
10429 2011-02-15 Nathan Froyd <froydnj@codesourcery.com>
10430
10431 * config/frv/constraints.md: New file.
10432 * config/frv/predicates.md: Include it.
10433 * config/frv/frv.c (reg_class_from_letter): Delete.
10434 (frv_option_override): Don't initialize it.
10435 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
10436 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
10437 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
10438 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10439 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
10440 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10441 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
10442 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
10443 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
10444 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
10445 (REG_CLASS_FROM_CONSTRAINT): Delete.
10446
10447 2011-02-15 Jakub Jelinek <jakub@redhat.com>
10448
10449 PR middle-end/47581
10450 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
10451 if frame size is 0 in a leaf function.
10452
10453 2011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10454
10455 PR pch/14940
10456 * config/alpha/host-osf.c: New file.
10457 * config/alpha/x-osf: New file.
10458 * config.host (alpha*-dec-osf*): Use it.
10459
10460 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10461
10462 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
10463 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
10464 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
10465 (rx_mode_dependent_address_p): ...this. Make static. Change argument
10466 type to const_rtx.
10467 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
10468
10469 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10470
10471 * config/stormy16/constraints.md: New file.
10472 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
10473 Use satisfies_constraint_Q and satisfies_constraint_R.
10474 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
10475 Delete.
10476 (xstormy16_legitiamte_address_p): Declare.
10477 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
10478 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10479 (EXTRA_CONSTRAINT): Delete.
10480 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
10481 Un-staticize.
10482 (xstormy16_extra_constraint_p): Delete.
10483
10484 2011-02-14 Eric Botcazou <ebotcazou@adacore.com>
10485
10486 PR tree-optimization/46494
10487 * loop-unroll.c (split_edge_and_insert): Adjust comment.
10488 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
10489 (pass_rtl_loop_done): Add TODO_verify_flow.
10490 * fwprop.c (pass_rtl_fwprop): Likewise.
10491 * modulo-sched.c (pass_sms): Likewise.
10492 * tree-ssa-dom.c (pass_dominator): Likewise.
10493 * tree-ssa-loop-ch.c (pass_ch): Likewise.
10494 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
10495 (pass_tree_loop_done): Likewise.
10496 * tree-ssa-pre.c (execute_pre): Likewise.
10497 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
10498 * tree-ssa-sink.c (pass_sink_code): Likewise.
10499 * tree-vrp.c (pass_vrp): Likewise.
10500
10501 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10502
10503 * config/v850/constraints.md: New file.
10504 * config/v850/v850.md: Include it.
10505 * config/v850/predicates.md (reg_or_0_operand): Use
10506 satisfies_constraint_G.
10507 (special_symbolref_operand): Use satisfies_constraint_K.
10508 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
10509 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
10510 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
10511 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
10512 (EXTRA_CONSTRAINT): Delete.
10513 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
10514 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
10515 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
10516
10517 2011-02-14 Anatoly Sokolov <aesok@post.ru>
10518
10519 PR target/47696
10520 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
10521 description.
10522
10523 2011-02-14 Nathan Froyd <froydnj@codesourcery.com>
10524
10525 * config/mcore/constraints.md: New file.
10526 * config/mcore/mcore.md: Include it.
10527 * config/mcore/mcore.c (reg_class_from_letter): Delete.
10528 * config/mcore/mcore.h (reg_class_from_letter): Delete.
10529 (REG_CLASS_FROM_LETTER): Delete.
10530 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
10531 insn_const_int_ok_for_constraint.
10532 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
10533 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
10534 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
10535 (EXTRA_CONSTRAINT): Delete.
10536
10537 2011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10538
10539 PR ada/41929
10540 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
10541 (IS_SIGHANDLER): Define.
10542 (sparc64_is_sighandler): New function, split off from
10543 sparc64_fallback_frame_state.
10544 (sparc_is_sighandler): New function, split off from
10545 sparc_fallback_frame_state.
10546 (sparc64_fallback_frame_state): Merge with ...
10547 (sparc_fallback_frame_state): ... this into ...
10548 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
10549 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
10550 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
10551 stack instead of hardcoded offsets.
10552
10553 2011-02-14 Andriy Gapon <avg@freebsd.org>
10554
10555 PR target/45808
10556 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
10557
10558 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10559
10560 * configure: Regenerate.
10561
10562 2011-02-12 Joseph Myers <joseph@codesourcery.com>
10563
10564 PR driver/45731
10565 * gcc.c (asm_options): Correct spec matching --target-help.
10566
10567 2011-02-12 Martin Jambor <mjambor@suse.cz>
10568
10569 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
10570 to gimple call error.
10571
10572 2011-02-12 Mike Stump <mikestump@comcast.net>
10573
10574 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
10575 comments in backslash regions.
10576
10577 2011-02-12 Mike Stump <mikestump@comcast.net>
10578 Jakub Jelinek <jakub@redhat.com>
10579 Iain Sandoe <iains@gcc.gnu.org>
10580
10581 PR target/47324
10582 * dwarf2out.c (output_cfa_loc): When required, apply the
10583 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
10584 (output_loc_sequence): Likewise.
10585 (output_loc_operands_raw): Likewise.
10586 (output_loc_sequence_raw): Likewise.
10587 (output_cfa_loc): Likewise.
10588 (output_loc_list): Suppress register number adjustment when
10589 calling output_loc_sequence()
10590 (output_die): Likewise.
10591
10592 2011-02-12 Anatoly Sokolov <aesok@post.ru>
10593
10594 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10595 Remove macros.
10596 * config/xtensa/xtensa.c (xtensa_register_move_cost,
10597 xtensa_memory_move_cost): New functions.
10598 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
10599
10600 2011-02-12 Alexandre Oliva <aoliva@redhat.com>
10601
10602 PR lto/47225
10603 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
10604 in the current directory.
10605 * configure: Rebuilt.
10606
10607 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10608
10609 * config/darwin.c (darwin_override_options): Add a hunk missed
10610 from the commit of r168571. Trim comment line lengths and
10611 correct indents of the preceding block.
10612
10613 2011-02-12 Iain Sandoe <iains@gcc.gnu.org>
10614
10615 * gcc.c (driver_handle_option): Concatenate the argument to -F with
10616 the switch.
10617
10618 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10619
10620 * common.opt (nostartfiles): New Driver option.
10621
10622 2011-02-11 Xinliang David Li <davidxl@google.com>
10623
10624 PR tree-optimization/47707
10625 * tree-chrec.c (convert_affine_scev): Keep type precision.
10626
10627 2011-02-11 Eric Botcazou <ebotcazou@adacore.com>
10628
10629 PR tree-optimization/47420
10630 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
10631
10632 2011-02-11 Pat Haugen <pthaugen@us.ibm.com>
10633
10634 PR rtl-optimization/47614
10635 * rtl.h (check_for_inc_dec): Declare.
10636 * dse.c (check_for_inc_dec): Externalize...
10637 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
10638 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
10639
10640 2011-02-11 Joseph Myers <joseph@codesourcery.com>
10641
10642 PR driver/47678
10643 * gcc.c (main): Do not compile inputs if there were errors in
10644 option handling.
10645 * opts-common.c (read_cmdline_option): Check for wrong language
10646 after other error checks.
10647
10648 2011-02-11 Nathan Froyd <froydnj@codesourcery.com>
10649
10650 * cgraph.c: Fix comment typos.
10651 * cgraph.h: Likewise.
10652 * cgraphunit.c: Likewise.
10653 * ipa-cp.c: Likewise.
10654 * ipa-inline.c: Likewise.
10655 * ipa-prop.c: Likewise.
10656 * ipa-pure-const.c: Likewise.
10657 * ipa-ref.c: Likewise.
10658 * ipa-reference.c: Likewise.
10659
10660 2011-02-11 Jakub Jelinek <jakub@redhat.com>
10661
10662 PR debug/47684
10663 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
10664
10665 2011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10666
10667 PR testsuite/47400
10668 * doc/sourcebuild.texi (Require Support): Document
10669 dg-require-ascii-locale.
10670
10671 2011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
10672
10673 * doc/lto.texi (Write summary): Fix missing parentheses.
10674
10675 2011-02-10 DJ Delorie <dj@redhat.com>
10676
10677 * config/m32c/m32c.c (m32c_option_override): Disable
10678 -fcombine-stack-adjustments until flag value tracking and compare
10679 optimization can be rewritten.
10680
10681 2011-02-10 Peter Bergner <bergner@vnet.ibm.com>
10682
10683 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
10684 PROCESSOR_POWER7.
10685 (PROCESSOR_DEFAULT64): Likewise.
10686
10687 2011-02-10 Richard Henderson <rth@redhat.com>
10688
10689 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
10690 change from 2011-02-03.
10691 * config/rx/rx.c (flags_from_code): Likewise.
10692 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
10693 is valid, n/pz otherwise.
10694 (rx_select_cc_mode): Return CCmode if Y is not zero.
10695
10696 2011-02-10 Richard Guenther <rguenther@suse.de>
10697
10698 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
10699
10700 2011-02-10 Richard Guenther <rguenther@suse.de>
10701
10702 PR tree-optimization/47677
10703 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
10704
10705 2011-02-10 Jakub Jelinek <jakub@redhat.com>
10706
10707 PR target/47665
10708 * combine.c (make_compound_operation): Only change shifts into
10709 multiplication for SCALAR_INT_MODE_P.
10710
10711 2011-02-10 Jie Zhang <jie@codesourcery.com>
10712
10713 PR testsuite/47622
10714 Revert
10715 2011-02-05 Jie Zhang <jie@codesourcery.com>
10716 PR debug/42631
10717 * web.c (entry_register): Don't clobber the number of the
10718 first uninitialized reference in used[].
10719
10720 2011-02-09 Richard Guenther <rguenther@suse.de>
10721
10722 PR tree-optimization/47664
10723 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
10724 all edges again.
10725
10726 2011-02-09 David Edelsohn <dje.gcc@gmail.com>
10727
10728 PR target/46481
10729 PR target/47032
10730 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
10731 PROCESSOR_POWER7.
10732 (PROCESSOR_DEFAULT64): Same.
10733 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
10734
10735 2011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10736
10737 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
10738
10739 2011-02-09 Martin Jambor <mjambor@suse.cz>
10740
10741 PR middle-end/45505
10742 * tree-sra.c (struct access): New flags grp_scalar_read and
10743 grp_scalar_write. Changed description of assignment read and write
10744 flags.
10745 (dump_access): Dump new flags, reorder all of them.
10746 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
10747 to detect multiple scalar reads.
10748 (analyze_access_subtree): Use the new scalar read write flags instead
10749 of the old flags. Adjusted comments.
10750
10751 2011-02-08 DJ Delorie <dj@redhat.com>
10752
10753 PR target/47548
10754 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
10755 patterns.
10756
10757 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10758
10759 * config/m68k/uclinux.opt: New.
10760 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
10761
10762 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10763
10764 * config/cris/elf.opt (sim): New Driver option.
10765
10766 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10767
10768 * config/xtensa/elf.opt: New.
10769 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
10770
10771 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10772
10773 * config/vax/elf.opt: New.
10774 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
10775
10776 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10777
10778 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
10779
10780 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10781
10782 * config/gnu-user.opt: New.
10783 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
10784 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
10785 *-*-uclinux*): Use gnu-user.opt.
10786
10787 2011-02-08 Thomas Schwinge <thomas@schwinge.name>
10788
10789 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
10790 * config/i386/gnu.h (CPP_SPEC): Likewise.
10791
10792 2011-02-08 Ian Lance Taylor <iant@google.com>
10793
10794 * common.opt (fcx-limited-range): Add SetByCombined flag.
10795 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
10796 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
10797 (fassociative-math, freciprocal-math): Likewise.
10798 (funsafe-math-optimizations): Likewise.
10799 * opth-gen.awk: Handle SetByCombined.
10800 * optc-gen.awk: Likewise.
10801 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
10802 (set_unsafe_math_optimizations_flags): Likewise.
10803 * doc/options.texi (Option properties): Document SetByCombined.
10804
10805 2011-02-08 Joseph Myers <joseph@codesourcery.com>
10806
10807 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
10808 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
10809 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
10810 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
10811 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
10812
10813 2011-02-08 Sebastian Pop <sebastian.pop@amd.com>
10814
10815 PR tree-optimization/46834
10816 PR tree-optimization/46994
10817 PR tree-optimization/46995
10818 * graphite-sese-to-poly.c (used_outside_reduction): New.
10819 (detect_commutative_reduction): Call used_outside_reduction.
10820 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
10821 translate_scalar_reduction_to_array only when at least one
10822 loop-phi/close-phi tuple has been detected.
10823
10824 2011-02-08 Richard Guenther <rguenther@suse.de>
10825
10826 PR middle-end/47639
10827 * tree-vect-generic.c (expand_vector_operations_1): Update
10828 stmts here ...
10829 (expand_vector_operations): ... not here. Cleanup EH info
10830 and the CFG if required.
10831
10832 2011-02-08 Richard Guenther <rguenther@suse.de>
10833
10834 PR tree-optimization/47641
10835 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
10836 require type compatibility.
10837
10838 2011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10839
10840 * gimple-low.c (lower_function_body): Don't remove the location of
10841 the return statement here.
10842 (lower_gimple_return): Do it here instead but only if the return
10843 statement is actually used twice.
10844
10845 2011-02-08 Richard Guenther <rguenther@suse.de>
10846
10847 PR tree-optimization/47632
10848 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
10849 unused up_to_stmt parameter, return whether cfg-cleanup is
10850 necessary, remove EH info properly.
10851 (forward_propagate_into_gimple_cond): Adjust caller.
10852 (forward_propagate_into_cond): Likewise.
10853 (forward_propagate_comparison): Likewise.
10854 (tree_ssa_forward_propagate_single_use_vars): Make
10855 forward_propagate_comparison case similar to the two others.
10856
10857 2011-02-08 Nick Clifton <nickc@redhat.com>
10858
10859 * config/mn10300/mn10300.opt (mliw): New command line option.
10860 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
10861 (liw_bundling): New automaton.
10862 (liw): New attribute.
10863 (liw_op): New attribute.
10864 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
10865 (movsi_internal): Add LIW attributes.
10866 (andsi3): Likewise.
10867 (iorsi3): Likewise.
10868 (xorsi3): Likewise.
10869 (addsi3): Separate register and immediate alternatives.
10870 Add LIW attributes.
10871 (subsi3): Likewise.
10872 (cmpsi): Likewise.
10873 (aslsi3): Likewise.
10874 (lshrsi3): Likewise.
10875 (ashrsi3): Likewise.
10876 (liw): New pattern.
10877 * config/mn10300/mn10300.c (liw_op_names): New
10878 (mn10300_print_operand): Handle 'W' operand descriptor.
10879 (extract_bundle): New function.
10880 (check_liw_constraints): New function.
10881 (liw_candidate): New function.
10882 (mn10300_bundle_liw): New function.
10883 (mn10300_reorg): New function.
10884 (TARGET_MACHINE_DEPENDENT_REORG): Define.
10885 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
10886 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
10887 __LIW__ or __NO_LIW__.
10888 * doc/invoke.texi: Describe the -mliw command line option.
10889
10890 2011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10891
10892 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
10893 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10894 pthread_mutex_unlock): Remove.
10895 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
10896 * config/pa/t-pa64: Likewise.
10897 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
10898 shared libc if not linking against libpthread.
10899 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
10900
10901 2011-02-07 Iain Sandoe <iains@gcc.gnu.org>
10902
10903 PR target/47558
10904 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
10905 on 10.6 and later to ensure that we always use the unwinder from
10906 the system. Only add -no_compact_unwind when tarteting darwin
10907 10.6 or later.
10908
10909 2011-02-07 Steve Ellcey <sje@cup.hp.com>
10910
10911 PR target/46997
10912 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
10913 (vec_interleave_lowv2sf): Ditto.
10914 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
10915 (vec_extract_oddv2sf): Ditto.
10916
10917 2011-02-07 Mike Stump <mikestump@comcast.net>
10918
10919 PR target/42333
10920 Add __ieee_divdc3 entry point.
10921 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
10922 entry point.
10923 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
10924 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
10925 * config/darwin.c (darwin_rename_builtins): Add.
10926 * config/darwin-protos.h (darwin_rename_builtins): Add.
10927
10928 2011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
10929
10930 PR target/47636
10931 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
10932 for the condition.
10933
10934 2011-02-07 Mike Stump <mikestump@comcast.net>
10935
10936 * config/darwin.opt (mmacosx-version-min): Update default OS version.
10937
10938 2011-02-07 Denis Chertykov <chertykov@gmail.com>
10939
10940 PR target/47534
10941 * config/avr/libgcc.S (exit): Move .endfunc
10942
10943 2011-02-07 Richard Guenther <rguenther@suse.de>
10944
10945 PR tree-optimization/47615
10946 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
10947 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
10948 (run_scc_vn): Initialize it.
10949 (visit_reference_op_load): Use it.
10950 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
10951
10952 2011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
10953
10954 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
10955 DImode trapping arithmetic libfuncs.
10956
10957 2011-02-07 Richard Guenther <rguenther@suse.de>
10958
10959 PR tree-optimization/47621
10960 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
10961 two duplicates ...
10962 (execute_update_addresses_taken): ... here. Make it more
10963 conservative in what we accept.
10964
10965 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10966
10967 * config/sparc/freebsd.h (ASM_SPEC): Define.
10968 * config/sparc/vxworks.h (ASM_SPEC): Define.
10969
10970 2011-02-06 Joseph Myers <joseph@codesourcery.com>
10971
10972 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
10973
10974 2011-02-06 Steven Bosscher <steven@gcc.gnu.org>
10975
10976 * doc/invoke.texi: Remove reference to compiler internals from
10977 user documentation.
10978
10979 * reg-notes.def: Remove REG_VALUE_PROFILE.
10980 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
10981
10982 2011-02-05 Jakub Jelinek <jakub@redhat.com>
10983
10984 PR middle-end/47610
10985 * varasm.c (default_section_type_flags): If decl is NULL,
10986 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
10987
10988 2011-02-05 Jie Zhang <jie@codesourcery.com>
10989
10990 PR debug/42631
10991 * web.c (entry_register): Don't clobber the number of the
10992 first uninitialized reference in used[].
10993
10994 2011-02-04 Sebastian Pop <sebastian.pop@amd.com>
10995
10996 PR tree-optimization/46194
10997 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
10998 (build_classic_dist_vector_1): Do not represent classic distance
10999 vectors when the access functions are variating in different loops.
11000
11001 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11002
11003 * config/mips/iris6.opt: New.
11004 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
11005
11006 2011-02-04 Richard Henderson <rth@redhat.com>
11007 Steve Ellcey <sje@cup.hp.com>
11008
11009 PR target/46997
11010 * config/ia64/predicates.md (mux1_brcst_element): New.
11011 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
11012 * config/ia64/ia64.c (ia64_unpack_assemble): New.
11013 (ia64_unpack_sign): New.
11014 (ia64_expand_unpack): Rewrite using new routines.
11015 (ia64_expand_widen_sum): Ditto.
11016 (ia64_expand_dot_prod_v8qi): Ditto.
11017 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
11018 routines, add endian check.
11019 (pmpy2_even): Rename from pmpy2_r, add endian check.
11020 (pmpy2_odd): Rename from pmpy2_l, add endian check.
11021 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
11022 (vec_widen_smult_hi_v4hi): Ditto.
11023 (vec_widen_umult_lo_v4hi): Ditto.
11024 (vec_widen_umult_hi_v4hi): Ditto.
11025 (mulv2si3): Change endian checks.
11026 (sdot_prodv4hi): Rewrite with new calls.
11027 (udot_prodv4hi): New.
11028 (vec_pack_ssat_v4hi): Add endian check.
11029 (vec_pack_usat_v4hi): Ditto.
11030 (vec_pack_ssat_v2si): Ditto.
11031 (max1_even): Rename from max1_r, add endian check.
11032 (max1_odd): Rename from max1_l, add endian check.
11033 (*mux1_rev): Format change.
11034 (*mux1_mix): Ditto.
11035 (*mux1_shuf): Ditto.
11036 (*mux1_alt): Ditto.
11037 (*mux1_brcst_v8qi): Use new predicate.
11038 (vec_extract_evenv8qi): Remove endian check.
11039 (vec_extract_oddv8qi): Ditto.
11040 (vec_interleave_lowv4hi): Format change.
11041 (vec_interleave_highv4hi): Ditto.
11042 (mix2_even): Rename from mix2_r, add endian check.
11043 (mix2_odd): Rename from mux2_l, add endian check.
11044 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
11045 (vec_extract_evenodd_helper): Format change.
11046 (vec_extract_evenv4hi): Remove endian check.
11047 (vec_extract_oddv4hi): Remove endian check.
11048 (vec_interleave_lowv2si): Format change.
11049 (vec_interleave_highv2si): Format change.
11050 (vec_initv2si): Remove endian check.
11051 (vecinit_v2si): Add endian check.
11052 (reduc_splus_v2sf): Add endian check.
11053 (reduc_smax_v2sf): Ditto.
11054 (reduc_smin_v2sf): Ditto.
11055 (vec_initv2sf): Remove endian check.
11056 (fpack): Add endian check.
11057 (fswap): Add endian check.
11058 (vec_interleave_highv2sf): Add endian check.
11059 (vec_interleave_lowv2sf): Add endian check.
11060 (fmix_lr): Add endian check.
11061 (vec_setv2sf): Format change.
11062 (*vec_extractv2sf_0_be): Use shift to extract operand.
11063 (*vec_extractv2sf_1_be): New.
11064 (vec_pack_trunc_v4hi): Add endian check.
11065 (vec_pack_trunc_v2si): Format change.
11066
11067 2011-02-04 Jakub Jelinek <jakub@redhat.com>
11068
11069 PR inline-asm/23200
11070 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
11071 do bb, locus and block comparison and disallow loads if it is not set.
11072 (stmt_is_replaceable_p): New function.
11073 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
11074 callers.
11075 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
11076 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
11077 SSA_NAME_DEF_STMT.
11078 * tree-flow.h (stmt_is_replaceable_p): New prototype.
11079
11080 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11081
11082 * config/rs6000/xilinx.opt: New.
11083 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
11084
11085 2011-02-04 Joseph Myers <joseph@codesourcery.com>
11086
11087 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
11088
11089 2011-02-03 Anatoly Sokolov <aesok@post.ru>
11090
11091 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
11092 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11093 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
11094 secondary_reload_info, xtensa_secondary_reload): Remove.
11095 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
11096 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11097 (xtensa_preferred_reload_class): Make static. Change return and
11098 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
11099 Use CONST_DOUBLE_P predicate.
11100 (xtensa_preferred_output_reload_class): New function.
11101 (xtensa_secondary_reload): Make static.
11102
11103 2011-02-03 Joseph Myers <joseph@codesourcery.com>
11104
11105 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
11106 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
11107 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
11108
11109 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11110
11111 PR middle-end/31490
11112 * output.h (SECTION_RELRO): Define.
11113 (SECTION_MACH_DEP): Adjust.
11114 (get_variable_section): New prototype.
11115 * varpool.c (varpool_finalize_named_section_flags): New function.
11116 (varpool_assemble_pending_decls): Call it.
11117 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
11118 * cgraphunit.c (cgraph_output_in_order): Call
11119 varpool_finalize_named_section_flags.
11120 * varasm.c (get_section): Allow section flags conflicts between
11121 relro and read-only sections if the section hasn't been declared yet.
11122 Set SECTION_OVERRIDE after diagnosing section type conflict.
11123 (get_variable_section): No longer static.
11124 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
11125 readonly sections that need relocations.
11126 (decl_readonly_section_1): New function.
11127 (decl_readonly_section): Use it.
11128
11129 Revert:
11130 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
11131 Steve Ellcey <sje@cup.hp.com>
11132
11133 PR middle-end/31490
11134 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
11135 if section attribute used.
11136
11137 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11138
11139 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
11140 * config/darwin.c (SECTION_NO_ANCHOR): Define.
11141 (darwin_init_sections): Remove assertion.
11142
11143 2011-02-03 Nick Clifton <nickc@redhat.com>
11144
11145 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
11146 lt and ge.
11147 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
11148 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
11149 instead of "n" and "pz".
11150 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
11151 CC_FLAG_S.
11152
11153 2011-02-03 Jakub Jelinek <jakub@redhat.com>
11154
11155 PR target/47312
11156 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
11157 fma, expand FMA_EXPR as fma{,f,l} call.
11158
11159 PR lto/47274
11160 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
11161 copy them into a unsigned char variable and pass address of it to
11162 lto_output_data_stream.
11163
11164 PR target/47564
11165 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
11166 around backend_init_target and lang_dependent_init_target calls.
11167 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
11168 (verify_cgraph_node): Don't call set_cfun here. Use
11169 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
11170 Set error_found for incorrectly represented calls to thunks.
11171
11172 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11173
11174 PR debug/43092
11175 PR rtl-optimization/43494
11176 * rtl.h (for_each_inc_dec_fn): New type.
11177 (for_each_inc_dec): Declare.
11178 * rtlanal.c (struct for_each_inc_dec_ops): New type.
11179 (for_each_inc_dec_find_inc_dec): New fn.
11180 (for_each_inc_dec_find_mem): New fn.
11181 (for_each_inc_dec): New fn.
11182 * dse.c (struct insn_size): Remove.
11183 (replace_inc_dec, replace_inc_dec_mem): Remove.
11184 (emit_inc_dec_insn_before): New fn.
11185 (check_for_inc_dec): Use it, along with for_each_inc_dec.
11186 (canon_address): Pass mem modes to cselib_lookup.
11187 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
11188 (cselib_lookup_from_insn): Likewise.
11189 (cselib_subst_to_values): Likewise.
11190 * cselib.c (find_slot_memmode): New var.
11191 (cselib_find_slot): New fn. Use it instead of
11192 htab_find_slot_with_hash everywhere.
11193 (entry_and_rtx_equal_p): Use find_slot_memmode.
11194 (autoinc_split): New fn.
11195 (rtx_equal_for_cselib_p): Rename and implement in terms of...
11196 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
11197 Deal with autoinc. Special-case recursion into MEMs.
11198 (cselib_hash_rtx): Likewise.
11199 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
11200 address and MEM modes.
11201 (cselib_subst_to_values): Add memmode, pass it on.
11202 Deal with autoinc.
11203 (cselib_lookup): Add memmode argument, pass it on.
11204 (cselib_lookup_from_insn): Add memmode.
11205 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
11206 (struct cselib_record_autoinc_data): New.
11207 (cselib_record_autoinc_cb): New fn.
11208 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
11209 mode to cselib_lookup. Reset autoinced REGs here instead of...
11210 (cselib_process_insn): ... here.
11211 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
11212 to cselib_lookup.
11213 (add_uses): Likewise, also to cselib_subst_to_values.
11214 (add_stores): Likewise.
11215 * sched-deps.c (add_insn_mem_dependence): Pass mode to
11216 cselib_subst_to_values.
11217 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
11218 * gcse.c (do_local_cprop): Adjusted.
11219 * postreload.c (reload_cse_simplify_set): Adjusted.
11220 (reload_cse_simplify_operands): Adjusted.
11221 * sel-sched-dump (debug_mem_addr_value): Pass mode.
11222
11223 2011-02-03 Alexandre Oliva <aoliva@redhat.com>
11224
11225 PR tree-optimization/45122
11226 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
11227 unsafe assumptions when there's more than one loop exit.
11228
11229 2011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11230
11231 PR target/47272
11232 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
11233 Document using vector double with the load/store builtins, and
11234 that the load/store builtins always use Altivec instructions.
11235
11236 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
11237 to use altivec memory instructions, even on VSX.
11238 (vector_altivec_store_<mode>): Ditto.
11239
11240 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
11241 function.
11242
11243 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
11244 V2DF, V2DI support to load/store overloaded builtins.
11245
11246 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
11247 altivec load/store builtins for V2DF/V2DI types.
11248
11249 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
11250 set avoid indexed addresses on power6 if -maltivec.
11251 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
11252 vector_altivec_load/vector_altivec_store builtins.
11253 (altivec_expand_st_builtin): Ditto.
11254 (altivec_expand_builtin): Add VSX memory builtins.
11255 (rs6000_init_builtins): Add V2DI types to internal types.
11256 (altivec_init_builtins): Add support for V2DF/V2DI altivec
11257 load/store builtins.
11258 (rs6000_address_for_altivec): Insure memory address is appropriate
11259 for Altivec.
11260
11261 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
11262 vec_vsx_ld and vec_vsx_st.
11263 (vsx_store_<mode>): Ditto.
11264
11265 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
11266 variables to hold long long types for VSX vector memory builtins.
11267 (RS6000_BTI_unsigned_long_long): Ditto.
11268 (long_long_integer_type_internal_node): Ditti.
11269 (long_long_unsigned_type_internal_node): Ditti.
11270
11271 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
11272 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
11273 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
11274
11275 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
11276 short cuts.
11277 (vec_vsx_st): Ditto.
11278
11279 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11280
11281 * config/pa/pa-hpux10.opt: New.
11282 * config/hpux11.opt (pthread): New Driver option.
11283 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
11284 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
11285
11286 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11287
11288 * config/ia64/vms.opt: New.
11289 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
11290
11291 2011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
11292
11293 PR target/47580
11294 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
11295 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
11296 generator functions.
11297 (vsx_floatuns<VSi><mode>2): Ditto.
11298 (vsx_fix_trunc<mode><VSi>2): Ditto.
11299 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
11300
11301 2011-02-02 Joseph Myers <joseph@codesourcery.com>
11302
11303 * config/i386/djgpp.opt (posix): New Driver option.
11304
11305 2011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
11306
11307 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
11308 Move to the unsupported targets list.
11309
11310 2011-02-02 Peter Bergner <bergner@vnet.ibm.com>
11311
11312 PR rtl-optimization/47525
11313 * df-scan.c: Update copyright years.
11314 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
11315 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
11316
11317 2011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11318
11319 * config/i386/sysv4.h (TARGET_VERSION): Remove.
11320 (SUBTARGET_RETURN_IN_MEMORY): Remove.
11321 (ASM_OUTPUT_ASCII): Remove.
11322 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
11323
11324 2011-02-02 Jeff Law <law@redhat.com>
11325
11326 PR middle-end/47543
11327 * reload.c (find_reloads_address): Handle reg+d address where both
11328 components are invalid by reloading the entire address.
11329
11330 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11331 Richard Guenther <rguenther@suse.de>
11332
11333 PR tree-optimization/40979
11334 PR bootstrap/47044
11335 * passes.c (init_optimization_passes): After LIM call copy_prop
11336 and DCE to clean up.
11337 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
11338
11339 2011-02-02 Sebastian Pop <sebastian.pop@amd.com>
11340
11341 PR tree-optimization/47576
11342 PR tree-optimization/47555
11343 * doc/invoke.texi (scev-max-expr-complexity): Documented.
11344 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11345 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
11346 * tree-scalar-evolution.c (follow_ssa_edge): Use
11347 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
11348
11349 2011-02-02 Richard Guenther <rguenther@suse.de>
11350
11351 PR tree-optimization/47566
11352 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
11353
11354 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11355
11356 PR debug/47106
11357 PR debug/47402
11358 * tree-inline.c (declare_return_variable): Remove unused caller
11359 variable.
11360
11361 PR debug/47106
11362 PR debug/47402
11363 * tree-flow-inline.h (clear_is_used, is_used_p): New.
11364 * cfgexpand.c (account_used_vars_for_block): Use them.
11365 * tree-nrv.c (tree_nrv): Likewise.
11366 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
11367 (dump_scope_block): Likewise.
11368 (remove_unused_locals): Likewise.
11369
11370 PR debug/47106
11371 PR debug/47402
11372 * tree-inline.c (declare_return_variable): Add result decl to
11373 local decls only once.
11374 * gimple-low.c (record_vars_into): Mark newly-created variables
11375 as referenced.
11376
11377 2011-02-02 Alexandre Oliva <aoliva@redhat.com>
11378
11379 PR debug/47498
11380 PR debug/47501
11381 PR debug/45136
11382 PR debug/45130
11383 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11384 debug insns.
11385 (no_real_insns_p, schedule_block, set_priorities): Drop special
11386 treatment of boundary debug insns.
11387 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11388 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
11389 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11390 (BOUNDARY_DEBUG_INSN_P): Likewise.
11391 (SCHEDULE_DEBUG_INSN_P): Likewise.
11392 * sched-rgn.c (init_ready_list): Drop special treatment of
11393 boundary debug insns.
11394 * final.c (rest_of_clean_state): Clear notes' BB.
11395
11396 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11397
11398 * config/openbsd.opt (assert=): New Driver option.
11399
11400 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11401
11402 * config/i386/nto.opt: New.
11403 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
11404
11405 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11406
11407 * config/i386/netware.opt: New.
11408 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
11409
11410 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11411
11412 * config/interix.opt (posix): New Driver option.
11413
11414 2011-02-01 DJ Delorie <dj@redhat.com>
11415
11416 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
11417
11418 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
11419 class for A0/A1.
11420
11421 2011-02-01 Sebastian Pop <sebastian.pop@amd.com>
11422
11423 PR tree-optimization/47561
11424 * toplev.c (process_options): Print the Graphite flags. Add
11425 flag_loop_flatten to the list of options requiring Graphite.
11426
11427 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11428
11429 * config/i386/cygming.opt (posix): New Driver option.
11430
11431 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11432
11433 * config/arm/vxworks.opt: New.
11434 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
11435
11436 2011-02-01 Joseph Myers <joseph@codesourcery.com>
11437
11438 * config/alpha/elf.opt: New.
11439 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
11440 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
11441
11442 2011-02-01 Richard Guenther <rguenther@suse.de>
11443
11444 PR tree-optimization/47559
11445 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
11446 store-motion on references that can throw.
11447
11448 2011-02-01 Bernd Schmidt <bernds@codesourcery.com>
11449
11450 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
11451 * tree-pass.h (TDF_CSELIB): New macro.
11452 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
11453 cselib_lookup): Check for it rather than for TDF_DETAILS.
11454
11455 2011-02-01 H.J. Lu <hongjiu.lu@intel.com>
11456
11457 PR driver/47547
11458 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
11459 is HOST_BIT_BUCKET.
11460
11461 * opts.c (finish_options): Don't add x_aux_base_name if it is
11462 HOST_BIT_BUCKET.
11463
11464 2011-02-01 Richard Guenther <rguenther@suse.de>
11465
11466 PR tree-optimization/47555
11467 Revert
11468 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
11469
11470 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11471
11472 2011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
11473
11474 PR gcc/46692
11475 * config/lm32/t-lm32: Add multilib for all CPU options.
11476
11477 2011-02-01 Richard Guenther <rguenther@suse.de>
11478
11479 PR tree-optimization/47541
11480 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
11481 sure to have a field at offset zero.
11482
11483 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11484
11485 * config/arc/arc.opt (EB, EL): New Driver options.
11486
11487 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11488
11489 * config/alpha/osf5.opt: New.
11490 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
11491
11492 2011-01-31 Joseph Myers <joseph@codesourcery.com>
11493
11494 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
11495
11496 2011-01-31 Sebastian Pop <sebastian.pop@amd.com>
11497
11498 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
11499 -floop-interchange.
11500 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
11501 is an alias of -floop-interchange and that it requires the
11502 Graphite infrastructure.
11503 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
11504 flag_loop_interchange based on the value of flag_tree_loop_linear.
11505
11506 2011-01-31 Jakub Jelinek <jakub@redhat.com>
11507 Richard Guenther <rguenther@suse.de>
11508
11509 PR tree-optimization/47538
11510 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
11511 type instead of r1type, except for comparisons. For right
11512 shifts and comparisons punt if there are mismatches in
11513 sizetype vs. non-sizetype types.
11514
11515 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11516
11517 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11518 avx_runtime.
11519
11520 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11521
11522 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
11523 version number.
11524 * configure: Regenerate.
11525
11526 2011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11527
11528 * configure.ac (gcc_cv_ld_static_option): Define.
11529 (gcc_cv_ld_dynamic_option): Define.
11530 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
11531 instead.
11532 (HAVE_LD_STATIC_DYNAMIC): Update message.
11533 (LD_STATIC_OPTION): Define.
11534 (LD_DYNAMIC_OPTION): Define.
11535 * configure: Regenerate.
11536 * config.in: Regenerate.
11537 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
11538 HAVE_LD_STATIC_DYNAMIC]: Use them.
11539
11540 2011-01-31 Nick Clifton <nickc@redhat.com>
11541
11542 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
11543 registers inside interrupt handlers if the handler is not a leaf
11544 function.
11545
11546 2011-01-31 Nick Clifton <nickc@redhat.com>
11547
11548 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
11549 reg_renumber returning an INVALID_REGNUM.
11550
11551 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11552
11553 PR libgcj/44341
11554 * doc/install.texi: Document host options discarded when cross
11555 configuring target libraries.
11556
11557 2011-01-31 Alexandre Oliva <aoliva@redhat.com>
11558
11559 Reverted:
11560 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11561 PR debug/45136
11562 PR debug/45130
11563 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11564 debug insns.
11565 (no_real_insns_p, schedule_block, set_priorities): Drop special
11566 treatment of boundary debug insns.
11567 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11568 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11569 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11570 (BOUNDARY_DEBUG_INSN_P): Likewise.
11571 (SCHEDULE_DEBUG_INSN_P): Likewise.
11572 * sched-rgn.c (init_ready_list): Drop special treatment of
11573 boundary debug insns.
11574 * final.c (rest_of_clean-state): Clear notes' BB.
11575
11576 2011-01-31 Alan Modra <amodra@gmail.com>
11577
11578 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
11579 toc relative expressions as we do in print_operand_address.
11580
11581 2011-01-30 Kazu Hirata <kazu@codesourcery.com>
11582
11583 * doc/extend.texi: Follow spelling conventions.
11584 * doc/invoke.texi: Fix a typo.
11585
11586 2011-01-30 Joseph Myers <joseph@codesourcery.com>
11587
11588 * config/hpux11.opt: New.
11589 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
11590 ia64*-*-hpux*): Use hpux11.opt.
11591
11592 2011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
11593
11594 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
11595 to tmake_file.
11596
11597 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11598
11599 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
11600 support sites.
11601
11602 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11603
11604 * doc/install.texi (Binaries): Remove outdated reference for
11605 Motorola 68HC11/68HC12 downloads.
11606
11607 2011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
11608
11609 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
11610 Drepper's paper.
11611
11612 2011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
11613
11614 PR bootstrap/47147
11615 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
11616 used by NetBSD.
11617
11618 2011-01-28 Ahmad Sharif <asharif@google.com>
11619
11620 * value-prof.c (check_counter): Corrected error message.
11621
11622 2011-01-29 Jie Zhang <jie@codesourcery.com>
11623
11624 * config/arm/arm.c (arm_legitimize_reload_address): New.
11625 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
11626 arm_legitimize_reload_address.
11627 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
11628
11629 2011-01-28 Ian Lance Taylor <iant@google.com>
11630
11631 * godump.c (go_define): Ignore macros whose definitions include
11632 two adjacent operands.
11633
11634 2011-01-28 Jakub Jelinek <jakub@redhat.com>
11635
11636 PR target/42894
11637 * varasm.c (force_const_mem): Store copy of x in desc->constant
11638 instead of x itself.
11639 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
11640 itself into REG_EQUAL note.
11641
11642 2011-01-28 Joseph Myers <joseph@codesourcery.com>
11643
11644 * config/freebsd.opt (posix, rdynamic): New Driver options.
11645
11646 2011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11647
11648 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
11649 -Bstatic/-Bdynamic.
11650 * configure: Regenerate.
11651
11652 2011-01-27 Joseph Myers <joseph@codesourcery.com>
11653
11654 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
11655 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
11656
11657 2011-01-27 Anatoly Sokolov <aesok@post.ru>
11658
11659 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
11660 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
11661 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
11662 (s390_preferred_reload_class): Make static. Change return and
11663 'rclass' argument type to reg_class_t.
11664
11665 2011-01-27 Jan Hubicka <jh@suse.cz>
11666
11667 PR middle-end/46949
11668 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
11669 (process_function_and_variable_attributes): Check defined weakrefs.
11670
11671 2011-01-27 Martin Jambor <mjambor@suse.cz>
11672
11673 PR tree-optimization/47228
11674 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
11675 build_ref_for_offset.
11676
11677 2011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11678
11679 * config/spu/spu-elf.h (ASM_SPEC): Remove.
11680
11681 2011-01-26 Mikael Pettersson <mikpe@it.uu.se>
11682
11683 PR rtl-optimization/46856
11684 * postreload.c (reload_combine_recognize_const_pattern): Do not
11685 separate cc0 setter and user on cc0 targets.
11686
11687 2011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
11688
11689 PR c/43082
11690 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
11691 passed a VOID_TYPE expression, immediately emit an error and
11692 return error_mark_node.
11693
11694 2011-01-26 Jeff Law <law@redhat.com>
11695
11696 PR rtl-optimization/47464
11697 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
11698 rather than may_trap_p as needed.
11699
11700 2011-01-26 DJ Delorie <dj@redhat.com>
11701
11702 PR rtl-optimization/46878
11703 * combine.c (insn_a_feeds_b): Check for the implicit cc0
11704 setter/user dependency as well.
11705
11706 2011-01-26 Eric Botcazou <ebotcazou@adacore.com>
11707
11708 PR rtl-optimization/44469
11709 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
11710 after removing trivially dead basic blocks.
11711
11712 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11713
11714 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
11715 * config/frv/frv.h (LINK_SPEC): Likewise.
11716 * config/i386/netware.h (LINK_SPEC): Likewise.
11717 * config/m68k/linux.h (ASM_SPEC): Likewise.
11718 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
11719 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11720 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11721 * config/sparc/linux.h (ASM_SPEC): Likewise.
11722 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11723 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11724
11725 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11726
11727 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
11728 * config/frv/frv.h (ASM_SPEC): Likewise.
11729 * config/m68k/linux.h (ASM_SPEC): Likewise.
11730 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11731 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
11732 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11733 * config/sparc/linux.h (ASM_SPEC): Likewise.
11734 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11735 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11736
11737 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11738
11739 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
11740 * config/frv/frv.h (LINK_SPEC): Likewise.
11741 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
11742
11743 2011-01-26 Joseph Myers <joseph@codesourcery.com>
11744
11745 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
11746 * config/frv/frv.h (ASM_SPEC): Likewise.
11747 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
11748 * config/m68k/linux.h (ASM_SPEC): Likewise.
11749 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
11750 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11751 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11752 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
11753 * config/sparc/linux.h (ASM_SPEC): Likewise.
11754 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11755 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11756 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
11757
11758 2011-01-26 Steve Ellcey <sje@cup.hp.com>
11759
11760 PR target/46997
11761 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
11762 (*mux2): Ditto.
11763 (vec_extract_evenodd_help): Ditto.
11764 (vec_extract_evenv4hi): Ditto.
11765 (vec_extract_oddv4hi): Ditto.
11766 (vec_interleave_lowv2si): Ditto.
11767 (vec_interleave_highv2si): Ditto.
11768 (vec_extract_evenv2si): Ditto.
11769 (vec_extract_oddv2si: Ditto.
11770 (vec_pack_trunc_v2si): Ditto.
11771
11772 2011-01-22 Jan Hubicka <jh@suse.cz>
11773
11774 PR target/47237
11775 * cgraph.h (cgraph_local_info): New field can_change_signature.
11776 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
11777 signature can change.
11778 (ipcp_estimate_growth): Call sequence simplify only if calle signature
11779 can change.
11780 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
11781 (cgraph_function_versioning): We can not change signature of functions
11782 that don't allow that.
11783 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
11784 (lto_input_node): Likewise.
11785 * ipa-inline.c (compute_inline_parameters): Compute
11786 local.can_change_signature.
11787 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
11788 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
11789 functions that can not change signature.
11790 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
11791 init_cumulative_args): Do not use local calling conventions
11792 for functions that can not change signature.
11793
11794 2011-01-22 Jan Hubicka <jh@suse.cz>
11795
11796 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
11797
11798 2011-01-26 Richard Guenther <rguenther@suse.de>
11799
11800 PR tree-optimization/47190
11801 * cgraphunit.c (process_common_attributes): New function.
11802 (process_function_and_variable_attributes): Use it.
11803
11804 2011-01-26 Richard Guenther <rguenther@suse.de>
11805
11806 PR lto/47423
11807 * cgraphbuild.c (record_eh_tables): Record reference to personality
11808 function.
11809
11810 2011-01-26 Alexandre Oliva <aoliva@redhat.com>
11811
11812 PR debug/45454
11813 * sel-sched.c (moveup_expr): Don't let debug insns prevent
11814 non-debug insns from moving up.
11815
11816 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11817
11818 PR target/40125
11819 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
11820 t-dlldir{,-x} fragment for build and add it to tmake_file.
11821 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
11822 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
11823 * config/i386/t-dlldir: New file.
11824 (SHLIB_DLLDIR): Define.
11825 * config/i386/t-dlldir-x: New file.
11826 (SHLIB_DLLDIR): Define.
11827 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
11828 (SHLIB_INSTALL): Use it.
11829
11830 2011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
11831
11832 PR target/47246
11833 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
11834 lower bound of the allowed Thumb-2 coprocessor load/store
11835 index range to -256. Add explaining comment.
11836
11837 2011-01-25 Ian Lance Taylor <iant@google.com>
11838
11839 * godump.c (go_define): Improve lexing of macro expansion to only
11840 accept expressions which match Go spec.
11841
11842 2011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
11843
11844 PR c++/43601
11845 * tree.c (handle_dll_attribute): Handle it.
11846 * doc/extend.texi (@item dllexport): Mention it.
11847 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
11848
11849 2011-01-25 Ian Lance Taylor <iant@google.com>
11850
11851 PR tree-optimization/26854
11852 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
11853 (decl_jump_unsafe): Move higher in file, with no other change.
11854 (bind): Set has_jump_unsafe_decl if appropriate.
11855 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
11856 (check_earlier_gotos): Likewise.
11857 (c_check_switch_jump_warnings): Likewise.
11858
11859 2011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
11860
11861 * doc/invoke.texi (Warning Options): Add missing hyphen.
11862 (-fprofile-dir): Minor grammatical fixes.
11863 (-fbranch-probabilities): Likewise.
11864
11865 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
11866
11867 PR debug/45136
11868 PR debug/45130
11869 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
11870 debug insns.
11871 (no_real_insns_p, schedule_block, set_priorities): Drop special
11872 treatment of boundary debug insns.
11873 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
11874 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
11875 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
11876 (BOUNDARY_DEBUG_INSN_P): Likewise.
11877 (SCHEDULE_DEBUG_INSN_P): Likewise.
11878 * sched-rgn.c (init_ready_list): Drop special treatment of
11879 boundary debug insns.
11880 * final.c (rest_of_clean-state): Clear notes' BB.
11881
11882 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11883
11884 * Makefile.in (LAMBDA_H): Removed.
11885 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
11886 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
11887 lambda-trans.o, and tree-loop-linear.o.
11888 (lto-symtab.o): Remove dependence on LAMBDA_H.
11889 (tree-loop-linear.o): Remove rule.
11890 (lambda-mat.o): Same.
11891 (lambda-trans.o): Same.
11892 (lambda-code.o): Same.
11893 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
11894 (tree-vect-slp.o): Same.
11895 * hwint.h (gcd): Moved here.
11896 (least_common_multiple): Same.
11897 * lambda-code.c: Removed.
11898 * lambda-mat.c: Removed.
11899 * lambda-trans.c: Removed.
11900 * lambda.h: Removed.
11901 * tree-loop-linear.c: Removed.
11902 * lto-symtab.c: Do not include lambda.h.
11903 * omega.c (gcd): Removed.
11904 * passes.c (init_optimization_passes): Remove pass_linear_transform.
11905 * tree-data-ref.c (print_lambda_vector): Moved here.
11906 (lambda_vector_copy): Same.
11907 (lambda_matrix_copy): Same.
11908 (lambda_matrix_id): Same.
11909 (lambda_vector_first_nz): Same.
11910 (lambda_matrix_row_add): Same.
11911 (lambda_matrix_row_exchange): Same.
11912 (lambda_vector_mult_const): Same.
11913 (lambda_vector_negate): Same.
11914 (lambda_matrix_row_negate): Same.
11915 (lambda_vector_equal): Same.
11916 (lambda_matrix_right_hermite): Same.
11917 * tree-data-ref.h: Do not include lambda.h.
11918 (lambda_vector): Moved here.
11919 (lambda_matrix): Same.
11920 (dependence_level): Same.
11921 (lambda_transform_legal_p): Removed declaration.
11922 (lambda_collect_parameters): Same.
11923 (lambda_compute_access_matrices): Same.
11924 (lambda_vector_gcd): Same.
11925 (lambda_vector_new): Same.
11926 (lambda_vector_clear): Same.
11927 (lambda_vector_lexico_pos): Same.
11928 (lambda_vector_zerop): Same.
11929 (lambda_matrix_new): Same.
11930 * tree-flow.h (least_common_multiple): Removed declaration.
11931 * tree-parloops.c (lambda_trans_matrix): Moved here.
11932 (LTM_MATRIX): Same.
11933 (LTM_ROWSIZE): Same.
11934 (LTM_COLSIZE): Same.
11935 (LTM_DENOMINATOR): Same.
11936 (lambda_trans_matrix_new): Same.
11937 (lambda_matrix_vector_mult): Same.
11938 (lambda_transform_legal_p): Same.
11939 * tree-pass.h (pass_linear_transform): Removed declaration.
11940 * tree-ssa-loop.c (tree_linear_transform): Removed.
11941 (gate_tree_linear_transform): Removed.
11942 (pass_linear_transform): Removed.
11943 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
11944 flag_loop_interchange.
11945
11946 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11947
11948 PR tree-optimization/47265
11949 PR tree-optimization/47443
11950 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
11951 if name still has some uses.
11952
11953 2011-01-25 Martin Jambor <mjambor@suse.cz>
11954
11955 PR tree-optimization/47382
11956 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
11957 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
11958
11959 2011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
11960
11961 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
11962 sjlj_except_unwind_info.
11963
11964 2011-01-25 Richard Guenther <rguenther@suse.de>
11965
11966 PR tree-optimization/47426
11967 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
11968 visible functions results escape.
11969
11970 2011-01-25 Jakub Jelinek <jakub@redhat.com>
11971
11972 PR target/45701
11973 * config/arm/arm.c (any_sibcall_uses_r3): New function.
11974 (arm_get_frame_offsets): Use it.
11975
11976 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
11977 Jakub Jelinek <jakub@redhat.com>
11978
11979 PR tree-optimization/47271
11980 * tree-if-conv.c (bb_postdominates_preds): New.
11981 (if_convertible_bb_p): Call bb_postdominates_preds.
11982 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
11983 (predicate_scalar_phi): Call bb_postdominates_preds.
11984
11985 2011-01-25 Nick Clifton <nickc@redhat.com>
11986
11987 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
11988 * config/rx/rx.c (rx_function_value): Likewise.
11989 (rx_promote_function_mode): Likewise.
11990 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
11991 in order to make it legitimate.
11992 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
11993 make sure that the first operand is the same as the result register.
11994 (addsi3_unspec): Delete.
11995 (subdi3): Do not accept immediate operands.
11996 (subdi3_internal): Likewise.
11997
11998 2011-01-25 Jeff Law <law@redhat.com>
11999
12000 PR rtl-optimization/37273
12001 * ira-costs.c (scan_one_insn): Detect constants living in memory and
12002 handle them like argument loads from stack slots. Do not double
12003 count memory for memory constants and argument loads from stack slots.
12004
12005 2011-01-25 Jakub Jelinek <jakub@redhat.com>
12006
12007 PR tree-optimization/47427
12008 PR tree-optimization/47428
12009 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
12010 coalesce if the new root var would be TREE_READONLY.
12011
12012 2011-01-25 Richard Guenther <rguenther@suse.de>
12013
12014 PR middle-end/47414
12015 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
12016 correct type for TBAA.
12017
12018 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12019
12020 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
12021 (close_phi_written_to_memory): Call for_each_index with
12022 dr_indices_valid_in_loop.
12023
12024 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12025
12026 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
12027 when it is initialized.
12028
12029 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12030
12031 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
12032 call to graphite_find_data_references_in_stmt.
12033 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
12034 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
12035 call to graphite_find_data_references_in_stmt.
12036 (analyze_drs_in_stmts): Same.
12037 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
12038 in which the scalar analysis of indices is performed.
12039 (create_data_ref): Same. Update call to dr_analyze_indices.
12040 (find_data_references_in_stmt): Update call to create_data_ref.
12041 (graphite_find_data_references_in_stmt): Same.
12042 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
12043 declaration.
12044 (create_data_ref): Same.
12045 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
12046 call to create_data_ref.
12047
12048 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12049
12050 * graphite-sese-to-poly.c (build_poly_scop): Move
12051 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
12052
12053 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12054
12055 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
12056 VAR_DECL, PARM_DECL, and RESULT_DECL.
12057
12058 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12059
12060 * graphite-dependences.c (reduction_dr_1): Allow several reductions
12061 in a reduction PBB.
12062 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
12063 that have already been marked as PBB_IS_REDUCTION.
12064
12065 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12066
12067 * graphite-scop-detection.c (same_close_phi_node): New.
12068 (remove_duplicate_close_phi): New.
12069 (make_close_phi_nodes_unique): New.
12070 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
12071
12072 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12073
12074 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
12075 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
12076 of both data references to be the same.
12077
12078 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12079
12080 * graphite-dependences.c (build_lexicographical_constraint): Remove
12081 the gdim parameter.
12082 (build_lexicographical_constraint): Adjust call to
12083 ppl_powerset_is_empty.
12084 (dependence_polyhedron): Same.
12085 (graphite_legal_transform_dr): Same.
12086 (graphite_carried_dependence_level_k): Same.
12087 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
12088 parameter.
12089 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
12090
12091 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12092
12093 * graphite-sese-to-poly.c
12094 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
12095 (close_phi_written_to_memory): New.
12096 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
12097 and unshare_expr.
12098
12099 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12100
12101 * doc/install.texi: Update the expected version number of PPL to 0.11.
12102 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
12103 #if PPL_VERSION_MINOR < 11.
12104
12105 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12106
12107 * graphite-dependences.c: Include graphite-cloog-util.h.
12108 (new_poly_ddr): Inlined into dependence_polyhedron.
12109 (free_poly_ddr): Moved close by new_poly_ddr.
12110 (dependence_polyhedron_1): Renamed dependence_polyhedron.
12111 Early return NULL when ppl_powerset_is_empty returns true.
12112 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
12113 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
12114 (graphite_legal_transform_dr): Call new_poly_ddr.
12115 (graphite_carried_dependence_level_k): Same.
12116 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
12117 (dot_transformed_deps_stmt_1): Removed.
12118 (dot_deps_stmt_1): Call dot_deps_stmt_2.
12119 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
12120 (dot_deps_1): Call dot_deps_2.
12121 * Makefile.in (graphite-dependences.o): Add missing dependence on
12122 graphite-cloog-util.h.
12123
12124 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12125
12126 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
12127 (build_lexicographical_constraint): Same.
12128 (dependence_polyhedron_1): Same.
12129 (graphite_legal_transform_dr): Same.
12130 (graphite_carried_dependence_level_k): Same.
12131 * graphite-ppl.c (ppl_powerset_is_empty): New.
12132 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
12133 * tree-data-ref.c (dump_data_reference): Print the basic block index.
12134
12135 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12136
12137 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
12138 the "a followed by b" relation and document it.
12139
12140 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12141
12142 * graphite-dependences.c (build_lexicographical_constraint): Stop the
12143 iteration when the bag of constraints is empty.
12144
12145 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12146
12147 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
12148
12149 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12150
12151 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
12152 nest and two loop depths as parameters.
12153 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
12154 lst_perfect_nestify.
12155
12156 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12157
12158 * graphite-dependences.c (print_pddr): Call
12159 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
12160
12161 2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
12162
12163 * graphite-ppl.c (debug_gmp_value): New.
12164 * graphite-ppl.h (debug_gmp_value): Declared.
12165
12166 2011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
12167
12168 * doc/install.texi: Document availability of cloog-0.16.
12169
12170 2011-01-25 Vladimir Kargov <kargov@gmail.com>
12171
12172 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
12173 invalid postdominance info.
12174
12175 2011-01-24 Jan Hubicka <jh@suse.cz>
12176
12177 PR c/21659
12178 * doc/extend.texi (weak pragma): Drop claim that it must
12179 appear before definition.
12180 * varasm.c (merge_weak, declare_weak): Only sanity check
12181 that DECL is not output at a time it is declared weak.
12182
12183 2011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
12184
12185 * machmode.def: Fixed comments.
12186
12187 2011-01-24 Kai Tietz <kai.tietz@onevision.com>
12188
12189 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
12190
12191 2011-01-24 Paul Koning <ni1d@arrl.net>
12192
12193 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
12194 WORDS_BIG_ENDIAN.
12195
12196 2011-01-24 H.J. Lu <hongjiu.lu@intel.com>
12197
12198 PR target/46519
12199 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
12200 (block_info): Add scanned and prev.
12201 (move_or_delete_vzeroupper_2): Return if the basic block
12202 has been scanned and the upper 128bit state is unchanged
12203 from the last scan.
12204 (move_or_delete_vzeroupper_1): Return true if the exit
12205 state is changed.
12206 (move_or_delete_vzeroupper): Visit basic blocks using the
12207 work-list based algorithm based on vt_find_locations in
12208 var-tracking.c.
12209
12210 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
12211
12212 2011-01-24 Nick Clifton <nickc@redhat.com>
12213
12214 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
12215 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
12216 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
12217 then define __v850e1__.
12218 * doc/invoke.texi: Document -mv850es.
12219
12220 2011-01-24 Richard Henderson <rth@redhat.com>
12221
12222 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
12223 compound unordered comparisons.
12224 * config/rx/rx.c (rx_split_fp_compare): Remove.
12225 * config/rx/rx-protos.h: Update.
12226 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
12227 (cbranchsf4): Don't call rx_split_fp_compare.
12228 (*cbranchsf4): Use rx_split_cbranch.
12229 (*cmpsf): Don't accept "i" constraint.
12230 (*conditional_branch): Only valid after reload.
12231 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
12232
12233 2011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12234
12235 PR target/47385
12236 * config/rs6000/altivec.md (vector constant splitters): Add
12237 support for creating vector single precision constants if -mvsx is
12238 used and we would create the constant using Altivec primitives.
12239
12240 2011-01-23 Bernd Schmidt <bernds@codesourcery.com>
12241 Richard Sandiford <rdsandiford@googlemail.com>
12242
12243 PR rtl-optimization/47166
12244 * reload1.c (emit_reload_insns): Disable the spill_reg_store
12245 mechanism for PRE_MODIFY and POST_MODIFY.
12246 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
12247 reloadreg.
12248
12249 2011-01-23 Andreas Schwab <schwab@linux-m68k.org>
12250
12251 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
12252
12253 2011-01-22 Jan Hubicka <jh@suse.cz>
12254
12255 PR lto/47333
12256 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
12257
12258 2011-01-22 Jan Hubicka <jh@suse.cz>
12259
12260 PR tree-optimization/43884
12261 PR lto/44334
12262 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
12263 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
12264
12265 2011-01-22 Anatoly Sokolov <aesok@post.ru>
12266
12267 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12268 * config/s390/s390.c (s390_register_move_cost,
12269 s390_memory_move_cost): New.
12270 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12271
12272 2011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12273
12274 PR middle-end/47401
12275 * except.c (sjlj_assign_call_site_values): Move setting the
12276 crtl->uses_eh_lsda flag to ...
12277 (sjlj_mark_call_sites): ... here.
12278 (sjlj_emit_function_enter): Support NULL dispatch label.
12279 (sjlj_build_landing_pads): In a function with no landing pads
12280 that still has must-not-throw regions, generate code to register
12281 a personality function with empty LSDA.
12282
12283 2011-01-21 Richard Henderson <rth@redhat.com>
12284
12285 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
12286
12287 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
12288
12289 * compare-elim.c: New file.
12290 * Makefile.in (OBJS-common): Add it.
12291 (compare-elim.o): New.
12292 * common.opt (fcompare-elim): New.
12293 * opts.c (default_options_table): Add OPT_fcompare_elim.
12294 * tree-pass.h (pass_compare_elim_after_reload): New.
12295 * passes.c (init_optimization_passes): Add it.
12296 * recog.h: Protect against re-inclusion.
12297 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
12298 * doc/invoke.texi (-fcompare-elim): Document it.
12299 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
12300 * doc/tm.texi: Rebuild.
12301
12302 2011-01-22 Nick Clifton <nickc@redhat.com>
12303
12304 * config/rx/rx.md (cstoresf4): Pass comparison operator to
12305 rx_split_fp_compare.
12306
12307 2011-01-22 Nick Clifton <nickc@redhat.com>
12308
12309 * config/rx/rx.md (UNSPEC_CONST): New.
12310 (deallocate_and_return): Wrap the amount popped off the stack in
12311 an UNSPEC_CONST in order to stop it being rejected by
12312 -mmax-constant-size.
12313 (pop_and_return): Add a "(return)" rtx.
12314 (call): Drop the immediate operand.
12315 (call_internal): Likewise.
12316 (call_value): Likewise.
12317 (call_value_internal): Likewise.
12318 (sibcall_internal): Likewise.
12319 (sibcall_value_internal): Likewise.
12320 (sibcall): Likewise. Generate an explicit call using
12321 sibcall_internal.
12322 (sibcall_value): Likewise.
12323 (mov<>): FAIL if a constant operand is not legitimate.
12324 (addsi3_unpsec): New pattern.
12325
12326 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
12327 (ok_for_max_constant): New function.
12328 (gen_safe_add): New function.
12329 (rx_expand_prologue): Use gen_safe_add.
12330 (rx_expand_epilogue): Likewise.
12331 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
12332 UNSPEC CONSTs.
12333
12334 2011-01-21 Jeff Law <law@redhat.com>
12335
12336 PR tree-optimization/47053
12337 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
12338 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
12339 statements are deleted.
12340 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
12341 is nonempty, then purge dead edges and cleanup the CFG.
12342
12343 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12344
12345 PR debug/47402
12346 Temporarily revert:
12347 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12348 PR debug/47106
12349 * tree-dfa.c (create_var_ann): Mark variable as used.
12350
12351 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12352
12353 PR middle-end/45566
12354 * except.c (convert_to_eh_region_ranges): Emit queued no-region
12355 notes from other section in hot/cold partitioning even if
12356 last_action is -3. Increment call_site_base.
12357
12358 PR rtl-optimization/47366
12359 * fwprop.c (forward_propagate_into): Return bool. If
12360 any changes are made, -fnon-call-exceptions is used and
12361 REG_EH_REGION note is present, call purge_dead_edges
12362 and return true if it purged anything.
12363 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
12364 any EH edges were purged.
12365
12366 2011-01-21 Jeff Law <law@redhat.com>
12367
12368 PR rtl-optimization/41619
12369 * caller-save.c (setup_save_areas): Break out code to determine
12370 which hard regs are live across calls by examining the reload chains
12371 so that it is always used.
12372 Eliminate code which checked REG_N_CALLS_CROSSED.
12373
12374 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12375
12376 PR tree-optimization/47355
12377 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
12378 NOP has non-debug uses beyond PHIs in new_bb.
12379
12380 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
12381
12382 PR debug/47106
12383 * cfgexpand.c (account_used_vars_for_block): Only account vars
12384 that are annotated as used.
12385 (estimated_stack_frame_size): Don't set TREE_USED.
12386 * tree-dfa.c (create_var_ann): Mark variable as used.
12387
12388 2011-01-21 Richard Guenther <rguenther@suse.de>
12389
12390 PR middle-end/47395
12391 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
12392
12393 2011-01-21 Richard Guenther <rguenther@suse.de>
12394
12395 PR tree-optimization/47365
12396 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
12397 (vn_reference_lookup_pieces): Adjust.
12398 (vn_reference_lookup): Likewise.
12399 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
12400 (vn_reference_lookup_3): Only look through kills if in
12401 VN_WALKREWRITE mode.
12402 (vn_reference_lookup_pieces): Adjust.
12403 (vn_reference_lookup): Likewise.
12404 (visit_reference_op_load): Likewise.
12405 (visit_reference_op_store): Likewise.
12406 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
12407 (compute_avail): Likewise.
12408 (eliminate): Likewise.
12409
12410 2011-01-21 Jakub Jelinek <jakub@redhat.com>
12411
12412 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
12413 DECL_IGNORED_P non-reg vars if they are used.
12414
12415 PR tree-optimization/47391
12416 * varpool.c (const_value_known_p): Return false if
12417 decl is volatile.
12418
12419 2011-01-21 Kai Tietz <kai.tietz@onevision.com>
12420
12421 PR bootstrap/47215
12422 * config/i386/i386.c (ix86_local_alignment): Handle
12423 case for va_list_type_node is nil.
12424 (ix86_canonical_va_list_type): Likewise.
12425
12426 2011-01-21 Alan Modra <amodra@gmail.com>
12427
12428 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
12429 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
12430
12431 2011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12432
12433 * config/arm/arm.md (define_attr type): Rename f_load
12434 and f_store to f_fpa_load and f_fpa_store. Update.
12435 (write_conflict): Deal with rename fallout.
12436 (*push_fp_multi): Likewise.
12437 * config/arm/fpa.md (f_load): Use f_fpa_load.
12438 (f_store): Use f_fpa_store.
12439 (*movsf_fpa): Likewise.
12440 (*movdf_fpa): Likewise.
12441 (*movxf_fpa): Likewise.
12442 (*thumb2_movsf_fpa): Likewise.
12443 (*thumb2_movdf_fpa): Likewise.
12444 (*thumb2_movxf_fpa): Likewise.
12445 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
12446 f_loadd and f_stored.
12447 (*thumb2_movdi_vfp): Likewise.
12448 (*thumb2_movsf_vfp): Fix attribute to f_loads.
12449 (*thumb2_movsi_vfp): Likewise.
12450 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
12451 Use f_loads instead of f_load.
12452 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
12453
12454 2011-01-20 Anatoly Sokolov <aesok@post.ru>
12455
12456 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
12457 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
12458 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
12459 (xtensa_mode_dependent_address_p): New function.
12460 (constantpool_address_p): Make static. Change return type to bool.
12461 Change argument type to const_rtx. Use CONST_INT_P predicate.
12462
12463 2011-01-20 Alexandre Oliva <aoliva@redhat.com>
12464
12465 PR debug/46583
12466 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
12467
12468 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12469
12470 PR debug/47283
12471 * cfgexpand.c (expand_debug_expr): Instead of generating
12472 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
12473 etc. handling.
12474
12475 2011-01-20 Richard Guenther <rguenther@suse.de>
12476
12477 PR middle-end/47370
12478 * tree-inline.c (remap_gimple_op_r): Recurse manually for
12479 the pointer operand of MEM_REFs.
12480
12481 2011-01-20 Jakub Jelinek <jakub@redhat.com>
12482
12483 PR tree-optimization/46130
12484 * ipa-split.c (consider_split): If return_bb contains non-virtual
12485 PHIs other than for retval or if split_function would not adjust it,
12486 refuse to split.
12487
12488 2011-01-20 Richard Guenther <rguenther@suse.de>
12489
12490 PR tree-optimization/47167
12491 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
12492 Revert previous change, only avoid enumeral type changes.
12493
12494 2011-01-19 Mike Stump <mikestump@comcast.net>
12495
12496 * doc/tm.texi.in (BRANCH_COST): Englishify.
12497 * doc/tm.texi (BRANCH_COST): Likewise.
12498
12499 2011-01-19 Dodji Seketeli <dodji@redhat.com>
12500
12501 PR c++/47291
12502 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
12503 (gen_scheduled_generic_parms_dies): New functions.
12504 (gen_struct_or_union_type_die): Schedule template parameters DIEs
12505 generation for the end of CU compilation.
12506 (dwarf2out_finish): Generate template parameters DIEs here.
12507
12508 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12509
12510 PR debug/46240
12511 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
12512 debug bind stmt on merge edges.
12513
12514 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12515
12516 PR debug/47079
12517 PR debug/46724
12518 * function.c (instantiate_expr): Instantiate incoming rtl of
12519 implicit arguments, and recurse on VALUE_EXPRs.
12520 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
12521 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
12522
12523 2011-01-19 Alexandre Oliva <aoliva@redhat.com>
12524
12525 * c-parser.c (c_parser_for_statement): Initialize
12526 collection_expression.
12527
12528 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12529
12530 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
12531
12532 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12533
12534 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
12535 (LINK_SHLIB_SPEC): Don't use %(link_path).
12536 (SUBTARGET_EXTRA_SPECS): Remove link_path.
12537
12538 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12539
12540 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
12541 (NO_SHARED_LIB_SUPPORT): Remove.
12542 (LINK_SHLIB_SPEC): Remove one conditional definition.
12543
12544 2011-01-19 Joseph Myers <joseph@codesourcery.com>
12545
12546 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
12547 %{call_shared}.
12548 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
12549 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
12550 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
12551 %{call_shared} and conditionals on these options not being passed.
12552 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
12553 %{call_shared}.
12554
12555 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12556
12557 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
12558 simplify.
12559
12560 * ipa-split.c: Spelling fixes.
12561
12562 2011-01-19 Richard Henderson <rth@redhat.com>
12563
12564 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
12565 (*mulsi3): Likewise.
12566
12567 * longlong.h [__mn10300__] (count_leading_zeros): New.
12568 [__mn10300__] (umul_ppmm, smul_ppmm): New.
12569 [__mn10300__] (add_ssaaaa, subddmmss): New.
12570 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
12571 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
12572
12573 2011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12574
12575 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
12576
12577 2011-01-19 Richard Henderson <rth@redhat.com>
12578
12579 * config/mn10300/mn10300.md (addsi3_flags): New.
12580 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
12581 (subsi3_flags, subc_internal, subdi3): New.
12582 (subdi3_internal, *subdi3_degenerate): New.
12583 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
12584
12585 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
12586 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
12587 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
12588 * config/mn10300/mn10300-protos.h: Update.
12589 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
12590 (return_ret): Likewise. Rename from return_internal_regs.
12591 (return_internal): Remove.
12592
12593 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
12594 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
12595 (mn10300_legitimate_constant_p): Likewise.
12596 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
12597 (mn10300_frame_size): New.
12598 (mn10300_expand_prologue): Use it.
12599 (mn10300_expand_epilogue): Likewise.
12600 (mn10300_initial_offset): Likewise.
12601 * config/mn10300/mn10300-protos.h: Update.
12602 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
12603 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
12604 (prologue, epilogue, return_internal): Tidy output code.
12605 (mn10300_store_multiple_operation, return): Likewise.
12606 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
12607 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
12608 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
12609 (load_pic, am33_load_pic): New.
12610 (mn10300_load_pic0, mn10300_load_pic1): New.
12611
12612 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
12613 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
12614 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
12615 (cc_flags_for_mode, cc_flags_for_code): New.
12616 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
12617 overflow flag is not valid. Validate that the flags we need
12618 for the comparison are valid.
12619 (mn10300_output_cmp): Remove.
12620 (mn10300_output_add): New.
12621 (mn10300_select_cc_mode): Use cc_flags_for_code.
12622 (mn10300_split_cbranch): New.
12623 (mn10300_match_ccmode): New.
12624 (mn10300_split_and_operand_count): New.
12625 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
12626 to the function.
12627 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
12628 (addsi3): ... here. Use mn10300_output_add.
12629 (*addsi3_flags): New.
12630 (*am33_subsi3, *mn10300_subsi3): Merge...
12631 (subsi3): ... here. Use attribute isa.
12632 (*subsi3_flags): New.
12633 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
12634 when possible.
12635 (*am33_andsi3, *mn10300_andsi3): Merge...
12636 (andsi3): ... here.
12637 (*andsi3_flags): New.
12638 (andsi3 splitters): New.
12639 (*am33_iorsi3, *mn10300_iorsi3): Merge...
12640 (iorsi3): ... here.
12641 (*iorsi3_flags): New.
12642 (*am33_xorsi3, *mn10300_xorsi3): Merge...
12643 (xorsi3): ... here.
12644 (*xorsi3_flags): New.
12645 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
12646 (one_cmplsi2): ... here.
12647 (*one_cmplsi2_flags): New.
12648 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
12649 instead of "dax" in constraints. Use mn10300_split_cbranch.
12650 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
12651 use matching constraints to eliminate a self-comparison.
12652 (*integer_conditional_branch): Rename from integer_conditional_branch.
12653 Use int_mode_flags to match CC_REG.
12654 (*cbranchsi4_btst, *btstsi): New.
12655 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
12656 mn10300_split_cbranch.
12657 (*am33_cmpsf): Rename from am33_cmpsf.
12658 (*float_conditional_branch): Rename from float_conditional_branch.
12659 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
12660 (zero_extendqisi2): ... here.
12661 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
12662 (zero_extendhisi2): ... here.
12663 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
12664 (extendqisi2): ... here.
12665 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
12666 (extendhisi2): ... here.
12667 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
12668 (ashlsi3): ... here.
12669 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
12670 (lshrsi3): ... here.
12671 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
12672 (ashrsi3): ... here.
12673 (consecutive add peephole): Remove.
12674 * config/mn10300/predicates.md (label_ref_operand): New.
12675 (int_mode_flags): New.
12676 (CCZN_comparison_operator): New.
12677
12678 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
12679 (throughput_42_latency_43): New reservation.
12680 (mulsidi3, umulsidi3): New expanders.
12681 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
12682 the MDR register to allocation; separately allocate the low and
12683 high parts of the DImode result.
12684 (umulsidi3_internal): Similarly.
12685 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
12686 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
12687 (udivsi3, umodsi3): Remove.
12688 (udivmodsi4, divmodsi4): New expanders.
12689 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
12690 (*divmodsi4): Simiarly.
12691 (ext_internal): New.
12692
12693 * config/mn10300/constraints.md ("z"): New constraint.
12694 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
12695 (FIXED_REGISTERS): Don't fix MDR.
12696 (CALL_USED_REGSITERS): Reformat nicely.
12697 (REG_ALLOC_ORDER): Add MDR.
12698 (enum regclass): Add MDR_REGS.
12699 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
12700 (IRA_COVER_CLASSES): Add MDR_REGS.
12701 (REGNO_REG_CLASS): Handle MDR_REG.
12702 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
12703 (mn10300_register_move_cost): Likewise.
12704 * config/mn10300/mn10300.md (MDR_REG): New.
12705 (*movsi_internal): Handle moves to/from MDR_REGS.
12706
12707 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
12708 POST_MODIFY.
12709 (mn10300_secondary_reload): Tidy combination reload classes.
12710 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
12711 addresses for AM33. Allow symbolic offsets for reg+imm.
12712 (mn10300_regno_in_class_p): New.
12713 (mn10300_legitimize_reload_address): New.
12714 * config/mn10300/mn10300.h (enum reg_class): Remove
12715 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
12716 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
12717 SP_OR_GENERAL_REGS.
12718 (REG_CLASS_NAMES): Update to match.
12719 (REG_CLASS_CONTENTS): Likewise.
12720 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
12721 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
12722 (REGNO_IN_RANGE_P): Remove.
12723 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
12724 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
12725 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
12726 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
12727 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
12728 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
12729 (REGNO_GENERAL_P): New.
12730 (HAVE_POST_MODIFY_DISP): New.
12731 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
12732 (LEGITIMIZE_RELOAD_ADDRESS): New.
12733 * config/mn10300/mn10300-protos.h: Update.
12734
12735 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
12736 DATA_REGS for AM33 stack-pointer destination.
12737 (mn10300_preferred_output_reload_class): Likewise.
12738 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
12739 into a form appropriate for ...
12740 (TARGET_SECONDARY_RELOAD): New.
12741 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
12742 * config/mn10300/mn10300-protos.h: Update.
12743 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
12744 reload_insi; use the "A" constraint for the scratch; handle AM33
12745 moves of sp to non-address registers.
12746
12747 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
12748 (*movqi_internal): ... here.
12749 (*am33_movhi, *mn10300_movhi): Merge into...
12750 (*movhi_internal): ... here.
12751 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
12752 as the source/destination of moves from/to SP.
12753 (movsf): Only allow for AM33-2.
12754 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
12755 any integer constant constraint. Only allow for AM33-2. Tidy
12756 all of the alternative outputs.
12757 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
12758 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
12759 for MN103.
12760 (udivsi3, umodsi3): New patterns for MN103 only.
12761
12762 2011-01-19 Joern Rennecke <amylaar@spamcop.net>
12763
12764 * doc/tm.texi.in: Spell out that a lack of register class unions
12765 can lead to ICEs.
12766 * doc/tm.texi: Regenerate.
12767
12768 2011-01-19 Jakub Jelinek <jakub@redhat.com>
12769
12770 PR rtl-optimization/47337
12771 * dce.c (check_argument_store): New function.
12772 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
12773
12774 PR tree-optimization/47290
12775 * tree-eh.c (infinite_empty_loop_p): New function.
12776 (cleanup_empty_eh): Use it.
12777
12778 2011-01-18 Steve Ellcey <sje@cup.hp.com>
12779
12780 PR target/46997
12781 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
12782 (a64_expand_widen_sum): Ditto.
12783 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
12784 (vec_extract_evenodd_help): Ditto.
12785 (vec_extract_evenv4hi): Ditto.
12786 (vec_extract_oddv4hi): Ditto.
12787 (vec_extract_evenv2si): Ditto.
12788 (vec_extract_oddv2si): Ditto.
12789 (vec_extract_evenv2sf): Ditto.
12790 (vec_extract_oddv2sf): Ditto.
12791 (vec_pack_trunc_v4hi: Ditto.
12792 (vec_pack_trunc_v2si): Ditto.
12793 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
12794 (vec_interleave_highv8qi): Ditto.
12795 (mix1_r): Ditto.
12796 (vec_extract_oddv8qi): Ditto.
12797 (vec_interleave_lowv4hi): Ditto.
12798 (vec_interleave_highv4hi): Ditto.
12799 (vec_interleave_lowv2si): Ditto.
12800 (vec_interleave_highv2si): Ditto.
12801
12802 2011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12803
12804 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
12805 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
12806 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
12807 (pa_c_mode_for_suffix): New.
12808 (TARGET_EXPAND_BUILTIN): Define.
12809 (TARGET_C_MODE_FOR_SUFFIX): Define.
12810 (pa_builtins): Define.
12811 (pa_init_builtins): Register __float128 type and init new support
12812 builtins.
12813 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
12814 * config/pa/quadlib.c (_U_Qfcopysign): New.
12815
12816 2011-01-18 Eric Botcazou <ebotcazou@adacore.com>
12817
12818 PR middle-end/46894
12819 * explow.c (allocate_dynamic_stack_space): Do not assume more than
12820 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
12821 are defined.
12822
12823 2011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12824
12825 PR tree-optimization/47179
12826 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
12827 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
12828
12829 2011-01-18 Richard Guenther <rguenther@suse.de>
12830
12831 PR rtl-optimization/47216
12832 * emit-rtl.c: Include tree-flow.h.
12833 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
12834 of replicating it with different semantics.
12835 * Makefile.in (emit-rtl.o): Adjust.
12836
12837 2011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12838
12839 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
12840 (cortex_a9_dp): Handle neon types correctly.
12841
12842 2011-01-18 Jakub Jelinek <jakub@redhat.com>
12843
12844 PR rtl-optimization/47299
12845 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
12846 subtarget. Use normal multiplication if both operands are constants.
12847 * expmed.c (expand_widening_mult): Don't try to optimize constant
12848 multiplication if op0 has VOIDmode. Convert op1 constant to mode
12849 before using it.
12850
12851 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12852
12853 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
12854 spacing after 'e.g.', typos, comma, hyphenation.
12855
12856 2011-01-17 Richard Henderson <rth@redhat.com>
12857
12858 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
12859 (rx_restricted_mem_operand): New.
12860 (rx_shift_operand): Use register_operand.
12861 (rx_source_operand, rx_compare_operand): Likewise.
12862 * config/rx/rx.md (addsi3_flags): New expander.
12863 (adddi3): Rewrite as expander.
12864 (adc_internal, *adc_flags, adddi3_internal): New patterns.
12865 (subsi3_flags): New expander.
12866 (subdi3): Rewrite as expander.
12867 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
12868
12869 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
12870 (rx_init_builtins): Remove sat builtin.
12871 (rx_expand_builtin): Likewise.
12872 * config/rx/rx.md (ssaddsi3): New.
12873 (*sat): Rename from sat. Represent the CC_REG input.
12874
12875 * config/rx/predicates.md (rshift_operator): New.
12876 * config/rx/rx.c (rx_expand_insv): Remove.
12877 * config/rx/rx-protos.h: Update.
12878 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
12879 operand to the canonical position.
12880 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
12881 (*bitclr, *bitclr_in_memory): Similarly.
12882 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
12883 (insv): Retain the zero_extract in the expansion.
12884
12885 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
12886 (bswaphi2, bitinvert, revw): Likewise.
12887
12888 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
12889 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
12890 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
12891 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
12892 (bitset, bitset_in_memory): Likewise.
12893 (bitinvert, bitinvert_in_memory): Likewise.
12894 (bitclr, bitclr_in_memory): Likewise.
12895 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
12896 (rx_strend, rx_cmpstrn): Likewise.
12897 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
12898 (bitop peep2 patterns): Remove.
12899
12900 * config/rx/rx.c (rx_match_ccmode): New.
12901 * config/rx/rx-protos.h: Update.
12902 * config/rx/rx.md (abssi2): Clobber, don't set flags.
12903 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
12904 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
12905 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
12906 (fix_truncsfsi2, floatsisf2): Likewise.
12907 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
12908 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
12909 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
12910 (*subsi3_flags, *xorsi3_flags): New.
12911
12912 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
12913
12914 * config/rx/rx.c (rx_print_operand): Remove workaround for
12915 unsplit comparison operations.
12916
12917 * config/rx/rx.md (movsicc): Split after reload.
12918 (*movsicc): Merge *movsieq and *movsine via match_operator.
12919 (*stcc): New pattern.
12920
12921 * config/rx/rx.c (rx_float_compare_mode): Remove.
12922 * config/rx/rx.h (rx_float_compare_mode): Remove.
12923 * config/rx/rx.md (cstoresi4): Split after reload.
12924 (*sccc): New pattern.
12925
12926 * config/rx/predicates.md (label_ref_operand): New.
12927 (rx_z_comparison_operator): New.
12928 (rx_zs_comparison_operator): New.
12929 (rx_fp_comparison_operator): New.
12930 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
12931 Validate that the flags are set properly for the comparison.
12932 (rx_gen_cond_branch_template): Remove.
12933 (rx_cc_modes_compatible): Remove.
12934 (mode_from_flags): New.
12935 (flags_from_code): Rename from flags_needed_for_conditional.
12936 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
12937 (rx_select_cc_mode): Likewise.
12938 (rx_split_fp_compare): New.
12939 (rx_split_cbranch): New.
12940 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
12941 (*cbranchsi4): Use match_operator and rx_split_cbranch.
12942 (*cbranchsf4): Similarly.
12943 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
12944 match_operator and rx_split_cbranch.
12945 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
12946 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
12947 (*cmpsi): Rename from cmpsi.
12948 (*tstsi): Rename from tstsi.
12949 (*cmpsf): Rename from cmpsf; use CC_Fmode.
12950 (*conditional_branch): Rename from conditional_branch.
12951 (*reveresed_conditional_branch): Remove.
12952 (b<code>): Remove expander.
12953 * config/rx/rx-protos.h: Update.
12954
12955 * config/rx/rx.c (rx_compare_redundant): Remove.
12956 * config/rx/rx.md (cmpsi): Don't use it.
12957 * config/rx/rx-protos.h: Update.
12958
12959 * config/rx/rx-modes.def (CC_F): New mode.
12960 * config/rx/rx.c (rx_select_cc_mode): New.
12961 * config/rx/rx.h (SELECT_CC_MODE): Use it.
12962 * config/rx/rx-protos.h: Update.
12963
12964 2011-01-17 Richard Henderson <rth@redhat.com>
12965
12966 * except.c (dump_eh_tree): Fix stray ; after for statement.
12967
12968 2011-01-17 Richard Guenther <rguenther@suse.de>
12969
12970 PR tree-optimization/47313
12971 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
12972 handling before copying the body. Properly deal with
12973 by-reference result in SSA form.
12974
12975 2011-01-17 Ian Lance Taylor <iant@google.com>
12976
12977 PR target/47219
12978 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
12979 (struct_value_alias_set): Don't define.
12980 (sparc_option_override): Don't set sparc_sr_alias_set and
12981 struct_value_alias_set.
12982 (save_or_restore_regs): Use gen_frame_mem rather than calling
12983 set_mem_alias_set.
12984 (sparc_struct_value_rtx): Likewise.
12985
12986 2011-01-17 H.J. Lu <hongjiu.lu@intel.com>
12987
12988 PR target/47318
12989 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
12990 (_mm_maskstore_pd): Likewise.
12991 (_mm_maskload_ps): Likewise.
12992 (_mm_maskstore_ps): Likewise.
12993 (_mm256_maskload_pd): Change mask to __m256i.
12994 (_mm256_maskstore_pd): Likewise.
12995 (_mm256_maskload_ps): Likewise.
12996 (_mm256_maskstore_ps): Likewise.
12997
12998 * config/i386/i386-builtin-types.def: Updated.
12999 (ix86_expand_special_args_builtin): Likewise.
13000
13001 * config/i386/i386.c (bdesc_special_args): Update
13002 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
13003 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
13004 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
13005 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
13006
13007 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
13008 Use <avxpermvecmode> on mask register.
13009 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
13010
13011 2011-01-17 Olivier Hainque <hainque@adacore.com>
13012 Michael Haubenwallner <michael.haubenwallner@salomon.at>
13013 Eric Botcazou <ebotcazou@adacore.com>
13014
13015 PR target/46655
13016 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
13017 if <= USHRT_MAX in 32-bit mode.
13018
13019 2011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13020
13021 * doc/install.texi (Configuration, Specific): Wrap long
13022 lines in examples. Allow line wrapping in long options
13023 and URLs where beneficial for PDF output.
13024
13025 2011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
13026
13027 * config/mips/mips.c (mips_classify_symbol): Don't return
13028 SYMBOL_PC_RELATIVE for nonlocal labels.
13029
13030 2011-01-15 Eric Botcazou <ebotcazou@adacore.com>
13031
13032 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
13033
13034 2011-01-15 Jan Hubicka <jh@suse.cz>
13035
13036 PR tree-optimization/47276
13037 * ipa.c (function_and_variable_visibility): Do not try to mark alias
13038 declarations as needed.
13039
13040 2011-01-15 Martin Jambor <mjambor@suse.cz>
13041
13042 * common.opt (fdevirtualize): New flag.
13043 * doc/invoke.texi (Option Summary): Document it.
13044 * opts.c (default_options_table): Add devirtualize flag.
13045 * ipa-prop.c (detect_type_change): Return immediately if
13046 devirtualize flag is not set.
13047 (detect_type_change_ssa): Likewise.
13048 (compute_known_type_jump_func): Likewise.
13049 (ipa_analyze_virtual_call_uses): Likewise.
13050
13051 2011-01-14 Martin Jambor <mjambor@suse.cz>
13052
13053 PR tree-optimization/45934
13054 PR tree-optimization/46302
13055 * ipa-prop.c (type_change_info): New type.
13056 (stmt_may_be_vtbl_ptr_store): New function.
13057 (check_stmt_for_type_change): Likewise.
13058 (detect_type_change): Likewise.
13059 (detect_type_change_ssa): Likewise.
13060 (compute_complex_assign_jump_func): Check for dynamic type change.
13061 (compute_complex_ancestor_jump_func): Likewise.
13062 (compute_known_type_jump_func): Likewise.
13063 (compute_scalar_jump_functions): Likewise.
13064 (ipa_analyze_virtual_call_uses): Likewise.
13065 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
13066
13067 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13068
13069 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
13070 * config/i386/i386.opt (msse5): New Alias.
13071
13072 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13073
13074 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
13075 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13076 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13077 * config/sparc/sparc.h (CC1_SPEC): Likewise.
13078
13079 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13080
13081 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
13082 -mcpu options.
13083 * config/sparc/linux64.h (CC1_SPEC): Likewise.
13084 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
13085 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
13086 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
13087 Likewise.
13088 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
13089
13090 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13091
13092 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
13093
13094 2011-01-14 Mike Stump <mikestump@comcast.net>
13095
13096 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
13097 * config/fr30/fr30.md: Likweise
13098 (movsi_push): Likewise.
13099 (movsi_pop): Likewise.
13100 (enter_func): Likewise.
13101 * config/moxie/moxie.md (movsi_push): Likewise.
13102 (movsi_pop): Likewise.
13103
13104 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13105
13106 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
13107 %{no_archive} %{exact_version}.
13108 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
13109 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
13110 %{no_archive} %{exact_version}.
13111 * config/mips/openbsd.h (LINK_SPEC): Likewise.
13112 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
13113 * config/mips/vxworks.h: Likewise.
13114
13115 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13116
13117 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
13118
13119 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13120
13121 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
13122 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
13123
13124 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13125
13126 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
13127 -nodefaultlib.
13128
13129 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13130
13131 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
13132 for mcpu not cpu.
13133 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
13134 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
13135 not cpu.
13136 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
13137 Don't handle -shlib.
13138
13139 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13140
13141 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
13142 (CC1_SPEC): Don't handle -profile.
13143
13144 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13145
13146 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
13147 * config/mips/mips.h (CC1_SPEC): Likewise.
13148
13149 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13150
13151 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
13152 * config/mips/mips.h (CC1_SPEC): Likewise.
13153
13154 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13155
13156 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
13157 * config/m32r/linux.h (LINK_SPEC): Likewise.
13158 * config/mips/linux.h (LINK_SPEC): Likewise.
13159 * config/mips/linux64.h (LINK_SPEC): Likewise.
13160 * config/sparc/linux.h (LINK_SPEC): Likewise.
13161 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
13162 LINK_SPEC): Likewise.
13163 * config/xtensa/linux.h (LINK_SPEC): Likewise.
13164
13165 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13166
13167 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
13168 %{version:-v}.
13169 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
13170
13171 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13172
13173 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
13174 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
13175
13176 2011-01-14 Joseph Myers <joseph@codesourcery.com>
13177
13178 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
13179
13180 2011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13181
13182 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
13183 supports -Bstatic/-Bdynamic.
13184 * configure: Regenerate.
13185
13186 2011-01-14 Jan Hubicka <jh@suse.cz>
13187 Jack Howarth <howarth@bromo.med.uc.edu>
13188
13189 PR target/46037
13190 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
13191 when checking debug_info_level. Test write_symbols instead of
13192 debug_hooks->var_location when setting flag_var_tracking_uninit.
13193
13194 2011-01-14 Richard Guenther <rguenther@suse.de>
13195
13196 PR tree-optimization/47179
13197 * target.def (ref_may_alias_errno): New target hook.
13198 * targhooks.h (default_ref_may_alias_errno): Declare.
13199 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
13200 (default_ref_may_alias_errno): New function.
13201 * target.h (struct ao_ref_s): Declare.
13202 * tree-ssa-alias.c: Include target.h.
13203 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
13204 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
13205 (targhooks.o): Likewise.
13206 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
13207 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
13208
13209 2011-01-14 Richard Guenther <rguenther@suse.de>
13210
13211 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
13212
13213 2011-01-14 Richard Guenther <rguenther@suse.de>
13214
13215 PR tree-optimization/47280
13216 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
13217 return CFG changes.
13218 (tree_ssa_forward_propagate_single_use_vars): Deal with
13219 CFG changes from associate_plusminus.
13220
13221 2011-01-14 Richard Guenther <rguenther@suse.de>
13222
13223 PR middle-end/47281
13224 Revert
13225 2011-01-11 Richard Guenther <rguenther@suse.de>
13226
13227 PR tree-optimization/46076
13228 * tree-ssa.c (useless_type_conversion_p): Conversions from
13229 unprototyped to empty argument list function types are useless.
13230
13231 2011-01-14 Richard Guenther <rguenther@suse.de>
13232
13233 PR tree-optimization/47286
13234 * tree-ssa-structalias.c (new_var_info): Register variables are global.
13235
13236 2011-01-14 Martin Jambor <mjambor@suse.cz>
13237
13238 PR middle-end/46823
13239 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
13240
13241 2011-01-13 Anatoly Sokolov <aesok@post.ru>
13242
13243 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
13244 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
13245 * config/xtensa/xtensa.c (xtensa_libcall_value,
13246 xtensa_function_value_regno_p): New functions.
13247 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
13248
13249 2011-01-13 Kai Tietz <kai.tietz@onevision.com>
13250
13251 PR c++/47213
13252 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
13253 PE specific hook.
13254 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
13255 New function prototype.
13256 * config/i386/winnt.c (i386_pe_assemble_visibility):
13257 Warn only if attribute was specified by user.
13258
13259 2011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
13260
13261 PR target/47251
13262 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
13263 floating point.
13264 (floatunsdidf2_fcfidu): Ditto.
13265
13266 2011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13267
13268 * config/s390/s390.c (print_operand_address): Replace 'error' with
13269 'output_operand_lossage'.
13270 (print_operand): Likewise.
13271
13272 2011-01-13 Jeff Law <law@redhat.com>
13273
13274 PR rtl-optimization/39077
13275 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
13276 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
13277 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
13278 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
13279 * gcse.c (prune_insertions_deletions): New function.
13280 (compute_pre_data): Use it.
13281
13282 2011-01-13 Dodji Seketeli <dodji@redhat.com>
13283
13284 PR debug/PR46973
13285 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
13286 static function.
13287 (prune_unused_types_mark): Use it.
13288
13289 2011-01-13 Andrey Belevantsev <abel@ispras.ru>
13290
13291 PR rtl-optimization/45352
13292 * sel-sched.c: Update copyright years.
13293 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
13294 in the advancing loop when we have issued issue_rate insns.
13295
13296 2011-01-12 Richard Henderson <rth@redhat.com>
13297
13298 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
13299 (TARGET_MD_ASM_CLOBBERS): New.
13300
13301 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
13302 (TARGET_DELEGITIMIZE_ADDRESS): New.
13303
13304 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
13305 (clzsi2, *bsch): New patterns.
13306
13307 * config/mn10300/mn10300.md (INT): New mode iterator.
13308 (*mov<INT>_clr): New pattern, and peep2 to generate it.
13309
13310 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
13311 flag_split_wide_types.
13312
13313 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
13314 (mn10300_trampoline_init): Rewrite without a template, an immediate
13315 load and a direct branch.
13316 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
13317
13318 2011-01-12 Anatoly Sokolov <aesok@post.ru>
13319
13320 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13321 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
13322 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
13323 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13324
13325 2011-01-12 Kai Tietz <kai.tietz@onevision.com>
13326
13327 PR debug/47209
13328 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
13329 of type.
13330
13331 2011-01-12 Jan Hubicka <jh@suse.cz>
13332
13333 PR driver/47244
13334 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
13335 (PLUGIN_COND_CLOSE): New macro.
13336 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
13337
13338 2011-01-12 Richard Guenther <rguenther@suse.de>
13339
13340 PR lto/47259
13341 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
13342 register variables in a MEM_REF.
13343
13344 2011-01-12 Joseph Myers <joseph@codesourcery.com>
13345
13346 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
13347 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
13348 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
13349 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
13350 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
13351 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
13352 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
13353 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
13354 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
13355 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
13356 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
13357 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
13358 * config/gnu-user.h: New. Copied from linux.h.
13359 (LINUX_TARGET_STARTFILE_SPEC): Rename to
13360 GNU_USER_TARGET_STARTFILE_SPEC.
13361 (LINUX_TARGET_ENDFILE_SPEC): Rename to
13362 GNU_USER_TARGET_ENDFILE_SPEC.
13363 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
13364 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
13365 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
13366 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
13367 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
13368 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
13369 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
13370 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
13371 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
13372 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
13373 * config/arm/linux-eabi.h (CC1_SPEC): Use
13374 GNU_USER_TARGET_CC1_SPEC.
13375 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
13376 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
13377 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
13378 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
13379 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
13380 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
13381 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
13382 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
13383
13384 2011-01-12 Richard Guenther <rguenther@suse.de>
13385
13386 PR other/46946
13387 * doc/invoke.texi (ffast-math): Document it is turned on
13388 with -Ofast.
13389
13390 2011-01-12 Jan Hubicka <jh@suse.cz>
13391
13392 PR tree-optimization/47233
13393 * opts.c (common_handle_option): Disable ipa-reference with profile
13394 feedback.
13395
13396 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13397
13398 * c-parser.c (c_parser_objc_at_property_declaration): Improved
13399 error message.
13400
13401 2011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
13402
13403 * c-parser.c (c_lex_one_token): Updated and reindented some
13404 comments. No changes in code.
13405
13406 2011-01-11 Ian Lance Taylor <iant@google.com>
13407
13408 * godump.c (go_output_var): Don't output the variable if there is
13409 already a type with the same name.
13410
13411 2011-01-11 Ian Lance Taylor <iant@google.com>
13412
13413 * godump.c (go_format_type): Don't generate float80.
13414
13415 2011-01-11 Richard Henderson <rth@redhat.com>
13416
13417 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
13418 declaration. Rewrite for both speed and size.
13419 (mn10300_address_cost_1): Remove.
13420 (mn10300_register_move_cost): New.
13421 (mn10300_memory_move_cost): New.
13422 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
13423 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
13424 extensions, shifts, BSWAP, CLZ.
13425 (mn10300_wide_const_load_uses_clr): Remove.
13426 (TARGET_REGISTER_MOVE_COST): New.
13427 (TARGET_MEMORY_MOVE_COST): New.
13428 * config/mn10300/mn10300-protos.h: Update.
13429 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
13430
13431 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
13432 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
13433 * config/mn10300/mn10300-protos.h: Update.
13434 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
13435 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
13436 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
13437 (*test_int_bitfield, *test_byte_bitfield): Remove.
13438 (*bit_test, *subreg_bit_test): Remove.
13439 * config/mn10300/predicates.md (const_8bit_operand): Remove.
13440
13441 * config/mn10300/constraints.md ("c"): Rename from "A".
13442 ("A", "D"): New constraint letters.
13443 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
13444 (fmssf4, fnmasf4, fnmssf4): Likewise.
13445
13446 * config/mn10300/mn10300.md (isa): New attribute.
13447 (enabled): New attribute.
13448
13449 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
13450 (abssf2, negsf2): Define only for hardware fp.
13451 (sqrtsf2): Reformat.
13452 (addsf3, subsf3, mulsf3): Merge expander and insn.
13453
13454 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
13455 (DEBUGGER_AUTO_OFFSET): Remove.
13456 (DEBUGGER_ARG_OFFSET): Remove.
13457
13458 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
13459 Emit register stores with the same offsets as the hardware.
13460 (mn10300_store_multiple_operation): Don't check that the register
13461 save offsets are monotonic.
13462 * config/mn10300/mn10300-protos.h: Update.
13463
13464 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
13465
13466 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
13467 in terms of the value on the stack, not the MDR register.
13468
13469 2011-01-11 Jan Hubicka <jh@suse.cz>
13470
13471 PR lto/45721
13472 PR lto/45375
13473 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
13474 (symbol_alias_set_destroy, symbol_alias_set_contains,
13475 propagate_aliases_backward): Declare.
13476 * lto-streamer-out.c (struct sets): New sturcture.
13477 (trivally_defined_alias): New function.
13478 (output_alias_pair_p): Rewrite.
13479 (output_unreferenced_globals): Fix output of alias pairs.
13480 (produce_symtab): Likewise.
13481 * ipa.c (function_and_variable_visibility): Set weak alias destination
13482 as needed in lto.
13483 * varasm.c (symbol_alias_set_t): Remove.
13484 (symbol_alias_set_destroy): Export.
13485 (propagate_aliases_forward, propagate_aliases_backward): New functions
13486 based on ...
13487 (compute_visible_aliases): ... this one; remove.
13488 (trivially_visible_alias): New
13489 (trivially_defined_alias): New.
13490 (remove_unreachable_alias_pairs): Rewrite.
13491 (finish_aliases_1): Reorganize code checking if alias is defined.
13492 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
13493 in LTO mode.
13494
13495 2011-01-11 Richard Guenther <rguenther@suse.de>
13496
13497 PR tree-optimization/46076
13498 * tree-ssa.c (useless_type_conversion_p): Conversions from
13499 unprototyped to empty argument list function types are useless.
13500
13501 2011-01-11 Richard Guenther <rguenther@suse.de>
13502
13503 PR middle-end/45235
13504 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
13505 volatile MEMs as MEM_READONLY_P.
13506
13507 2011-01-11 Richard Guenther <rguenther@suse.de>
13508
13509 PR tree-optimization/47239
13510 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
13511
13512 2011-01-11 Jeff Law <law@redhat.com>
13513
13514 PR tree-optimization/47086
13515 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
13516 IVs from statements that might throw.
13517
13518 2011-01-10 Jan Hubicka <jh@suse.cz>
13519
13520 PR lto/45375
13521 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
13522
13523 2011-01-10 Jan Hubicka <jh@suse.cz>
13524
13525 PR lto/45375
13526 * profile.c (read_profile_edge_counts): Ignore profile inconistency
13527 when correcting profile.
13528
13529 2011-01-10 Jan Hubicka <jh@suse.cz>
13530
13531 PR lto/46083
13532 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
13533 DECL_FINI_PRIORITY.
13534 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
13535 Restore DECL_FINI_PRIORITY.
13536
13537 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13538
13539 * doc/gimple.texi: Fix quoting of multi-word return values in
13540 @deftypefn statements. Ensure presence of return value. Wrap
13541 overlong @deftypefn lines.
13542 (is_gimple_operand, is_gimple_min_invariant_address): Remove
13543 descriptions of removed functions.
13544 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
13545 of multi-word return value in @deftypefn statement.
13546
13547 2011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13548
13549 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
13550 (Conditional Expressions, Logical Operators)
13551 (Statement and operand traversals): Do not indent smallexample
13552 code. Fix duplicate function argument in example.
13553
13554 2011-01-10 Jeff Law <law@redhat.com>
13555
13556 PR tree-optimization/47141
13557 * ipa-split.c (split_function): Handle case where we are
13558 returning a value and the return block has a virtual operand phi.
13559
13560 2011-01-10 Jan Hubicka <jh@suse.cz>
13561
13562 PR tree-optimization/47234
13563 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
13564 (pass_feedback_split_functions): Declare.
13565 * passes.c (init_optimization_passes): Add ipa-split as subpass of
13566 tree-profile.
13567 * ipa-split.c (gate_split_functions): Update comments; disable
13568 split-functions for profile_arc_flag and branch_probabilities.
13569 (gate_feedback_split_functions): New function.
13570 (execute_feedback_split_functions): New function.
13571 (pass_feedback_split_functions): New global var.
13572
13573 2011-01-10 H.J. Lu <hongjiu.lu@intel.com>
13574
13575 PR lto/46760
13576 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
13577 calling gimple_call_set_cannot_inline.
13578
13579 2011-01-10 Iain Sandoe <iains@gcc.gnu.org>
13580
13581 * config/darwin-sections.def: Remove unused section.
13582
13583 2011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
13584
13585 PR c++/47218
13586 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
13587
13588 2011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
13589
13590 PR objc/47232
13591 * c-parser.c (c_parser_declaration_or_fndef): Improved
13592 error message.
13593
13594 2011-01-09 Kai Tietz <kai.tietz@onevision.com>
13595
13596 * config/i386/winnt.c (i386_pe_start_function): Make sure
13597 to switch back to function's section.
13598
13599 2011-01-09 Iain Sandoe <iains@gcc.gnu.org>
13600
13601 PR gcc/46902
13602 PR testsuite/46912
13603 * plugin.c: Move include of dlfcn.h from here...
13604 * system.h: ... to here.
13605
13606 2011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13607
13608 * doc/cpp.texi (C++ Named Operators): Fix markup for header
13609 file name.
13610 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
13611 two extra empty pages in PDF output.
13612
13613 2011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
13614
13615 PR objc/47078
13616 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
13617 for error recovery purposes behave as if it was not specified so
13618 that the default type is usd.
13619
13620 2011-01-07 Jan Hubicka <jh@suse.cz>
13621
13622 PR tree-optmization/46469
13623 * ipa.c (function_and_variable_visibility): Clear needed flags on
13624 nodes with external decls; handle weakrefs merging correctly.
13625
13626 2011-01-07 Joseph Myers <joseph@codesourcery.com>
13627
13628 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
13629 not false.
13630
13631 2011-01-07 Jan Hubicka <jh@suse.cz>
13632
13633 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
13634 and no longer claim that gold is required for linker plugin.
13635 * configure: Regenerate.
13636 * gcc.c (PLUGIN_COND): New macro.
13637 (LINK_COMMAND_SPEC): Use it.
13638 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
13639 * config.in (HAVE_LTO_PLUGIN): New.
13640 * configure.ac (--with-lto-plugin): New parameter; autodetect
13641 HAVE_LTO_PLUGIN.
13642
13643 2011-01-07 Jan Hubicka <jh@suse.cz>
13644
13645 PR tree-optimization/46367
13646 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
13647 when we can update original.
13648 (cgraph_mark_inline_edge): Sanity check.
13649 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
13650
13651 2011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13652
13653 * config/spu/spu.h (ASM_COMMENT_START): Define.
13654
13655 2011-01-07 H.J. Lu <hongjiu.lu@intel.com>
13656
13657 PR driver/42445
13658 * gcc.c (%>S): New.
13659 (SWITCH_KEEP_FOR_GCC): Likewise.
13660 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
13661 (do_spec_1): Handle "%>".
13662
13663 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
13664
13665 2011-01-07 Jakub Jelinek <jakub@redhat.com>
13666
13667 PR target/47201
13668 * config/i386/i386.c (ix86_delegitimize_address): If
13669 simplify_gen_subreg fails, return orig_x.
13670
13671 PR bootstrap/47187
13672 * value-prof.c (gimple_stringop_fixed_value): Handle
13673 lhs of the call properly.
13674
13675 2011-01-07 Jan Hubicka <jh@suse.cz>
13676
13677 PR lto/45375
13678 * lto-opt.c (lto_reissue_options): Set flag_shlib.
13679
13680 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13681
13682 * target.def (function_switched_text_sections): New hook.
13683 * doc/tm.texi: Regenerated.
13684 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13685 * final.c (default_function_switched_text_sections): New.
13686 (final_scan_insn): Call function_switched_text_sections when a
13687 mid-function section change occurs.
13688 * output.h (default_function_switched_text_sections): Declare.
13689 * config/darwin-protos.h (darwin_function_switched_text_sections):
13690 Likewise.
13691 * config/darwin.c (darwin_function_switched_text_sections): New.
13692 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
13693
13694 2011-01-07 Iain Sandoe <iains@gcc.gnu.org>
13695
13696 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
13697 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
13698 the secondary code fragment when outputting for DWARF == 2.
13699
13700 2011-01-07 Anatoly Sokolov <aesok@post.ru>
13701
13702 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
13703 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
13704 Remove.
13705 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
13706 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
13707
13708 2011-01-06 Eric Botcazou <ebotcazou@adacore.com>
13709
13710 PR debug/46704
13711 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
13712 when it is not empty.
13713
13714 2011-01-06 Changpeng Fang <changpeng.fang@amd.com>
13715
13716 Bobcat Enablement
13717 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
13718 (case ${target}): Add btver1.
13719 * config/i386/driver-i386.c (host_detect_local_cpu): Let
13720 -march=native recognize btver1 processors.
13721 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13722 btver1 def_and_undef
13723 * config/i386/i386.c (struct processor_costs btver1_cost): New
13724 btver1 cost table.
13725 (m_BTVER1): New definition.
13726 (m_AMD_MULTIPLE): Includes m_BTVER1.
13727 (initial_ix86_tune_features): Add btver1 tune.
13728 (processor_target_table): Add btver1 entry.
13729 (static const char *const cpu_names): Add btver1 entry.
13730 (software_prefetching_beneficial_p): Add btver1.
13731 (ix86_option_override_internal): Add btver1 instruction sets.
13732 (ix86_issue_rate): Add btver1.
13733 (ix86_adjust_cost): Add btver1.
13734 * config/i386/i386.h (TARGET_BTVER1): New definition.
13735 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
13736 (enum processor_type): Add PROCESSOR_BTVER1.
13737 * config/i386/i386.md (define_attr "cpu"): Add btver1.
13738
13739 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13740
13741 PR target/43309
13742 * config/i386/i386.c (legitimize_tls_address)
13743 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
13744 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
13745 (tls_initial_exec_64_sun): New pattern.
13746
13747 2011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
13748
13749 * doc/invoke.texi (Overall Options): Improve wording and markup
13750 of the description of -wrapper.
13751
13752 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13753
13754 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
13755 rdynamic, threads): New Driver options.
13756
13757 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13758
13759 PR target/38118
13760 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
13761 if coming from .tdata.
13762 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
13763
13764 2011-01-06 Jan Hubicka <jh@suse.cz>
13765
13766 PR lto/47188
13767 * collect2.c (main): Do not enable LTOmode when plugin is active.
13768
13769 2011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13770
13771 PR other/45915
13772 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
13773 --version output if supported.
13774 * configure: Regenerate.
13775
13776 2011-01-06 Joseph Myers <joseph@codesourcery.com>
13777
13778 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
13779 Driver options.
13780
13781 2011-01-06 Jakub Jelinek <jakub@redhat.com>
13782
13783 PR c/47150
13784 * c-convert.c (convert): When converting a complex expression
13785 other than COMPLEX_EXPR to a different complex type, ensure
13786 c_save_expr is called instead of save_expr, unless in_late_binary_op.
13787 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
13788 when converting COMPLEX_TYPE.
13789
13790 2011-01-06 Ira Rosen <irar@il.ibm.com>
13791
13792 PR tree-optimization/47139
13793 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
13794 only the last reduction value is used outside the loop. Update
13795 documentation.
13796
13797 2011-01-05 Joseph Myers <joseph@codesourcery.com>
13798
13799 * config/rtems.opt: New.
13800 * config.gcc (*-*-rtems*): Use rtems.opt.
13801
13802 2011-01-05 Changpeng Fang <changpeng.fang@amd.com>
13803
13804 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
13805 processors do not support 3DNow instructions.
13806
13807 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13808
13809 * config/spu/spu.c (spu_option_override): Set parameter
13810 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
13811
13812 2011-01-05 Jan Hubicka <jh@suse.cz>
13813
13814 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
13815 at the command line.
13816
13817 2011-01-05 Martin Jambor <mjambor@suse.cz>
13818
13819 PR lto/47162
13820 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
13821 deltas on streamed outgoing edges.
13822 (output_node_opt_summary): Output info for outgoing edges only when
13823 the node is in new parameter set.
13824 (output_cgraph_opt_summary): New parameter set, passed to the two
13825 aforementioned functions. Update its forward declaration and its
13826 callee too.
13827
13828 2011-01-05 Tom Tromey <tromey@redhat.com>
13829
13830 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
13831 operator to c_finish_omp_atomic.
13832 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
13833 (build_unary_op): Update.
13834 (build_modify_expr): Update.
13835 (build_asm_expr): Update.
13836
13837 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13838
13839 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
13840 newly inserted insns.
13841 (pad_bb): Likewise.
13842 (spu_emit_branch_hint): Likewise.
13843 (insert_hbrp_for_ilb_runout): Likewise.
13844 (spu_machine_dependent_reorg): Call df_finish_pass after
13845 schedule_insns returns.
13846
13847 2011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13848
13849 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
13850
13851 2011-01-05 Eric Botcazou <ebotcazou@adacore.com>
13852
13853 PR tree-optimization/47005
13854 * tree-sra.c (struct access): Add 'non_addressable' bit.
13855 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
13856 (decide_one_param_reduction): Return 0 if the parameter is passed by
13857 reference and one of the accesses in the group is non_addressable.
13858
13859 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13860
13861 PR tree-optimization/47056
13862 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
13863 (mark_load): Likewise. Handle FUNCTION_DECL specially.
13864 (mark_store): Likewise. Pass STMT to ipa_record_reference.
13865
13866 2011-01-04 Eric Botcazou <ebotcazou@adacore.com>
13867
13868 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
13869 initializer. Skip view conversions from aggregate types.
13870
13871 2011-01-04 Kai Tietz <kai.tietz@onevision.com>
13872
13873 PR bootstrap/47055
13874 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
13875
13876 2011-01-04 Philipp Thomas <pth@suse.de>
13877
13878 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
13879 obvious typo.
13880
13881 2011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13882
13883 * function.c (thread_prologue_and_epilogue_insns): Do not crash
13884 on empty epilogue sequences.
13885
13886 2011-01-04 Joseph Myers <joseph@codesourcery.com>
13887
13888 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
13889 non-static): New Driver options.
13890
13891 2011-01-04 Jie Zhang <jie@codesourcery.com>
13892
13893 PR driver/47137
13894 * gcc.c (default_compilers[]): Set combinable field to 0
13895 for all assembly languages.
13896
13897 2011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
13898
13899 * config/mips/loongson3a.md: New file.
13900 * config/mips/mips.md: Include loongson3a.md.
13901 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
13902 TUNE_LOONGSON_3A.
13903
13904 2011-01-03 Eric Botcazou <ebotcazou@adacore.com>
13905
13906 PR middle-end/47017
13907 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
13908 instead of convert_memory_address_addr_space on the base expression.
13909
13910 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13911
13912 * config/spu/spu.c (spu_option_override): Update error text
13913 for bad -march= / -mtune= values.
13914
13915 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13916
13917 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
13918 if branch-hint optimization will be performed.
13919
13920 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13921
13922 PR tree-optimization/47148
13923 * ipa-split.c (split_function): Convert arguments to
13924 DECL_ARG_TYPE if possible.
13925
13926 PR tree-optimization/47155
13927 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
13928 when computing uns.
13929
13930 PR rtl-optimization/47157
13931 * combine.c (try_combine): If undobuf.other_insn becomes
13932 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
13933 and set *new_direct_jump_p too.
13934
13935 2011-01-03 Sebastian Pop <sebastian.pop@amd.com>
13936
13937 PR tree-optimization/47021
13938 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
13939
13940 2011-01-03 Jakub Jelinek <jakub@redhat.com>
13941
13942 * gcc.c (process_command): Update copyright notice dates.
13943 * gcov.c (print_version): Likewise.
13944 * gcov-dump.c (print_version): Likewise.
13945 * mips-tfile.c (main): Likewise.
13946 * mips-tdump.c (main): Likewise.
13947
13948 2011-01-03 Martin Jambor <mjambor@suse.cz>
13949
13950 PR tree-optimization/46801
13951 * tree-sra.c (type_internals_preclude_sra_p): Check whether
13952 aggregate fields start at byte boundary instead of the bit-field flag.
13953
13954 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
13955
13956 PR driver/47137
13957 * gcc.c (main): Revert revision 168407.
13958
13959 2011-01-03 Martin Jambor <mjambor@suse.cz>
13960
13961 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
13962
13963 2011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13964
13965 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
13966 vector optab to expand vector/scalar shift, update gimple to vector.
13967
13968 2011-01-03 Martin Jambor <mjambor@suse.cz>
13969
13970 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
13971 a thunk.
13972
13973 2011-01-03 Martin Jambor <mjambor@suse.cz>
13974
13975 PR tree-optimization/46984
13976 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
13977 HOST_WIDE_INT.
13978 (cgraph_create_indirect_edge): Fixed line length.
13979 (cgraph_indirect_call_info): Declare.
13980 (cgraph_make_edge_direct) Update declaration.
13981 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
13982 (cgraph_create_indirect_edge): Use it.
13983 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
13984 callees.
13985 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
13986 the new thunk_delta representation.
13987 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
13988 HOST_WIDE_INT.
13989 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
13990 (ipa_read_indirect_edge_info): Likewise.
13991 * lto-cgraph.c (output_edge_opt_summary): New function.
13992 (output_node_opt_summary): Call it on all outgoing edges.
13993 (input_edge_opt_summary): New function.
13994 (input_node_opt_summary): Call it on all outgoing edges.
13995
13996 2011-01-02 H.J. Lu <hongjiu.lu@intel.com>
13997
13998 PR driver/47137
13999 * gcc.c (main): Don't check have_o when settting combine_inputs.
14000
14001 2011-01-02 Eric Botcazou <ebotcazou@adacore.com>
14002
14003 * regrename.c: Add general comment describing the pass.
14004 (struct du_head): Remove 'length' field.
14005 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
14006 (regrename_optimize): Do not sort chains. Rework comments, add others.
14007 Force renaming to the preferred class (if any) in the first pass and do
14008 not consider registers that belong to it in the second pass.
14009 (create_new_chain): Do not set 'length' field.
14010 (scan_rtx_reg): Likewise.
14011
14012 2011-01-02 Jakub Jelinek <jakub@redhat.com>
14013
14014 PR tree-optimization/47140
14015 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
14016 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
14017 to bit_value_binop.
14018
14019 PR rtl-optimization/47028
14020 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
14021 parm_birth_insn instead of at the beginning of first bb.
14022
14023 2011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
14024
14025 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
14026 Remove the word "see" before "@pxref".
14027 * doc/rtl.texi: Remove the word "see" before "@pxref".
14028
14029 2011-01-01 Jan Hubicka <jh@suse.cz>
14030
14031 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
14032 memory.
14033
14034 2011-01-01 Kai Tietz <kai.tietz@onevision.com>
14035
14036 PR target/38662
14037 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
14038
14039 \f
14040 Copyright (C) 2011 Free Software Foundation, Inc.
14041
14042 Copying and distribution of this file, with or without modification,
14043 are permitted in any medium without royalty provided the copyright
14044 notice and this notice are preserved.